How to execute javascript print function in GtkMozEmbed?

View: New views
1 Messages — Rating Filter:   Alert me  

How to execute javascript print function in GtkMozEmbed?

by woolxiang :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi
I use gtk_moz_embed_load_url() to load an HTML file and show content
of this HTML
and there is javascript print function HTML button in it:

<input value="Print This Page" onclick="window.print()" type="button">

In my test program, I click this HTML button, It always pop up a
Printer Error dialog and show
"An unknown error occurred while printing."

BUT in when I load this html file by firefox-3.0
It would pop up a regular Print dialog while I click print button

How to I execute javascript print function like firefox-3.0?

Thank you
_______________________________________________
dev-embedding mailing list
dev-embedding@...
https://lists.mozilla.org/listinfo/dev-embedding
LightInTheBox - Buy quality products at wholesale price