
Originally Posted by
paul_wilkins
Doing the first option is a definate no-no, because the "javascript:" part is only an unused label (it does not specify that you're using javascript) and it won't mean anything when scripting is not available.
Go with the second option, which ensures that when clicking on the link, the browsers default behaviour doesn't not occur.
all i can say is ur a genius paul !!!
Code:
echo "<a href=\"#\" id='$i' class='pagenum' onclick='ajaxpost_rep_gen($i);change($i);return false;'/>" . $i . "</a>" . " ";
both method worked charm. i stick with the above method as per ur advise.
Thank you!
Bookmarks