Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Old 08-04-2009, 06:50 PM calling a varible
Experienced Talker

Posts: 41
Trades: 0
i have 10 arrays all named row1, row2 row3.....
each of thoes arrays has 10values, (makes a 10x10 grid)
if
var x =3
var y =5
with rowy[x]
i should get row5[3] but that doesnt happen
if i use row1[x] it would give me the correct value tho, however having 10 if statments is bulky and impractical, however what im currently working with

also how do i
barf = gibberish
alert(barf)
location.href="http://barf/data.php;"
and get barf to be equal to gibberish in the url instayed of barf
flatrat is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-04-2009, 07:18 PM Re: calling a varible
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Code:
var barf = gibberish
location.href="http://" + barf + "/data.php;"
As to your other question, you may want to look into making using multi-dimensional array rather than 10 variables that are arrays.
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Reply     « Reply to calling a varible
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.17093 seconds with 12 queries