function example provided above I will explore that instead of JS
helper.
Jeremy: i doubt my findings are that valuable, besides the more time I
spend on this helper the more convinced I am that helper is to be used
for very occasional things but not intended to truly turn CakePHP into
Ajax rich software. I suppose this is a reason why none bothers with
practical examples or additional comments on the helper.
cricket: Thank you for valuable input. I've spent couple of hours on
it and I think I will go that direction.
I made your example work although I hit a problem that I find
difficult to overcome. Maybe you can help:
When I click on CmdOpen link the html is rendered successfully; it
fills in Target but immediately a.CmdOpen.Active acts as clicked and
hides (removes altogether) the Target. To test it I have changed 2nd
function event to dblclick. Even with this, second function does not
act as required upon double click it clears content, removes Active
class but now, the link CmdOpen does not function anymore.
With Loading plugin the Target was totally removed from nodes. When I
removed the Loading plugin I have it acting slightly better but still
experience the same problems.
I have my doubts using Loading plugin altogether - requires 3
additional files and provides fairly simple functionality. Why would
that be better then my original idea: $("#busy-
indicator").clone().appendTo(target).show(); replaced by a rendered
content?
I am yet to test this function for several boxes on one page, but not
before I made this behave as expected.
For these interested above code has few typos:
$ missing
RequestAction should be RequestHandler
$this->element('view'); should be echoed;
url: $(this).attr('href'); should be finished with , not ;
$this->removeClass('Active'); should start with $(this)
Loadng plugin requires 3 additional files jquery.measure.js,
jquery.place.js, jquery.pulse.js (included in that order). I got the
files from the Loading demo page as could not locate references to
files/plugins in the Loading plugin description (http://jquery-
values.googlecode.com/svn/other/loading/jquery.loading.htm).
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment