Reputation: 21
I have:
When I load this html-page in FireFox everything works ok: Swf can be called from javascript and vice-versa. However within Qt-app only swf can call javascript method, but not vice-versa. Calling swf method fails with the following message printed on javascript console: "Error calling method on NPObject".
Any ideas how to make Qt-app behave like FireFox, i.e. to make it possible to call Swf from javascript? Any help will be appreciated,
Backgrounds:
Upvotes: 1
Views: 957
Reputation: 21
Fixed problem by myself.
The original code for loading html-page was like this:
QFile html(<theHtmlPageFileName>);
html.open(QIODevice::ReadOnly);
m_page->mainFrame()->setContent(html.readAll());
The rewritten variant:
m_page->mainFrame()->load(<theHtmlPageFileName>);
In latter variant everything works fine.
Btw: Under Windows first variant works too.
Upvotes: 1