Skip to content Skip to sidebar Skip to footer

Can I Test XMLHttpRequest() In SDK With Localhost?

The following code does not seem to work because when I try to get the 'chooser' in Google App Engine (Python) it is undefined: chooser = self.request.get('chooser') self.response

Solution 1:

Actually you're submitting the form twice. Once in writeToStorage via AJAX and also with the normal way with the the form. You will have to change two things.

  1. writeToStorage has to return false as the last action
  2. Change your onsubmit to onsubmit="return writeToStorage()"

This way you will prevent the default submission of your form, as it will be done via AJAX in writeToStorage


Post a Comment for "Can I Test XMLHttpRequest() In SDK With Localhost?"