Jump to:

23355 Posts in 17838 Topics by 2862 members

General Questions

SilverStripe Forums » General Questions » Loading a new page with sliding animation (Ajax?)

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 2
Go to End
Author Topic: 3609 Views
  • iraira88
    Avatar
    Community Member
    17 Posts

    Re: Loading a new page with sliding animation (Ajax?) Link to this post

    Hi again,

    I just noticed that I get an error when trying to access the admin page..I guess this is due to my using of ajax?

    Here is the error message:

    [Error] Couldn't run query: SELECT DISTINCT count(DISTINCT "SiteTree_Live"."ID") AS "0" FROM "SiteTree_Live" WHERE (ParentID = () AND Sort <= ()) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND Sort <= ())' at line 1
    /homepages/23/d50733656/htdocs/webnew/framework/model/MySQLDatabase.php:580

    Does anyone know how to deal with that?

  • iraira88
    Avatar
    Community Member
    17 Posts

    Re: Loading a new page with sliding animation (Ajax?) Link to this post

    Ok, I found the error in my jquery code and solved it..but also found another issue..now everything seems to work well, except for one thing:

    When I click on a link within my Ajax template the page loads in the normal way and not through Ajax as desired. (This happens for example when I have a blog or team structure like it is described here:http://doc.silverstripe.org/framework/en/tutorials/2-extending-a-basic-site or when a page have a link to another page of my website) Is it possible to change this somehow? I wanted to load the pages always through Ajax. Is this possible?

    Any help would be appreciated!

    3609 Views
Page: 1 2
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.