[jQuery] Ajax Experience Conference
Any of you guys going to be at The Ajax Experience? <br clear="all"> -- Yehuda Katz Web Developer | Wycats Designs (ph) 718.877.1325 _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] forms plugin how to implement a preCallBack function to validate inputs
I would like to use the precallback function to check the inputs of the form heres my preCall function function preContact() { // check name is not empty if($("input#yrName").value == '') { $("div#contactFrmResult").html("You must include your name in the submission"); return false; } // validate email if(isEmailValid($("input#yrEmail").value) == false) { $("div#contactFrmResult").html("You must provide
[jQuery] File Downloads With jquery
Hi All, I am trying to trigger a file download with jquery. My export function gathers an export type, then uses this in a get request to a url expecting this type as a parameter. export = function(type) { alert(type); $.get("export_url",{ export_type: type },function(data){ alert('Done'+data); }); }<br clear="all"> I can verify that I got the requested data with the function in the .get. How do I send that data to a text file to trigger a download of that file?
[jQuery] Array.indexOf
I've seen that the "clean" function requires the Array.indexOf function, but this isn't available since Javascript 1.5. I am not sure on what javascript version jQuery is supposed to run on. Can anybody clarify that? If it is lowe then 1.5, we need to add the following snippet to jQuery.js to support older browsers: ----- [].indexOf || (Array.prototype.indexOf = function(v, n){ n = (n == null) ? 0 : n; var m = this.length; for (var i=n; i<m; i++) if (this[i] == v) return i; return -1; }); ----- --Gilles
[jQuery] method/plugin for getting query string vars?
Is there a jQuery method or plugin for parsing the browser's query string into an object? I looked through the api and did a bit of searching around, but no luck ... Thanks, Luke -- zinc Roe Design www.zincroe.com (647) 477-6016 _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Test suite failures
I finally got around to setting up a build environment here. With revision 453 I am seeing errors in $.find (sibling axis tests) and several of the ajax functions. Ideas? _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] .text() method quirks
(An earlier copy of this is stuck in the moderator queue and can be deleted; there's more detail in this version.) I've noticed several minor differences with the .text() method across browsers. For example, given this (note the space around two): <div id="test"> <div >one</div> <div> two </div> </div> function check(m,s) { if ( s == null ) return; var r = "'"; for ( var i=0; i < s.length; i++ ) { var c = s.charCodeAt(i); r += c > 0x20? s.charAt(i) : "{"+c+"}"; } alert(m+": "+r+"' "+s.length); }
[jQuery] Get element ID
How do I get the id of the item which was just clicked? For instance, if a user clicks a <td> which has a specific id, how do I use this id in my script? $(document).ready(function() { $("td").click(function() { // get the id of the table cell clicked // use the id in a script }); }); -- View this message in context: http://www.nabble.com/Get-element-ID-tf2483865.html#a6926187 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________ jQuery mailing
[jQuery] interface 3 bugs fixxed in SVN
Hey guys, /Bug squashing time!/ When doing some pre-work for a project i want to start on, i found out that the interface library still had some minor bugs. I've mailed allready mailed them to Stefan, but he is very busy with a project right now, he doesn't even respond to my mail anymore :p (or he is on vacation) :p Anyway, since interface was in SVN, i took the opportunity to squash the bugs myself. *The first bug: idrag.js* I noticed i couldn't destroy the draggable once it was created. I commented
[jQuery] jQuery Events
I was working with the event model and I noticed that while some steps are taken to "fix" the IE event object some of the cross browser inconsistancies, it doesn't fix all of them. It doesn't even fix the most annoying inconsistancies, namely the target and/or srcElement is not unified. Is there any reason for this? I was nosing around PPK's quirksmode site, as I frequently do, and I realized that some of his event stuff could be integrated into jQuery (taken from a snippet of jQuery code): handle:
[jQuery] Popup window reference problem
Dear all, I would like to make a simple popup which would copy current page content and do some conversion (e.g. text box to text). But I have met a problem of getting a wrong reference. Here is the code to demonstrate the problem: <html> <head> <title>Test Popup</title> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#popup").click(specificPop); function
[jQuery] Point me in the right direction...
I have just found jQuery today and started using it. Very nice. I am looking to change the values in one combo box based on the choice in another combo box. Does jQuery have something like that or something similiar that you can point me to? Thanks! Robert _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] jQuery Kinda Plugin: every
> jQuery.fn.extend({
[jQuery] Jquery mentioned in an article
http://www.hiveminds.co.uk/node/3141 It's an article about how lite programming is becoming a trend. By that they mean less resources and smaller filesizes. jQuery get mentioned as one of the lite libraries. Too bad they got the url wrong. David _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Interface ifxshake bug
Just to make sure the users of ifxshake know (along with Stefan), there is a bug on line 37 of ifxshake.js. This bug causes the failure of the callback function. The simple fix: switch "z.callback = z.callback;" with "z.callback = callback;". Thanks Stefan for Interface! -Aaron -- View this message in context: http://www.nabble.com/Interface-ifxshake-bug-tf2483947.html#a6926408 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________ jQuery mailing
[jQuery] Sortables: last item can never be dropped
To learn jQuery, I've been trying to recreate a basic list management system where you can add, edit, delete, reorder. I've got most of it down except for one bug that I can't find any info on: The last item in any list can never be dropped. I can drag it, but not drop it into a new spot within the list. If I move another item to the end of the list, then what was once last (now second to last) is free to be dragged and dropped. The new last element can no longer be dropped. -- View this message
Non-Destructive jQuery
Hi Everyone - There's been some rabble-rousing concerning the destructive nature of jQuery (it's ok, rousing is a good thing ;-)). I claimed that it'd be easy to have it exist as a plugin. Well, it took me all of 10 minutes, but here it is: jQuery.fn._pushStack = jQuery.fn.pushStack; jQuery.fn.pushStack = function(){ var ret = jQuery.fn._pushStack.apply( jQuery(this), arguments ); ret.prevObject = this; return ret; }; jQuery.fn.end = function(){ return this.prevObject || jQuery([]);
[jQuery] Non-Destructive jQuery
> There's been some rabble-rousing concerning the destructive
[jQuery] Returning a query?
> From Rey Bango:
[jQuery] Returning a query?
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> <font size="-1">Hi folks, I need to know if jQuery can return a query result set from an Ajax call. What's the best way to do this? Chris </font> </body> </html> _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] All top level elements within an element...
Hi Guys, How can I attach the hover event to all elements in another element? For example: <div id="wrapper"> <h1>Hello</h1> Test hello </div> I want to add the .hover event to <h1> and within the <div id="wrapper">. The amount of elements could obviously change. Thanks<br clear="all"> -- Tom Holder Managing Director Atom Software Ltd t: 01722 770001 f: 0117 923 9922 _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] mouse gestures?
Has anyone done any work with mouse gestures? For example detecting if the user drug the mouse on a specific element at least 50 pixels left/right, right/left, up/down, down/up? -- View this message in context: http://www.nabble.com/mouse-gestures--tf2359444.html#a6573213 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Internal workings of jquery
>>> I am trying to figure out how jQuery works internally. There is a >>> stack maintained within jQuery but why does jQuery change the 'this' >>> array of objects? why not just pass back the modified array when >>> using things like find? >> >> The stack allows to revert to older states. Check the documentation >> for end(), that explains it better. > > Yeh, I got that, but when you try to use a jquery object twice in a > chain it doens't work... > > $('div').each( > $('div').find('img').hide();
[jQuery] Internal workings of jquery
Hi guys, I am trying to figure out how jQuery works internally. There is a stack maintained within jQuery but why does jQuery change the 'this' array of objects? why not just pass back the modified array when using things like find? Abdul _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Possible IE7 fadeOut bug
Hi I have a problem where fadeOut is undefined in IE7 (final), but working fine in Firefox (2.0RC3). The relevant code is: //alert(this.clickBlock.fadeOut); clickBlock.fadeOut("slow", function() { $(this).remove(); }); clickBlock is a regular jQuery object defined earlier by clickBlock = $(document.createElement("div")).id("block"); I originally had clickBlock.remove(); here and it worked just fine. Can't check in IE6 at present, so don't know if it only affects IE7. If someone
[jQuery] Sorting (not tables)
Hello all, I've been using jQuery for a month or so now and am really enjoying it! I haven't been able to figure out how to sort a collection of elements. I have something like the following: <div class="entry"><span class="foo">foo1</span><span class="bar">bar1</span></div <div class="entry"><span class="foo">foo2</span><span class="bar">bar2</span></div I would like to be able to do something like: $('.entry').sort(function(a, b) { return $('.foo', a).text()-$('.foo', b).text(); }).appendTo('#sortedStuff');
[jQuery] window.opener and $('#el_id').load
I've started using jQuery in an existing web app and am having some trouble. The app uses a javascript date selector - click on the little calendar image and a popup opens; click on the date and it sets a text box value in the main window then closes itself. In between updating the text box and closing the popup, I have added a call to a function defined in the main window (i.e. setTextBox(v); window.opener.updateFunc(); window.close; ). updateFunc() updates a select input in the main window based
[jQuery] IE 7 & Windows Update
According to the IE Blog (http://blogs.msdn.com/ie/) timestamped Thursday, October 19, 2006 8:56 AM: "To help you become more secure and up-to-date, we will distribute IE7 via Automatic Updates as a high-priority update. We will start very soon with those of you who are already running IE7 pre-releases and then move onto IE6 users after a few weeks. We will progressively roll out to all IE6 users over a few months, so don t be surprised if you don t see the update right away." -------------- Original
[jQuery] IE 7 & Windows Update
>>> I'm sure most everyone knows by now that IE 7 has been officially
[jQuery] IE 7 & Windows Update
> I'm sure most everyone knows by now that IE 7 has been officially
[jQuery] difference between IE and Firefox
Hi at all, this is the page : <html> <head> <title>bug</title> <script src="jquery.js" type="text/javascript"></script> <script> function getTestXml(str) { if (typeof DOMParser == "undefined") { DOMParser = function () {} DOMParser.prototype.parseFromString = function (str, contentType) { if (typeof ActiveXObject != "undefined") { var d = new ActiveXObject("MSXML.DomDocument"); d.loadXML(str); return
[jQuery] IE 7 & Windows Update
Interesting. Most reports stated that MS wasn't going to start pushing IE7 through Windows Update until next month. -------------- Original message ---------------------- From: Rey Bango <rey@iambright.com>
[jQuery] IE 7 & Windows Update
I'm sure most everyone knows by now that IE 7 has been officially released but I just wanted to ensure that everyone knows that last night, MS began pushing out IE 7 via Windows Update. I received an update notification via the automatic updates option so I'm sure a ton of other people did as well and upgraded shortly thereafter. Its just a heads up for anyone not aware of this. Rey _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] load(),get(),post() params issue
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"> <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <meta name=Generator content="Microsoft Word 11 (filtered medium)"> <style> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;}
[jQuery] jQuery AJAX woes...Works in Firefox Not IE
I found this works... alert(this.attributes.getNamedItem("val").value + " " + this.firstChild.nodeValue); is there anything simpler - more jQuery-like? _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Improved jQIR?
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> Hi, I am seeking feedback on what I think may be an improvement on Sam Collett's jQIR plugin <a class="moz-txt-link-rfc2396E" href="http://sam.collett.googlepages.com/jQIR.html"><http://sam.collett.googlepages.com/jQIR.html></a>. jQuery.fn.jQIR = function(format, path) { var template =
[jQuery] jQuery Kinda Plugin: every
I don't know if this exists already but I needed this and assumed it didn't and wrote it myself. Essentially it lets you do something to an element every given time interval. jQuery.fn.every = function(interval,fn) { return this.each(function() { var self = this; window.setInterval(function() { fn.call(self) },interval); }); }; I used it to get a millisecond amount display every so often to produce a live updated element. It's mostly for live clock updating (and I suppose it could be useful to implement
[jQuery] load(),get(),post() params issue
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"> <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <meta name=Generator content="Microsoft Word 11 (filtered medium)"> <style> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;}
[jQuery] Sorting (not tables)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <TITLE>Message</TITLE> <META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD> <BODY> <DIV><FONT face=Arial color=#0000ff size=2>$(document).ready(<BR> /* define the jQuery page constructor */<BR> function() {<BR> // store a list of all the existing leases per row<BR> var rows = [];<BR> // for each form with the id of "frm_existingLeases" get the
[jQuery] jQuery AJAX woes...Works in Firefox Not IE
I have a sample of code that works in Firefox but not IE (6). jQuery code: $.post("xml_listbox.php",{ table: "link_category", value: "cat_id", label: "cat_name" },function(xml){ $("options/option",xml).each( function() { alert($(this).attr("val") + " " + $(this).text()); }); }); xml_listbox.php contains: <options> <option val="1">Holiday Park</option> <option val="3">Holiday Home Hire</option> <option val="5">Decking/Verandas Company</option>
Next Page