5098 Posts in 1518 Topics by 1115 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 361 Views |
-
Detect jQuery Ajax complete within CMS

9 July 2012 at 4:10pm Last edited: 9 July 2012 4:11pm
I'm trying to create a button-based approach to radio buttons within SilverStripe 3.0 and am having trouble hooking into the CMS jQuery hooks.
I have looked at the documentation on the matter (http://doc.silverstripe.org/framework/en/topics/javascript/) but am getting javascript errors on:
.Behaviour.register({ ...
Basically I need to detect when the current page is fully loaded (after saving, publishing, deleting, loading new page, etc) so I can use jQuery and apply the appropriate styles and classes to the label elements (see screenshot - these are radio buttons).
How do I (using jQuery) listen for the PageLoaded hooks as discussed in the documentation (http://doc.silverstripe.org/framework/en/topics/javascript/)?
-
Re: Detect jQuery Ajax complete within CMS

16 August 2012 at 3:22am
I'm having the same problem, I'm trying to load a javascript function after the page is loaded.
I get a Type Error: Object #<HTMLFormElement> has no method 'observeMethod'.
Any idea how this could be fixed?
| 361 Views | ||
|
Page:
1
|
Go to Top |


