This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » support » General discussion » AJAX is not defined error
AJAX is not defined error [message #55460] Fri, 04 July 2008 07:47 Go to next message
vishnu  is currently offline 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 #55486 is a reply to message #55460 ] Fri, 04 July 2008 13:30 Go to previous messageGo to next message
debach  is currently offline debach
Messages: 15
Registered: February 2007
Junior Member
Can you open "/sf/prototype/js/prototype.js" in your browser (e.g.: "localhost/sf/prototype/js/prototype.js")? You likely did not set your /sf/ path alias correctly in your httpd.conf.
Re: AJAX is not defined error [message #55527 is a reply to message #55486 ] Sat, 05 July 2008 06:54 Go to previous messageGo to next message
vishnu  is currently offline 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 #55530 is a reply to message #55460 ] Sat, 05 July 2008 11:58 Go to previous messageGo to next message
debach  is currently offline debach
Messages: 15
Registered: February 2007
Junior Member
add the following lines to you httpd.conf:
<Directory "C:/wamp/php/PEAR/data/symfony/web/sf">
 AllowOverride All
 Allow from All
</Directory>
Re: AJAX is not defined error [message #55614 is a reply to message #55530 ] Mon, 07 July 2008 14:26 Go to previous messageGo to next message
vishnu  is currently offline 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 #65404 is a reply to message #55614 ] Tue, 18 November 2008 09:29 Go to previous messageGo to next message
kannapiran_86  is currently offline kannapiran_86
Messages: 129
Registered: February 2008
Location: Chennai
Senior Member
Check your database corresponding name and if the entered username is in database means add some more random numbers with the manually typed username.
Re: AJAX is not defined error [message #72213 is a reply to message #55460 ] Thu, 12 February 2009 13:42 Go to previous message
halfer  is currently offline 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
Previous Topic:SPEED TIP: refrain from using partials inside loops
Next Topic:Required field?
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software