Suggestions
From PlainOldWebserver
Click on the '+' sign above to add a new entry.
Contents |
Custom error pages
Is it possible to define a custom 404 error page for POW? If not, could it be added to the wishlist, please?
Additional pow_server variables
pow_server.ROOT_DIRECTORY -- should return the "/pow/htdocs" directory
pow_server.DATA_DIRECTORY -- for the sqlite databases directory "/pow/data"
there should be a directory listing function
added for pow 1.4 http://davidkellogg.com/wiki/Pow_list_dir
Proxy
FOR XULRunner Version: Ability to set a proxy server for use with commands likes Like
var contents = pow_file("http://www.yahoo.com/")
var contents = pow_download_file('http://www.yahoo.com/');
The Addon version uses Firefox's proxy setting so its not a problem for that version.
pow_securewrite
As I was walking to work this morning I was thinking how can I do ssl on pow server. Then I realized that with POW you have access to both end of the connection so you don't need to use public key for message passing. You can use symmetric encryption to secure your connection. Lets think about how we can make this work. -- Dave will look into True SSL with POW
Dojo Offline
Could you elaborate on the notes below: Because I don't see what the point would be. Since if you are using Pow you are not ever offline even when your local machine is not connected to the internet.
Link pow to Dojo Offline as an alternative backend. Google Gears is another project with similar aims but it's a closed end solution.
I do link to google gears here http://davidkellogg.com/wiki/POW_Competition
Extend Ajax functionality
Extend the ajax functions in POW to allow for more flexible usage. I wrote an ajax lib for POW (Pajax) based on xajax which I think fills the role. Please feel free to use/modify it as you see fit. You can find it on the google group in the files section.
Share javascript code between server and client
As far as I understand POW, JS code in <sjs> tags is executed on the server, while code in <script> tags is executed on the client. It would be nice if code could be defined to run both on the server and the client. This is useful for validating user input for example. The function doing the validation could be called both on the client and the server.
Jaxer is a javascript server that combines the Apache and the Mozilla engine. It has some nice functions for transparently calling server code from the server. A function can be defined as "proxy", which will cause a stub to be generated for the client, that will call the function on the server via AJAX. I think some of these ideas could be implemented in POW.
Example:
<html>
<?sjs
// code runs on server
function saveUserInput(data) {
validateInput(data);
....
}
saveUserInput.proxy = true;
?>
<?sjs-both
// code runs on server and client
function validateInput(data) {
....
}
?>
<script>
// code runs on client
...
validateInput(data);
...
saveUserInput(data);
</script>
</html>
--Stw 07:52, 27 January 2008 (PST)
Proxy server
How about implementing a proxy server in POW? e.g. POW on firefox listens on port 8888, either restricted to localhost or allowing connections from the network. Connections are completed according to proxy.pac. The advantage to this over native proxies (such as tinyproxy, squid, etc.) is that they can't use proxy.pac.
OpenID module
An implementation of OpenID authentication in sjs would be great. Examples in PHP, Ruby and Python are here. Forum topic asking for an implementation in Jaxer here. Being able to use a Yubikey on POW forms is one advantage, though that might be accomplished with sjs if a module was implemented for that directly. Mardeg 13:49, 31 May 2008 (PDT)
