AJAX POST handler causing “uncaught exception”

前端 未结 2 663
抹茶落季
抹茶落季 2020-12-09 19:55

So I\'ve been banging my head against my desk for a few hours on this one and i\'m not getting anywhere so help would really be appreciated.

The code below has two j

相关标签:
2条回答
  • 2020-12-09 20:18

    Thx for posting the solution. Similarly banged my head for a while trying to solve a similar problem with NS_ERROR_NOT_AVAILABLE without luck. Useful for for people using Django <--> Javascript to do XMLHttpRequests as well. On the Django side, there is an

       error: [Errno 32] Broken pipe 
    

    ...that corresponds with the NS_ERROR that appears in the firebug console for the JS failure.(googleBait) It's hard to know where to start tracing the problem - server side or client side.

    Thx again.

    0 讨论(0)
  • 2020-12-09 20:20

    PROBLEM SOLVED: so in the html markup the form that holds the fields of data should have an

    onsubmit="return false;"
    

    in it!

    Thanks for all the help guys, I have implemented all your suggestions and my code is now soooo much smaller and easier to manage!

    Cheers

    Simon

    0 讨论(0)
提交回复
热议问题