• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to run my small simple Ajax program?

 
Elahe Shafie
Ranch Hand
Posts: 291
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks,
I am very new in Ajax and trying to run an simle example from W3schools website. I have uploaded the HTML and js files on the server to run AJAXSuggest.html on server. I entered "E" on First name input, I expected to see these suggestions.... Eva , Eve , Evita , Elizabeth , Ellen....., But I received nothing and in front of the Suggestions is null.

First name:
Suggestions: Eva , Eve , Evita , Elizabeth , Ellen


Can you help me to see what I am doing wrong?
Really appreciate your help.
Elahe

I have posted the link to test it yourself.
AJAXSuggest.html



1. AJAXSuggest.html



2.clienthint.js



 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65124
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, but the red text is too hard to read. Also, please be sure to use code tags when posting code to the forums. Unformatted code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please read this for more information.

You can go back and change your post to add code tags and remove the spurious color by clicking the button on your post.
 
Elahe Shafie
Ranch Hand
Posts: 291
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Many thnaks for the hint I added code tag to my forum.

Hope now somebody can help me on my program.

Thanks,

Elahe
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65124
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Much better!

Next is to define what 'But It doesn't work" means. Please read this for more information.

Have you used Firebug to debug the issue?
 
Elahe Shafie
Ranch Hand
Posts: 291
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks again. Hope it is better now.

I use Dreamweaver to write my code.

Do I have to use another editor application? if so, is it the rite link to download it:

http://firebug.en.softonic.com/

Thanks,
Elahe
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65124
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Firebug is not an editor, it is a plugin to Firefox that helps you to debug JavaScript, especially when Ajax is concerned. Use it to see what is happening with your Ajax request.
 
Elahe Shafie
Ranch Hand
Posts: 291
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using IE,so should I still use it? or it is just for Firefox?
 
Elahe Shafie
Ranch Hand
Posts: 291
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Update:

I fixed my issue as one ASP file was missing on my server, so I have added "gethint.asp" to the server so it works fine now.

But I appreciate if you answer my question that if I need firebug when I am using IE8.



 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65124
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why would you test your app on just IE? Is it only for IE users?
 
Elahe Shafie
Ranch Hand
Posts: 291
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes all my clients use IE.....
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65124
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, you'll need to find an IE debugger. I don't use IE, so I don't know of any,
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34863
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
IE 8 has a debugger built in.
 
Elahe Shafie
Ranch Hand
Posts: 291
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic