Is there a way to transmit a session variable into the sAjaxSource file?

Is there a way to transmit a session variable into the sAjaxSource file?

danielsen82danielsen82 Posts: 2Questions: 0Answers: 0
edited April 2011 in General
Hi there,
Is there a way to transmit a session variable into the sAjaxSource file in order to maipulate the SQL query?
Another parameter like dataTable({ "language": "de" }) ... or somehow make it available and get the value of $_GET['lang'] inside the sAjaxSource file.
I looked up on forum but couldn't find an answer for my newbie level of jQuery knowledge. PHP is more likely to help.

Replies

  • allanallan Posts: 63,516Questions: 1Answers: 10,473 Site admin
    I think you should be able to just stick a GET parameter onto the Ajax source. So something like:

    [code]
    "sAjaxSource": "whatever.php?id=123"
    [/code]
    and that will be available in your target script.

    Allan
  • danielsen82danielsen82 Posts: 2Questions: 0Answers: 0
    Cool, that easy... exactly what I needed, thanks for help, Allan.
This discussion has been closed.