[jQuery] Re: Rewrite $('slide-images').getElementsByTagName('li'); with JQuery

2008-12-22 Thread Ricardo Tomasi
or simply $('#slide-images li:gt(0)').hide(); Later on you can get the last one with $('#slide-images li:last') (or last-child), or cache the collection. On Dec 22, 8:25 pm, Dave Methvin wrote: > Untested, but I think this does it: > > function init(){ >   LastPic = $('#slide-images li').slice(

[jQuery] Re: Rewrite $('slide-images').getElementsByTagName('li'); with JQuery

2008-12-22 Thread Dave Methvin
Untested, but I think this does it: function init(){ LastPic = $('#slide-images li').slice(1).hide().length; } In jQuery there is probably a better way to do the rest of the code than using a global variable for LastPic, but it depends on what the rest of the code looks like.

[jQuery] Re: rewrite these few lines of code

2008-11-09 Thread Mike Alsup
> I'd like to rewrite so as to include the functions within the document > ready part: > >  $(document).ready(function(){ >   //my functions here >   }); $(document).ready(function() { getContent(); function getContent() { $("div#content").load("content.php", reload); }

[jQuery] Re: Rewrite

2007-12-09 Thread Chris J. Lee
Can we see the xhtml? or a link? On Dec 9, 11:44 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > How to rewrite this into jquery code ? > Just getting into that... so i need some example. Thanks. > > var upload_button = document.theForm.action_upload; > var up

[jQuery] Re: rewrite .text in Internet Explorer

2007-10-10 Thread Danjojo
Thank you, I will give that a try... also, it has magicaly begun to work in IE cache issue?? don't know.. I almost always ctrl-reload On Oct 10, 11:09 am, Gordon <[EMAIL PROTECTED]> wrote: > A bit of a stab in the dark I admit, but have you tried using .html() > instead of .text()? > >

[jQuery] Re: rewrite .text in Internet Explorer

2007-10-10 Thread Gordon
A bit of a stab in the dark I admit, but have you tried using .html() instead of .text()? On Oct 10, 12:19 pm, Danjojo <[EMAIL PROTECTED]> wrote: > Any ideas how to update the following Jquery code to work in IE? > It works in Firefox... Opera.. and not in Safari for window.. (so it > works in