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