Welcome to WebmasterWorld Guest from 23.20.179.211

Forum Moderators: open

Message Too Old, No Replies

Geting 500 Internal error

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

New User

5+ Year Member

joined:Dec 6, 2011
posts: 6
votes: 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.
9:19 am on Dec 6, 2011 (gmt 0)

Senior Member

WebmasterWorld Senior Member penders is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:July 3, 2006
posts: 3123
votes: 0


When you press enter is it submitting your form?
9:44 am on Dec 6, 2011 (gmt 0)

New User

5+ Year Member

joined:Dec 6, 2011
posts: 6
votes: 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.
1:27 pm on Dec 6, 2011 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

joined:Apr 9, 2011
posts:13678
votes: 440


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.
5:29 pm on Dec 6, 2011 (gmt 0)

Senior Member

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 28, 2004
posts:7999
votes: 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.
9:28 am on Dec 8, 2011 (gmt 0)

New User

5+ Year Member

joined:Dec 6, 2011
posts: 6
votes: 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 :)
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members