CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2003
    Posts
    3

    form refresh question

    I want to be able to revalidate/reload a single form on a frame with multiple forms, i.e. not refresh the values in other forms which have already been entered. All the searching I've done seems to indicate you can only revalidate an entire frame. i.e.

    onChange="document.myform.value = 'refresh'; submit()

    The idea is to alter the value of a select drop down, and based on the new option, reload a related select drop down.

    Is it possible?

    Thanks,
    Adam

  2. #2
    Join Date
    Feb 2003
    Location
    Oakland, CA
    Posts
    29

    form refresh

    Adam, it sounds like all you really want to do is repopulate the
    select menu dynamically. There's no need to return to the server
    for that.

    For example, if you want to reload the select menu based on
    what the user select in another menu, you can load all the lists
    into a javascript array ahead of time, and then your event handler
    can just grab those values to repopulate the select menu.

    If you actually need to go to the server, then I would avoid
    reloading the frame you're in. I would create an invisible frame
    and post a request to that. Your request should return a blank
    html page with nothing in it but javascript or xml that contains
    the new values, then you can grab them from the frame with the
    form and begin repopulating the select menu.


    If your question is actually about HOW to repopulate a select
    menu, that part is pretty easy. If you don't know, respond again and I'll give you an example.

    hope this helps.

    Nate Grover
    http://www.nategrover.com
    Nate Grover
    http://www.nategrover.com

  3. #3
    Join Date
    Mar 2003
    Posts
    3
    Thanks for the help. I'll have to think your answer over, but it sounds very good

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured