This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

sfLightWindowPlugin: where i should define the size of a modal window?

Forum to discuss ExtJS and other JS plugins

sfLightWindowPlugin: where i should define the size of a modal window?

by tirengarfio » Fri Oct 02, 2009 8:06 pm

Hi,

i have installed sfLightwindowPlugin. I got showing a modal window with a form inside, but i dont know how to define the window size..

Here you have the code of the form:

Code: Select all
<form id="sample-form" name="sample-form">
      <ul style="list-style-type: none;margin: 0; padding: 0;">
         <li>
         
            </li>
            <li>
            <input id="name" name="name" type="text" value="What is your name?" />
         </li>
         <li>
        <a class="lightwindow_action" style="line-height: 100%;" rel="submitForm" params="lightwindow_form=sample-form" href="/hello.php">
        <button>Submit</button>
        </a>
        or
        <a class="lightwindow_action" rel="deactivate" style="color: blue;" href="#">Cancel</a>
         </li>
      </ul>
</form>


Any idea?

Ciao
tirengarfio
Senior Member
 
Posts: 108
Joined: Sun Mar 15, 2009 12:27 am

Re: sfLightWindowPlugin: where i should define the size of a modal window?

by tirengarfio » Mon Oct 05, 2009 3:00 pm

Just in the helper to create the link:

<?php echo lw_link('<strong>Send</strong>', 'sfLightWindow/form', 'width=321 height=157 class=page-options') ?>
tirengarfio
Senior Member
 
Posts: 108
Joined: Sun Mar 15, 2009 12:27 am