Bluemonkey
02-27-2003, 10:35 AM
i am trying to sort a colum in my table by asc or desc i am trying to do it like this at the monet
<script language="VBScript">
dim mbOrder, s
sub headerclick(sort)
mborder = not mborder
if mborder then
window.location.href = "viewjobs.asp?sortby=" & sort & "&SortOrder=1"
else
window.location.href = "viewjobs.asp?sortby=" & sort & "&SortOrder=0"
end if
s = window.location.href
msgbox(s)
end sub
</script>
<a href="#" onclick="headerclick('jobtitle')">Job Title<img src="../images/up.gif" border="0"></a>
so when the user clicks on the title is sorts it by ASC then if you click it again by DESC.
please can some one help me, or if there is an easyer way do tell
thank you very much for the help
<script language="VBScript">
dim mbOrder, s
sub headerclick(sort)
mborder = not mborder
if mborder then
window.location.href = "viewjobs.asp?sortby=" & sort & "&SortOrder=1"
else
window.location.href = "viewjobs.asp?sortby=" & sort & "&SortOrder=0"
end if
s = window.location.href
msgbox(s)
end sub
</script>
<a href="#" onclick="headerclick('jobtitle')">Job Title<img src="../images/up.gif" border="0"></a>
so when the user clicks on the title is sorts it by ASC then if you click it again by DESC.
please can some one help me, or if there is an easyer way do tell
thank you very much for the help