Project

General

Profile

clicked Event is not working on IE and Firefox, only with Chrome - why?

Added by Claudio White almost 6 years ago

I have a working app, but it is only working using Chrome as Browser, not when using Internet Explorer or Firefox, but i am wondering why.

I have own html for showing my page and did create a clicked event when pressing this button on my page. With using Chrome as Browser this is working. The clicked-Events reacts and is calling my function MyApp:loadTablePage.

But same using Internet Explorer (version 11) or Firefox => nothing happens, absolutly nothing...pressing the HTML-Button does not call my code.

Here is the related piece of code:

auto login = Wt::cpp14::make_uniqueWt::WTemplate(Wt::WString::tr("login"));

auto *loginBtn = login->bindWidget("signin", Wt::cpp14::make_unique());

loginBtn->setTextFormat(Wt::TextFormat::XHTML);

loginBtn->setText(Wt::WString("Sign In"));

loginBtn->clicked().connect(this, &MyApp::loadTablePage);

Any ideas what could be wrong?

P.S. It does not help me just using Chrome, i need that the App is working with IE and Firefox too:-(


Replies (2)

RE: clicked Event is not working on IE and Firefox, only with Chrome - why? - Added by Claudio White almost 6 years ago

Changing this (in my wt_config.xml) from false to true solves it:

true

But now i have the problem, that the GUI ist not shown correctly as before:-(

RE: clicked Event is not working on IE and Firefox, only with Chrome - why? - Added by Claudio White almost 6 years ago

Solved.

Setting

 <progressive-bootstrap>true</progressive-bootstrap> 

and disable setting Bootstrap-Theme solves my gui problem:-)

  //auto theme = std::make_shared<WBootstrapTheme>();
  //theme->setVersion(BootstrapVersion::v3);
  //setTheme(theme);
    (1-2/2)