Do you get a CF syntax error or a JavaScript syntax error?
Try this: var year = 05; document.all.menuloader.src = "update_all_student_browse.cfm?year="+(0+year); Mark > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Ben Yee > Sent: Friday, 7 November 2003 9:30 AM > To: CFAussie Mailing List > Subject: [cfaussie] weird javascript behaviour > > > Hey All, > > I've got this line of javascript > > var year = 05; > document.all.menuloader.src = "update_all_student_browse.cfm?year="+year; > > which works fine when the year is a positive number, however when > the year becomes a negative (eg year = -2) I get a syntax error. > > I've tried URL Encoding it but it still does not work. > > any suggestions thanks > ben > > --- > You are currently subscribed to cfaussie as: [EMAIL PROTECTED] > To unsubscribe send a blank email to > [EMAIL PROTECTED] > > MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia > http://www.mxdu.com/ + 24-25 February, 2004 > --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004
