Anchor tag with onclick function with url as a parameter is not working.

Anchor tag with onclick function with url as a parameter is not working.

surendra_srikakulasurendra_srikakula Posts: 4Questions: 2Answers: 0

I have another question.

"<a href='#' id='void' class='void' title='Void' onclick='conformBeforeDelete('/order/updateOrderStatus?orderId=${order.orderId}&userContactNumber=${order.user.userContactNumber}&orderStatusId=10&pageId=1')'><i class='icon16 i-remove'></i></a>";

In the above code onclick function I write in fnDrawCallback function like below.

"fnDrawCallback": function () {

    $('.void').click(function conformBeforeDelete(url)
    {
        if(confirm("Do you realy want to delete this Order ?"))
            {
                window.location.href="${pageContext.request.contextPath}"+url;
            }
        else
            {
                return  false;
            }

    });
   },    

But it is not taking the url. How can I do.
Please reply me as early as possible.

This discussion has been closed.