G
Gianluca
Hi all,
I developed a portal using Joomla 1.0.13 and Joomlajax (a plugin to
implement Ajax in Joomla, based on Scriptaculous and Prototype) as
core.
I added some javascript code on index.php to use the XMLHttpRequest
object and all work fine on IE 6, FF, Opera, and Safari but I've a lot
of trouble with IE 7 on XP and Vista: "Access Denied" when I click on
some link.
The problem isn't systematic: sometime I can resolve with a refresh of
the page, sometime it seem impossible to view the page.
On my system (Windows XP + IE 7) I NEVER seen the problem.
I checked for a possibile "cross-domain", but all script that I call
are in the same domain.
This is the implementation for the XMLHttpRequest object:
function createQCObject() {
var xmlhttp=false;
/* running locally on IE5.5, IE6, IE7 */
if(location.protocol=="file:"){
if(!xmlhttp)
try{
xmlhttp=new ActiveXObject("MSXML2.XMLHTTP");
}
catch(e){
xmlhttp=false;
}
if(!xmlhttp)
try{
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
catch(e){
xmlhttp=false;
}
}
/* IE7, Firefox, Safari, Opera... */
if(!xmlhttp)
try{
xmlhttp=new XMLHttpRequest();
}
catch(e){
xmlhttp=false;
}
/* IE6 */
if(typeof ActiveXObject != "undefined"){
if(!xmlhttp)
try{
xmlhttp=new ActiveXObject("MSXML2.XMLHTTP");
}
catch(e){
xmlhttp=false;
}
if(!xmlhttp)
try{
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
catch(e){
xmlhttp=false;
}
}
/* IceBrowser */
if(!xmlhttp)
try{
xmlhttp=createRequest();
}
catch(e){
xmlhttp=false;
}
return xmlhttp;
}
Any ideas/suggestions?
Thanks in advance.
Gianluca
I developed a portal using Joomla 1.0.13 and Joomlajax (a plugin to
implement Ajax in Joomla, based on Scriptaculous and Prototype) as
core.
I added some javascript code on index.php to use the XMLHttpRequest
object and all work fine on IE 6, FF, Opera, and Safari but I've a lot
of trouble with IE 7 on XP and Vista: "Access Denied" when I click on
some link.
The problem isn't systematic: sometime I can resolve with a refresh of
the page, sometime it seem impossible to view the page.
On my system (Windows XP + IE 7) I NEVER seen the problem.
I checked for a possibile "cross-domain", but all script that I call
are in the same domain.
This is the implementation for the XMLHttpRequest object:
function createQCObject() {
var xmlhttp=false;
/* running locally on IE5.5, IE6, IE7 */
if(location.protocol=="file:"){
if(!xmlhttp)
try{
xmlhttp=new ActiveXObject("MSXML2.XMLHTTP");
}
catch(e){
xmlhttp=false;
}
if(!xmlhttp)
try{
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
catch(e){
xmlhttp=false;
}
}
/* IE7, Firefox, Safari, Opera... */
if(!xmlhttp)
try{
xmlhttp=new XMLHttpRequest();
}
catch(e){
xmlhttp=false;
}
/* IE6 */
if(typeof ActiveXObject != "undefined"){
if(!xmlhttp)
try{
xmlhttp=new ActiveXObject("MSXML2.XMLHTTP");
}
catch(e){
xmlhttp=false;
}
if(!xmlhttp)
try{
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
catch(e){
xmlhttp=false;
}
}
/* IceBrowser */
if(!xmlhttp)
try{
xmlhttp=createRequest();
}
catch(e){
xmlhttp=false;
}
return xmlhttp;
}
Any ideas/suggestions?
Thanks in advance.
Gianluca