PDA

View Full Version : a HTML/JavaScript question


Mr Urt
May 18th, 2002, 23:16
(I'm not sure which this can be done under, and, if possible, I would like to know both) How do u let the person viewing the page input data (saved as a variable, obviously)¿

ShADoWFLaRe85
May 19th, 2002, 06:40
It's possible and extrememly easy to do. Since it's screwed up when you post code, I've attached a text file with the routines for both languages: VBScript and JScript. Hopefully, I answered what you were asking.

Mr Urt
May 20th, 2002, 00:56
thx for ur help shadow, but what does that save the value entered in the popup as¿

ShADoWFLaRe85
May 20th, 2002, 04:14
The strExample variable in VBScript and the example variable in JScript. Place the document.write methods wherever you want the value to appear on the page.

SnakeBite
June 7th, 2002, 09:44
I used JScript on my homepage in a form where you could send in your opinions about my page, but I removed it when I got guestbook... I could attach it, but it's all on Norwegian...

ammoQ
June 8th, 2002, 00:41
Input is done with <form><input name="whatever"><input type="button" onClick="javascript:here you need a script to save the data"></form>
About saving the value:
It generally depends on what you want to do with the data. If you need it in the next page, you can store it in cookies. If you want to save it permanently, you need server side programming.