I've been hammering on this. I've narrowed it down to line 2238 of jquery-1.3.2.js.
if ( div.getElementsByClassName("e").length === 0 ) return; I threw a try/catch block around the code and am receiving this error - NOT_SUPPORTED_ERR: DOM Exception 9 I am currently running Safari Version 4 Public Beta (5528.16), but apparently this bug is occurring in v3 as well (and of course, Chrome). By ignoring exceptions generated from the above, and the equivalent line 2 statements later, my page loads and everything executes perfectly. _jason On May 13, 6:32 pm, Pappy <helga...@gmail.com> wrote: > I am seeing the same error as Sulfura. > > My page works fine on Firefox and IE, but on Webkit-based browsers, > any call to jQuery(function() {}) results in this error on line 83 of > jquery-1.3.2.js -- > > TypeError: Result of expression 'jQuery( document ).ready' [undefined] > is not a function > > I have removed all external stylesheets from my page just in case, but > no luck. > > _jason > > On Apr 30, 4:53 am, Sulfura <sulfu...@gmail.com> wrote: > > > Yes, I noticed that afterwards and changed it accordingly. The Error > > happend on line 3, jQuery(document).ready(). I copied it from jquery > > tutorials but it still doesn't work. I made a new js file with a very > > simple function but still no success. The Examples on jquery.com work > > though, so I am quite puzzled by this. > > > On Apr 28, 7:40 pm, Jonathan <jdd...@gmail.com> wrote: > > > > Try changing jQuery("#dir").attr("disabled", false) to jQuery > > > ("#dir").removeAttr('disabled'); > > > > Also, does it give you a line number for the type mismatch that might > > > help track it down? > > > > On Apr 28, 12:12 am, Sulfura <sulfu...@gmail.com> wrote: > > > > > Hi there, > > > > > I searched the internet for hours but couldn't find a solution which > > > > worked for me. I use jQuery to call a Perl-Module which outputs an XML > > > > File with all the Pictures in a specified Folder, which in turn is > > > > interpreted by jQuery to show a preview of that same Folder. > > > > > It all works fine on Firefox, it works with some yet-unattended Bugs > > > > on IE7, but on Safari and Opera (and all WebKit based Browsers for > > > > that matter) it simply refuses to work. Both tell me that I have a > > > > Type mismatch. > > > > > Code: > > > > jQuery.noConflict(); > > > > > jQuery(document).ready(function(){ > > > > > jQuery("#dir").change(function () { > > > > if (jQuery("input[name=mode]:checked").val() == > > > > "add_from_folder") { > > > > jQuery("#preview").hide(); > > > > jQuery("select option:selected").each(function () > > > > { > > > > jQuery("#preview").empty(); > > > > requestXML(); > > > > jQuery("#preview").slideDown("slow"); > > > > }) > > > > } > > > > }) > > > > .change(); > > > > > jQuery("input[name=mode]").change(function(){ > > > > if (jQuery("input[name=mode]").val() == "add_blank") { > > > > jQuery("#preview").empty(); > > > > jQuery("#preview").hide(); > > > > jQuery("#dir").attr("value",";-;"); > > > > } else { > > > > jQuery("#dir").attr("disabled", false); > > > > } > > > > }) > > > > .change(); > > > > > }); > > > > > function requestXML() { > > > > jQuery.ajax({ > > > > type: "GET", > > > > url: "/cgi-bin/apps/load_preview?directory=" + jQuery > > > > ("#dir").val(), > > > > dataType: "xml", > > > > success: function(xml) { > > > > jQuery(xml).find("picture").each(function(){ > > > > jQuery("#preview").append("<img class='preview' > > > > src='/" + jQuery(this).find("reference").text() + "' />") > > > > }) > > > > } > > > > }); > > > > } > > > > > ##Code end > > > > > I know there are things that could be made more efficient but I am > > > > still new to Ajax and jQuery and learned how to use it just yesterday, > > > > so I accept any constructive criticism :)