Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
<inline> javascript in Browser UI?
foobar
Hello - I want to include some javascript in my DCT. It seems that the <inline> tag would work well for me. Basically, I want to insert a bit of javascript to suppress the navigation frame on the left side of the DCT. I have the script to do so and I can run it from a callout, but the callout must open a separate window. The javascript in the second window references does the following:
opener.window.parent.document.getElementsByTagName("frameset")[1].cols="0%,*";
which sets the navigation frame width to zero. This works, but it's a bit messy with the second window. I'd like to be able to include it with the DCT so when I open a file for editing, the left nav is suppressed.
Any ideas out there?
Thanks in advance!
Find more posts tagged with
Comments
james1
Use FormAPI.
--
James H Koh
Interwoven Engineering
foobar
Is that available in TS 5.0?
james1
I don't think so.
--
James H Koh
Interwoven Engineering
ozaky
Here's what I did to resize the left frame of the DCT:
1. modify the frameset in \\iw-home\httpd\webapps\webdesk\templating\datacapture.jsp
2. recompile the jsp: see article
http://devnet.interwoven.com/forums/cgi-bin/showthreaded.pl?Cat=&Board=PRODUCTS_TEMPLATING&Number=11397&Search=true&Forum=All_Forums&Words=iwreset&Match=Entire%20Phrase&Searchpage=0&Limit=25&Old=allposts&Main=2392
Voila! No left frame.
Make sure when you upgrade or apply a patch, you make a copy of the modified file and recompile it, otherwise you may get the standard look again.
Oscar
Edited by ozaky on 04/03/03 12:08 PM (server time).