hi Steve,

run with Safari 3 (OSX/Windows) and open Inspector,
it looks like script evaluation is failing and that is why some lines
are not executed (after error is trapped no further block is
executing),
Safari (WebKit) inspector shows such errors in console view,

regards,
peter
On Jan 28, 9: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