[jQuery] Re: Handling $.get answer

2008-10-09 Thread nomen
Hi MorningZ: I think your first approach is better for me. Finally I do: beforedelete: function(NODE)// before delete - should return true | false { $.ajax({ type: "POST", url: "/goicms/admin/removenode", async: false,

[jQuery] Re: Handling $.get answer

2008-10-09 Thread nomen
Hi MorningZ: I think your first approach is better for me. Finally I do: beforedelete: function(NODE)// before delete - should return true | false { $.ajax({ type: "POST", url: "/goicms/admin/removenode", async: false,

[jQuery] Re: Handling $.get answer

2008-10-09 Thread MorningZ
When you call "$.get". it does it *asynchronously*, meaning it goes off and makes the Ajax call but does not wait for it to get back with a result before continuing You have two choices: 1) Use the more general "$.ajax" call and run your remote code synchronously (yuck! you'll potentially ha