Local
From WidgetAvenue Wiki
Widgets powered by the WidgetAvenue platform can run on a local server, for development purposes.
Installation method
Create an html file on your local server called localwa.html with the following content:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <script type="text/javascript" src="http://www.widgetavenue.com/wdg/loaders/loc_js.php?[encoded list of your widget prefs]"></script> </head> <body> <div id="ldWidget"></div> </body> </html>
The arguments of the script file to call depend on your widget. For example, if you are developing a waHTML/waJS widget, temporarily located on your local server at http://127.0.0.1/HelloWorld.html, then you will need to call the following script:
<script type="text/javascript" src="http://www.widgetavenue.com/wdg/loaders/loc_js.php?root=html&url=http%3A%2F%2Fmyserver.com%2FHelloWorld.html"/>
Once you have entered the relevant script src attribute, save your localwa.html file, and open with your browser, with the relevant path. For example, if your localwa.html file is located at the root level of your local server, open it using the following url:
http://127.0.0.1/localwa.html
Issues
- Don't use "http://localhost/..." to call your localwa.html file, or ressources stored on your local server. Use "http://127.0.0.1/..." instead
- Be sure to comply with the guidelines detailed on this wiki, which are not enforced by this method. Once your widget has been developed, take time to test it on the various host platforms you want to be compatible with.
- It is not possible to use a local meta file
