Thread
:
Javascript experts?
View Single Post
04-24-2010, 02:13 AM
Jakez
Confirmed User
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
View Public Profile
Visit Jakez's homepage!
Find More Posts by Jakez