wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes How to run my small simple Ajax program? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How to run my small simple Ajax program?" Watch "How to run my small simple Ajax program?" New topic
Author

How to run my small simple Ajax program?

Elahe Shafie
Ranch Hand

Joined: Dec 12, 2001
Posts: 291
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




Thanks,
Elahe
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

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.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Elahe Shafie
Ranch Hand

Joined: Dec 12, 2001
Posts: 291
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

Joined: Jan 10, 2002
Posts: 60810
    
  65

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

Joined: Dec 12, 2001
Posts: 291
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

Joined: Jan 10, 2002
Posts: 60810
    
  65

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

Joined: Dec 12, 2001
Posts: 291
I am using IE,so should I still use it? or it is just for Firefox?
Elahe Shafie
Ranch Hand

Joined: Dec 12, 2001
Posts: 291
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

Joined: Jan 10, 2002
Posts: 60810
    
  65

Why would you test your app on just IE? Is it only for IE users?
Elahe Shafie
Ranch Hand

Joined: Dec 12, 2001
Posts: 291
Yes all my clients use IE.....
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

Well, you'll need to find an IE debugger. I don't use IE, so I don't know of any,
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30138
    
150

IE 8 has a debugger built in.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Elahe Shafie
Ranch Hand

Joined: Dec 12, 2001
Posts: 291
Sure thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to run my small simple Ajax program?
 
Similar Threads
How to display value in combo box using AJAX
Regading getElementById
AJAX implementation is giving problem
Ajax Suggest
problem with sending # character through ajax