Re: [jQuery] Broken Build
2006/10/8, Jörn Zaefferer [EMAIL PROTECTED]: the current build script seems to be broken: Only the ajax part of the complete jQuery file is parsed, resulting in a lite version with only ajax docs removed and api docs and tests with only ajax docs/tests. Doing some diff debugging by comparing revisions of the files involved (build.xml, build/js/parse.js etc.) didn't reveal anything. Any ideas? Is this working with the makefile? Hi Jörn, It's not because of the code but because of the data. There are many contributors now, using different OS which means different ways to insert a character when you strike enter :-) In short, the current regexp blockMatch in build/build/lite.js doesn't take '\r' into account. A quick and dirty way to fix the problem is to insert .replace( /\r/g, ) just after readFile(...) and before any other replace. Cheers, Franck. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Broken Build
Franck Marcia schrieb: It's not because of the code but because of the data. There are many contributors now, using different OS which means different ways to insert a character when you strike enter :-) In short, the current regexp blockMatch in build/build/lite.js doesn't take '\r' into account. A quick and dirty way to fix the problem is to insert .replace( /\r/g, ) just after readFile(...) and before any other replace. Thanks Franck! I tried your quick and dirty fix for lite: It worked but was awfully slow. To solve the problem, I changed the use of readFile to my own read function, that uses some java classes to replace line ends with a simple \n. At least docs and test build now run again, but lite doesn't, maybe due to limitations of Rhino or due to limitations of my knowledge of Rhino. -- Jörn ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] jquery compressed: ret is not a function
if I use jquery uncompressed, everything works fine. with jquery compressed, I get an error ret is not a function. any ideas? thanks, patrick ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] jQuery 1.0.2 RC2
Hi folks, it's time for another release candiate, this time including even more bug fixes and nothing else. Source: http://joern.jquery.com/dist/jquery.js API Docs: http://joern.jquery.com/docs/ Testsuite: http://joern.jquery.com/test/ According to my tests, all 264 tests pass in FF1.5.0.7, Opera 9.02 and IE 7 RC1. IE6 fails to complete the last test, displaying only 263 passed tests in the summary. IE55 behaves very weird on my system, but seems to show the same result as IE6. Any results that differ from these would be interesting. -- Jörn ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Broken Build
2006/10/8, Jörn Zaefferer [EMAIL PROTECTED]: I tried your quick and dirty fix for lite: It worked but was awfully slow. This hack works for me and is fast: var blockMatch = /\s*\/\*\*\s*((.|\r\n|\r|\n)*?)\s*\*\/(\r\n|\r|\n)*/g; var f = readFile(arguments[0]).replace( blockMatch, \n ).replace( /\r/g, ).replace( /\n\n+/g, \n\n ); However, I'm not sure it's the best way as I'm not a regexp guru. Franck. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] IE6 performance tweak
This somehow improves the performance of IE6. Interesting object detection as well. Opinions on this method?http://www.hedgerwow.com/360/bugs/dom-fix-ie6-background-image-flicker.html All-new Yahoo! Mail - Fire up a more powerful email and get things done faster.___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery 1.0.2 RC2
Jörn Zaefferer wrote: Hi folks, it's time for another release candiate, this time including even more bug fixes and nothing else. Hi Jorn, Why don't you commit these into SVN, or did you? It is a bit confusing if we have 2 releases for jQuery, especially for newbies -- Gilles ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery 1.0.2 RC2
IE 6 passed all tests here. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jörn Zaefferer Sent: Sunday, October 08, 2006 5:40 AM To: jQuery Discussion. Subject: [jQuery] jQuery 1.0.2 RC2 Hi folks, it's time for another release candiate, this time including even more bug fixes and nothing else. Source: http://joern.jquery.com/dist/jquery.js API Docs: http://joern.jquery.com/docs/ Testsuite: http://joern.jquery.com/test/ According to my tests, all 264 tests pass in FF1.5.0.7, Opera 9.02 and IE 7 RC1. IE6 fails to complete the last test, displaying only 263 passed tests in the summary. IE55 behaves very weird on my system, but seems to show the same result as IE6. Any results that differ from these would be interesting. -- Jörn ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery 1.0.2 RC2
Webunity | Gilles van den Hoven schrieb: Why don't you commit these into SVN, or did you? It is a bit confusing if we have 2 releases for jQuery, especially for newbies I agree that it may be confusing. The idea was this: Get a release candidate out the door, let the list have a look at it, and if all goes well, make it an official release. The code I uploaded is just the compiled stuff from SVN. -- Jörn ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery 1.0.2 RC2
Test #38 fails in Opera 8.54. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery 1.0.2 RC2
Mike Alsup schrieb: Test #38 fails in Opera 8.54. Any idea where to download that version? I can't find any download prior to Opera 9. -- Jörn ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery 1.0.2 RC2
Nope. I've just been hanging onto it so I can test stuff with it. I jarred up my installation if you want to try using that. I posted it here: http://malsup.com/jquery/op854.jar Mike Any idea where to download that version? I can't find any download prior to Opera 9. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Interface Autocomplete question
Fixed it... Added header(Content-type: text/xml); to the first line -- View this message in context: http://www.nabble.com/Interface-Autocomplete-question-tf2403569.html#a6701124 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Interface Autocomplete question
I've been trying to implement the Interface autocomplete plugin on my site. The plugin calls a php script, the script returns xml, but I see no autocomplete dropdown. Any help would be appreciated! below is the html, php, and php debug txt. HTML: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; html head titleMain Page/title script src=assets/js/jquery.js type=text/javascript language=javascript/script script src=assets/js/iutil.js type=text/javascript language=javascript/script script src=assets/js/iautocompleter.js type=text/javascript language=javascript/script script src=assets/js/ifxslide.js type=text/javascript language=javascript/script link rel=stylesheet rev=stylesheet href=assets/css/main.css media=all script type=text/javascript $(document).ready( function() { $('#autocompleteMe').Autocomplete( { source: 'library/autocomplete.php', delay: 700, autofill: true, helperClass: 'autocompleter', selectClass: 'selectAutocompleter', minchars: 1 } ); } ); /script /head body form input type=text size=50 name=car_name id=autocompleteMe /form /body /html --- PHP: error_reporting(E_ALL); ini_set('display_errors', '1'); include('config.php'); include('data_accessor.php'); // DEBUGGING STUFF $your_data = 'Print of $_REQUEST vars:\n\n'; foreach ($_REQUEST as $key = $val) { $your_data .= $key . -. $val . \n; } // GET INPUT $field = $_REQUEST['field']; $value = $_REQUEST['value']; // BUILD RUN QUERY $query=SELECT * FROM name WHERE name_name LIKE '%$value%' ORDER BY name_name; $results = $db-get_results($query, 'ARRAY_A'); // CONSTRUCT XML $xml = ?xml version=\1.0\?\najaxresponse\n; foreach ($results as $result) { $xml .= item\n\ttext![CDATA[. $result['name_name'] .]]/text\n\tvalue![CDATA[. $field .]]/value\n/item\n; } $xml .= /ajaxresponse; // DEBUGGING STUFF $your_data .= \n\nxml: \n\n . $xml; // Open debug file $fp = fopen(autocomplete.txt, w); // Write the data to the file fwrite($fp, $your_data); // Close the file fclose($fp); // SEND XML TO BROWSER echo $xml; DEBUG: Print of $_REQUEST vars: field - car_name value - rear xml: ?xml version=1.0? ajaxresponse item text![CDATA[Rear Ender]]/text value![CDATA[car_name]]/value /item item text![CDATA[Rear Engine Mongoose]]/text value![CDATA[car_name]]/value /item item text![CDATA[Rear Engine Snake]]/text value![CDATA[car_name]]/value /item /ajaxresponse -- View this message in context: http://www.nabble.com/Interface-Autocomplete-question-tf2403569.html#a6701015 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Window property error with ThickBox
Hi, Followup: a bit more information, and notice that I'm subscribed to the discuss RSS feed via bloglines, so moderator please allow this ;) The problem originally described below persists with jQuery 1.0.1 (as opposed to latest). It happened originally with a well-formed (validated) HTML 4.01 transitional doctype. For testing purposes I changed the page to be valid XHTML 1.0 transitional, but the behavior is the same. Again, thanks for an awesome product in jQuery, I love it. Yoav On 10/7/06, Yoav Shapira [EMAIL PROTECTED] wrote: Hi, Using the latest jquery just downloaded from the jquery.com, and the latest ThickBox (2.1 I believe, just downloaded from http://jquery.com/demo/thickbox/), I get an error message on Firefox 1.5.0.8 on Windows XP when trying to do the simplest ThickBox example. The error is a JavaScript alert box that says Permission denied to get property Window.nodeType. The same code works fine on IE6. Every jQuery tutorial I've gone through also works fine in both IE and Firefox. Accordingly, I don't think this error comes from jQuery, but rather Thickbox. Nonetheless I wanted to ask here to see if anyone had helpful ideas. I see this issue was raised last month on this list (http://jquery.com/discuss/2006-September/011071/) but without a particular explanation of the root cause. Any help would be appreciated: thanks in advance, Yoav ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Window property error with ThickBox
Hi, Using the latest jquery just downloaded from the jquery.com, and the latest ThickBox (2.1 I believe, just downloaded from http://jquery.com/demo/thickbox/), I get an error message on Firefox 1.5.0.8 on Windows XP when trying to do the simplest ThickBox example. The error is a JavaScript alert box that says Permission denied to get property Window.nodeType. The same code works fine on IE6. Every jQuery tutorial I've gone through also works fine in both IE and Firefox. Accordingly, I don't think this error comes from jQuery, but rather Thickbox. Nonetheless I wanted to ask here to see if anyone had helpful ideas. I see this issue was raised last month on this list (http://jquery.com/discuss/2006-September/011071/) but without a particular explanation of the root cause. Any help would be appreciated: thanks in advance, Yoav ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery 1.0.2 RC2
On 10/8/06, Jörn Zaefferer [EMAIL PROTECTED] wrote: Mike Alsup schrieb: Test #38 fails in Opera 8.54. Any idea where to download that version? I can't find any download prior to Opera 9. From http://www.opera.com/download/, follow the show other versions link. -- Choan http://choangalvez.nom.es/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery 1.0.2 RC2
From http://www.opera.com/download/, follow the show other versions link. Thanks, Choan. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Broken Build
I guess it is obvious I'm using a different OS :) -- Brandon Aaron On 10/8/06, Franck Marcia [EMAIL PROTECTED] wrote: 2006/10/8, Jörn Zaefferer [EMAIL PROTECTED]: I tried your quick and dirty fix for lite: It worked but was awfully slow. This hack works for me and is fast: var blockMatch = /\s*\/\*\*\s*((.|\r\n|\r|\n)*?)\s*\*\/(\r\n|\r|\n)*/g; var f = readFile(arguments[0]).replace( blockMatch, \n ).replace( /\r/g, ).replace( /\n\n+/g, \n\n ); However, I'm not sure it's the best way as I'm not a regexp guru. Franck. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] IE6 performance tweak
If you are changing background images/colors a lot then this, according to the MSDN article, will stop a memory leak associated with that in IE6 and would result in better performance over a long period of time. I would assume that Dean's server side solution would fix this as well. BTW ... that site was just chewing up my CPU in Safari due to the constant moving background. -- Brandon Aaron On 10/8/06, Joe [EMAIL PROTECTED] wrote: This somehow improves the performance of IE6. Interesting object detection as well. Opinions on this method? http://www.hedgerwow.com/360/bugs/dom-fix-ie6-background-image-flicker.html All-new Yahoo! Mail - Fire up a more powerful email and get things done faster. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] New plugin: toXML (XML serializer)
Hi John, My objections are mostly from a philosophical standpoint. Since it may sometimes return valid xml and sometimes return a doc fragment, what can you do with it? You can't load it in a document, you can't post it to a web service... you'd have to manually parse it to figure out what it includes and therefore what it could be used for. I think it could be improved if it wrapped its results in its own root element or was renamed to .toXmlMarkup(). Tony Collins -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Resig Sent: Thursday, October 05, 2006 8:20 PM To: jQuery Discussion. Subject: Re: [jQuery] New plugin: toXML (XML serializer) Tony - It's not, necessarily, implied that this plugin will return valid XML for an entire XML Document - instead, it's returning valid XML for an XML Document Fragment - which is perfectly ok. I mean, you can't expect $([ item1, item2 ]).toXML() to give you a valid XML document - and forcefully wrapping itself seems foolhardy. If it was so much of a concern, maybe there could be a .toXMLDocument() which returned a valid XML document instead of just a fragment. --John On 10/5/06, Antonio Collins [EMAIL PROTECTED] wrote: I'm sorry but I don't agree with this plugin's name or usage. It simply appends multiple valid xml together so the result could be invalid xml and include multiple root elements. In my opinion, the result of any method named .toXML() should be valid xml and the following tests should result in valid XML documents. IE: domDoc.loadXML( $([ item1, item2 ]).toXML() ); FF: (new DOMParser()).parseFromString( $([ item1, item2 ]).toXML(), text/xml ); Tony Collins -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Christof Donat Sent: Thursday, October 05, 2006 10:02 AM To: jQuery Discussion. Subject: Re: [jQuery] New plugin: toXML (XML serializer) Hi, The thing is, the main use case for a toXML() call is to send XML data via an ajax request. Well, I could imagine that there may be other usecases as well, like doing search and replace operations on the string representation of a XML which is reparsed afterwards. It was just a joke, but you may look at that use case which could be usefull for XML-Data as well: http://dean.edwards.name/weblog/2006/07/erlaubt/#comment7262 The duration of the request greatly overshadows any optimisation that could be applied to toXML. Well, there are also use cases, where you can assume a really fast network connections (inhouse with 1GB-Ethernet e.g.) and thus work with huge datasets on the client side. Then suddenly the time, the client and server need to process the request becomes the dominating factor. I think that jQuery could also be really usefull for Applications using XULrunner (I haven't tried yet) and thus there are many other use cases like e.g. working with RDF-Data, etc. - OK, we don't need to emulate XMLSerializer then. Also, I don't think it is a good idea to attempt to implement an XMLSerializer object for the sake of it, especially when the full interface isn't being implemented You are right here of course. I was too lazy to look for the XMLSerializer-interface and see if the other functions can also be simulated so easy. As a rule I live by the KISS principle, and never optimise code unless it becomes a bottleneck, and then only do so under profiling conditions. Well, KISS is an optimization strategy :-) Most of the time code is fast when it is simple, but most of the time is not always. Christof ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- John Resig http://ejohn.org/ [EMAIL PROTECTED] ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery 1.0.2 RC2
Mike Alsup schrieb: Test #38 fails in Opera 8.54. I think I tracked down the problem, but can't solve it: It seems like in Opera 8.54, the option property is not used, while getAttribute('selected') work when the attribute is set. But this does not work for the default selected option. Other browsers return true for the selected property of the first option in a select, that has no options that were explicitly selected. Any ideas how this could be solved? -- Jörn ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery 1.0.2 RC2
My tests under WinXP Pro SP2: Firefox 1.5.0.7: fails on #55 Firefox 2.0 beta 2 (I haven't tried the latest RCs): fails on #55 IE 5.5: fails on #8 IE6: everything ok ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] search for id with '/' character
On Oct 7, 2006, at 21:32, Michael Geary wrote: Good call. For anyone who is wondering what is valid in an ID: http://www.w3.org/TR/html4/types.html#type-name Also one older document regarding the same matter: http://devedge-temp.mozilla.org/viewsource/2001/css-underscores/ -- Mika Tuupola http://www.appelsiini.net/~tuupola/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery 1.0.2 RC2
Firefox 2.0_rc1 Linux fails #55 as well.Konqueror version 3.5.4 does the same as Larry's, ( Just he didn't specify what version so I wasn't sure )On 10/9/06, Daimajin wrote:My tests under WinXP Pro SP2:Firefox 1.5.0.7: fails on #55Firefox 2.0 beta 2 (I haven't tried the latest RCs): fails on #55IE 5.5: fails on #8IE6: everything okKent ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] IE6 performance tweak
This somehow improves the performance of IE6. Interesting object detection as well. Opinions on this method? Hi, This hack was allready posted to this list by me, and someone told us you could use jQuery's method of detecting MSIE before applying the hack, Something like this, in my base.js file. // Object initializatie $(document).ready(function() { // Fix background image caching problem if (jQuery.browser.msie) { try { document.execCommand(BackgroundImageCache, false, true); } catch(err) {} } }); -- Gilles ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery 1.0.2 RC2
Same here, using latest release of Safari on an intel mac. Will test further to try to narrow things down. On Oct 8, 2006, at 10:00 AM, Fil wrote: Testsuite: http://joern.jquery.com/test/ Hi Jörn, on this page Safari crashes before it has a chance to display anything! -- Fil ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jquery update causes js error
Hi again, Still having a problem with this. I could really use a hand. This is reproducible on IE6, FF 1.5.0.7, Opera 8.5.4, and Opera 9.0.2. I also just tried it with jQuery-1.0.2-rc2.js and get the same behavior. Opera 8.5.4 and 9.0.2 Error messages: JavaScript - http://imaptools.com:8081/maps/demo2.html Event thread: load Error: name: TypeError message: Statement on line 2236: Could not convert undefined or null to object Backtrace: Line 2236 of linked script http://imaptools.com:8081/js/jquery-1.0.2-rc2.js if (c[j].apply(this, args) === false) At unknown location [statement source code not available] Does anyone have an idea why I might be getting this error. I'm assume it is because of some API change from the earlier version of jQuery, but I have checked through my code and the jQuery Docs and I'm not seeing it. I have not had much lock with the debugger in FF either. Thanks, -Steve Stephen Woodbridge wrote: Hi all, New to jquery and list, but I looked through the archives and didn't see anything that help. I have a page that is working under jquery.js /* Built Fri May 12 13:01:23 2006 */ * $Rev: 29 $ but I upgraded to jquery-latest.js and todays jquery-svn.js and both of these give me an error when the page loads: c[j] has no properties jquery-svn-200610... (line 963) which is event: handle: function I have no clue about this. I am using a couple of bind calls the page is accessible at: http://imaptools.com:8081/maps/demo2.html the working page on the old version is at: http://imaptools.com:8081/maps/demo.html Any ideas or help would be appreciated. -Steve ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery 1.0.2 RC2
On Sunday 08 October 2006 13:44, Kent Fredric wrote: Firefox 2.0_rc1 Linux fails #55 as well. Konqueror version 3.5.4 does the same as Larry's, ( Just he didn't specify what version so I wasn't sure ) 3.5.4 as well, sorry. :-) -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of every one, and the receiver cannot dispossess himself of it. -- Thomas Jefferson ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] IE6 performance tweak
Webunity | Gilles van den Hoven schrieb: This somehow improves the performance of IE6. Interesting object detection as well. Opinions on this method? Hi, This hack was allready posted to this list by me, and someone told us you could use jQuery's method of detecting MSIE before applying the hack, Something like this, in my base.js file. // Object initializatie $(document).ready(function() { // Fix background image caching problem if (jQuery.browser.msie) { try { document.execCommand(BackgroundImageCache, false, true); } catch(err) {} } }); -- Gilles The by far safest thing to use is Conditional Compilation. And that way other browsers only get JavaScript comments...: /[EMAIL PROTECTED] document.execCommand(BackgroundImageCache, false, true); @*/ -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery 1.0.2 RC2
IE 6.0.2900.2180 - All tests OK FF 1.5.0.7 - All tests OK Laurent On 10/8/06, Larry Garfield [EMAIL PROTECTED] wrote: On Sunday 08 October 2006 13:44, Kent Fredric wrote: Firefox 2.0_rc1 Linux fails #55 as well. Konqueror version 3.5.4 does the same as Larry's, ( Just he didn't specify what version so I wasn't sure ) 3.5.4 as well, sorry. :-) -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of every one, and the receiver cannot dispossess himself of it. -- Thomas Jefferson ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery 1.0.2 RC2
Win XP SP2/FF 2.0RC255. load(String, Hash, Function)x (1, 0, 1)failed. everything else passed. On 10/8/06, Will Arp [EMAIL PROTECTED] wrote: osx/10.4.8/intel Firefox 2.0RC2:Tests completed in 7836 milliseconds.0 tests of 264 failed.-willOn 8-ott-06, at 12:40:15, Jörn Zaefferer wrote: Testsuite: http://joern.jquery.com/test/___jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery 1.0.2 RC2
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061003 Firefox/2.0 (XP SP2)Tests completed in 8344 milliseconds.0 tests of 264 failed.On 10/8/06, Matt Stith [EMAIL PROTECTED] wrote: Win XP SP2/FF 2.0RC255. load(String, Hash, Function)x (1, 0, 1)failed. everything else passed. On 10/8/06, Will Arp [EMAIL PROTECTED] wrote: osx/10.4.8/intel Firefox 2.0RC2:Tests completed in 7836 milliseconds.0 tests of 264 failed.-willOn 8-ott-06, at 12:40:15, Jörn Zaefferer wrote: Testsuite: http://joern.jquery.com/test/___jQuery mailing list discuss@jquery.comhttp://jquery.com/discuss/ ___jQuery mailing listdiscuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Ajax login
Hi I am really having trouble using ajax function to make a login form. Here is what I have so far. Any ideas? script type=text/javascript language=JavaScript $(document).ready(function(){ $('form').submit(function(){ $.ajax({ url: process.php, type: POST, data: $.param( $(#login).formdata()), success: function(msg){ alert( Logged in: + msg ); } }); }); }); }); /script form Username:input type=text name=user maxlength=30 br/ Password:input type=password name=pass maxlength=30 input type=submit value=Login /form ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Ajax login
I don't see any element with the id 'login'.On 10/9/06, TJ [EMAIL PROTECTED] wrote: Hi I am really having trouble using ajax function to make a login form. Here is what I have so far.Any ideas?script type=text/_javascript_ language=_javascript_$(document).ready(function(){ $('form').submit(function(){$.ajax({url: process.php,type: POST,data: $.param( $(#login).formdata()), success: function(msg){ alert( Logged in: + msg ); } });}); });});/scriptform Username:input type=text name=user maxlength=30 br/ Password:input type=password name=pass maxlength=30input type=submit value=Login/form___ jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Ajax login
i prolly shoulda looked at the code harder, thats probly your problem... On 10/8/06, Blair McKenzie [EMAIL PROTECTED] wrote: I don't see any element with the id 'login'. On 10/9/06, TJ [EMAIL PROTECTED] wrote: Hi I am really having trouble using ajax function to make a login form. Here is what I have so far. Any ideas? script type=text/javascript language=JavaScript $(document).ready(function(){ $('form').submit(function(){ $.ajax({ url: process.php, type: POST, data: $.param( $(#login).formdata()), success: function(msg){ alert( Logged in: + msg ); } }); }); }); }); /script form Username:input type=text name=user maxlength=30 br/ Password:input type=password name=pass maxlength=30 input type=submit value=Login /form ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Ajax login
I added the login, sorry about that When I execute I get the vars in the address bar http://www.tjshafer.com/baintown/main.php?user=testpass=testsublogin=1 script type=text/javascript language=JavaScript $(document).ready(function(){ $('form').submit(function(){ $.ajax({ url: process.php, type: POST, data: $.param( $(#login).formdata()), success: function(msg){ alert( Data Saved: + msg ); } }); }); }); }); /script form id=login Username:input type=text name=user maxlength=30 br/ Password:input type=password name=pass maxlength=30 input type=checkbox name=remember !--font size=2Remember me next time nbsp;nbsp;nbsp;nbsp;-- input type=hidden name=sublogin value=1 input type=submit value=Login !--brfont size=2[a href=forgotpass.phpForgot Password?/a]/font brNot registered? a href=register.phpSign-Up!/a-- /form ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Ajax login
when you override submit with js , you have to return false, or it gets submitted the old fashioned way! On 10/8/06, TJ [EMAIL PROTECTED] wrote: I added the login, sorry about that When I execute I get the vars in the address bar http://www.tjshafer.com/baintown/main.php?user=testpass=testsublogin=1 script type=text/javascript language=JavaScript $(document).ready(function(){ $('form').submit(function(){ $.ajax({ url: process.php, type: POST, data: $.param( $(#login).formdata()), success: function(msg){ alert( Data Saved: + msg ); } }); }); }); }); /script form id=login Username:input type=text name=user maxlength=30 br/ Password:input type=password name=pass maxlength=30 input type=checkbox name=remember !--font size=2Remember me next time nbsp;nbsp;nbsp;nbsp;-- input type=hidden name=sublogin value=1 input type=submit value=Login !--brfont size=2[a href=forgotpass.phpForgot Password?/a]/font brNot registered? a href=register.phpSign-Up!/a-- /form ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Ajax login
You are getting a js error. You have too many: '});' for the opens, because you have one at the end of the success: line. -Steve TJ wrote: I added the login, sorry about that When I execute I get the vars in the address bar http://www.tjshafer.com/baintown/main.php?user=testpass=testsublogin=1 script type=text/javascript language=JavaScript $(document).ready(function(){ $('form').submit(function(){ $.ajax({ url: process.php, type: POST, data: $.param( $(#login).formdata()), success: function(msg){ alert( Data Saved: + msg ); } }); }); }); }); /script form id=login Username:input type=text name=user maxlength=30 br/ Password:input type=password name=pass maxlength=30 input type=checkbox name=remember !--font size=2Remember me next time nbsp;nbsp;nbsp;nbsp;-- input type=hidden name=sublogin value=1 input type=submit value=Login !--brfont size=2[a href=forgotpass.phpForgot Password?/a]/font brNot registered? a href=register.phpSign-Up!/a-- /form ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] ajax login
I have updated to this with the return false. I am still getting the same error. Any suggestions? Thanks! script type=text/javascript language=JavaScript $(document).ready(function(){ $('form').submit(function(){ element = $('[EMAIL PROTECTED]').get(0); myusername = element.value; mypassword = $('[EMAIL PROTECTED]').get(0).value; $.post('process.php', {username: myusername, name: mypassword}); element.value = ''; return false; }); }); /script form Username:input type=text name=user maxlength=30 br/ Password:input type=password name=pass maxlength=30 input type=checkbox name=remember !--font size=2Remember me next time nbsp;nbsp;nbsp;nbsp;-- input type=hidden name=sublogin value=1 input type=submit value=Login !--brfont size=2[a href=forgotpass.phpForgot Password?/a]/font brNot registered? a href=register.phpSign-Up!/a-- /form ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Ajax login
try: ... .submit(function(e) { e.preventDefault(); ... ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jquery update causes js error
hi stephen,i'd guess the offending line is in mscross: Object.prototype.objRef = null;handle event has changed from using a i=0;iel.length;i++ type loop to a for i in c style loop.i'd guess that the extra iterable (objRef) is causing problems in the newer handle event. hope that helps. (and hi from a fellow Mapserver/GIS user)-brentOn 10/8/06, Stephen Woodbridge [EMAIL PROTECTED] wrote:Hi again,Still having a problem with this. I could really use a hand. This is reproducible on IE6, FF 1.5.0.7, Opera 8.5.4, and Opera 9.0.2. Ialso just tried it with jQuery-1.0.2-rc2.js and get the same behavior.Opera 8.5.4 and 9.0.2 Error messages: _javascript_ - http://imaptools.com:8081/maps/demo2.htmlEvent thread: loadError:name: TypeErrormessage: Statement on line 2236: Could not convert undefined or null to objectBacktrace: Line 2236 of linked scripthttp://imaptools.com:8081/js/jquery-1.0.2-rc2.js if (c[j].apply(this, args) === false) At unknown location [statement source code not available]Does anyone have an idea why I might be getting this error. I'm assumeit is because of some API change from the earlier version of jQuery, but I have checked through my code and the jQuery Docs and I'm not seeingit. I have not had much lock with the debugger in FF either.Thanks, -SteveStephen Woodbridge wrote: Hi all, New to jquery and list, but I looked through the archives and didn't see anything that help. I have a page that is working under jquery.js /* Built Fri May 12 13:01:23 2006 */ * $Rev: 29 $ but I upgraded to jquery-latest.js and todays jquery-svn.js and both of these give me an error when the page loads: c[j] has no properties jquery-svn-200610... (line 963) which is event: handle: function I have no clue about this. I am using a couple of bind calls the page is accessible at: http://imaptools.com:8081/maps/demo2.html the working page on the old version is at: http://imaptools.com:8081/maps/demo.html Any ideas or help would be appreciated. -Steve ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/___jQuery mailing listdiscuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jquery update causes js error
From: Stephen Woodbridge [EMAIL PROTECTED] http://imaptools.com:8081/maps/demo2.html From: Brent Pedersen i'd guess the offending line is in mscross: Object.prototype.objRef = null; Good catch. It's strictly verboten to add to Object.prototype. That will break all kinds of things, not just jQuery. From a quick glance at the code, it would appear that the assignment isn't even necessary. You could remove that line and I'll bet it won't affect the operation of the mscross library at all. -Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] oninput bug workaround
I've been trying to use oninput to validate fields in firefox and have had zero luck with it the jQuery way: element.bind('input', ...) is just not cutting it. After some digging around on the net I *finally* found some useful, although mildly depressing, information about it. What it seems to boil down to is a bug in firefox (and mozilla codebase in general I expect). This is okay: input oninput=... So is this: element.addEventListener('input', ...) This doesn't work: element.oninput = function() { ... So I'm figuring that jQuery must perform its cross-platform magic using the latter form. Does anyone have any ideas about how to handle this? I want to stay unobtrusive, so I don't want the handlers defined in my HTML, and I want to be cross-platform, and I'd rather not implement a cross-platform event handler just for the one event, especially since there is already one in jQuery. Thoughts? Regards, Duncan -- Duncan Anker Server 101, Web Hosting E-Commerce http://www.server101.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/