Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

'thisPage.navigate' is null or not an object

Status
Not open for further replies.

xenology

Programmer
May 22, 2002
51
US
This one's buggin me like you wouldn't believe. I use this same code on numerous pages and it's only breaking on this one.

I use DTC Grid to disaply data and href the headings so the user can sort by that column. On this one page everything initially shows correctly but when you click the heading for any column to resort by that column I get the error message "Microsoft JSCRIPT runtime error: 'thisPage.navigate' is null or not an object".
<**************here's the code*********>
<html>
<head>
<script ID=&quot;serverEventHandlersVBS&quot; LANGUAGE=&quot;vbscript&quot; RUNAT=&quot;Server&quot;>

function SortAnchor(mySortKey,strHeading)
SortAnchor=&quot;<a href=javascript:thisPage.navigate.selectSortGroup('&quot; + mySortKey + &quot;')>&quot; + strHeading + &quot;</a>&quot;
end function

function selectSortGroup(mySortKey)
session(&quot;RqSort&quot;) = mySortKey
rstIncomming.close()
rstIncomming.open()
end function
</script>
</head>
On the page I have a DTC Grid and on the Data tab under field/expression I have:
LastName
And under Header I have:
=SortAnchor('2','Last Name') 'Note: Lastname is 2nd column

Lastly, I have a PageObject DTC on the page and on NavigateSortMethods tab I have added selectSortGroup.

Thanks for any help anyone can offer!
 
I got a fix for my problem. If anyone else searches on this thread and has the same problem....

My recordset that populated the grid had a row with NULL as the value. I included ISNULL in the criterial for the recordset to replace with &quot;none&quot; and everything started working.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top