Welcome Guest, Not a member yet? Register   Sign In
BugZ with ajax and jquery
#6

[eluser]Thorpe Obazee[/eluser]
[quote author="Doosje" date="1245676638"]
Code:
$('.client_details').click(function(e) {
    e.preventDefault();
    $('#dialog').dialog('open');
    var  client = $('.hidden_client').val();
    $('.box').load("<?= base_url().'controller/method' ?>",{code: client});    
       return false;                  
   });
Code:
var  client = $('.hidden_client').val(); //
Shouldn't that be:
Code:
var  client = $(this).val();
[/quote]

I don't think that should work.

He should reference the hidden input if he is going to get it's value. Right now he is referencing the link which I think has an empty val().


Messages In This Thread
BugZ with ajax and jquery - by El Forum - 06-22-2009, 01:50 AM
BugZ with ajax and jquery - by El Forum - 06-22-2009, 02:01 AM
BugZ with ajax and jquery - by El Forum - 06-22-2009, 02:06 AM
BugZ with ajax and jquery - by El Forum - 06-22-2009, 02:16 AM
BugZ with ajax and jquery - by El Forum - 06-22-2009, 02:17 AM
BugZ with ajax and jquery - by El Forum - 06-22-2009, 02:24 AM
BugZ with ajax and jquery - by El Forum - 06-22-2009, 02:31 AM
BugZ with ajax and jquery - by El Forum - 06-22-2009, 02:36 AM
BugZ with ajax and jquery - by El Forum - 06-22-2009, 02:37 AM
BugZ with ajax and jquery - by El Forum - 06-22-2009, 02:41 AM
BugZ with ajax and jquery - by El Forum - 06-22-2009, 02:47 AM
BugZ with ajax and jquery - by El Forum - 06-22-2009, 02:50 AM
BugZ with ajax and jquery - by El Forum - 06-22-2009, 02:51 AM
BugZ with ajax and jquery - by El Forum - 06-22-2009, 02:55 AM
BugZ with ajax and jquery - by El Forum - 06-22-2009, 03:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB