jeroentjevj

jeroentjevj supports this item

Supported

16 comments found.

Can you show me an example (I understand its js, so you dont have a demo)? However can you just paste a snippet of an example of calling like a paragraph or maybe an image?

Yes of course, no problem.

So originally we have our normal link:
<a href="interestingarticle.php">Aricle</a>
And if we add the class “fast” to our link the link will be loaded over ajax.
<a href="interestingarticle.php" class="fast">Article</a>

- In the configuration you can configure the name of the class, so you can pick any classname. It doesn’t need to be “fast” example: “speed”.

- You also need to set the ID of the div where you want your content to be placed in. For example the div with the id “content”.

- Timeout is the time the script waits until it shows a loading screen. for example when we set it on 500(milliseconds) and the loading of the content takes more than 500 milliseconds it will display a loading screen. If the loading takes less than 500 milliseconds it won’t show a loading screen.

- Last but not least you need to add the suffic the plugin needs to add to your url so your page only sends the content(without header & footer) for example ajax=true. Then the script calls interestingarticle.php?ajax=true instead of interestingarticle.php and places the received content in the “content” div. And example php-project is included in the zip file.

This is an example configuration:
var options = { classname : "fast", suffix : "ajax=true", contentID : "content", timeout : 500 };

I hope this answered your question. If you still have questions, feel free to ask them.

Regards, Jeroentjevj

Hi Jeroentjevj,

nice script. Does it work on mobile devices? How can I set the animated loader (with a fade out or blurry old content underneath) while new page is loading into the content div?

Hi qqruza,

The animated loader is already include in my script. But it only shows up after a few milliseconds (500ms standard), you can customize the delay to 0 if you want to always show the animated loader. The reason why I chose to show it after 500ms is because most of the time the page loads in +-50ms, that’s not really worth showing the loader right? ;) But as I said, if you really want to show a loader you can just set the timeout on 0.

I’ve tested this plugin on my galaxy tab 2 (Ice cream sandwich) with: - Google chrome (positive, it works perfectly) - The standard browser (positive, works perfectly) I’ve also tested it with my sony ericsson arc (Gingerbread) - Standard browser (works perfectly)

I hope this answered your questions. If you still have any questions, don’t hesitate to ask them. Regards Jeroentjevj,

Thanks a lot Jeroentjevj. Purchased!

You’re welcome!

Hi,

Thanks for the nice work. This works great on my side.

My question is: Is there any way to prevent changes in the url address each time a link is pressed?

I ask because I am using FastLinks to change the content of a div and the page url should be permanent.

Thanks

Hi,

There is a simple solution to do this. Open fastlinks.js and search for the code below:
html5=!(!window.history||!window.history.pushState);
and change it into this:
html5=false;
If you still have any questions feel free to contact me.

Regards, Jeroentjevj

Great. That did the trick!

Thanks

You’re welcome :)
Don’t forgot to rate it if you like it :D
Regards, Jeroentjevj

Hello,

I love the concept of this script. I was going to start doing something like this on my own already, so it was great to find yours to start with.

I do have a few questions:

A) How does your script work when the browser does not support HTML5? I would hope that the links just work as expected without any ajax calls.

B) For the functionality to work appropriately, you require that I need to add “fast” to my links. My site has thousands of pages, hundreds of links on many pages. I can not add “fast” to each one. Is there any way to force the script to use your ajax functionality for ALL links, except for a few that will go to external pages? I tried to remove classname, and tried to set it to *, but that did not work.

C) Have you tested this on a large scale site? Will I need to worry about this turning into a memory hog? I removed your .htaccess reqrite because I actually have pages on the server that will be pulled in. If the surfer clicks on 30-50 pages, loading large pages each time, will you see any issues with memory?

Looking forward to your response. This seems like a great script. I am hoping I can get this to work to my needs.

-Jeff

Hi there,

First of all, thanks for purchasing my script!

I have an answer to all of your questions, I hope they cover what you want to know. If not don’t hesitate to tell me.

First question, when your browser doesn’t support HTML5 the script will work normally. The only difference is that the url won’t update in the url-bar of your browser

Second question: replace
$(“a.”+o.classname)
by
$(“a:not(.” + o.classname + “)”)
In your fastlinks.js this will load all links with the script, except for the ones that you give the classname you specify in the configuration of your script

Thirth question: I assume this won’t lead to a memory leak since the script replaces the content, it doesn’t store it anywhere in the memory

I hope my answers were clear enough, if not don’t hesitate to say so.

Regards, Jeroen

Hi,

I´m trying to add your script to my website and I can´t made it work

I added the jQuery at the head above the fastlinks.js, I added the fast class for a few links to try it, and the script don´t run.

On your website example .php and fastlinks.js the ”?ajax=true” don´t exists and also I´m not able to add the image loader.

Where is the problem?

P.D.- Sorry if my English isn´t good.

Regards

Do you have an online version of your website that I can test?

If so, could you mail me the link? I’ll help you by mail

Regards, Jeroen

Yes, now I sending you an email :)

Hello,

