AardvarkBusiness.net - Business Search Engine AardvarkBusiness.net - Business Search Engine



 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

     

quick javascript help

 
 
Post new topic   Reply to topic    AardvarkBusiness.net Forum Index -> Programming Forum
View previous topic :: View next topic  
Author Message
bob89
Temp


Joined: 09 May 2007
Posts: 3

10 ants

PostPosted: Fri May 11, 2007 11:44 pm    Post subject: quick javascript help Reply with quote

I have a field called field@code1 in a form in a XSL page.

i want to use java script to do validation.

the javascript errors if there is a @ in it.

1. is there any way of putitng an @ in javascript
2. is there any other way i can referance the field.
_________________
Fixed rate private loan free online dating site
Weight loss products
Back to top
View user's profile Send private message
TWI
Vice President
Vice President


Joined: 01 Dec 2003
Posts: 377
Location: California
438 ants

PostPosted: Sun May 13, 2007 6:03 pm    Post subject: Re: quick javascript help Reply with quote

bob89 wrote:
the javascript errors if there is a @ in it.

1. is there any way of putitng an @ in javascript
2. is there any other way i can referance the field.

Not much to go on, but you could try:
* escaping the @-sign (e.g., \@)
* substituting the HTML entity (i.e., & # 64; ... but w/o the spaces)
* substituting the HTML encode (i.e., %40)

HTH!
_________________
The Whole Internet, LLC
Handicapped accessible Web design & Quality PHP hosting
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AardvarkBusiness.net Forum Index -> Programming Forum All times are GMT + 1 Hour
Page 1 of 1

 
Google
 
Business Forum Sport Forum Travel Forum


Powered by php B B © 2001, 2002 php B B Group

AardvarkBusiness.net Business Search Engine & Directory