Yes i made a mistake while posting this problem but in real the call is made
to the page who's code i have pasted before the problem is not with the call
page but the way data placed. the moment i use variables/database field IE
stops working but FF works fine.

Tamuir.

On Sun, Nov 23, 2008 at 11:51 AM, Rob Manson <
[EMAIL PROTECTED]> wrote:

>
> Hey Tamuir,
>
> not sure if you just cut and paste this wrong...but the URL seems to be
> incorrect:
>
> > "getdateJSon.php", {gender: Usex, minage: Uminage, maxage: Umaxage,
>
> Where you say the file is "getjson.php" (e.g. not "getdateJSon.php).
>
>
> roBman
>
>
> On Sat, 2008-11-22 at 12:52 -0800, Xross wrote:
> > I am generating JSon from php, values are returned from mysql
> > database, it works fine with FF but IE just dont read the values, i
> > ran the page on the IE it does shows that data but when i call it
> > through ajax its empty... i have tried many things nothing works, if i
> > put static values in the getjson.php page like
> >
> > 'pname':'Tamuir',
> > 'page':'25',
> >
> > it works fine.. any help ??? for what i am doing wrong with dynamic
> > data ?
> >
> > **********
> > ajax call
> > **********
> >
> > $.ajaxSetup({cache: false});
> >       $.getJSON(
> >                       "getdateJSon.php", {gender: Usex, minage: Uminage,
> maxage: Umaxage,
> > zip: Uzip},
> >                       function(data){
> >                               $.each(data.userdata, function(i,user){
> >                                       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;
> >
> >
> >
> > **********
> > getjson.php
> > **********
> > $nm = $row_RsGetDate['Username'];
> > $na = $row_RsGetDate['Userage'];
> > $np = $row_RsGetDate['Userplace'];
> > $ns = $row_RsGetDate['Userstate'];
> > $nc = $row_RsGetDate['Usercountry'];
> > $ntd = $row_RsGetDate['Usertextdesc'];
> >
> >       $json = "{
> >
> >               'userdata': [
> >                       {
> >                               'pname':'$nm',
> >                               'page':'$na',
> >                               'pplace':'$np',
> >                               'pState':'$ns',
> >                               'pCountry':'$nc',
> >                               'ptextdesc':'$ntd'
> >                       }
> >               ]
> >       }";
> >       echo $json;
> >
> >
> >
> >
> >
> >
> >
> > ***********
> > output from getjson.php
> > ***********
> >
> > { 'userdata': [ { 'pname':'Mikeala', 'page':'18', 'pplace':'New York',
> > 'pState':'New York', 'pCountry':'United States of America',
> > 'ptextdesc':'I like reading books, Travel, what about you ?' } ] }
> > >
> >
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to