On 8/31/07, Gayathiri <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I am using a select menu in my webpage. When i select an item, all
> subitems under that are retrieved from database and is displayed in
> the select menu. Now, again user has to select a subitem from the
> menu. Then subsub items under that are retrieved from database again.
> It happens like this 3-4 times. Since database has many entries,
> loading of the select menu takes some time. I have to use a loading
> symbol ( like rotating circle in IE tabs) near the select menu to show
> the user that the select menu is still loading and they have to wait
> to select the next entry. How do I find ot the loading time of the
> select menu? How do I show the loading symbol(a gif animation) until
> that loading time? How do I implement that in cake php? Can someone
> help me on this issue please?

Well, this is not *really* a CakePHP issue, more an Ajax one.  The
psuedo-code is pretty easy:

1) create an <div> that contains whatever graphic you want to use to
display the loading symbol and hide it
2) create an onChange event (I'm pretty sure it's onChange) that
unhides the div that displays the loading symbol, linking it to an
action in your controller that loads the data
3) when the it's done, hide the <div>

Repeat as many times as necessary.  An oversimplification?  Perhaps,
but that's the basics.

-- 
Chris Hartjes
Senior Developer
Cake Development Corporation

My motto for 2007:  "Just build it, damnit!"

@TheBallpark - http://www.littlehart.net/attheballpark
@TheKeyboard - http://www.littlehart.net/atthekeyboard

--~--~---------~--~----~------------~-------~--~----~
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