XTIPS

Tips Mail Tools
GuestBook Link Exchange
Home Page

SETTING USER PREFS IN
COPY/PASTE FORMS

_____
When writing scripts you often need the user to change some value or text to personalize the script,
as in the simple javascript alert when you entered this page .

By using "get" arguments and a form you can let the user change the script
BEFORE they copy it
enter your message
The above script would need to be changed to
The form sets the variable "text"
_____
There is a more complex example in Xtips 15
NOTE
with most scripts you will have to ensure the & < > and " characters are in their "html entity" form
i.e &#38; or &amp; for & &#60; or &lt; for < &#62; or &gt; for > &#34; or &quot; for "
for the script to display correctly on all browsers My method of doing this automaticaly is described Here if you need to show a "get" argument in your script you need to change the { and } to &#123; and &#125; using text editor.

I know it's generic but the java alert came from
EVOLUTION
Random Partner

B A D M A S H
BACK

©2009 - 2025Theoldman
JOIN XTBOARD
X T B O A R D
THE MOBILE WORLD IS
X T G E M