Target Window support

Discuss anything that's related to the Raxan framework

Target Window support

Postby raymond » Tue Jan 04, 2011 2:11 pm

Hello,

As a follow up to post #327 by matic76 I've added the target window support to the devsnapshot SVN branch.

With this update it's now possible to have the browser display your event response within a new window of frame. To do this, you can use the target or formtarget attribute
to set the window where the results will be displayed when the user triggers an event.

Note: Target window will only work for full-page events.

Example:

Code: Select all
class NewPage extends RaxanWebPage {

    protected function popup($e) {
        $this->content('Hello World!');
    }

}

?>
<a href="#" target="_blank" xt-bind="click,popup">New Window</a>&nbsp;
<form>
<input id="btn1" type="button" formtarget="_blank" value="New window" xt-bind="click,popup">
</form>



Best regards
__
Raymond
raymond
Site Admin
 
Posts: 215
Joined: Tue Mar 17, 2009 5:04 am

Return to General Discussions

Who is online

Users browsing this forum: No registered users and 1 guest

cron