[pmwiki-users] Strange problem...

Patrick R. Michaud pmichaud at pobox.com
Tue May 23 12:19:03 CDT 2006


On Tue, May 23, 2006 at 12:29:32PM -0400, The Editor wrote:
> Hi all,
> 
> I seem to be having a problem with the online version of my site.  I
> am using enable html to run a javascript-powered order form, and it
> works perfect offline.  But in the uploaded version it seems to act as
> if the js file is not being pulled.  ie, function not defined errors.
> It should instantly calculate the price for example when you enter
> quantity.
> 
> The page is found at http://www.fast.st/fastwiki/fast/index.php?n=Store.OrderNow

That page contains the following:

    <script src="../system/cookbook/order.js"></script>

Any file that needs to be accessible by a browser belongs in
the pub/ directory somewhere, and not in cookbook/ .  Since the
cookbook/ directory is protected from external access, the
browser is unable to load the order.js file.

(The cookbook/ directory probably has a .htaccess file in it
that is blocking access to the files in the directory.  Still,
order.js belongs in pub/ somewhere.)

Pm




More information about the pmwiki-users mailing list