Do you included some control error in your scripts? I mean: 1) Page not found 2) Timeout error 3) Connection broke 4) etc.

If your answer is not, can you tell me if you will upgrade or maybe you have some alternative.

Thank you Jorge

Hi,

At the moment there’s no error control in the script

I might consider upgrading it but it won’t be in the first weeks, I’m pretty busy with my other projects at the moment

Regards, Jeroen

Greetings. What is the size of the uncompressed javascript file? Pl advise, thank you.

Hi,

It’s around 2kb

Regards, Jeroen

Hi,

Does it work with forms?

thanks

Hi,

Can I call php functions and pass variables?

Hi,

Can I call php functions and pass variables?

Hi,

No, it doesn’t work that way. It only fetches pages trough get requests, not post

regards, Jeroen

Hi,

Im planning to use the library to keep in background a web music player, I need songs playing in background even if the user changes the links. (webplayer is located in footer)

Is it possible?

Thanks

Hi,

It certainly is, this library only updates one div of your page (ex: content) and all the rest of your website remains unchanged

Regards, Jeroen

hello, I wonder if I’ll have to change something on my site to put this plugin, you need something on the server? Works only to load js and css files? Can I limit the load only a few things using the same?

Hi,

You need to make an adjustment to your website so it can load only the content of the page.

For example: http://mysite/webpage.php => shows the entire page.
http://mysite/webpage.php?contentonly=true => shows only the content (without the header, footer, etc..)

My script will fetch the webpage that show the content only. I have an example how you can do this using php included in the package

So you can only use my script if you can modify your webpage to only show the content when you add an extra parameter to your url, (like ?contentonly=true)

Regards, Jeroen

Hey, do you have this product working on a site for me to see? I have a website that is on a server that currently does not allow enable gzip, and must improve the response time, I would see if this would be the product I need.

Hi,

I’m sorry I don’t have a working product online at the moment

Regards, Jeroen

Hi,

I´m trying to add your script to my website and I can´t made it work

when I use a html file load the page in the content..

But a php page that echo a content how works??

Please send me a sample… A php page that echo some content!!!!

Thanks

Hi,

Did you try the demo / example code included in the download?

Regards, Jeroen

Yes, but all the content is in the same page,

I need a sample page not in the same page but a php called by a link.. The index.php calling sample.php ,

  • SAMPLE
  • witn code outside from index.php!!! something like:

    ---- sample.php

    <?php

    echo ‘Hello World’;

    ?>

    That kind of page don’t works… Please explain to me wit a sample external page. Thanks

    Hi,

    Yes I can, do you have some kind of website where you want to implement the script? If so can you email it using the “Email jeroentjevj” section on my profile? I can replay faster on emails.

    Regards, Jeroen

    Hi, is it possible load external page like: details_project.php?id=6

    thanks

    Hi,

    By external you mean on another website (domain)?

    If it’s on another domain it is impossible, due to browser security rescritcions

    If it’s on the same domain then it should work just fine.

    Regards, Jeroen

    hI jeroentjevj, thanks for the quick response. Yes, the file details_project.php?id=6 is in the same domain. I would like to load this page from index.php. Could you tell me the solution if possible? PS: if you want, i can send you the files. thanks

    Hi,

    If you could send me the files that would be great.

    Please contact me by mail

    Regards, Jeroen

    Can I view the live demo instead of text explanation?

    Hi,

    I understand that you would like a live demo.

    I currently don’t have a live demo available because it’s too easy to copy the script.

    Regards, Jeroen

    Can you at least make video? I don’t understand your plugin.

    I’ll try to make a video when I have some spare time.

    I can’t make it work. It gives an error. I have jQuerry v1.11

    The .live function can not be recognized by Chrome and it gives this error: Uncaught TypeError: $(...).live is not a function(anonymous function) fastlinks.js:20(anonymous function) fastlinks.js:21

    Yes please email it to me if that’s possible. I contacted you via the contact form on your profile… I hope that shows you my email address. I’m not sure where they have listed your email address here.. Kinda new getting around this site.. Thank you for the super fast response!!

    I send you the updated version by email. Kind Regards, Jeroen

    Thank you so much for updating the script and helping out resolve this within minutes. It was delightful! I wish every author with Envato is as helpful as you :)

    Hey there, I am looking for an Ajaxify solution for my site. I’ve tried a few free solutions already but without a good result yet. The main goal is to keep non-refreshed the logotext div class="small-7 medium-4 columns logo" and the menu nav class="pagedMenu" role="navigation" ,without clipping on page refresh or while the content is loading from a page to another. Also the menu state should be preserved from a page to another.

    Do you think that your plugin could be implemented in my wordpress site? here it’s my site link and here are more details about my request. Thanks

    Hi Green_78,

    Unfortunately my script doesn’t support wordpress and I don’t think I’ll ever make a wordpress extension out of it. This plugin is meant for people who’re building their own website from scratch.

    Regards, Jeroen

    oh, I got that. Thank you

    well this is complicated , i have a thing for fast loading websites but have no idea what does this plugin do .

    Any video demo please?

    by
    by
    by
    by
    by
    by