objHttpReq = new ActiveXObject('Msxml2.XMLHTTP');
Then do the OPEN/GET/SEND/etc on a local file.
Everything works fine, except...
Now all the regular HTTP links on the page-
Auto add "file:///...path..." to the front of the HREF
when hover over/click on.
How to cancel/reset back from "local" to "web" mode?
objHttpReq = false;
RE: ActiveXobject help...
Figured it out...
Nothing to do with the ActiveXobject.
Had to do with the way I was populating my cell...
was adding single-quotes(') around the href parms,
and the builtin method(?) was then also adding dbl-quotes(") around them.
var newRow = document.getElementById('symbtbl').insertRow(-1); // add at end
oCell = newRow.insertCell(0);
// Apostrophe = & # 39; (note- had to imbed spaces to prevent this board from converting on display)
oCell.innerHTML = '<a href=& # 39;http://web.site.url& # 39; target=& # 39;_blank& # 39;>Text</a>'
so the cell contained:
<a href="'http://web.site.url'"; target="'_blank'">Text</a>
Which caused the browser to treat the link as a local file, instead of an URL.
oCell.innerHTML = '<a href=http://web.site.url target=_blank>Text</a>'
so the cell contains:
<a href="http://web.site.url"; target="_blank">Text</a>
And now the browser treats correctly - an URL
Note- if populate including the dbl-quotes (& # 34 or & q uot )
the method still adds additional dbls around the parms,
but the browser appears to treat OK.
Last edited by LitlGreyCells; 06-13-2008 at 08:51 PM.
By Michael Arbel in forum Java
Last Post: 02-14-2001, 03:22 PM
Last Post: 12-06-2000, 04:13 PM
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL