homepage Welcome to WebmasterWorld Guest from 54.197.108.124
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
javascript problem
shakes911




msg:1490674
 2:25 pm on Jul 25, 2001 (gmt 0)

hi, i'm using a form to select items from 2 dropdown menus, which, when posted is processed by a perl script on another site. I want the results of this query to be displayed in a pop-up window with a frameset. the top frame is the nav bar and the content frame containing the results of the query. does anyone have any idea how to do this?

thanks

 

MikeFoster




msg:1490675
 3:23 pm on Jul 25, 2001 (gmt 0)

This is just an idea, I haven't tried it.

Perhaps, in the onSubmit handler, open the popup...

myPopup = window.open(...);

load a frameset into it, then let the results from the submit target the frame.

<form target="myPopup.frames['myframe']"...

Will something like this work? I don't know - needs experimenting.

MikeFoster




msg:1490676
 3:27 pm on Jul 25, 2001 (gmt 0)

Oh... you can't use a javascript expression as the target attribute value.

perhaps in the onSubmit handler assign it in script...

document.myform.target = myPopup.frames['myframe']

... not sure about that either

shakes911




msg:1490677
 10:27 am on Jul 26, 2001 (gmt 0)

unfortunately neither of these work, but thanks for looking at it Mike.

MikeFoster




msg:1490678
 7:16 pm on Jul 26, 2001 (gmt 0)

I'm not sure if the frame name is in the current window's scope... I don't think so. The target attribute's value is just the name of a window/frame... I don't know how to do the scope resolution in this case - perhaps:

document.myform.target = myPopup.frames['myframe'].name

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved