html >> help w/ my tiny js script

by nikonratm » Fri, 16 Dec 2005 07:24:16 GMT

so, im trying to write a function that will open a page in a new window
(http://giantmecha.com) and then load a different page into an iframe (the main
one, with id 'contentFrame') on that page.

i think the code pretty much explains what ive tried, the only thing i should
explain is that the commented out line was a test i had to see if the
getElementById was working (it seems not to be, because when i use that test it
opens google--meaning getElementById returned null).

thanks so much

function giantmechaize() {
newWindow = window.open("http://giantmecha.com/");
if (newWindow.document.readyState == "complete") {
newWindow.document.getElementById("contentFrame").src =
"http://www.giantmecha.com/2005/12/more-hot-design.html";
//if (newWindow.document.getElementById("contentFrame") == null)
{window.open("http://google.com")}
}
return null
}



html >> help w/ my tiny js script

by nikonratm » Sun, 18 Dec 2005 03:34:09 GMT


sorry, was there a better place to post this question...im starting to think dynamic html isnt really the place.



html >> help w/ my tiny js script

by Murray *TMM* » Sun, 18 Dec 2005 05:51:26 GMT

This would be the right place, I guess....

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs , Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================








Similar Threads

1. tiny tiny baby Mac/widows question - Adobe Dreamweaver

2. tiny tiny newbe question and hosting info

3. JS Script Help Please - Adobe Dreamweaver

4. Moving mm_menu.js script (pop-up menu) script

Hi, 
i wonder if anyone can help at all:

TASK
I want to move the DW generated mm_menu.js script to a separate folder in the site, not the same location as the created page.

PROBLEM
I have move the script and thus have changed the refering address in the HTML in the page to the new location :
                           the menu still works 
                           BUT not with the correct settings (colours borders etc).

Before i have managed to move a Fireworks generated popup script within dreamweaver with this method but the dreamweaver generated script does move but with unacceptable result.


Can someone please help


Thanks


Javo



5. Unable to open script file "../../shared/mm/scripts/CMN/UI.js" (error 3) - Adobe Dreamweaver

6. Dreamweaver MX2004 Teeny Tiny Text in Help (and Other) Windows

Dreamweaver newbie here.

If I start up my Dreamweaver MX2004 then click
Help/Welcome_to_Dreamweaver I get incredibly small text.  I'm running
Windows XP service pack 2.  My Screen is at 1280 by 1024.  How do I
get readable text?

7. I have some code, need a tiny bit of help please - Adobe Dreamweaver

8. Teeny Tiny Text in Help "and" Other Windows

Dreamweaver newbie here.

If I start up my Dreamweaver MX2004 then click
Help/Welcome_to_Dreamweaver I get incredibly small text.  I'm running
Windows XP service pack 2.  My Screen is at 1280 by 1024.  How do I
get readable text?