I am developing the web application for Mobile where I want to open SMS editor from javascript.
below is my aspx code
<a class="redBtn fltrt" href="#" id="lnkBuy" runat="server" onclick="return makePayment()" onserverclick="lnkBuy_Click" rev='12' rel='21'>Buy</a>
and the onClick method
function makePayment()
{
try
{
var res=confirm('Are you sure to continue?');
if(res == true)
{
window.location='sms:+334343434343';
return true;
}
else
{
return false;
}
}
catch(Error)
{
}
}
here is I want to open the SMS editor and call to my code behind code
protected void lnkBuy_Click(object sender, EventArgs e)
{
//code goes here
}
By using this and I am able to open the SMS editor but not be able to redirect to my code behind code.Can any body suggest me any way to do this both action in same time or any other convenient way.
thanks in advance
I use the XMLHTTPRequest to send the call to my processing page and write another function to redirect to native SMS editor call.
Below is my code
hop this will help some one 🙂