I would like to know if it is possible to use iframes in the browse() function as a var to replace the iframe/frame src
For example:
[dm]
mob/verb/help()
usr << browse(helpfile,window="helpwin")
var/const/helpfile = {"
IFRAME: <a href="[creditfile][creditfile]
IFRAME: [faqfile]
"}
var/const/faqfile = {"
//faq's goes here
"}
var/const/creditfile = {"
//credits goes here
"}
[/dm]
As you can see, I've tried linking the iframes src to the constant vars but that doesn't works. Is the only way to do this is make a html file and launch it as "IFRAME: creditfile.html"?</<>
ID:135362
![]() Sep 17 2004, 2:28 pm
|
|
![]() Sep 17 2004, 2:48 pm
|
|
I know you can use iframes in browse() because I've done it before. But I don't remember how any of it works. All I remember is that you have to browse_rsc() the frame contents before you can use them in browse(), if that helps.
|
The method Foomer mentioned is the only method that will actually work. Remember, browse() doesn't do anything other than create and display an HTML file -- if you look in your .\BYOND\users\[XYZ]\cache directory, you'll see HTML files which have been dynamically generated by the browse() proc. HTML syntax doesn't support sticking in a complete HTML file inside an iframe tag... so, you have to specify a URL to display.
I use frames quite prominently in The Haven Seed's character generation system, and they work flawlessly -- but you have to remember to transmit the contents of the frames (as separate HTML files, just like you would on the internet) and then transmit the frameset or the page with iframe. Look up the browse() proc in the reference -- it specifies how to transmit a file but not display it on the client. |