Lunarpages Web Hosting Forum

Author Topic: okay, make it work! i'm tired of staring at it!  (Read 2518 times)

Offline shayla

  • Trekkie
  • **
  • Posts: 12
    • http://www.lunarpages.com/ignis
okay, make it work! i'm tired of staring at it!
« on: September 15, 2001, 10:34:00 AM »
okay. i just put in the script for a random quote generator on my front page. www.lunarpages.com/ignis/  it worked just dandy when i tested it out this afternoon with just ten quotes in the mix. but tonight i sat down and added 25 more quotes. i remembered to change the # up top from 10 to 35, adn i've gone through all the quote formatting. but its not displaying the quotes. it just has the little heading i had for it "quote of the day" and "refresh to view another quote" right below where the quote *should* be but isn't. can someone look at my source and tel me what's wrong?
thanx guys.

Offline Psiphon

  • Spacescooter Operator
  • *****
  • Posts: 32
    • http://www.psiphon.net/
okay, make it work! i'm tired of staring at it!
« Reply #1 on: September 15, 2001, 05:23:00 PM »
After messing with it a little it seems as though there's a limit.  Not a limit on the number of quotes, but a limit on the number of total characters.  After exceeding this maximum point the script stops working for some reason.    Maybe there's some other cause behind it.  I really don't know JavaScript that well  

Offline Ice

  • Galactic Royalty
  • *****
  • Posts: 232
    • http://www.lunarpages.com/fsgin
okay, make it work! i'm tired of staring at it!
« Reply #2 on: September 16, 2001, 12:06:00 AM »
Yep, that's right. Some scripts will stop working when a single 'array'(which I believe is called) exceeds a line or the limit.

I checked out another random quote script which might work for you. Just need to paste it in the body where you want the quotes to appear. Have already tested it with your longest quote pasted twice.
 http://www.javascriptcity.com/scripts/local/smisc1.htm

Hope that helps.  
Flipside Gin
A site for Cases ladder gin players at Flipside.com
 http://www.lunarpages.com/fsgin

Offline shayla

  • Trekkie
  • **
  • Posts: 12
    • http://www.lunarpages.com/ignis
okay, make it work! i'm tired of staring at it!
« Reply #3 on: September 16, 2001, 03:14:00 PM »
problem solved. thanks for the link, but unfortunately that particular script only will run a set of ten quotes. i tried tinkering with it, to make it accept it more, but i only got it up to 17 quotes before it stopped displaying all together.
so i removed the longer quotes from my old script, and fixed one tiny, nearly unnoticeable syntax error. works beautifully now. now i just have to track down enough quotes to make it interesting and not repetitive.
thanx for all your help guys! very much appreciated.
shayla: who has yet to decide whether java is the greatest thing ever or if the creator should be shot

Offline TWebMan

  • Quantum Encyclopedia Writer
  • *****
  • Posts: 3047
    • Take charge of your site
okay, make it work! i'm tired of staring at it!
« Reply #4 on: November 04, 2001, 11:01:00 AM »
Shayla, nice site.  As for the greatest thing, or should be shot, probably both.  As far as limits to items in an array, or characters in any object, you may find the magic number to be 255.  Imagine that!  But it's true.  Once you surpass that magic number, you proceed at a risk.
"Computers cause people to make more mistakes than any other invention in history, with the possible exception of handguns and tequila."  - Unknown
"Liberty of any kind is seldom lost all at once." - D. Hume
Every day is an Ode to Joy
The planet will be fine... and so will your site