button in XSL for AJAX usage
Posted
by phingko
on Stack Overflow
See other posts from Stack Overflow
or by phingko
Published on 2010-05-08T01:42:58Z
Indexed on
2010/05/08
1:48 UTC
Read the original article
Hit count: 318
Hi guys,
I wonder if its is possible to do AJAX when I put a button inside the xsl file;
<input type = "button" id="laptop" value = "Add to Cart" onclick="sendCartRequest('Add');" />
That's what I do in my xsl file then in my js file I pass the id to the DOM and try to alert it make sure it is passed. And the alert appear to be empty.
Is it a mistake to put the button in the xsl? or that's something else that cause it's empty? May be my DOMpath?
Please point me a right direction.
Thanks in advanced.
© Stack Overflow or respective owner