Did some of you have this problem with zikula ?
this happend when you try to access a different domain with Ajax stuffs.
Some people says that the best solution is to use a proxy like this
http://www.troywolf.com/articles/#PHP
but i m not convinced ?
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- internetking created topic »password problem« 25. May
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
- mdee created topic »How to implement returnpage ?« 25. May
- nestormateo responded to »Fillters in Clip« 24. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
uncaught exception: Permission refusée d'appeler la méthode XMLHttpRequest.open
-
- Rank: Developer
- Registered: May 17, 2004
- Last visit: Apr 08, 2010
- Posts: 386
-
- Rank: Developer
- Registered: May 17, 2004
- Last visit: Apr 08, 2010
- Posts: 386
i think i found what i wanted
http://www.xml.com/pub/a/2005/12/21/json-dynamic-script-tag.html?page=1
this way you add an element to your website, which will allow you to do the request to the server
for the moment i ve got some problem, with this (authid, not working, but the query are done to all the servers)
Code
var siteCounter;
var userLoginstatus=false;
var generalResult;
function multiLogin(){
if(userLoginstatus == false) {
siteCounter=0;
$('#headers').css('cursor','wait');
userLoginstatus = true;
generalResult = true;
userLogin("http://mysite1.com");
userLogin("http://mysite2.fr");
userLogin("http://mysite3.org");
userLogin("http://mysite4.org");
userLogin("http://mysite5.org");
}
}
function userLogin(host)
{
//TODO timeout
var request= host +"/index.php?"
+ "module=Utilisateurs&"
+ "type=user&"
+ "func=login&"
+ "uname="+ $("#uname").val()+"&"
+ "pass="+$("#pass").val()+"&"
+ "rememberme="+$("#rememberme").val()+"&"
+ "url=" +$("#url").val()+"&"
+ "authid="+$("#authid").val() ;
request = request+"&callback=userLogin_response";
//window.open(request);
aObj = new JSONscriptRequest(request);
aObj.buildScriptTag();
aObj.addScriptTag();
}
function userLogin_response(originalRequest)
{
generalResult = generalResult & originalRequest.result;
siteCounter++;
alert(siteCounter);
if ( siteCounter == 5 ){
aObj.removeScriptTag();
userLoginstatus = false;
// redirect
if (generalResult==false){
// login screen
///Utilisateurs/loginscreen/
window.location.href = getH()+ "/index.php?module=Utilisateurs&func=loginscreen";
}else{
// user page /Profil
window.location.href = getH()+ "/index.php?module=Profil";
}
}
}
edited by: mumuri, Aug 30, 2008 - 12:30 PM
- Moderated by:
- Support
