[jQuery] Re: Round tripping XML data

2009-11-21 Thread NeilM
For anyone else out there with a similar requirement, I have discovered/developed a simple solution to this which at least works with IE, Firefox and Safari and may work with other browsers that I have not yet tested... function XmlToString(xData) { if (xData.xml) { return xData.xml;

[jQuery] Round tripping XML data

2009-11-18 Thread NeilM
I'm hoping some can help me with the following... This is what I want to do... 1) Retrieve an XML data structure from the web server (easy enough using jQuery.ajax()). 2) Interrogate and update the data (again easy enough using standard jQuery methods against the XML DOM). 3) Post the modified

[jQuery] Combining jQuery Objects

2009-07-23 Thread NeilM
Does anyone know if it is possible to join two jQuery objects to make a new object. For example... var e1 = $("#firstObject"); var e2 = $("#secondObject"); var combined = e1.add(e2); // This is the expression I'm looking for Thanks.

[jQuery] Re: Ajax: Posting Xml Data

2008-05-09 Thread NeilM
Thanks Mike, That helps a lot. I have modified the code back to a more 'default' setting and have found that all I needed to do was encode the xml string (using the escape() method) and then, of course decode the string on the server. If I don't encode/escape the xml, I get an ajax call error.

[jQuery] Re: Ajax: Posting Xml Data

2008-05-09 Thread NeilM
cript. What seems odd is that jQuery throws an error before initiating the ajax call if I set the property 'processData: false' in the initialisation. For reference, the test xml is constructued as follows: var xml = ""; On May 9, 5:28 pm, andrea varnier <[EMAIL PROTECTE

[jQuery] Ajax: Posting Xml Data

2008-05-09 Thread NeilM
Hi, I am trying to post an XML string back to an ASP.net page. The XML string is created in the client code and I am trying to use the jQuery.ajax() method... $.ajax({ type : "POST", url : "AjaxHandlerPage.aspx", data : { method : "Save",

[jQuery] Overriding jQuery Function

2007-10-09 Thread NeilM
I would like to be able to 'override' a standard jQuery function to provide it with customised features and/or functionality whilst still being able to call the base/original function from within the new function to do the majority of the work. Is there a recommended approach to achieving this ty

[jQuery] Re: Scope and Visibility from Callback

2007-10-05 Thread NeilM
That's great - thanks. The only question I have now is whether it would be possible to modify a prototype somewhere/somehow to provide this property automatically? On Oct 5, 8:53 am, Suni <[EMAIL PROTECTED]> wrote: > Your problem is that within the function you no longer have a > reference to my

[jQuery] Scope and Visibility from Callback

2007-10-04 Thread NeilM
I want to create a 'closed' object (sorry, not sure what the right term is), e.g. var myObj = { foo : function() { $("#myLink").click(function(){ // How can I call the bar() method from here? What I would // really like to be able to do is call... // this.bar(); //

[jQuery] Re: Selector Optimisation Question

2007-07-22 Thread NeilM
ry is much faster than it used to be, it's > still faster if you can avoid repeating the selector query at all. > > -Mike > > > From: NeilM > > > I have just started to use jQuery in my web development and > > have a question concerning optimising element selection.

[jQuery] Selector Optimisation Question

2007-07-12 Thread NeilM
I have just started to use jQuery in my web development and have a question concerning optimising element selection. I find that I create a lot of references to id'd elements: Then, in my JavaScript, I want to obtain a reference to the element. Now, even though it has an id, I tend to use the