Gossamer Forum
Home : General : Internet Technologies :

Escaping .'s in Javascript?

Quote Reply
Escaping .'s in Javascript?
I'm a little stumped here. I have the following;

for (i=0; i<document.MyForm.CatLinks.CategoryID.length; i++){

The file I am trying to count is CatLinks.CategoryID (a check I'm doing with LSQL, to build into the templates). The problem is, that the . is causing problems. How would I go about escaping this, or is there no way to get around this?

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates