Re: [jQuery] Help needed
Ⓙⓐⓚⓔ schrieb: also you're better off debugging in firefox. safari is cute but firefox+firebug is the king of javascript debugging! Well, if you have to debug in Safari - because the bug only occurs there ;-) - you can download a Webkit nightly. It has a good JavaScript debugger (Drosera) and also a quite good DOM inspector. Actually I'm sure some of the features that FireBug has were inspired by that one... -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Help needed: Images not loading properly in FF
Is there a link we can take a look at? On 2/25/07, Kristinn Sigmundsson [EMAIL PROTECTED] wrote: Hi, so this is not a specific jQuery problem that I can point out but let me explain my problem. When refreshing a page in FF 1.5 and FF2, some images won't load properly. Which images is totally random. When I check out the net tab in firebug I see that sometimes images (only one per page view though) takes 3-6s to load. When I check the Request/response headers the images which wont load has no response headers but the response tab is showing the image. These problems doesn't exist at all in IE6 or 7, and only occur when refreshing a page and not when clicking a link or typing the url in the address bar. Heh I know this is kinda hard to answer without any code, but the thing is that I got alot of javascript bundled in one file and if I remove it the page loads perfectly in FF again. So I'm kinda hoping that someone has had similar issues and know where I could start, what could be the cause of this? I appreciate any help and pointers to solving this matter. //Kristinn ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Help needed: Images not loading properly in FF
On 26 Feb 2007, at 00:35, Kristinn Sigmundsson wrote: packed with dean edwards jspacker, gzip and finally saved for cache Why are you using both jspacker and gzip? Wouldn't just gzip be sufficient? -- Mika Tuupola http://www.appelsiini.net/~tuupola/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Help needed
Rock on Klaus! http://webkit.org/blog/?p=61 tells me all about Drosera! On 2/26/07, Klaus Hartl [EMAIL PROTECTED] wrote: Ⓙⓐⓚⓔ schrieb: also you're better off debugging in firefox. safari is cute but firefox+firebug is the king of javascript debugging! Well, if you have to debug in Safari - because the bug only occurs there ;-) - you can download a Webkit nightly. It has a good JavaScript debugger (Drosera) and also a quite good DOM inspector. Actually I'm sure some of the features that FireBug has were inspired by that one... -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Help needed: Images not loading properly in FF
Hi, so this is not a specific jQuery problem that I can point out but let me explain my problem. When refreshing a page in FF 1.5 and FF2, some images won't load properly. Which images is totally random. When I check out the net tab in firebug I see that sometimes images (only one per page view though) takes 3-6s to load. When I check the Request/response headers the images which wont load has no response headers but the response tab is showing the image. These problems doesn't exist at all in IE6 or 7, and only occur when refreshing a page and not when clicking a link or typing the url in the address bar. Heh I know this is kinda hard to answer without any code, but the thing is that I got alot of javascript bundled in one file and if I remove it the page loads perfectly in FF again. So I'm kinda hoping that someone has had similar issues and know where I could start, what could be the cause of this? I appreciate any help and pointers to solving this matter. //Kristinn ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Help needed
Hey guys, I have a problem in Safari with the following code and JQuery 1.6. I have an ul list where each element contains a form which I show/ hide when the user clicks on the respective list item. I also have prev/next buttons which make an AJAX call and inject the HTML with the new list items. Upon updating the list, I also update the event handlers for the new DOM nodes so they have the same desired behavior. This works in FF and Opera but after updating the list (and the event handlers) in Safari, show/hide doesn't work anymore. The are no JS errors or warnings of any sort. I traced the problem as deep as I could and found the following: 1) Event handlers are called 2) Within the event handler, $(# + id + form) returns an object, but the subsequent .toggle(slow) doesn't do anything Here is a link to a development machine: http://trec.dachev.com/? q=trecmillion/queries Please don't let the numerous references to the word query confuse you; This application is serving an Information Retrieval experiment. Your help is greatly appreciated. Thanks, Blago function getQueryPage(e) { e.preventDefault(); $.getJSON(this.href, function(json) { // Process the list of queries var newQueriesHTML = json.msg.data.html; // Hide PREV/NEXT links $(.getNext).css({display: none}); $(.getPrev).css({display: none}); // Show the new list of queries $(#queryList).html(newQueriesHTML); // Show/Hide criteria forms when user clicked on a query $([EMAIL PROTECTED]).click(toggleCriteriaForm); // Delete box description when user clicked on the textarea $([EMAIL PROTECTED] textarea).click(toggleTextarea); // Restore textarea description if empty $([EMAIL PROTECTED] textarea).blur(toggleTextarea); // Prevent form from collapsing, submit it instead $([EMAIL PROTECTED] [EMAIL PROTECTED]).click (submitCriteriaForm); // Update and show PREV/NEXT links var nURL = $(.getNext).attr(href); var pURL = $(.getPrev).attr(href); $(.getPrev).attr(href, pURL.replace(/[0-9]+$/, json.msg.data.prev)); $(.getNext).attr(href, nURL.replace(/[0-9]+$/, json.msg.data.next)); if(json.msg.data.next != 0) $(.getNext).css({display: inline}); if(json.msg.data.prev != 0) $(.getPrev).css({display: inline}); }); } function toggleCriteriaForm(e) { e.preventDefault(); var id = this.getAttribute(id); $(# + id + form).toggle(slow); } function toggleTextarea(e) { if(this.value == ) this.value = Please describe how are you going to judge the documents for this query...; else if(this.value == Please describe how are you going to judge the documents for this query...) this.value = ; return false; } function submitCriteriaForm(e) { e.preventDefault(); var criteria = this.form.getElementsByTagName(textarea)[0].value; if(criteria.match(Please describe how are you going to judge the documents for this query...)) { alert(You need to describe you query judging criteria.); return false; } this.form.submit(); return false; } $(document).ready(function() { // Create a loader status box $(div#container).children().lt(1).before(\'div id=loading style=position: absolute; top: 12px; right: 0; padding: 0 10px 0 10px; display: none; background-color: #f00; color: #fff;Loading.../div\');
Re: [jQuery] Help needed
The problem were repeated IDs. Blago ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Help needed: Images not loading properly in FF
Well now I got the error pinned down, probably should have mentioned that my javascripts are merged into a single file, packed with dean edwards jspacker, gzip and finally saved for cache everytime a single javascriptfile changes... So I tested to replace my jscombiner class with script tags for every js file, and voila, it works properly again, so I checked my jscombiner class and commented out the part that gzips the file and now it works too... Only thing is that it took abt 5seconds to load it, so I checked the headers which was the only thing except the javascript in the file. And removing the content-length took the time down to just 300ms which is ok for 50k javascript. The only thing is that I cant get it to cache... I know it's not the right forum for this but if anyone feel up for the challenge check these out: if (isset($_SERVER['HTTP_IF_NONE_MATCH'])): header('HTTP/1.1 304 Not Modified'); else: header(Expires: Sat, 23 Feb 2008 18:39:34 GMT); // 1 year from now header(Content-Type: text/javascript); header(Content-Length: 38980); header(Last-Modified: Thu, 22 Feb 2007 23:11:12 GMT); header(ETag: 1172185872); header(Cache-Control: max-age=31356000); endif; In firebug I never see the if_none_match or if_modified_since, btw why is content-length important, and is it supposed to be the length of the gzipped content or the unpacked one? Kristinn Sigmundsson wrote: Hi, so this is not a specific jQuery problem that I can point out but let me explain my problem. When refreshing a page in FF 1.5 and FF2, some images won't load properly. Which images is totally random. When I check out the net tab in firebug I see that sometimes images (only one per page view though) takes 3-6s to load. When I check the Request/response headers the images which wont load has no response headers but the response tab is showing the image. These problems doesn't exist at all in IE6 or 7, and only occur when refreshing a page and not when clicking a link or typing the url in the address bar. Heh I know this is kinda hard to answer without any code, but the thing is that I got alot of javascript bundled in one file and if I remove it the page loads perfectly in FF again. So I'm kinda hoping that someone has had similar issues and know where I could start, what could be the cause of this? I appreciate any help and pointers to solving this matter. //Kristinn ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- View this message in context: http://www.nabble.com/Help-needed%3A-Images-not-loading-properly-in-FF-tf3288279.html#a9150421 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Help needed
you'll get briefer code replacing $([EMAIL PROTECTED]) with $(li.queryItem) unless you really do have classes that just have queryitem inside the name like xxxqueryitemxxx also you're better off debugging in firefox. safari is cute but firefox+firebug is the king of javascript debugging! On 2/25/07, Blagovest Dachev [EMAIL PROTECTED] wrote: The problem were repeated IDs. Blago ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/