Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Updated all form 'action' to point to http://form-data.appspot.com/ :)
Browse files Browse the repository at this point in the history
  • Loading branch information
cheeaun committed Jul 21, 2009
1 parent 9a186b5 commit 3b8382c
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 19 deletions.
2 changes: 1 addition & 1 deletion Demos/MooEditable/MooEditable.Extras.SilkTheme.html
Expand Up @@ -44,7 +44,7 @@

<h1>MooEditable example with extra toolbar items</h1>

<form id="theForm" method="post" action="http://xrado.hopto.org/post.php">
<form id="theForm" method="post" action="http://form-data.appspot.com/">

<label for="textarea-1">Textarea 1</label>
<textarea id="textarea-1" name="editable1">
Expand Down
2 changes: 1 addition & 1 deletion Demos/MooEditable/MooEditable.Extras.html
Expand Up @@ -43,7 +43,7 @@

<h1>MooEditable example with extra toolbar items</h1>

<form id="theForm" method="post" action="http://xrado.hopto.org/post.php">
<form id="theForm" method="post" action="http://form-data.appspot.com/">

<label for="textarea-1">Textarea 1</label>
<textarea id="textarea-1" name="editable1">
Expand Down
2 changes: 1 addition & 1 deletion Demos/MooEditable/MooEditable.Forecolor.html
Expand Up @@ -44,7 +44,7 @@

<h1>MooEditable example with an example Button Overlay</h1>

<form id="theForm" method="post" action="http://xrado.hopto.org/post.php">
<form id="theForm" method="post" action="http://form-data.appspot.com/">

<label for="textarea-1">Textarea 1</label>
<textarea id="textarea-1" name="editable1">
Expand Down
2 changes: 1 addition & 1 deletion Demos/MooEditable/MooEditable.Group.html
Expand Up @@ -50,7 +50,7 @@ <h1>MooEditable basic example</h1>

<div id="toolbar"></div>

<form id="theForm" method="post" action="http://xrado.hopto.org/post.php">
<form id="theForm" method="post" action="http://form-data.appspot.com/">

<label for="textarea-1">Textarea 1</label>
<textarea id="textarea-1" name="editable1">
Expand Down
2 changes: 1 addition & 1 deletion Demos/MooEditable/MooEditable.Smiley.html
Expand Up @@ -44,7 +44,7 @@

<h1>MooEditable example with an example Button Overlay</h1>

<form id="theForm" method="post" action="http://xrado.hopto.org/post.php">
<form id="theForm" method="post" action="http://form-data.appspot.com/">

<label for="textarea-1">Textarea 1</label>
<textarea id="textarea-1" name="editable1">
Expand Down
2 changes: 1 addition & 1 deletion Demos/MooEditable/MooEditable.UI.ButtonOverlay.html
Expand Up @@ -79,7 +79,7 @@

<h1>MooEditable example with an example Button Overlay</h1>

<form id="theForm" method="post" action="http://xrado.hopto.org/post.php">
<form id="theForm" method="post" action="http://form-data.appspot.com/">

<label for="textarea-1">Textarea 1</label>
<textarea id="textarea-1" name="editable1">
Expand Down
23 changes: 13 additions & 10 deletions Demos/MooEditable/MooEditable.ajax-submit.html
Expand Up @@ -23,27 +23,32 @@

<script type="text/javascript">
window.addEvent('load', function(){
mooeditable = $('textarea-1').mooEditable();
var mooeditable = $('textarea-1').mooEditable();

// Post submit
$('theForm').addEvent('submit', function(e){
alert($('textarea-1').value);
return true;
});
});

// Ajax submit
function updateContent(){
mooeditable.saveContent();
}
// Ajax submit - This can't work locally and cross-domain
$('ajaxSubmit').addEvent('click', function(e){
e.stop();
mooeditable.saveContent(); // always run this function before sending anything via AJAX
new Request({
url: '/path/to/some/url',
data: $('theForm')
}).send();
});
});
</script>

</head>
<body>

<h1>MooEditable example with AJAX submit</h1>

<form id="theForm" method="post" action="http://xrado.hopto.org/post.php">
<form id="theForm" method="post" action="http://form-data.appspot.com/">

<label for="textarea-1">Textarea 1</label>
<textarea id="textarea-1" name="editable1">
Expand All @@ -52,11 +57,9 @@ <h1>MooEditable example with AJAX submit</h1>

<input type="submit">

<input type="button" onclick="updateContent(); new Request.HTML({url:'http://xrado.hopto.org/post.php',data:$('theForm'),update:$('data')}).send()" value="Ajax submit">
<button id="ajaxSubmit">Ajax submit (view source)</button>

</form>

<div id="data"></div>

</body>
</html>
2 changes: 1 addition & 1 deletion Demos/MooEditable/MooEditable.custom-toolbarbuttons.html
Expand Up @@ -40,7 +40,7 @@

<h1>MooEditable example with customized toolbar buttons</h1>

<form id="theForm" method="post" action="http://xrado.hopto.org/post.php">
<form id="theForm" method="post" action="http://form-data.appspot.com/">

<label for="textarea-1">Textarea 1</label>
<textarea id="textarea-1" name="editable1">
Expand Down
2 changes: 1 addition & 1 deletion Demos/MooEditable/MooEditable.html
Expand Up @@ -38,7 +38,7 @@

<h1>MooEditable basic example</h1>

<form id="theForm" method="post" action="http://xrado.hopto.org/post.php">
<form id="theForm" method="post" action="http://form-data.appspot.com/">

<label for="textarea-1">Textarea 1</label>
<textarea id="textarea-1" name="editable1">
Expand Down
1 change: 0 additions & 1 deletion README.md
Expand Up @@ -25,7 +25,6 @@ Requirements
* Element.Style
* Element.Dimensions
* Selectors
* Request.HTML (if uses AJAX submit)

Examples
--------
Expand Down

0 comments on commit 3b8382c

Please sign in to comment.