Hey Jiang, 2009/2/19 Jiang Sanyi <[email protected]>: > void PageCreateContent::save_sms() > > { > if(validate_sms()) > { > bool saved = db_save_message(smsReceiver_->text().value() > , time(0) > , smsContent_->text().value() > , true > ); > > if(saved) > { > Wt::WApplication* app = wApp; > clear(); > addWidget(new WText(tr("sparrow.create-sms"), this)); > } > else > { > } > } > } > > > > (where PageCreateContent is derived from Wt::WContainerWidget) > > But nothing changed on the page.
Are you absolutely sure that the code path of clear() and addWidget() is executed? Can you verify this by adding some debug statements ? > I also want to use enableUpdate(), but the web page is blank when startup > after using this. You need to have the "resources/" folder for "orbited.js". Check your access log for 404 requests involving "orbited.js". Note that many, if not all, issues with enableUpdates() have been fixed in the development branch of Wt. Regards, koen ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
