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;
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
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.
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.
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
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",
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
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
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();
//
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.
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
11 matches
Mail list logo