View Single Post
Old 04-24-2010, 06:29 AM  
Jakez
Confirmed User
 
Jakez's Avatar
 
Industry Role:
Join Date: Jan 2004
Location: oddfuturewolfgangkillthemall!!!!!!!
Posts: 5,656
Quote:
Originally Posted by nation-x View Post
why not do it like this instead

http://nation-x.com/test.html

Code:
<script type="text/javascript">
var arr = new Object();

function testIt() {
	for (var i in arr) {
		alert('arr[\''+i+'\'] is ' + arr[i])
	}
}
</script>

If you click <a href="#" onClick="arr.item='Item Name'; arr.price='4.95';testIt(); return false;">this link</a> this script is executed:</p>
You're the man now dog! Thanks!
__________________
[email protected] - jakezdumb - 573689400

Killuminati
Jakez is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote