dtml files in dtml files? getting frames to work on a simple Product
I am trying to write a simple web based chat server Product. The interface is simple with a frame for entering text, and another frame for viewing the chat so far. My problem is that in a dtml file, I put links to two other dtml files (those being the two frames), and the frames don't show up. How can I make this work? -- _______________________________________________ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup Meet Singles http://corp.mail.com/lavalife
At 02:05 PM 3/3/2003, sameer chaudhry wrote:
I am trying to write a simple web based chat server Product. The interface is simple with a frame for entering text, and another frame for viewing the chat so far. My problem is that in a dtml file, I put links to two other dtml files (those being the two frames), and the frames don't show up. How can I make this work?
There's no reason this shouldn't work if you're setting up frames correctly in HTML. For example, say you had something like this as your index_html: <frameset rows="*,75"> <frame src=http://server/path/content_method> <frame src=http://server/path/footer_method> </frameset> If you have dtml methods called content_method and footer_method at the path specified, it should work fine. If your problem is targeting frames with your links, look into the name="foo" attribute of <frame> or the target="foo" attribute of <a>. If that's not what you're doing or there is some fancier intention at work, it's tough to say what's going wrong unless you post your code and/or some details on what problems and/or errors you're seeing. Dylan
I am trying to write a simple web based chat server Product. The interface is simple with a frame for entering text, and another frame for viewing the chat so far. My problem is that in a dtml file, I put links to two other dtml files (those being the two frames), and the frames don't show up. How can I make this work?
Beats me. What you just wrote could mean you're doing any number of things. If you show us your source, maybe someone can spot the error. But since I like shooting in the dark, you should be doing something like this fragment: <frameset> <frame src="&dtml.url-frame1" name="frame1" /> <frame src="<dtml-var frame2 url>" name="frame2" /> </frameset> Remember that the frameset takes a URL, not content. That's what the DTML above gives you (in two different syntaxes) for 'frame1' and 'frame2'. For relative links, I suppose you could also say <frameset> <frame src="frame1" name="frame1" /> <frame src="frame2" name="frame2" /> </frameset> Notice that here there's no DTML involved. Note: This is all untested. But it should work. Also note: don't use frames if you can get away with it. Frames are bad. --jcc
participants (3)
-
Dylan Reinhardt -
J Cameron Cooper -
sameer chaudhry