Jump to:

5513 Posts in 1732 Topics by 1218 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Detect jQuery Ajax complete within CMS

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 796 Views
  • jaedb
    Avatar
    Community Member
    5 Posts

    Detect jQuery Ajax complete within CMS Link to this post

    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/)?

    Attached Files
  • hallecsyz
    Avatar
    Community Member
    5 Posts

    Re: Detect jQuery Ajax complete within CMS Link to this post

    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?

    796 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.