Sedang Disiapkan

Solve a bug in a jquery function

I need a jquery guru to fix a bug in an easy (not for me) function

I have a form with 2 buttons, if I click on a button will fadeIn the other one, send data via $.post to a php file

I use a DOM script but in this way the script change every buttons in the page, not only one

I need an external function in order to fix it !!!

Below my code

*************

Here my form

------------

<form id="add_friend-form-<?php echo $id;?>">

<input type="hidden" id="friend" value="<?php echo $friend_username;?>">

<input type="submit" id="add_friend-<?php echo $id;?>" name="Add Friend" class="add" value="Add Friend" />

</form>

<form id="cancel_request-form-<?php echo $id;?>" style="display:none;">

<input type="hidden" id="friend" value="<?php echo $friend_username;?>">

<input type="submit" id="cancel_request-<?php echo $id;?>" name="cancel"

class="cancel" value="Cancel Request" />

</form>

------------------

Here my DOM script

-----------------------

<script type="text/javascript">

// wait for the DOM to be loaded

$(document).ready(function() {

$('#geoselectform').ajaxForm(function(data) {

alert("1");

if (data==1) {

$('#example').html("<div id='message'></div>");

$('#message').html("<h2>Your geolocation has been updated!</h2>")

.append("<p>Thank you for using Jabberout.</p>")

.hide()

.fadeIn(1500, function() {

$('#message').append("<img id='checkmark' src='img/icons/[url removed, login to view]' />");

});

}

});

});

</script>

<script type="text/JavaScript">

$(document).ready(function(){

timestamp = 0;

$("form#add_friend-form-132").submit(function(){

$.post("actions/add_friend.php",{

JID: $("#JID").val(),

pass: $("#pass").val(),

friend: $("#friend").val(),

id: $("#id").val()

}, function(data) {

alert("Data Loaded: " + data);

$("#add_friend-form-132").hide();

$('#cancel_request-form-132').fadeIn();

});

return false;

});

});

</script>

-------------------

Kemahiran: AJAX, Javascript

Lihat lebih lanjut: jquery function, jquery submit bug, jquery cancel fadein, external function jquery, jquery cancel form submit, jid jquery, text guru, submit fix, jquery 2, guru message, guru lt, guru javascript, guru display, file guru, add guru, cancel request jquery submit, jquery cancel, money jquery bug, jquery val bug, png bug jquery hide, jquery cancel fadein function, jquery function finish, jquery bug name, jquery form submit bug, jquery val

Tentang Majikan:
( 27 ulasan ) Portogruaro, Italy

ID Projek: #368278

Dianugerahkan kepada:

fedmich

Hi jQuery expert here. Pls check PM :)

$30 USD dalam 0 hari
(23 Ulasan)
4.6

17 pekerja bebas membida secara purata $32 untuk pekerjaan ini

A2Design

We can fix this. See our skills at http://www.a2design.biz/portfolio

$30 USD dalam sehari
(10 Ulasan)
6.6
snowtigersoft

Please see PM.

$30 USD dalam sehari
(35 Ulasan)
6.3
robinjoe

dear sire, i checked what you sent, i'm glad to help you on this, thanks

$30 USD dalam sehari
(2 Ulasan)
5.4
satoewarna

Ready to finish it in few minutes, please check your PM

$30 USD dalam 0 hari
(8 Ulasan)
4.8
zhukaster

I can fix this within a few hours. thanks

$30 USD dalam sehari
(11 Ulasan)
4.3
jarvisliu

Please see your PMB!

$30 USD dalam sehari
(5 Ulasan)
4.1
nm2net

Hi, I can help you

$30 USD dalam 0 hari
(4 Ulasan)
4.1
NeoWebSoftware

I'm really sorry! I cannot fix this in hours. But can fix in minutes. If you want me then let me know. I am glad to fix this.

$30 USD dalam 0 hari
(10 Ulasan)
4.0
develop4u

Please view PMB

$30 USD dalam sehari
(2 Ulasan)
3.9
projectivemotion

It's my pleasure to be invited to bid on this project. Like other bidders have already stated, this is an easy fix. I provide 100% satisfaction or your money back. The solution will be provided to you within the hour. Lagi

$30 USD dalam 0 hari
(4 Ulasan)
3.3
Anub1s

Hello, please check your PM.

$30 USD dalam sehari
(3 Ulasan)
2.3
santhaanamphp

i am expert in Jquery i can fix this issue with hours.gve me a chance ill fulfill ur requirements

$30 USD dalam sehari
(0 Ulasan)
0.0
rajthebaby

Hi, I can start right now. Thanks Raj

$30 USD dalam sehari
(0 Ulasan)
0.0
balu1984

I am ready

$30 USD dalam 0 hari
(0 Ulasan)
0.0
phpgangster

We have seen the information regarding this project.we are senior developers in php,mysql(including opensource cms and shopping carts) with payment gateway and also good knowledge in Ajax, javascript libraries like jqu Lagi

$30 USD dalam sehari
(0 Ulasan)
0.0
jakebas

Right now!

$60 USD dalam sehari
(0 Ulasan)
0.0