Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2
  1. #1
    Senior Member shoffman3572's Avatar
    Join Date
    Jul 2008
    Location
    Fullerton, CA
    Posts
    137
    Member #
    16990
    I have a drop down list of choices in a form - when the user makes a selection, I want to reload the frame the form is on and create the rest of the form based on the initial selection.

    I'm using this javascript function:

    function loadStyle(styleNo)
    {
    window.parent.mainframe.location.reload('?leo=' +styleNo+"");
    }

    The above works fine in IE the page loads with the new selection selected - but not in FF, Safari and Chrome. Like the variable leo doesn't get passed to the page when it reloads.

    Does anyone know why, and what the work around is?

  2.  

  3. #2
    Senior Member shoffman3572's Avatar
    Join Date
    Jul 2008
    Location
    Fullerton, CA
    Posts
    137
    Member #
    16990
    Quote Originally Posted by shoffman3572
    I have a drop down list of choices in a form - when the user makes a selection, I want to reload the frame the form is on and create the rest of the form based on the initial selection.

    I'm using this javascript function:

    function loadStyle(styleNo)
    {
    window.parent.mainframe.location.reload('/mywebpage.php?leo=' +styleNo+"");
    }

    The above works fine in IE the page loads with the new selection selected - but not in FF, Safari and Chrome. Like the variable leo doesn't get passed to the page when it reloads.

    Does anyone know why, and what the work around is?
    Sorry - I posted too soon. I found the answer.

    window.parent.mainframe.location.replace("/mywebpage.php?leo=" + styleNo +"");

    this works in all the browsers.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 12:45 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com