Quote Generator + Ajax
- Started
- Last post
- 11 Responses
- juhls
Trying to make a quote generator.
Have nearly everything in place. I'm probably missing something small (again).
http://imd.edumedia.ca/srit0003/…
Basically, I want 1 new random quote to be placed into that purple box on the right every time a user clicks the button "Next quote".
You can access the script and html from that site. The PHP is here:
http://pastebin.com/m41dc3666Thanks for the help.
- juhls0
Ignore the design. I made that in about 30 minutes.
- acescence0
the ajax.js script uses jquery which is not present
- previous0
"the swiss are a filthy people"
- acescence0
ok, now it's complaining that the errorQuote variable on line 52 in ajax.js is undefined. i think this is your error callback, which is apparently not there.
- juhls0
It works! All I had to do was define, that eh...
I thought it was OK to leave that until the end :/
- acescence0
$('#getQuote').trigger('click'); will simulate a click, put that at the end of the document ready function.
- http://docs.jquery.c…acescence
- ah, I see. That makes sense.juhls
- jive0
Im sure Todd Dominey will be honored - great background image :-)