>  Is there a "better" way to add this extra parameter without having add
>  an element to the DOM like this?

The better way is to have the server detect that the request was
submitted via ajax and respond accordingly.   You can determine this
on the server by inspecting the "X-Requested-With" header.  It will
have a value of "XMLHttpRequest" when the request originates via XHR.

Mike

Reply via email to