Solved

variables not passed when document refreshes

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

743 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now