Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I tried using /base call, but the postback is happening
Hi,
Are you using server controls/ buttons etc that's calling the webservice? Maybe give a little bit more info so we can help you with your issue.
Cheers,
Richard
yes, i have a button in the master page, on client click of that i am calling the below javascript function
function Testclick() { var uname = "Testname"; var eorder = "testorder"; $.get("/base/TestAlias/StoreDragDropDetails/" + uname + "/" + eorder + ".aspx", function (data) { alert('Data Loaded'); }); return false; }
Here i am using the /base call to post the data...
Please let me know weather this approach is correct or is there some other way i can send the parameters to server side.
Did you try using the $.ajax method? This does an ajax call to the target page / webservice, so no postback.
Hope this helps.
Michael.
To be a little more specific, I think your ajax call would be something like this:
function Testclick() { var uname = "Testname"; var eorder = "testorder"; $.ajax({ url: "/base/TestAlias/StoreDragDropDetails/" + uname + "/" + eorder + ".aspx", type: "GET", success: function (data) { alert('Data Loaded'); }, error: functrion(){ alert('error'); } }); return false; }}
Its working now, Thanks for all your help.
You're welcome :-)
Glad to hear you worked it out.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How to Call asmx webservice method in master page in umbraco using Jquery with out posting the page
I tried using /base call, but the postback is happening
Hi,
Are you using server controls/ buttons etc that's calling the webservice? Maybe give a little bit more info so we can help you with your issue.
Cheers,
Richard
Hi,
yes, i have a button in the master page, on client click of that i am calling the below javascript function
function Testclick() {
var uname = "Testname";
var eorder = "testorder";
$.get("/base/TestAlias/StoreDragDropDetails/" + uname + "/" + eorder + ".aspx", function (data) {
alert('Data Loaded');
});
return false;
}
Here i am using the /base call to post the data...
Please let me know weather this approach is correct or is there some other way i can send the parameters to server side.
Hi,
Did you try using the $.ajax method? This does an ajax call to the target page / webservice, so no postback.
Hope this helps.
Cheers,
Michael.
To be a little more specific, I think your ajax call would be something like this:
function Testclick() {
var uname = "Testname";
var eorder = "testorder";
$.ajax({
url: "/base/TestAlias/StoreDragDropDetails/" + uname + "/" + eorder + ".aspx",
type: "GET",
success: function (data) {
alert('Data Loaded');
},
error: functrion(){
alert('error');
}
});
return false;
}
}
Its working now, Thanks for all your help.
You're welcome :-)
Glad to hear you worked it out.
Cheers,
Michael.
is working on a reply...