Dude,

Can you paste an example of your source code?  That way, we could see how
the JSON is rendering.  Either that or e-mail it to me please. :)

Best and Thanks,

-- 
Abraham Lloyd
[EMAIL PROTECTED]
(c) 201.486.0089
"Yes I am a Developer; Quality is my Code."
Skype: abrahamlloyd
MSN: [EMAIL PROTECTED]

On Jan 28, 2008 3:56 PM, Steve Finkelstein <[EMAIL PROTECTED]> wrote:

>
> Hey folks,
>
> Does anyone know why the following code works in FF2 and is broken in
> WebKit/Safari?
>
> [code]
>
>        <?php
>
>                $patients = array();
>                while($row = mysql_fetch_assoc($patient_list_rs)) {
> $patients[] = $row; }
>
>                echo '<script type="text/javascript">patients = (' .
> json_encode($patients) . '); alert(patients.length);</script>';
>
> [/code]
>
> The alert never comes up, I'm using this in an iUI application.  I'm
> trying to populate a list with javascript instead of PHP, so that I
> can include sorting functions easier for later usage.
>
> /sf
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" 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/iphonewebdev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to