About
Pricing
Community
Teams
Start Free Trial
Log in
Tim
asked on
4/27/2015
Table Sort function not working when table created in BehindFile
I am running a JavaScript table Sort function Within the header of my main ASP file:
<script src="sorttable.js"></scrip
t>
I am creating the table using my ASP BehindFile (via an AJAX call):
Response.Write("<table class=" & chr(34) & "sortable" & chr(34) & "border=" & chr(34) & "5" & chr(34) & ">")
Misc table data....
Response.Write("</table>")
The table comes out ok but the sort function is not enabled. The function worked when I was creating the table from my main ASP file, but when I moved it to the ASP BehindFile it stopped working.
Thanks
JavaScript
ASP
3
1
Last Comment
Tim
8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Rainer Jeschor
4/28/2015
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Tim
5/5/2015
ASKER
I am currently updating the page to asp.net from classic asp once completed I will circle back around with this issue to completion.
Thanks
Tim
5/6/2015
ASKER
Needed to add runat=server and needed to enclose the js file path in <%ResolveUrl=%> brackets.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
Thanks