Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

General Questions /

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

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

Prototype responseText question (static publisher)

Go to End



Forum Moderator, 1391 Posts

16 September 2009 at 8:02pm

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:, but I thought to ask here as well, since it's a more general question...