NYCPHP Meetup

NYPHP.org

[nycphp-talk] HTML Javascript Php Arrays

Michele Waldman mmwaldman at nyc.rr.com
Wed Aug 19 08:13:36 EDT 2009


I didn't want to have to do it but this works:

document.getElementById('theDiv').innerHTML = "<input type='text'
name='city[]' id = 'city"+ndx+"' class='auto-complete-city'>";

This is my typical work around for IE.

Michele
> -----Original Message-----
> From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]
> On Behalf Of Ajai Khattri
> Sent: Wednesday, August 19, 2009 1:18 AM
> To: NYPHP Talk
> Cc: javascript-7 at meetup.com
> Subject: Re: [nycphp-talk] HTML Javascript Php Arrays
> 
> On Tue, 18 Aug 2009, Michele Waldman wrote:
> 
> > I'm trying to dynamically create an array in javascript to pass to php.
> >
> > This works in FF, but not IE 7.  Does anyone know how to make this work
> in
> > IE?
> 
> You probably should look at using Prototype or JQuery to do this kind of
> stuff since those frameworks isolate you from having to deal with
> differences across browers.
> 
> 
> 
> --
> Aj.
> 
> _______________________________________________
> New York PHP User Group Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
> 
> http://www.nyphp.org/show_participation.php




More information about the talk mailing list