jpopup Takes a link and will create a popup window

  1. Requirements
  2. Usage
  3. Change log
  4. Resources

This widget encapsulates the popupWindow JQuery Plugin.
Takes a link (or other HTML element) and will create a popup window

Requirements

Yii 1.1.6 or above...

Usage

  • extract the file under .../protected/extensions
  • put in a view a code blocks like the following...
<h1>popup window</h1>
<p>
Open yahoo.com in a popup window (800x500) positioned 50 pixels from the
top and left side of the screen.
</p>
<p>
    <?php $this->widget('ext.popup.JPopupWindow', array(
        'content'=>'open popup',
        'url'=>"http://www.yahoo.com",        
        'htmlOptions'=>array('title'=>"yahoo.com"),
        'options'=>array(
            'height'=>500,
            'width'=>800,
            'top'=>50,
            'left'=>50,
        ),
    )); ?><!-- popup -->
</p>
<p>
Open contact form of a Yii skeleton app
</p>
<p>
    <?php $this->widget('ext.popup.JPopupWindow', array(
        'tagName'=>'button',
        'content'=>'open contact form',
        'url'=>array('/site/contact'),        
        'options'=>array(
            'height'=>500,
            'width'=>800,
            'centerScreen'=>1,
        ),
    )); ?><!-- popup -->
</p>

Change log

Version 1.0
  • initial release
Version 1.1
  • more documentation and bugfix
Version 1.2
  • unnecessary javascript files deleted
Version 1.2.1
  • published demo application
Version 1.3
  • little bugfix

Resources

6 2
10 followers
6 656 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: User Interface
Tags: popup, widget
Developed by: volkmar
Created on: Apr 1, 2011
Last updated: 11 years ago

Downloads

show all

Related Extensions