2
$('#add').click(function(){

            $.jeegoopopup.open({
                url: 'update.php?cids= <?php echo $dt['callerid'] ?> && eid= <?php echo $dt['eid'] ?> && sts= <?php echo $dt['status'] ?>',
                width: 500,
                height: 200,
                center: true,
                skinClass: 'jg_popup_round', 
                resizable: false,
                scrolling: 'no',

If i give parameter values in url, the button not performing action

can any one help me

3
  • What is not working here? Commented Feb 18, 2015 at 12:49
  • As well as the fabulous answers below, you should urlencode() the values you're echoing to ensure they do not break the request string Commented Feb 18, 2015 at 13:15
  • i am new to jquery, can you guide me how urlencode() works Commented Feb 19, 2015 at 4:54

3 Answers 3

1

Updated

&& is WRONG in Query string , its only & . The && operator comes ONLY in logical operations like a==2 && b==2

Use proper quotes like following in JS Ajax code to concatenate PHP cariables.

url: 'update.php?cids='+<?php echo $dt['callerid'] ?>+'&eid='+<?php echo $dt['eid'] ?>+'&sts='+<?php echo $dt['status'] ?>,
Sign up to request clarification or add additional context in comments.

3 Comments

when i click on button, it should get the cid, edi, status values with in the page of a particular member and pass them in next page.. i'm using the to update user details
@Mahendar pls check where URL is going thru ajax in Console panel or any error . If any error post here.
@Mahendar , Hi what was the issue ?
0

Use Double quotes instead of single quotes in start and end like this

url: "update.php?cids= <?php echo $dt['callerid'] ?> && eid= <?php echo $dt['eid'] ?> && sts= <?php echo $dt['status'] ?>"

and check your console also for errors

1 Comment

'echo "<input id='add' type='button' class='button' value='Pending' />";' When click on this button it is not performing any action , if i do as u said
0

You should check for the spaces after = and lookout for quotes and make a single & ampersands too:

url: 'update.php?cids=<?php echo $dt["callerid"] ?>&eid=<?php echo $dt["eid"] ?>&sts=<?php echo $dt["status"] ?>',
//--------------------^----------------------------^^---^-----------------------^^---^

There are issues with :

  1. Quotes
  2. && double ampersands.
  3. space after =

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.