Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

updated docs for method stuff

  • Loading branch information...
commit 44eb3e791c862df30b728fa1b8a094e75d49300a 1 parent 90c9269
Benjamin Lupton authored
Showing with 8 additions and 1 deletion.
  1. +7 −1 demo/index.html
  2. +1 −0  demo/pages/eggplants.php
8 demo/index.html
View
@@ -166,6 +166,12 @@
*/
/**
+ * For this demo, it may be hosted on a server which does not support AJAX POST requests, so let's use AJAX GET requests instead
+ * For production you'll want to use POST which is the default - as this will allow you to send forms via ajaxy too.
+ */
+ 'method': 'get',
+
+ /**
* Define our Ajaxy Controllers.
* If you have ever done some work with the Model View Controller architecture for applications, then this should be quite familiar to you.
* If not I'll explain it anyway :-)
@@ -534,7 +540,7 @@
/**
* For this demo, it may be hosted on a server which does not support AJAX POST requests, so let's use AJAX GET requests instead
- * For production you'll want to use POST which is the default.
+ * For production you'll want to use POST which is the default - as this will allow you to send forms via ajaxy too.
*/
'method': 'get',
1  demo/pages/eggplants.php
View
@@ -21,6 +21,7 @@
<input type="submit" name="submit" />
</form>
<? endif; ?>
+ If this form does not submit properly, it is because the server this is hosted on does not support AJAX POST requests.
</div>
</body>
</html>
Please sign in to comment.
Something went wrong with that request. Please try again.