[jQuery] JHeartbeat - New Plugin

2006-09-21 Thread Jason Levine

Hi,

I decided to try my hand at my first real plugin for JQuery.  (Slightly
Thickerbox is more of a script that works with JQuery than an actual
plugin.)  This is in beta form now and is likely to be of limited use, but
here it is:

JHeartbeat
http:/www.jasons-toolbox.com/JHeartbeat/

It will automatically reload a URL that you provide it every X number of
seconds (X being defined by you).  You can even have it run a particular
function once the load has been completed.  I use it to keep sessions alive
even during long periods of inactivity.  But since the plugin puts the
contents of the page into a div with the ID of HeartBeatDIV and since you
can define a callback function, you can have it automatically update a
section of your page.

This is beta right now so please download it and let me know what you think
about it.  (The lessons that I learn with JHeartbeat may be applied to a
plugin version of Slightly Thickerbox.)

-Jason Levine


-- 
View this message in context: 
http://www.nabble.com/JHeartbeat---New-Plugin-tf2278733.html#a6329221
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] JHeartbeat - New Plugin

2006-09-21 Thread Dan Atkinson

Thanks for the link.

I'll be sure to try it out when I get a spare second.


Jason Levine wrote:
 
 Hi,
 
 Sorry about that.  Here's the link: 
 http://www.jasons-toolbox.com/JHeartbeat/
 
 Also sorry about any double-post.  I was having trouble signing up and
 Nabble was reporting that my message didn't get through, so I tried
 posting it again.
 
 

-- 
View this message in context: 
http://www.nabble.com/JHeartbeat---New-Plugin-tf2278733.html#a6430529
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] JHeartbeat - New Plugin

2006-09-21 Thread Sam Collett
On 21/09/06, Jason Levine [EMAIL PROTECTED] wrote:

 Hi,

 Sorry about that.  Here's the link:
 http://www.jasons-toolbox.com/JHeartbeat/

 Also sorry about any double-post.  I was having trouble signing up and
 Nabble was reporting that my message didn't get through, so I tried posting
 it again.

 --

Just a suggestion. How about being able to do it in a more jQuery-like
way. Instead of adding a div called 'HeartBeatDIV' to the page, you
could apply it to an existing div, i.e.:

$(#mydiv).jheartbeat({url: mypage.asp, delay: 3000}, myCallBackFunction)

You could then use it several times on a page as well (as in several
div's that reload content from different locations periodically). Kind
of like doing the following, but with potential for much more (due to
being a plugin)

setTimeout($('#mydiv).load('mypage.asp'), 3000)

Another suggestion would be the ability to pass on parameters:
$(#mydiv).jheartbeat({url: mypage.asp, delay: 3000, urlparams :
{searchfor: bar} }, myCallBackFunction)

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] JHeartbeat - New Plugin

2006-09-17 Thread Dan Atkinson


Jason Levine wrote:
 
 This is beta right now so please download it and let me know what you
 think about it.  (The lessons that I learn with JHeartbeat may be applied
 to a plugin version of Slightly Thickerbox.)
 

Do you have a link for the download?
-- 
View this message in context: 
http://www.nabble.com/JHeartbeat---New-Plugin-tf2278733.html#a6350145
Sent from the JQuery forum at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/