If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Enjoy an ad free experience by logging in. Not a member yet? Register.

AJAX session value if else onload

Hi,

I'm trying to get to grips with Ajax, I need to call different ajax files on onload depending upon the ajax session.

I thought I would try and get the method working so simplified my attempts to a test page which once I have understood it I can apply to my website (in other words I do really need this) and would appreciate any assistance on how I should work this.

OK I have managed to change my code to the below which does actually show a response, except the if else does not seem to be working, in other words it goe straight to the ajax_mine.txt file, even though I have preset the session variable to x.

I am completely stuck and can't move forward, I would really appreciate any help.