homepage Welcome to WebmasterWorld Guest from 54.211.97.242
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

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#: 4394660 posted 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

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



 
Msg#: 4394660 posted 9:19 am on Dec 6, 2011 (gmt 0)

When you press enter is it submitting your form?

Praf



 
Msg#: 4394660 posted 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

WebmasterWorld Senior Member lucy24 us a WebmasterWorld Top Contributor of All Time Top Contributors Of The Month



 
Msg#: 4394660 posted 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

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



 
Msg#: 4394660 posted 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#: 4394660 posted 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