Jump to:

23490 Posts in 18996 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Prototype responseText question (static publisher)

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 641 Views
  • martimiz
    Avatar
    Forum Moderator
    1086 Posts

    Prototype responseText question (static publisher) Link to this post

    Hi all,
    When using StaticPublisher, the prototype request will usually return a responseText like this:

    $('Form_EditForm').loadActionsFromString('<input class=\"action delete\" id=\"Form_EditForm_action_unpublish\" type=\"submit\" name=\"action_unpublish\" value=\"Publicatie intrekken\" title=\"Publicatie intrekken\" /> <input class=\"action delete\" ...


    But somehow with a specific Pagetype, it returns the page in HTML format instead, creating a JavaScript Parse Error. My question: does anyone know where the decision to request either HTML or the format above is made?

    In this case I'm referring to the ImageGallery module (see: http://www.silverstripe.org/all-other-modules/show/250910?showPost=269126), but I thought to ask here as well, since it's a more general question...

    641 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.