Hot to render HTML in function before calling another function?
Posted on 2011-09-06
I've got two functions that depend on each other, it's very long so this is an example of what happens.
2 functions get called during an onclick function, drawTable() and updateTable().
drawTable() basically outputs a table,
so something like this.
then updateTable() appends to the table output so it uses the id mytable1.
This works perfectly in IE9 and Firefox. On Chrome there is an issue and the issue is that after the first function is ran... I think it runs the second function before it renders the html to the screen.
Does anyone know how to go about sorting this out?