|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I want to have a script that will allow me to put messages or news on the other page of my site, located at the same URL address.
Is there any way of doing this? Thank you in advance for your help, jerzorl |
|
#2
|
|||
|
|||
|
JavaScript does not lend itself well to doing this. Depending on how much you want to write, I can only think of one way to do this.
First, from your originating page, assign the text you want to write to a variable (say trivial) and store it in a cookie. Within the page you want this to appear, retrieve the cookie and extract the variable. At the appropriate point in your document, place the line: <script>document.write(trivial);</script> Of course, you are limited to 4096 bytes by the cookie. I suppose you could write multiple cookies if you had to. Russ <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by jerzorl: I want to have a script that will allow me to put messages or news on the other page of my site, located at the same URL address. Is there any way of doing this? Thank you in advance for your help, jerzorl[/quote] |
|
#3
|
|||
|
|||
|
Actually, you can send messages from one page to another by placing the message in the query string of the URL. Theres a nice little tutorial about it at http://wsabstract.com./javatutors/send1.shtml
[This message has been edited by billyo (edited July 13, 2000).] |
|
#4
|
|||
|
|||
|
Good point. And I just got done donig something similar. IF you have a small amount of data, this works quite well
Russ |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > A script that allows to put messages on other page |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|