Become a part of the TranceAddict community!Frequently Asked Questions - Please read this if you haven'tSearch the forums
TranceAddict Forums > Main Forums > Chill Out Room > Fix this Javascript...
Pages (2): [1] 2 »   Last Thread   Next Thread
Share
Author
Thread    Post A Reply
wwu.punisher
The Enigma



Registered: Mar 2004
Location: Washington State
Fix this Javascript...

...and I will give you a cookie.

I need a function that writes something a number of times defined by a random number. For whatever reason, my brain is fucked right now. It's supposed to repeat for every letter in the "secretWord" (which is chosen randomly), but it's only running once.

quote:

for(var i=0; secretWord.length; i++);
{
document.writeln("< td id='secretWord.length + i++'>_< /td>");
}


Note: I had to put in an extra space before the "td" and the "/td" to get the forum to accept the whole line.


___________________

1. Utah Saints - Lost Vagueness (Oliver Lieb's Main Mix)
2. Klea - Tic Toc (Paul Van Dyk's Re-Edit)
3. Alibi - Eternity (Inner City Mix)
4. Cirque de Soleil - Pokinoi (Sasha Mix)
5. Chris & Kai vs. Levin - Gone to Heaven

Old Post May-23-2006 01:07  United States
Click Here to See the Profile for wwu.punisher Click here to Send wwu.punisher a Private Message Add wwu.punisher to your buddy list Report this Post Reply w/Quote Edit/Delete Message
Sunsnail
Global Moderator



Registered: Sep 2004
Location:

pretty sure there's a

code:
test
thing used in the forums

Old Post May-23-2006 01:52 
Click Here to See the Profile for Sunsnail Click here to Send Sunsnail a Private Message Add Sunsnail to your buddy list Report this Post Reply w/Quote Edit/Delete Message
Boomer187
Spicy Hotdog



Registered: Aug 2001
Location: USA
Re: Fix this Javascript...

quote:
Originally posted by wwu.punisher
...and I will give you a cookie.



if thats a session cookie I am down!

Old Post May-23-2006 01:54  United States
Click Here to See the Profile for Boomer187 Click here to Send Boomer187 a Private Message Visit Boomer187's homepage! Add Boomer187 to your buddy list Report this Post Reply w/Quote Edit/Delete Message
raveed
- -



Registered: Apr 2003
Location: San Jose, California

you should try www.webdeveloper.com. and post on the javascript forum there.

Old Post May-23-2006 02:09  India
Click Here to See the Profile for raveed Click here to Send raveed a Private Message Add raveed to your buddy list Report this Post Reply w/Quote Edit/Delete Message
LeopoldStotch
Suapremae tranecadictt



Registered: Jan 2005
Location: Yawbs,Giaks,and Automobiles

shouldn't length be ==> length(), since secretWord is a string object ? is it a string object ? "length" is used for an array of objects , and "length()" is defined as a length of a string ?

are you trying to define the word as a string , or an array of characters ?


___________________

Old Post May-23-2006 02:13  United States
Click Here to See the Profile for LeopoldStotch Click here to Send LeopoldStotch a Private Message Visit LeopoldStotch's homepage! Add LeopoldStotch to your buddy list Report this Post Reply w/Quote Edit/Delete Message
LeopoldStotch
Suapremae tranecadictt



Registered: Jan 2005
Location: Yawbs,Giaks,and Automobiles

for(var i=0; secretWord.length; i++);
{
document.writeln("< td id='secretWord.length + i++'>_< /td>");
}

uhhhhh.....

should it be ??

var ii = i++;
document.writeln(
"< td id=\""+secretWord.length()+ii+"\">_< /td>" );

??
i may be wrong .


___________________

Old Post May-23-2006 02:16  United States
Click Here to See the Profile for LeopoldStotch Click here to Send LeopoldStotch a Private Message Visit LeopoldStotch's homepage! Add LeopoldStotch to your buddy list Report this Post Reply w/Quote Edit/Delete Message
igottaknow
PerfectTeeth R4 Dinosaurs



Registered: Feb 2001
Location: The Future

fcuk ur back again


___________________
GIGANTIC CUNT

Old Post May-23-2006 02:27 
Click Here to See the Profile for igottaknow Click here to Send igottaknow a Private Message Add igottaknow to your buddy list Report this Post Reply w/Quote Edit/Delete Message
Sunsnail
Global Moderator



Registered: Sep 2004
Location:

is this javascript your big surprise?

Old Post May-23-2006 02:30 
Click Here to See the Profile for Sunsnail Click here to Send Sunsnail a Private Message Add Sunsnail to your buddy list Report this Post Reply w/Quote Edit/Delete Message
igottaknow
PerfectTeeth R4 Dinosaurs



Registered: Feb 2001
Location: The Future

quote:
Originally posted by Sunflower
is this javascript your big surprise?

www.snap


___________________
GIGANTIC CUNT

Old Post May-23-2006 02:31 
Click Here to See the Profile for igottaknow Click here to Send igottaknow a Private Message Add igottaknow to your buddy list Report this Post Reply w/Quote Edit/Delete Message
Enjoy
Supreme tranceaddict



Registered: Apr 2005
Location: here and there

for(var i=0; i<=secretWord.length; i++) {
document.writeln(i);
}


___________________
quote:
Originally posted by Mrs Haus
Also I noticed you work for the Canadian Forces so depending on if your an Officer or an NCM (non-Commissioned Member) and your now in Kingston by the looks of it so your no longer on your basic training where you get paid peanuts. So like I said depending on if your an NCM or Officer and your rank, you probably make at least $50,000 a year but most likely more. And depending on if you live at CFB Kingston your cost of living is probably very low as well, but even if you weren't cost of living in Kingston isn't that bad. Its only $30 which is cheaper than most nights at Stereo. Most of us on here who post about Stereo have put out probably hundreds and hundreds of dollars clubbing there just this year alone, and have never really complained for the most part. I know I sure as hell have.

Old Post May-23-2006 02:50 
Click Here to See the Profile for Enjoy Click here to Send Enjoy a Private Message Add Enjoy to your buddy list Report this Post Reply w/Quote Edit/Delete Message
prothoid
Senior tranceaddict



Registered: Jul 2005
Location: Dallas

last time i heard from you, you were rambling on about how the jokes on us and you left, supposedly to never return. you return, is this your suprise?


___________________

Old Post May-23-2006 03:36  United States
Click Here to See the Profile for prothoid Click here to Send prothoid a Private Message Add prothoid to your buddy list Report this Post Reply w/Quote Edit/Delete Message
medinaM5
supreme



Registered: Jan 2005
Location: Los Angeles

WHY WONT YOU DIE?!!?!?

Old Post May-23-2006 03:39  United States
Click Here to See the Profile for medinaM5 Click here to Send medinaM5 a Private Message Visit medinaM5's homepage! Add medinaM5 to your buddy list Report this Post Reply w/Quote Edit/Delete Message

TranceAddict Forums > Main Forums > Chill Out Room > Fix this Javascript...
Post New Thread    Post A Reply

Pages (2): [1] 2 »  
Last Thread   Next Thread
Click here to listen to the sample!Pause playbackID Judge Jules Radio show 1998 [2005] [0]

Click here to listen to the sample!Pause playbackMemnon feat. Seroya - "Desire (Original Mix)" [2003]

Show Printable Version | Subscribe to this Thread
Forum Jump:

All times are GMT. The time now is 13:42.

Forum Rules:
You may not post new threads
You may not post replies
You may not edit your posts
HTML code is ON
vB code is ON
[IMG] code is ON
 
Search this Thread:

 
Contact Us - return to tranceaddict

Powered by: Trance Music & vBulletin Forums
Copyright ©2000-2026, Jelsoft Enterprises Ltd.
Privacy Statement / DMCA
Support TA!