View Single Post
Old 04-24-2010, 02:13 AM  
Jakez
Confirmed User
 
Jakez's Avatar
 
Industry Role:
Join Date: Jan 2004
Location: oddfuturewolfgangkillthemall!!!!!!!
Posts: 5,656
Javascript experts?

How the hell would I pass an associative array to a javascript function?

Shitty example:

<a onclick="test(arr['item']='Item Name', arr['price']='4.95');">click</a>

function test(arr)
{
alert(arr['item'] + arr['price']);
}
__________________
[email protected] - jakezdumb - 573689400

Killuminati

Last edited by Jakez; 04-24-2010 at 02:16 AM..
Jakez is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote