| AJAX is not defined error [message #55460] |
Fri, 04 July 2008 07:47  |
vishnu Messages: 30 Registered: May 2008 Location: bangalore |
Member |
|
|
hi.
i have a error when i try to execute "link to remote":
this is my code
link_to_remote('(check for availability)', array('update'=>'usercheck','url'=>'user/createAccount'),
array('class'=>'text_sm1'))
the browser show me:
AJAX is not defined.
if i view the source it will disply all javascript files:
<script type="text/javascript" src="/js/jquery-1.2.1.pack.js"></script>
<script type="text/javascript" src="/sf/sf_web_debug/js/main.js"></script>
<script type="text/javascript" src="/js/jquery-1.2.1.pack"></script>
<script type="text/javascript" src="/js/project_code.js"></script>
<script type="text/javascript" src="/js/jquery.jcarousel"></script>
<script type="text/javascript" src="/js/contact.js"></script>
<script type="text/javascript" src="/js/simplemodal.js"></script>
<script type="text/javascript" src="/sf/prototype/js/prototype.js"></script>
<script type="text/javascript" src="/js/jq/jquery.js"></script>
<link rel="stylesheet" type="text/css" media="screen" href="/sf/sf_web_debug/css/main.css" />
<link rel="stylesheet" type="text/css" media="screen" href="/css/main.css" />
<link rel="stylesheet" type="text/css" media="screen" href="/css/contact.css" />
<link rel="stylesheet" type="text/css" media="screen" href="/css/basic.css" />
<link rel="stylesheet" type="text/css" media="screen" href="/css/contact_ie.css" />
pl solve my problem
[Updated on: Fri, 04 July 2008 09:05] vishnu
|
|
|
|
| Re: AJAX is not defined error [message #55527 is a reply to message #55486 ] |
Sat, 05 July 2008 06:54   |
vishnu Messages: 30 Registered: May 2008 Location: bangalore |
Member |
|
|
hi.
i already created the alias in httpd.conf like this
<VirtualHost *:80>
ServerName captcha_demo
DocumentRoot "E:/siteroot/hooeey/captcha_demo/web"
DirectoryIndex index.php
[COLOR=red]Alias /sf "C:/wamp/php/PEAR/data/symfony/web/sf"[/COLOR]
<Directory "E:/siteroot/hooeey/captcha_demo/web">
AllowOverride All
</Directory>
</VirtualHost>
and also copy the JavaScript files in web/js directory:
cd E:\siteroot\hooeey\captcha_demo\web
mkdir sf/js
copy C:/wamp/php/PEAR/data/symfony/web/sf/prototype/js/*.js sf/js/
then i check in the browser:http://captcha_demo/sf/prototype/js/prototype.js
the browser displays following error:
Forbidden
You don't have permission to access /sf/prototype/js/prototype.js on this server.
if you type this way http://captcha_demo/js/prototype.js
it will shows the prototype.js script
[Updated on: Sat, 05 July 2008 07:07] vishnu
|
|
|
|
| Re: AJAX is not defined error [message #55614 is a reply to message #55530 ] |
Mon, 07 July 2008 14:26   |
vishnu Messages: 30 Registered: May 2008 Location: bangalore |
Member |
|
|
thank u!
the code is working.
one more problem is there.
how to display username suggetions like google displays the suggetions in signup page.
Attachment: suggest.bmp
(Size: 949.27KB, Downloaded 108 time(s))
[Updated on: Mon, 07 July 2008 14:29] vishnu
|
|
|
|
| Re: AJAX is not defined error [message #72213 is a reply to message #55460 ] |
Thu, 12 February 2009 13:42  |
halfer Messages: 9535 Registered: January 2006 Location: West Midlands, UK |
Faithful Member |
|
|
User @kayal added the following using the "Report to moderator" function - use "Reply" instead please:
| Quote: | i have auto completion for purchase no in purchase edit field, if i submit one no, that not in that auto completion, the form action redirect to update success how to solve this ...can u plz give soln... function showpurchasenumber() { //alert(do
|
Remember Palestine
|
|
|