Although this is a client side issue, I am also posting to asp.general
in case there is someway to do this only server side (which I would
prefer).
Here's my form:
<form method="post" action="<%=requ est.servervaria bles("Script_na me")
%>"
<% for i - 0 to 4%>
Header: <input type="text" name="header" id="header<%=i% >"
onblur="functio n(this)"><br>
Description: <input type="text" name="descripti on" id="description <%=i
%>" onblur="functio n(this)">
<% next%>
<input type="submit" value="Submit">
</form>
When the data gets returned it's something like:
header: "socks, shoes, pizza, cats, dogs"
description: "good for feet, wear with socks, cheese only, have lots
of hair, bark a lot"
Problem comes when the description or header have a comma. I need a
little javascript that will replace the comma with a semicolon client
side before it gets to
the server, preferably as they leave the field.
Any help with this would be much appreciated.
--
Adrienne Boswell at work
Administrator nextBlock.com
Please respond to the group so others can share
in case there is someway to do this only server side (which I would
prefer).
Here's my form:
<form method="post" action="<%=requ est.servervaria bles("Script_na me")
%>"
<% for i - 0 to 4%>
Header: <input type="text" name="header" id="header<%=i% >"
onblur="functio n(this)"><br>
Description: <input type="text" name="descripti on" id="description <%=i
%>" onblur="functio n(this)">
<% next%>
<input type="submit" value="Submit">
</form>
When the data gets returned it's something like:
header: "socks, shoes, pizza, cats, dogs"
description: "good for feet, wear with socks, cheese only, have lots
of hair, bark a lot"
Problem comes when the description or header have a comma. I need a
little javascript that will replace the comma with a semicolon client
side before it gets to
the server, preferably as they leave the field.
Any help with this would be much appreciated.
--
Adrienne Boswell at work
Administrator nextBlock.com
Please respond to the group so others can share
Comment