Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: HTML PHP Ajax jQuery
$('.testClick').click(function() {
   var val1 = this.id ;
   var val2 = $('input[name="rad"]:checked').val();  
     
    /*$('input[name="for"],input[name="rad"]').change(function() {
        val1 = $('input[name="for"]:checked').val();
        val2 = $('input[name="rad"]:checked').val();*/
	$.ajax({
            url: 'ajax-example.php', //This is the current doc
            type: "POST",
            data: ({for: val1,rad:val2}),
            success: function(data){
			  $("#raa").html(data);
               
            }		
        });  
    });  
}); 
 
here i am posting values to ajax-example.php and working fine but,now i want same values to another page also . is it possible through this function or any other method please can anyone help me
 
Thanks In advance
Posted 3-Aug-12 1:00am
Edited 3-Aug-12 1:29am
v2

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Do you mean you have several pages open at once ? Do you mean you want to pass these values down to a page ? You can store them in the session and pull them back out in another page, or pass them on a URL.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 370
1 OriginalGriff 195
2 Zoltán Zörgő 124
3 Dave Kreskowiak 120
4 DamithSL 115
0 OriginalGriff 7,610
1 DamithSL 5,559
2 Sergey Alexandrovich Kryukov 5,324
3 Maciej Los 4,961
4 Kornfeld Eliyahu Peter 4,539


Advertise | Privacy | Mobile
Web03 | 2.8.141223.1 | Last Updated 3 Aug 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100