Results 1 to 4 of 4

Thread: ASP HTML Form Advice

  1. #1
    only the finest beef
    Join Date
    Nov 2003
    Posts
    1,175
    Thanks
    4
    Thanked
    0 times in 0 posts

    Unhappy ASP HTML Form Advice

    I'm making a form, but I want to refresh the drop down lists whilst keeping all the other (mainly text) values.

    I want to do the refresh when I close a popup.

    Any ideas?

  2. #2
    Senior Member Shad's Avatar
    Join Date
    Jul 2003
    Location
    In front
    Posts
    2,782
    Thanks
    23
    Thanked
    42 times in 25 posts
    Hmm a combination of JavaScript and server side code I think.

    In the pop-up, you can do stuff on window.close, like opener.[function] (if memory serves me rightly). Then just use <%= %> tags in each of the form field values and then you can change them on the server when the page refreshes.

    You were a bit vague though
    Simon


  3. #3
    only the finest beef
    Join Date
    Nov 2003
    Posts
    1,175
    Thanks
    4
    Thanked
    0 times in 0 posts
    would opener.form.submit work??

    could then set a radio button that the user would have to toggle to say whether they'd finished the form or not. If the form wasn't complete, it would error check and would resubmit the form to itself.

  4. #4
    Pixel Abuser Spunkey's Avatar
    Join Date
    Nov 2003
    Location
    Milton Keynes
    Posts
    1,523
    Thanks
    0
    Thanked
    0 times in 0 posts
    have a crack at this...

    in the <head> of your popup you'll mostly be needing...

    <script language="JavaScript">
    function CloseMe() {
    window.opener.location.assign('MyForm.asp?value=' + document.form.txtField.value)
    window.close()
    }
    </script>

    and in the body...
    <a href="javascript:void" onclick="CloseMe()">Click me; I Rock!</a>

    you'll need to change the document.form.txtField.value bit to be the name youve assigned for your form and field. It will then pass that value back to your form which will be loaded into the browser. You'll need some code in your form to handle the value being passed through the querystring and do exactly what you want with it!

    HTH

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. asp? my arse!!!!!!!!!!!!!!!!!!!!
    By mr_anderson187 in forum Software
    Replies: 9
    Last Post: 20-02-2004, 11:33 AM
  2. HELP - advice regarding purchase needed
    By silentphoenix in forum General Discussion
    Replies: 9
    Last Post: 20-02-2004, 11:31 AM
  3. asp? not likely!
    By mr_anderson187 in forum Networking and Broadband
    Replies: 0
    Last Post: 06-02-2004, 09:09 PM
  4. Moving on from HTML...
    By TomWilko in forum Software
    Replies: 21
    Last Post: 23-10-2003, 10:17 PM
  5. Replies: 1
    Last Post: 14-08-2003, 03:32 PM

Posting Permissions

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