Ok, path was wrong - sorted now - thx all
nolner wrote:
>
> Ok - well just adding the '/' prefix to the filepaths removed the errors -
> but the js is still not being loaded. Here's my .htaccess :
>
> # Rewrite rules for Zend Framework
> RewriteEngine on
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteRule .* index.php
>
> # Security: Don't allow browsing of directories
> Options -Indexes
>
> # PHP settings
> php_flag magic_quotes_gpc off
> php_flag register_globals off
> php_flag short_open_tag on
>
> thx, n
>
> Matthew Weier O'Phinney-3 wrote:
>>
>> -- nolner <[EMAIL PROTECTED]> wrote
>> (on Thursday, 31 July 2008, 06:42 PM -0700):
>>>
>>> My layout file starts thus:
>>>
>>> <?php echo $this->doctype() ?><html
>>> xmlns="http://www.w3.org/1999/xhtml">
>>> <head>
>>> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
>>> <script src="libajax/scriptaculous-js-1.8.1/prototype.js"
>>> type="text/javascript"></script>
>>> <script src="libajax/scriptaculous-js-1.8.1/scriptaculous.js"
>>> type="text/javascript"></script>
>>>
>>> This is giving me a 'missing ; before statement' error in Firebug - on
>>> clicking the link there I get this strange error (ZF seems to think the
>>> libajax directory should be the name of an action!?):
>>
>> Methinks you have a bad RewriteRule somewhere. Can you send your
>> .htaccess or rewrite rules to the list, as well as your directory
>> layout?
>>
>> Also, you will likely want to prefix your script src attributes with a
>> leading '/' -- otherwise, your browser will be making the requests
>> relative to your current URL.
>>
>> In other words, like the following:
>>
>> <script src="/libajax/scriptaculous-js-1.8.1/prototype.js"
>> type="text/javascript"></script>
>>
>>> <br />
>>> 2Fatal error: Uncaught exception 'Zend_Controller_Action_Exception' with
>>> message 'Action "libajax" does not exist and was not trapped
>>> in
>>> __call()' in C:\wampserver\www\library\Zend\Controller\Action.php:477
>>> 3Stack trace:
>>> 4#0 C:\wampserver\www\library\Zend\Controller\Action.php(504):
>>> Zend_Controller_Action->__call('libajaxAction', Array)
>>> 5#1
>>> C:\wampserver\www\library\Zend\Controller\Dispatcher\Standard.php(293):
>>> Zend_Controller_Action->dispatch('libajaxAction')
>>> 6#2 C:\wampserver\www\library\Zend\Controller\Front.php(914):
>>> Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http),
>>> Object(Zend_Controller_Response_Http))
>>> 7#3 C:\wampserver\www\life\index.php(58):
>>> Zend_Controller_Front->dispatch()
>>> 8#4 {main}
>>> 9 thrown in C:\wampserver\www\library\Zend\Controller\Action.php on line
>>> 477<br />
>>>
>>> And the libs are not loaded. It's got me flumuxed - any ideas? I'm fully
>>> up
>>> to date with zf 1.5.3 and the latest prototype and scriptaculous.
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Weird-error-using-Prototype-for-Ajax-in-ZF---action-does-not-exist%21-tp18766753p18766753.html
>>> Sent from the Zend Framework mailing list archive at Nabble.com.
>>>
>>
>> --
>> Matthew Weier O'Phinney
>> Software Architect | [EMAIL PROTECTED]
>> Zend Framework | http://framework.zend.com/
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/Weird-error-using-Prototype-for-Ajax-in-ZF---action-does-not-exist%21-tp18766753p18768632.html
Sent from the Zend Framework mailing list archive at Nabble.com.