You tried: var year = 05; document.all.menuloader.src = "update_all_student_browse.cfm?year="+ escape(year);
Mark ------------------------------------------------------------------ [EMAIL PROTECTED] ICQ: 3094740 Safe From Bees [ www.safefrombees.com ] Quoting Ben Yee <[EMAIL PROTECTED]>: > 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
