Hi,

I am having problem with IE6 / IE7 but IE8 works fine.

Here's my ajax call

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

function getJSonDate() {
        var Usex ="";
        var Uminage = "";
        var Umaxage ="";
        var Ucountry ="";
        var Uplace = "";
        var Uzip ="";

        Usex = $("#gender :selected").val();
        Uminage = $("#minage :selected").val();
        Umaxage = $("#maxage :selected").val();
        Ucountry = $("#country :selected").val();
        Uplace = $("#place :selected").val();
        Uzip = $("#zipcode").val();
        $("#preloader").show();
        $.getJSON(
                        "getdateJSon.php", {gender: Usex, minage: Uminage, 
maxage: Umaxage,
zip: Uzip, cache: false},
                        function(data){
                                $.each(data.userdata, function(i,user){
                                        ckuserid = user.id;
                                        var name_text  =  user.pname;
                                        var age_text = user.page;
                                        var place_text = user.pplace;
                                        var state_text = user.pState;
                                        var country_text = user.pCountry;
                                        var hello_text = user.ptextdesc;
                                        var imgurl = user.imgurl;
                                        var imagepath = "images/user/" + imgurl;
                                        $("#preloader").hide();

                                        if (name_text == ""){

                                                $("#imageControl").hide
();
                                                $("#text_holder").hide();
                                                $("#ZeroEntry").show();
                                                        } else {

                                                                
$("#ZeroEntry").hide();
                                                                
$("#imageControl").show();
                                                                
$("#text_holder").show();
                                                                
$('#imageholder').attr('src', imagepath);

                                                                //Populate the 
page with data
                                                                
$('h2.date_name').html(name_text);
                                                                
$('h3.date_details').html(age_text + "y, " + place_text +" ,
"+ country_text );
                                                                
$('P.hellotext').html(hello_text);


                                                        }


                                });
                        }
                );

} //end of getJSonDate


************************************************
Here is PHP page output
************************************************

{ 'userdata': [ { 'id':'10001', 'pname':'Mikeala', 'page':'18',
'pplace':'New York', 'pState':'New York', 'pCountry':'USA',
'ptextdesc':'I like reading books, Travel, what about you ?',
'imgurl':'mikeala.jpg' } ] }

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

It works perfectly fine with FF / IE 8 but nothing comes up with IE
6 / IE 7 i have tried many solution but none worked i wonder if their
exists any solution. i have other functions like get state/city/
Country name from mysql db through the same method they work fine but
this is the only problem.

i have everything online you can check it at

http://clickdate24.com/beta/

Any help is appreciated.

Thanks.

Reply via email to