Thanks to reply ! I follow up your solution but could not succeed. I did not get how to pass .htm extension, hight and width.
my login.ctp file contains <?php die; ?> <div id="loginForm"> <?php e($form->create('User', array('controller' => 'login', 'action' => 'login')));?> <fieldset> <label for="UserEmail" class="emaillabel"><span>Email</span></label> <?php e($form->text('email', array('class' => 'fullwidth'))); ?> <label for="UserPassword" class="emaillabel"><span>Password</span></ label> <?php e($form->password('password', array('class' => 'fullwidth'))); ?> <label for="UserRememberMe" class="passwordlabel"><span>Remember Me</ span></label> <p><?php e($form->checkbox('remember_me', array('class' => 'bigcheck'))) ?></p> <?=$form->button('Login', array('onClick'=> '$(\'#userTestForm \').ajaxSubmit({target: \'#loginForm\',url: \'' .$html->url('/users/ login'). '\'});return false;'));?> </fieldset> <?php e($form->end()); ?> </div> and thickbox java script function is like that function TB_show(caption, url) { } I think for displaying thickbox here should be : <a href="ajaxLogin.htm?height=100&width=250" title="ajax" class="thickbox">ThickBox login</a> but from your solution when I am using <?php e($html->link('Login', 'login/?height=100&width=250', array('class'=>'thickbox'))); ?>| then it's html is like that <a href="/shoppinggyan/users/login/?height=100&width=250" class="thickbox">Login</a>| Please tell me what should I do ? Thanks On Oct 9, 4:21 pm, "Amit Badkas" <[EMAIL PROTECTED]> wrote: > 2008/10/9 [EMAIL PROTECTED] <[EMAIL PROTECTED]> > > > > > > > Hi, > > > I am using a jquery thickbox plugin for login. I created users > > controller and login action using Auth component. > > I want to call this thickbox plugin in default.ctp and link should be > > like here : > > > <?php echo $html->link('Login Title', 'login.htm? > > height=100&width=250'); ?> > > > I am confused that how can make a action like login.htm() ? > > > if I will make login.htm in webroot folder then how can I use > > controller and action > > e($form->create('User', array('controller' => 'login', 'action' => > > 'login')));?> > > ? > > > Please tell how can I call thick box using > > <a href="login.htm?height=100&width=250" title="ajax" > > class="thickbox">ThickBox login</a> > > > and where and what file should I create for this > > - You need to use HTML helper like $html->link('login', '/login/login', > array('class' => 'thickbox')) > > -- > Amit > > http://amitrb.wordpress.com/http://coppermine-gallery.net/http://cheesecake-photoblog.org/http://www.sanisoft.com/blog/author/amitbadkas --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---