The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Ajax Loading

View previous topic View next topic Go down

Solved Ajax Loading

Post by DeathDunk98* on April 28th 2014, 11:24 pm

I saw a tutorial for Ajax Loading,
http://socialacademy.forums.fm/t75-tutorial-ajax-loading-ipboard-black

I'm using punBB, I tried the tutorial and I followed the steps nicely but it wont work, any suggestionss?


Last edited by DeathDunk98* on April 29th 2014, 8:25 pm; edited 1 time in total

DeathDunk98*
Forumember

Posts : 479
Reputation : 3
Language : Shqip

Back to top Go down

Solved Re: Ajax Loading

Post by Sir Chivas™ on April 29th 2014, 1:35 am

Can you post the codes that you're using? Thank you.

Sir Chivas™
Support Moderator
Support Moderator

Male Posts : 6783
Reputation : 430
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

Solved Re: Ajax Loading

Post by Kite Trojan on April 29th 2014, 2:29 am

Here is the JScript code:
Code:
jQuery (function () {
  jQuery ('body'). prepend ('<div id="ajax_loading" style=""> <img src = "http://i.imgur.com/gygr8wi.gif" alt = " loading ... "> </ div> ');
  jQuery ('a') click (function (.) {
    jQuery ('# ajax_loading') slideDown ();.
    setTimeout ('load ()', 5000);
  } );
});
function load () {
  jQuery ('# ajax_loading') slideUp ('2000. ');
}
setTimeout ('load ()', 5000);



CSS:
Code:
jQuery (function () {
  jQuery ('body'). prepend ('<div id="ajax_loading" style=""> <img src = "http://i.imgur.com/gygr8wi.gif" alt = " loading ... "> </ div> ');
  jQuery ('a') click (function (.) {
    jQuery ('# ajax_loading') slideDown ();.
    setTimeout ('load ()', 5000);
  } );
});
function load () {
  jQuery ('# ajax_loading') slideUp ('2000. ');
}
setTimeout ('load ()', 5000);



Kite Trojan
Forumember

Male Posts : 823
Reputation : 19
Language : English

http://galacticda.forumotion.com/

Back to top Go down

Solved Re: Ajax Loading

Post by Sir Chivas™ on April 29th 2014, 2:35 am

You sent the JavaScript twice,

Is this your CSS:
Code:
  #ajax_loading {
  background: url("http://i58.servimg.com/u/f58/17/89/00/23/ajaxlo10.png") repeat-x scroll 0px 0px transparent;
  border: 1px solid rgb(123, 166, 13);
  border-radius: 0px 0px 5px 5px;
  box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.2), 0px -1px 0px rgba(255, 255, 255, 0.2) inset;
  color: rgb(255, 255, 255);
  left: 46%;
  padding: 5px 0px 8px;
  position: fixed;
  text-align: center;
  top: 0px;
  width: 8%;
  z-index: 999;
  }

Sir Chivas™
Support Moderator
Support Moderator

Male Posts : 6783
Reputation : 430
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

Solved Re: Ajax Loading

Post by DeathDunk98* on April 29th 2014, 10:20 am

actually Im using this two codes you two sent!

DeathDunk98*
Forumember

Posts : 479
Reputation : 3
Language : Shqip

Back to top Go down

Solved Re: Ajax Loading

Post by Sir Chivas™ on April 29th 2014, 1:58 pm

Did you tick the JavaScript in all pages? Also, try removing one JavaScript at a time to see if there isn't any interference.

Sir Chivas™
Support Moderator
Support Moderator

Male Posts : 6783
Reputation : 430
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

Solved Re: Ajax Loading

Post by Ange Tuteur on April 29th 2014, 2:00 pm

If you can, post the forum here that has this installed. That way we can see if there were any errors thrown.

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Ajax Loading

Post by DeathDunk98* on April 29th 2014, 6:53 pm

oh, actually It's fixed! solved!

DeathDunk98*
Forumember

Posts : 479
Reputation : 3
Language : Shqip

Back to top Go down

Solved Re: Ajax Loading

Post by SLGray on April 29th 2014, 9:34 pm

Topic Solved & Archived


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36697
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum