Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#172364 - 28/07/2003 08:30 javascript help
RobotCaleb
pooh-bah

Registered: 15/01/2002
Posts: 1866
Loc: Austin
i just decided to pick it up today and already run into errors, my future bodes well.

i cant figure out why this :
for (var i=0;i<=tempstring.length-1;i++) {

alert(tempstring.charcodeat(i));

and this :
for (var i=0;i<=tempstring.length-1;i++) {

alert(tempstring.charat(i)) ;

dont alert, but this does :
for (var i=0;i<=tempstring.length-1;i++) {

alert('Character = ' + tempstring ) ;


any help?


Edited by customsex (28/07/2003 09:19)

Top
#172365 - 28/07/2003 16:21 Re: javascript help [Re: RobotCaleb]
mcomb
pooh-bah

Registered: 31/08/1999
Posts: 1649
Loc: San Carlos, CA
Javascript is case sensitive. You want charAt() or charCodeAt().

-Mike
_________________________
EmpMenuX - ext3 filesystem - Empeg iTunes integration

Top
#172366 - 29/07/2003 09:42 Re: javascript help [Re: mcomb]
RobotCaleb
pooh-bah

Registered: 15/01/2002
Posts: 1866
Loc: Austin
thanks, fixed it

Top