Forum Moderators: open

Message Too Old, No Replies

Variable

passing via iframe

         

fashezee

7:06 pm on Jul 22, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I would like to POST variables from one page to another; however I do not wish
to display the values in the URL. I am planning to use frames to avoid the
display of variables; I would like to know what are the pros and cons regarding this method?

korkus2000

7:11 pm on Jul 22, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are you using Post or Get for your method. Sorry I am a little confused. If you are using post then the variables won't be in the url.

frank_stahl

3:06 pm on Jul 29, 2003 (gmt 0)

10+ Year Member



If you don't want to or cannot use server side scripting, passing variable values via frames is a standard method indeed. There is even a shop system (which you can actually buy!) which makes use of this mechanism.

Problem: If you reload the web page by pressing F5 or Ctrl-R, your shopping cart is empty again. :-) This illustrates the biggest problem of this JavaScript application approch: If the user reloads the page--on purpose or by accident--, your variable values are gone for good. (Which renders this model completely useless IMHO.)

[edited by: tedster at 3:28 pm (utc) on July 29, 2003]

MonkeeSage

9:03 am on Aug 3, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



fashezee:

I would imagine that such a system as frank was talking about would need to use client cookies to track data that is session dependent, so that there would be some sort of persistence of information maintained across the submittal (or refreshes, &c). At least, that is probably how I would do things. But you might not even need anything even that complex...

what exactly are you trying to accomplish? Are you simply trying to get data from an iframe into it's parent window? Or are you trying to submit a form in the iframe because you need to submit it, and you just want to send the same data that is being submitted to the parent window in addition to doing the submittal?

Jordan