Dynamically generate grid into DIV
I am generating a lot of JAVASCRIPT at the server that gets called by the browser through XMLHTTP and is then evaled at the browser when the user clicks a button. This all works wonderfully. However, now I am trying to generate the grid code at the server end and I need to have the grid appear within a DIV that has been created dynamically through a document.appendChild. The problem is that because I am reliant on document.write to output the grid object I can't inject the grid code into the DIV.innerHTML and have it "executed."
Anyone have any ideas about how I might be able to get around this particular issue?
Alex
April 18,
Alex (ActiveWidgets)
April 18,
That's what I was using. It actually just was not displaying. I had to explicitly set the width of the grid. However, now I have a much different problem. The grid gets loaded and then keeps reloading itself. If I drag one of the columns so its larger than the width of the grid, then the refresh/flicker stops. I've looked through the forums and have tried all the suggestions, but nothing helps. If I set the height of the grid to anything, the grid does not display. If I don't set the height and just set the width to something VERY small (say 80px), then I don't have a problem. However, if I set the width so that the table almost takes up its encolosing DIV (which is 500px), the flickering starts up. Any ideas?
Alex
April 18,
Actually, if I set the wrapping DIV to position: relative, the flickering stopped.
Alex
April 18,
Does the flickering appear in all browsers or is it specific to any?
I have encountered some strange behavior with DIV's using Firefox, where the width of a DIV, though specified in CSS, doesn't set unless the height is also set. This is true for DIV's using position: relative, which btw. is default mode. That's why it sounds very strange, to me, that you managed to stop some flickering by setting this value!? So, please state if it is browser specific issue.
Psilo [at] Cyberspacement [dot] com
May 20,
This was with IE 6.0 and 5.5. Did not test the issue with firefox.
Alex
May 20,