Solved

variables not passed when document refreshes

Posted on 2003-10-21
4
190 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 250 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
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…

740 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