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
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!