Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

javascript with windows

Status
Not open for further replies.

manaki

Programmer
Feb 19, 2004
11
CA
okay so here is my problem,
on my website I have clickable graphic(thumbnails)and I have them opening through javascript in flash(2004) using this code:

on (release) {
getURL ("javascript:NewWindow=window.open(' NewWindow.focus(); void(0);");
}

What I want to happen, because these images vary in side, I want either to close the one window and pop up the new with the right size, or to have the item not close, allowing for several pop-up windows.

Looking through the form I found this code, which I have applied to my buttons to see if it would work:

on (release) {
getURL ("javascript: var OpenWindow = null; if (OpenWindow!=null) OpenWindow.close(); NewWindow=window.open(' NewWindow.focus(); void(0);");
}
But it is not working either, any suggestions or have I missed something in the code?
 
Write a javascript function in the page that houses the flash movie and just call the function from within the flash movie.

Example:

on(release){
getURL("javascript:eek:penWindowFunction('windowURL','WindowName','Window params')");
}

Use the same method to pass whatever args are needed for your javascript function.

Hope that helps.

Wow JT that almost looked like you knew what you were doing!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top