Dear All I would like to ask I have a scenior where I need to call a service using ajax which will open my windows service interface I have done it using javascript ajax but the issue is
$.Ajax({
uri:my service URL ;
type:POST
})
my ajax code works fine it call the serive and open up the windows service interface as well , The issue is I would like to post this data as well but for posting data I need to provide URL (specifiying the controller and action name ) but how I will do that as I am already using URI attribute to call windows service so how to call another URL to post this service data in controller means two URL
Asma KhalidPosted Jul 18, 2024, 3:07 AM
use another ajax call within your current ajax call's success scenario.
Malik Danish HabibPosted Jul 17, 2024, 3:33 PM
Dear Tahir do you think we can do that you have put to ajax calls in one function of JS ?
Tahir AnsariPosted Jul 17, 2024, 1:15 PM
Hi,
AJAX calls can only target one URL per request. If you need to interact with multiple URLs or endpoints in a single operation, you typically need to structure your application to handle this interaction in a different manner.