Solved

variables not passed when document refreshes

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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
align Linkedin sign to the right page 5 36
Put shading on half of picture 8 42
How to make footer stick to bottom 9 29
Place text over image using CSS 6 44
Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
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 style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

773 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