Try removing the asterisk in the end of the domain, it is not a regular match pattern, so there is no need for it. (Keep chromium-extensions as a recipient, please.)
You said you received a "strange error", you meant a strange behavior (an empty responseText) or a strange JavaScript error? If it is indeed a strange error, please, paste it in your reply. And I just looked at your code more carefully - you cannot get the responseText if the readyState is not 4. I know this should not be the situation, but try putting the "var output = httpRequest.responseText;" after the readyState assertion. ☆PhistucK On Mon, Jan 11, 2010 at 00:10, Ildiko Pocsai <ildiko.pocsa...@gmail.com>wrote: > Hi! > > First of all, thank you for your answer! I verified my manifest file and I > have the domain included in it. Here is the manifest file: > > { > > "name":"cirip", > "version":"1.0", > "desciption":"A Cirip button in your toolbar.", > "icons":{"128":"cirip.png"}, > "permission":[ > "http://www.cirip.ro/*", > "tabs" > ], > "browser_action":{ > "default_icon":"cirip.png", > "default_title":"Cirip", > "popup":"popup.html" > } > } > > But it is still not working. Do I need to include permission anywhere else? > Or could give another possible solution to making the request? > > Thanks in advance, > > Ildi > > On Sun, Jan 10, 2010 at 9:58 PM, PhistucK <phist...@gmail.com> wrote: > >> Make sure you set the domain in the "permissions" section in the manifest. >> >> ☆PhistucK >> >> >> On Sun, Jan 10, 2010 at 12:18, ildi <ildiko.pocsa...@gmail.com> wrote: >> >>> Hello! >>> >>> I'm trying to develop an extension that retrieves messages from a >>> blog, but I receive a strange error at httprequest. The request is >>> executed because readystate = 4 but the responsetext is empty and >>> status is null. I post my code here: >>> >>> function s1(){ >>> var url = " >>> http://www.cirip.ro/php/firefox/mesajev2.php?"; >>> >>> >>> url+="user="+document.getElementById("login").value; >>> >>> url+="&pass="+document.getElementById("pass").value; >>> >>> url+="&lang=RO"; >>> ajax(url); >>> } >>> >>> var httpRequest = null; >>> >>> function ajax(url){ >>> >>> httpRequest = new XMLHttpRequest(); >>> httpRequest.open('GET', url, true); >>> httpRequest.onreadystatechange = infoReceived; >>> >>> httpRequest.send(''); >>> >>> } >>> >>> >>> function infoReceived(){ >>> >>> var output = httpRequest.responseText; >>> >>> if (httpRequest.readyState == 4){ >>> >>> document.getElementById("signin").style.visibility = "hidden"; >>> >>> document.getElementById("workspace").style.display = ""; >>> >>> } >>> } >>> >>> Could anyone tell me what the problem is. The url used by ajax >>> function is corect because if I put it directly in the browser the >>> messages appear. So I really don't have an idea what is the matter >>> with responsetext. Any help is welcome. >>> >>> Thanks! >>> >>> Ildi >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Chromium-extensions" group. >>> To post to this group, send email to >>> chromium-extensi...@googlegroups.com. >>> To unsubscribe from this group, send email to >>> chromium-extensions+unsubscr...@googlegroups.com<chromium-extensions%2bunsubscr...@googlegroups.com> >>> . >>> >>> For more options, visit this group at >>> http://groups.google.com/group/chromium-extensions?hl=en. >>> >>> >>> >>> >> >--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To post to this group, send email to chromium-extensi...@googlegroups.com.
To unsubscribe from this group, send email to chromium-extensions+unsubscr...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/chromium-extensions?hl=en.