[Gtk-sharp-list] Geckosharp onload event

Brandon Clark frothingpickle at gmail.com
Mon Jun 26 18:14:52 EDT 2006


When utilizing the RenderData method of the webcontrol widget in gecko#, the
rendered page does not seem to trigger the onload event. For example:

If I create an html string like this:
html = "<html><head><script type=\"text/javascript\">function doc_init(){
alert('Document Initialized!');}</script></head><body
onload=\"doc_init();\"></body></html>";

and then I render the html using a webcontrol widget as such:
widget.RenderData(html, "file:///tmp/", "text/html");

The doc_init() function is never called and I never see the alert box. This
prevents me from doing a lot of creative things so I am anxious to get this
resolved. Am I missing something or is this a limitation?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20060626/c0e91084/attachment.html 


More information about the Gtk-sharp-list mailing list