Jump to content

PHP: Make a random quote function that works without refreshing the page?


Recommended Posts

Hi,

 

I'm trying to add a huge list of quotes to my site. I would like a new quote to display every so many seconds. Can this be done using php? I've found many things online that tell me how to make random quotes but all them them require you to refresh the page each time it shows one. To me that kinda defeats the purpose.

 

I've seen it done in javascript but I haven't been able to find a demo of it online.

 

Thanks for the help.

I didn't know i needed ajax to do this but I'm getting closer now that this topic was moved here I searched abit and found a link to someone on another forum that did the same thing I'm trying to do.

 

http://www.webmasterworld.com/javascript/3700144.htm

 

This guy seems to have gotten it to work but he only lists part of his code.

 

Could anyone help me figure out what I need to search for to find the rest of the code to get this working?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.