Welcome to the jKit community. This is the place to discuss everything on and around jKit. Be friendly and I’m sure other members will be friendly with you, too.
Background AND Ajax
  • I am currently using backstretch (http://srobbin.com/jquery-plugins/backstretch/) to have a full background image – and the image changes when a link is clicked: ie. Events changes the background image to show the home image.

    In addition, I would like to use the AJAX command to change a section of the site: ie: Events

    I know I can use the BACKGROUND command to have an image applied to a div: ie.

    I’m wondering how I could only use jKit to do both? ie, change the background image of the and change the content of the #ajaxdiv, from a single

    Does that make sense? My page can be seen at: (http://111.118.173.162/~hillston/index.php)

    Thanks.

  • Hi Guys,

    I’ve just re-read this and realized that it doesn’t make much sense…. sorry.

    I would like to use a “a href” link to do 2 things; 1. load AJAX. and 2. Change the background image of the entire page (body tag).

    Currently, I use backstretch.js on this example (http://111.118.173.162/~hillston/index.php), the background changes are triggered by the main navigation.(click between “events” and “venues”) using backstretch.js then I use AJAX command to change the content (see the 2nd row of links).

    Thanks for you help!

  • This is currently not possible with jKit alone. I have put it on my list of features to maybe implement, but I only add stuff that doesn’t add to much code. However, there may be a command replacement at some point to make stuff like this possible, either from myself or some other contributer.

    There are actually some plans to add actions for stuff that is already initialized, for example change an active tab based on the url or some other actions on the page. Your feature would probably fall into this category, as well. But this is currently future talk, as I didn’t even have a basic plan on how to implement this without adding way to much code.

    Creator of jKit – www.fredibach.ch
    Thanked by 1toledoh