Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

variables not passed when document refreshes

Posted on 2003-10-21
4
Medium Priority
?
197 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

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.
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 position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
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…

704 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