I have an existing page that dynamically creates data in a popup window. I am trying to change it to use an iFrame. Is the following code valid:
The iFrame is as follows <iframe src="theframe.html" name="theframe"></iframe> "theframe.html" is an existing file initially with instructions.
In a script I do thewindow=window.open("","theframe"); thewindow.document.open(); thewindow.document.write("Some Requested Data"); thewindow.document.close();
This is done multiple times depending on what the user requests each time. Sometimes this works and sometimes it doesn't. I'm probably doing someing very wrong but I don't know where to look for reference.
I'm not really opening a window so there must be another way to do it.
What is the best way to write to an iFrame or should I not even try? Code:
I'm struggling to find out why the iframe is not being populated with a selectbox containing the album names from an XML file. majority of the code is working fine and the "alert(s)" function works perfectly and displays exactly the html I would like it to but the bits in bold are not working and are not writing the html to the iframe.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> <html>
I'm using this to write html tag in me textarea. Now i'm wondering what code do i need to use so that text cursor stays in textarea after i click on the button so that i don't have to click back to textarea every time i press button. Code:
I have spent a very long time looking at it but I still can't figure it out. The problem is with line with <embed> tag.My purpose is to open a swf flash in a new popup window such that it must have a Pretty title name (instead of its addresss). Since opening that SWF directly does not leave me the option of change the popup title , so I use the above method...
I have 8 pages that are very similar. The only difference is the select options with different group of names on each page. I am using a global script.Is there a way to have a central point with array of names that would write or function in the select option depending on the page.Example below