![]() |
Slight issues with my Ajax call
Hi, I have an Ajax script which I have modified to suit my needs...nearly.
I have 2 links: Code:
<a href="#" name="ASC" onmouseup="showUser('ASC')">ASC</a>|Code:
<script type="text/javascript">Here is my sort.php: PHP Code:
Can anyone help me to fix this problem please!? Thanks you in advance. Regards, LC. |
you wouldn't happen to have your links inside your "content" div by any chance...?
|
I do indeed.
I thought it was something to do with the innerHTML statement, so I tried doing: Code:
if (xmlhttp.readyState==4 && xmlhttp.status==200)If I can sort that out I've pretty much solved my problem. How can I fix this? Regards, LC. |
take your links out of your content div?
|
Ah thank you.
I placed the table in it's own separate div and then wrote the innerHTML to that element. Kind Regards, LC. |
Is there anyway to append to a table? I have created my table and table headers in HTML:
Code:
<table id="members_table">Everytime I click my links, the table headers disappear and it's something to do with writing the innerHTML to the same parent element. How can I fix this problem? I've changed my code many times and haven't found a solution yet. Regards, LC. |
| All times are GMT +1. The time now is 02:30 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.