SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast drisley's Avatar
    Join Date
    Jun 2001
    Location
    Florida
    Posts
    99
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    showmodaldialog and location.href

    I am trying to use a showmodaldialog() popup window. This window has a dropdown which the user will select a set. The particular set which is chosen is supposed to affect what appears in another dropdown right below it.

    What I have done in the past with normal windows is just use javascript onChange to reload the window and pass a variable to itself using location.href = 'blah.php?id=+form.set.options[form.set.selectedIndex].value. But, whenever I use location.href on this type of window, I get a new window.

    Idea?

    BTW, this is using PHP, too, to access data from a database. So, what the user chooses in the first dropdown should trigger a query done by PHP, which should output the options into the second dropdown.

    Help would be highly appreciated.
    David Risley
    Web Developer, Web Publisher, Blogger, Tech Dude
    PC Mechanic | WebbyOnline

  2. #2
    SitePoint Enthusiast drisley's Avatar
    Join Date
    Jun 2001
    Location
    Florida
    Posts
    99
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've got a little something working here, but I'm having to use an IFRAME to invisibly write the innerHTML of the DIV containing the second dropdown. Seems like a work-around to me, but maybe this is typical.
    David Risley
    Web Developer, Web Publisher, Blogger, Tech Dude
    PC Mechanic | WebbyOnline


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •