Searching \ for '[OT]: Calling HTML/CGI wizards....Auto page refres' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/index.htm?key=calling+htmlcgi
Search entire site for: 'Calling HTML/CGI wizards....Auto page refres'.

Exact match. Not showing close matches.
PICList Thread
'[OT]: Calling HTML/CGI wizards....Auto page refres'
2001\01\29@132423 by D Lloyd

flavicon
face
Hi,

I wanted to implement a quick and dirty way of refreshing a page generated from a CGI script.
It's quite easy to do it the dirty way, with the <META HTTP-EQUIV="Refresh" tag arrangement but it expects a URL to be specified....
As I have "written out" the META tag via CGI, I don't have a specific URL to refresh "back to."

The page can be manually refeshed via a submit button; is there a way of embedded the "submit" into the meta tag so that the refresh pretends that the
submit button is being pressed?
Is it as easy as just specifying the Perl/CGI script that would be normally called on the submit?

OR, better still, can anyone suggest a better way of doing this?

I know I could write out some javascript to a tiny frame that refreshes a main frame or something but I'd like to keep it simple (as it has to work on
Linux Lynx!)

Any help would be greatly appreciated,

Dan

PS: This is PIC related! I am trying to refresh data from an Internet-enabled embedded PIC

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


2001\01\29@133919 by rich+piclist

flavicon
face
Never tried it, but I think 'Connection: open' in the header might do the
trick... at the expense of a TCP connection on your end.

On Mon, 29 Jan 2001, D Lloyd wrote:

{Quote hidden}

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


2001\01\29@134412 by Steven J. Devine

flavicon
face
> I wanted to implement a quick and dirty way of refreshing a page generated from a CGI script.
> It's quite easy to do it the dirty way, with the <META HTTP-EQUIV="Refresh" tag arrangement but it expects a URL to be specified....
> As I have "written out" the META tag via CGI, I don't have a specific URL to refresh "back to."
>
> The page can be manually refeshed via a submit button; is there a way of embedded the "submit" into the meta tag so that the refresh pretends that the
>  submit button is being pressed?
> Is it as easy as just specifying the Perl/CGI script that would be normally called on the submit?

How about entering the cgi script in the refresh?  You can sepcify parameters on the command line (which would be the same as the parameters received for the first call in your case).  For instance, lets assume you received a name parameter and I entered Steve... you could write out the refresh tag with the folloring url:
   http://www.yourdomain.com/cgi-bin/somescript?name=steve

There are other conversions necessary to escape spaces and other special characters...  but that's a start...  look up CGI on the net to get more info on the character escapes, sending multiple parameters, etc.

Steve
------------------------------------------------------------------------
Steven J. Devine, President, Consultant, TZOGON Enterprises Incorporated
         President, EAA Chapter 136 (LWM/Merrimac Valley)
.....steveKILLspamspam.....tzogon.com          HAM Tech lic: N1YZJ      http://www.tzogon.com
               http://www.tzogon.com/~steve/glass_cockpit
                 http://www.tzogon.com/~steve/stolch801
------------------------------------------------------------------------

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


2001\01\30@085044 by D Lloyd

flavicon
face
Hi,

Sorry to waste bandwidth but thanks to everyone replying on these subjects
recently.

I bit the bullet and have some javascript refreshing frames, now, which
seems the best solution.

Again - Many thanks,

Dan

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email EraseMElistservspam_OUTspamTakeThisOuTmitvma.mit.edu with SET PICList DIGEST in the body


2001\01\30@142906 by Peter L. Peres
picon face
Maybe I do not understand the question, but what is stopping you from
using the CGI request (unparsed) of the CGI script to build the tag that
Refresh references ? Maybe with a little change (added variable) to
indicate it is not the first call ?

Peter

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email listservspamspam_OUTmitvma.mit.edu with SET PICList DIGEST in the body


2001\01\31@035420 by D Lloyd

flavicon
face
part 1 948 bytes content-type:text/plain; charset=us-ascii
Hi,

This is pretty much what I have implemented and it seems to work quite
well.

Thanks,

Dan




(Embedded     "Peter L. Peres" <@spam@plpKILLspamspamACTCOM.CO.IL>KILLspamspamMITVMA.MIT.EDU>
image moved   30/01/2001 19:01
to file:
pic30774.pcx)





Please respond to pic microcontroller discussion list
     <KILLspamPICLISTKILLspamspamMITVMA.MIT.EDU>
Sent by:  pic microcontroller discussion list <RemoveMEPICLISTTakeThisOuTspamMITVMA.MIT.EDU>


To:   spamBeGonePICLISTspamBeGonespamMITVMA.MIT.EDU
cc:
Subject:  [OT]: Calling HTML/CGI wizards....Auto page refreshing

Security Level:?         Internal


Maybe I do not understand the question, but what is stopping you from
using the CGI request (unparsed) of the CGI script to build the tag that
Refresh references ? Maybe with a little change (added variable) to
indicate it is not the first call ?

Peter

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email TakeThisOuTlistservEraseMEspamspam_OUTmitvma.mit.edu with SET PICList DIGEST in the body






part 2 165 bytes content-type:application/octet-stream; (decode)

part 3 105 bytes
--
http://www.piclist.com hint: To leave the PICList
RemoveMEpiclist-unsubscribe-requestspamTakeThisOuTmitvma.mit.edu


More... (looser matching)
- Last day of these posts
- In 2001 , 2002 only
- Today
- New search...