Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

variables not passed when document refreshes

Posted on 2003-10-21
4
Medium Priority
?
199 Views
Last Modified: 2010-04-09
Hi,

I have a page(hidden frame) that refreshes every x seconds.

This page basically "polls" a static visible frame for data entry values.
The page works fine except when I'm trying to pass data to itself when it refreshes.

I do a  'request.form("x")'  and there is no data.
I alter to code to replace the constant refresh with  a user initiated 'submit'  and the
data is passed fine.

It seems as if the "refresh" is not the same as a "submit" as far as sending the variables.

Is this the case?

Any suggestions would be greatly appreciated.

Thanks

Phil31

0
Comment
Question by:phil31
  • 3
4 Comments
 
LVL 33

Expert Comment

by:knightEknight
ID: 9592417
correct, it is not the same.  IMO you are better off going with the submit, but if you really want to do it with a refresh then let me know, it can be done albiet cumbersome.
0
 
LVL 33

Accepted Solution

by:
knightEknight earned 1000 total points
ID: 9592426
You can ofcourse, submit the form automatically too, so it will behave similar to your automatic refresh.

   setTimeout( "document.forms['nameOfYourForm'].submit()", 60000 );  // submit is 60 seconds
0
 
LVL 33

Expert Comment

by:knightEknight
ID: 9592429
oops, typo in the comment ... i meant that the above code will submit the form in 60 seconds
0
 

Author Comment

by:phil31
ID: 9613790
to :knightEknight

thank you very much for your help.  It's the solution i needed.

phil31
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question