I ran into a problem on OS X, Sketchup version 7 where the execute_script worked, but the WebDialog wouldn't refresh.
I noticed an alert(); would refresh it, but that would be annoying so this was my workaround:
in your javascript callback function put:
window.location.href = "#someanchor"
which will reload your webdialog on the original page, with all the .innerHTML's executed!