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

2008-12-22 Thread Mehdi Saghari
how can i rewrite this function using JQuery ?! function init() { var lis = $('slide-images').getElementsByTagName('li'); for( i=0; i < lis.length; i++){ if(i!=0){ lis[i].style.display = 'none'; }

[jQuery] rewrite these few lines of code

2008-11-09 Thread jjshell
Hi, Here's a bit of code I have: function getContent() { $("div#content").load("content.php", '', reload); } function reload() { setTimeout("getContent();", 1000); } $(document).ready(getContent); I'd like to rewrite so as to include the functions within the document ready part: $(document)

[jQuery] Rewrite

2007-12-09 Thread [EMAIL PROTECTED]
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 upload_url = "test"; var append_vars = ""; for (var i=0;i

[jQuery] rewrite .text in Internet Explorer

2007-10-10 Thread Danjojo
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 2 out of 4 browsers) // Load XML document based on language var langSheet = "language_sheet_" + country + ".xml" $.ajax({