[jQuery] Re: cannot insert html into DIV

2009-11-04 Thread shaf
Thanks that worked. Ok, I am now trying to add several google maps using the same method to no avail. Code below: $(document).ready(function(){ /*Create Map/Address/.map_canvas class Arrays*/ var map = new Array(); var mapCanvasClasses = new Array(); /*Load Defaul

[jQuery] Re: cannot insert html into DIV

2009-11-04 Thread mkmanning
If you used Andrew's example, then you added a jQuery object to the canvasClasses array. Calling innerHTML on a jQuery object won't work. Try canvasClasses[0].html('htmlhere') On Nov 4, 3:35 pm, shaf wrote: > That doesnt work either. > > On Nov 4, 11:28 pm, Andrew Tan wrote: > > > > > You have t

[jQuery] Re: cannot insert html into DIV

2009-11-04 Thread shaf
That doesnt work either. On Nov 4, 11:28 pm, Andrew Tan wrote: > You have to supply the canvas object as a parameter to the push function to > add it to the array. > > canvasClasses.push($(this)); > > On Thu, Nov 5, 2009 at 10:16 AM, shaf wrote: > > Hi Guys, > > > I have several .class DIVs I wa

[jQuery] Re: cannot insert html into DIV

2009-11-04 Thread Andrew Tan
You have to supply the canvas object as a parameter to the push function to add it to the array. canvasClasses.push($(this));