Thursday, April 28, 2011

Re: ajax is'n work correctly in chrome and ie

Have you inspected you page in firefox with firebug extension and in
chrome with the developer tools? In case you run into a JavaScript
problem that one browser might tolerate and another might be strict on
the same matter, you will find hints in those tools.
Besides that, don't you think you should at least describe the nature
of your problem a bit further, than just saying "works in A and does
not work in B"? What exactly is working and what not?

On 28 Apr., 05:35, taq <taqman...@gmail.com> wrote:
> VIEW form
> <div class="register ">
> <?php
>
> // let the controller action decide weather to close the modalbox
> if (isset($closeModalbox) && $closeModalbox) echo "<div
> id='closeModalbox'></div>";
>
> // output an ajax or a normal form
> if ($ajax->isAjax()) {
>         // show ajax form
>         echo $ajax->form('edit', 'post', array(
>                 'model'    => 'User',
>                 'url'      => array('controller' => 'Users', 'action' =>
> 'register'),
>                 'update'   => 'MB_content',
>                 'complete' => 'closeModalbox()'
>         ));} else {
>
>         // show default form
>         echo $form->create( 'User');}
>
> ?>
>         <fieldset>
>         <?php
>                 echo $form->input('user_login', array( 'label' => 'User Name :' ) );
>                 echo $form->input('user_pass', array( 'label' =>
> 'Password :', 'type' => 'password') );
>         ?>
>         </fieldset>
> <?php echo $form->end('Submit');?>
> </div>
>
> please guide me to make code to complatible in firefox chrome and ie
> On Apr 28, 9:14 am, "Krissy Masters" <naked.cake.ba...@gmail.com>
> wrote:
>
>
>
>
>
>
>
> > With all the details you provided it should be just such a simple fix.
>
> > I also read palms and your future.
>
> > -----Original Message-----
> > From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf
>
> > Of taq
> > Sent: Wednesday, April 27, 2011 11:25 PM
> > To: CakePHP
> > Subject: ajax is'n work correctly in chrome and ie
>
> > hi
> > I create modalbox form it work corectly in firefox
> > but work error on ie and chrome how to fix error
> > thank you
>
> > --
> > Our newest site for the community: CakePHP Video Tutorialshttp://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organdhelp
> > others with their CakePHP related questions.
>
> > To unsubscribe from this group, send email to
> > cake-php+unsubscribe@googlegroups.com For more options, visit this group athttp://groups.google.com/group/cake-php

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: