homepage Welcome to WebmasterWorld Guest from 54.227.56.174
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
Geting 500 Internal error
Praf




msg:4394662
 8:38 am on Dec 6, 2011 (gmt 0)

I have application develpoed in using Javascirpt and Ajax functionality. Scenario is that when I clicked on Ajax functionality button on a search of a particular function it populates list from DB but when I pressed enter button instead of clicking Ajax button, then it shows error message as Webpage cannot be dispayed. Can anyone suggest a answer for this why it is not working properly when i pressed enter button, but working properly by clicking Ajax button.

 

penders




msg:4394677
 9:19 am on Dec 6, 2011 (gmt 0)

When you press enter is it submitting your form?

Praf




msg:4394682
 9:44 am on Dec 6, 2011 (gmt 0)

No it was not submitting form, later i did changes in Internet option to get exact error message and i got below error message -->
500 Internal Server Error
Servlet error: Request[/CustomerMonDestAssignmentView] does not contain handler parameter named 'method'. This may be caused by whitespace in the label text.

lucy24




msg:4394743
 1:27 pm on Dec 6, 2011 (gmt 0)

How nice of them to suggest a cause. Is there whitespace in the label text, or is the server just babbling?

What does happen when you click Enter? If you haven't programmed it out explicitly, it may try to use a default-- probably involving values that you haven't set. (MSIE seems to be especially fond of pulling random NaN values out of a hat instead of just playing it safe with zero.) The 500 error is pretty extreme, though. Usually when I make a mistake in javascript the program just pretends it isn't there at all.

rocknbil




msg:4394824
 5:29 pm on Dec 6, 2011 (gmt 0)

Praf, this may help - a 500 error can't be caused by Javascript or Ajax alone. Javascript and Ajax are client-side technologies, that is, they are all executed in the browser. Whatever location your Ajax is sending to on the server is the point of error which is why penders asked:

is it submitting your form?


... whether it's a form or a "get parameter," the problem is in how the server is processing it. So work backwards from there: server errors <- my Ajax is sending malformed data so it can't process it.

Praf




msg:4395498
 9:28 am on Dec 8, 2011 (gmt 0)

Hi All...This issue got resolved now....I had written a onkeyDown event object to detect key got pressed and inside this i called click event..its working fine now....Thanks all for your help :)

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved