Wouldn't it be much easier (and less memory-intensive) to load the
view through ajax only when it is needed. This way there will still be
no page reloads, and it's a much cleaner way to accomplish it.

<?php echo $ajax->link('link text', '/view/to/load/', array('update'
=> 'div_to_update', 'complete' => 'new Effect.Appear(\'div_to_update
\')'), null, false); ?>

Gerben.

On 10 apr, 23:24, "rstuker" <[EMAIL PROTECTED]> wrote:
> I'm trying to load a views as soon as the user logs in, inside <div>
> tag which is hidden out of the screen, so that it remaind there until
> it is called. My animated menu (yui) in a certain moment call this
> <div> to move towards the center of the screen, with the view already
> loaded.Later, moving the mouse over a certain place, the div moves
> backwards to its initial position. I know that I certainly  face many
> problems. Instead of submitting a form, i will be using ajax to
> accomplish the $this->model->save() method task...In general the idea
> is to give the site the effect that never a page is reloaded. Anyway,
> this is just an aim. Thanks in advance!.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to