Results 1 to 4 of 4

Thread: Frames and Request Form Data

  1. #1

    Thread Starter
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Frames and Request Form Data

    I have one page where there are input forms...

    I submit the form and the handler is a page that has frames(that has two subframes ). I can see the request form data from the parent . but in the children, the ones shown, the request form data is gone already.

    i already have ideas how to implement the task but I would like more input from you guys. . How would you do it?

    man working with frames is a pain.

  2. #2

    Thread Starter
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Re: Frames and Request Form Data

    solutions I have thought of and found so far.

    1. use sessions .... (bad idea since i have many form data)
    2. submit, then on the frame parent code (where the frameset tag is declared) the request form variables will be passed to the right window as querystring. (well as long as the data will not be visible in the address field, but do tell me of its pros and cons) ... and this is the option i am using.

  3. #3
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606

    Re: Frames and Request Form Data

    Here's what I would do, that is if there's not too much info being submitted!

    Use the get method to submit your data and in your frameset, when you specify the filename, do something like

    src="myfile.asp?<%=Request.QueryString%>"

    If that does not make it and you really need to use POST, then loop thru your post header and build a form(with the target name of you child frameset) that submit to one child frame and then another form (with same fields I guess) that submit to the other frame.

    But you should problably explain a bit why you want to do this, I do not see any good reason you would want to post to two frame
    Last edited by sebs; Dec 9th, 2005 at 03:37 PM.

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Frames and Request Form Data

    If you pass as querystring, you could also use javascript to read the parameters, but that depends on where you want to use the submitted data.

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