Javascript Development Problem in SAFARI

Posted:
in Genius Bar edited January 2014
Apparently, Safari translates this array ...:

Code:


var happy_cakes = new Array(

new Array(0,'Edit','posting.php?mode=editpost&sid=09cf 5dfc5ec6e04fde4982a19e31b084&t=33'),

new Array(0,'Print','print.php?sid=09cf5dfc5ec6e04fde4 982a19e31b084&t=33'),

new Array(3,'Set As Profile Text','padmin/set_as_profile.php?sid=09cf5dfc5ec6e04fde4982a19e3 1b084&t=33&user_id=2'),

new Array(2,'Add Article to Blog ...','mode=blog_list','sub_mode=add'),

new Array(2,'Remove Article From Blog ...','mode=blog_list','sub_mode=remove'));







into this string:

Code:


0,Edit,posting.php?mode=editpost&sid=b0492efc29a57 f301dec65f3a2b82a87&t=33,0,Print,print.php?sid=b04 92efc29a57f301dec65f3a2b82a87&t=33,3,Set As Profile Text,padmin/set_as_profile.php?sid=b0492efc29a57f301dec65f3a2b 82a87&t=33&user_id=2,2,Add Article to Blog ...,mode=blog_list,sub_mode=add,2,Remove Article From Blog ...,mode=blog_list,sub_mode=remove







Can someone help me out?

Comments

  • Reply 1 of 1
    slugheadslughead Posts: 1,169member
    nevermind, apparently I was using a function to detect if a variable was an array or not and it was malfunctioning in safari.
Sign In or Register to comment.