[Javascript] Sorting Problem in Javascript
davecline at onebox.com
davecline at onebox.com
Mon Feb 9 14:14:28 CST 2004
Move you sort.xsl into the same directory as your page.
You're moving down one directory which may not be SSL or may send the MSXML object the notion that you are doing cross domain file access. Cross domain file access is considered any mixing of domain/directory/protocol. You can turn cross domain access on in IE through the security advance button. Make sure your scripts are also pulled from a SSL dir.
--
Dave Cline
davecline at onebox.com
www.bangeye.com/
-----Original Message-----
From: Rajkumar M <rajkumarr at jbsoftindia.com>
Sent: Thu, 5 Feb 2004 11:26:59 +0530
To: <Javascript at LaTech.edu>
Subject: [Javascript] Sorting Problem in Javascript
Hi Folks,
I am a silent spectator of this group these days and its my turn to get
some inputs from you guys,
Actually I want to sort the list of rows displayed using XML. Its working
fine in our internal server but not in external server. The only difference
is we are having SSL for the external server.
Here is the sample of code:
The script gives an exception ( 'list.item(...)' is null or not an
bject ) while executing the last line
xslob = new ActiveXObject("Microsoft.XMLDOM");
xslob.async = "false";
xslob.load ("../sort.xsl");
list = xslob.getElementsByTagName("xsl:apply-templates");
list.item(2).setAttribute("order-by",sortorder+sortcol); //Here the
problem comes
I think the list has no value that's why it is giving this exception. Why
the list has not loaded?
Any suggestions on this regard will be appreciated?
Thanks,
Rajkumar.
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript
More information about the Javascript
mailing list