Last post Dec 21, 2016 06:31 AM by Eric Du
Dec 20, 2016 11:47 PM|Jessy|LINK
How to write a script to store the product ID from the third party in our database so it will be available to insert as a field.
The code will be like this:
<a href="#" onclick="LaunchDS(this,'productID','');return(false);">Display</a>
Dec 21, 2016 06:31 AM|Eric Du|LINK
According to your description, as far as I know, you could use jQuery Ajax to complete this requirement.
1. you could add a click event to tag a, then use jQuery Ajax to pass ProductID to the third party, about what else parameters need be passed, you need read the third part document.
2. After get the returned ProductID, then call the insert function in Ajax, pass it to method and save it in database!
For more detail, you can refer to these examples:
Accessing other domain web services via jQuery Ajax (CORS):
Insert (Update) Data to Database with jQuery AJAX and WebMethod in ASP.Net: