İptal Edildi

Small jQuery/Mootools code fix

Hi,

I have a small problem with some mootools [url removed, login to view] code. The code is included below for you to view below.

I am able to get the form data to send to a page where i insert the data to the database. That is working corrctly and data is being dumped into db.

However after the form is submitted the refresher div is changing to the response code. I want the refresher div to reload and display the new search query results which will include the data i have just ent to the db from form submit.

I have the following code:

<div id="refresher">

SEARCH QUERY

</div>

<script type="text/javascript">

[url removed, login to view]('domready', function() {

$('test_form').addEvent('submit', function(e) {

//Prevents the default submit event from loading a new page.

[url removed, login to view]();

//Empty the log and show the spinning indicator.

var log = $('refresher').empty().addClass('ajax-loading');

[url removed, login to view]('send', {onComplete: function(response) {

[url removed, login to view]('ajax-loading');

[url removed, login to view]('html', response);

}});

//Send the form.

[url removed, login to view]();

});

});

</script>

<form id="test_form" action="[url removed, login to view]" method="post">

<input type="text" name="test_name" id="test_name" value="" size="25" />

<input type="text" name="test_age" id="test_age" value="" size="25" />

<input type="submit" name="button" id="submitter" />

</form>

Beceriler: AJAX, jQuery / Prototype, PHP

Daha fazlasını görün: ajax fix mootools, jquery include, include jquery, id to code, div search, code search, code get, code 30, reload page jquery, jquery reload page, jquery com, get code, type code, small jquery, refresher, jquery script, jquery html, input method, fix javascript, fix form, fix database, ENT, e fix, code fix, send ajax button

İşveren Hakkında:
( 23 değerlendirme ) Sheffield, United Kingdom

Proje NO: #704139

2 freelancer bu iş için ortalamada 45$ teklif veriyor

ranacseruet

I can do this..

in 2 gün içinde60$ USD
(43 Değerlendirme)
5.9
dangkhoaweb

This is simple job. Let me do it for you. Please view your PM

1 gün içinde 30$ USD
(24 Değerlendirme)
4.8