Go Back   Google Chrome Forums > Chrome Chat > Chrome Tech


http://chromeplugins.org/frwrdicon.jpg
Top Tip : Click here to Boost Your PC & Chrome Browsing Speed
Reply
 
Thread Tools Display Modes
  #1  
Old 04-14-2009, 03:26 PM
Senior Member
 
Join Date: Apr 2009
Location: Qc, Canada
Posts: 495
Lightbulb Chrome extension and ressource xml

Hello everyone,

I'm still struggling with Chrome's extensions.
Right now i'm trying to create an extension that would use a config.xml located in your "load-extension" folder.

I tried using the usual Chrome javascript syntax for loading xml files

Code:
var xmlhttp = new window.XMLHttpRequest();
xmlhttp.open("GET",path,false);
xmlhttp.send(null);
xmlDoc = xmlhttp.responseXML.documentElement;
The path variable here is
"chrome-extension://aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1/config.xml"

Where aaaaaaaa[...]aa1 is my extension ID.
I can access config.xml through the browser.. however the XMLHttpRequest doesn't seem to be able to find it.

Whenever I try this code, I get a NETWORK_ERR : XMLHttpRequest error 101.

I was wondering if anyone got something similar to work.

If not, is there any known way to offer some sort of cheap configuration for your extensions ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
AdSweep.crx extension for Chrome calande Chrome Plugins 13 09-13-2009 03:27 AM




Chrome Central - Chrome Talk - Chrome Tips and Tricks - Chrome Plugins - Chrome Themes - Chrome Tools - Bugs and Vulnerabilities - Chrome Tech - General Chat


All times are GMT. The time now is 01:12 AM.


Powered by vBulletin® Version 3.7.4 PL1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Google Chrome and Google™ is a Trademark of Google Inc
This site chromeplugins.org is not affiliated with or sponsored by Google Inc.
Thanks: Taree SEO Forum and John