Re: [jQuery] get random record?

2009-12-01 Thread Michel Belleville
ed, just telling the script > to get a new record duration is where im stuck. > > Sorry and thanks, > > Dave > > -Original Message- > From: brian [mailto:zijn.digi...@gmail.com] > Sent: December-01-09 2:45 PM > To: jquery-en@googlegroups.com > Subject: Re:

RE: [jQuery] get random record?

2009-12-01 Thread Dave Maharaj :: WidePixels.com
jquery-en@googlegroups.com Subject: Re: [jQuery] get random record? On Tue, Dec 1, 2009 at 4:33 AM, Michel Belleville wrote: > If I were you I wouldn't let JavaScript do the randomizing, I would do > it server-side instead, providing a request that returns a random > record and pinging it

Re: [jQuery] get random record?

2009-12-01 Thread brian
On Tue, Dec 1, 2009 at 4:33 AM, Michel Belleville wrote: > If I were you I wouldn't let JavaScript do the randomizing, I would do it > server-side instead, providing a request that returns a random record and > pinging it with a simple AJAX query ; this way, JavaScript doesn't need to > be aware o

Re: [jQuery] get random record?

2009-12-01 Thread Michel Belleville
If I were you I wouldn't let JavaScript do the randomizing, I would do it server-side instead, providing a request that returns a random record and pinging it with a simple AJAX query ; this way, JavaScript doesn't need to be aware of what you want to send and it doesn't select the id client-side (

Re: [jQuery] get random record?

2009-11-30 Thread Charlie
link to different random functions depending on db http://www.petefreitag.com/item/466.cfm $getJSON and volia! Dave Maharaj :: WidePixels.com wrote: Has anyone come across a simple function that will get a random record from the db?   I just need to send a request every min or so to ge

[jQuery] get random record?

2009-11-30 Thread Dave Maharaj :: WidePixels.com
Has anyone come across a simple function that will get a random record from the db? I just need to send a request every min or so to get new content from the db and change the content. Pretty much like a banner rotator but used for random content. thanks, Dave