Friday, December 12th, 2008 | Author: MaX

ajaxify v2.00When I released ajaxify v1.0 I didn’t expect that huge demand for the plugin. I thought its just a crap of code. but then, I remembered how it was difficult to start programming for me. So I decided to complete what I have started. I have created a special homepage for the plugin. Added new cool features. fixed v1.0 bugs.  After hours of hard work. v2.0 released today. I hope you like it. And as always, any help, bug report, suggestion,  confession…. don’t be shy.

(Please, dont post questions here about ajaxify. post it in the appropriate support page )

MaX,

How it was when you ajaxified your webpage with "Ajaxify"?

View Results

Loading ... Loading ...

Category: jQuery
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

53 Responses to “Ajaxify v2.0 Knocked Our Door”

Pages: « 1 2 [3] Show All

  1. Hi,

    Thanks for this great plug-in. I am only dealing with a small(?) problem.
    I have a asp.net website (Umbraco), with a top navigation bar.
    The hierarchy is something like this:

    > Home
    -> About us
    -> Development
    -> Projects
    -> Contact

    When I open the site, the ‘Home’ is automatically loaded (the default page). But when I then click on one of the other links on the menu, it opens in a new window, after that, all other navigation click on the newly opened window behaves as expected with AJAX, except the home link. When I click on the newly opened window, it opens in another new window.
    When I watched the source code, the class and target are set correctly. Any idea?

    O yes, the main.master is like this:

    <body>
      <div id="container">
          <asp:ContentPlaceHolder ID="MasterTemplateContentPlaceHolder" runat="server"></asp:ContentPlaceHolder>
      </div>

    The contentplaceholder will get id “Content”. That’s what I put in the target label (I tried also container, but doesn’t work properly either).

    Hope you can help me out of this?

    Many thanks in advance.

  2. Hi,

    Here a little addition: the behaviour I described, only appears in FireFox.
    In IE it seems to work. In Chrome, it opens one of the sub pages on a new tab, after that, it stays on that tab and AJAX doesn’t seems to work at all :cry:

  3. Sadly, ajaxify doesn’t seem to work in noConflict-Mode. The “tagToload”-Option is not perfomed after recieving data from an ajax call.

    cu
    tommy

  4. I thought I wasnt going to like this blog but more I read the more I liked it.

  5. Here is a question I would like to throw out to the forum.

    Question: When ajaxifying a hyperlink, is there a way to override the href? (with a modified version of the clicked link)

    Reason: I’d like to maintain backward compatibility with older browsers, so I would like to munge a link on-the-fly to determine who is using javascript.

    Example:

    
    	<a href="/link1" rel="nofollow">Link1</a>
    	<a href="/link2" rel="nofollow">Link2</a>
    
    $(#menu a).ajaxify({
    	target:'#some_target',
    	link:'http://some_new_link?ajax=1'
    });
    

    I know this code is incomplete and I need to wrap it in a function or .click(function(event) (I’m still working on that) but I thought I would throw this out there to see if anyone else has solved this issue.

    I did see a post from max where he indicated that an onstart could be used in the next version. I tried this but it appears to not be in the current version.

    Any advice or help that anyone has is greatly appreciated. TIA.

    Marty

  6. Sorry to reply to my own post.

    Arrggg!! It always happens, as soon a I post, I figure it out, and like usual, it’ soooooooo easy. Here is the answer….

    $('.selector').livequery(function(){
    	$(this).ajaxify({
    		target:'#target',
    	});
    });
    

    It seems as though ajaxify appends ajax=true to the URI by default. So, all I had to do was to test for ajax in the cgi variable space and that tells me whether or not the page was called via ajaxify. Sweeeeeeet!!!

    Max…THE MAN!!!! :)

  7. Is it possible to call ajaxify from javascript? So instead of clicking on a link, you call a function?

    I would like to be able to use a timer and/or keypress to append/refresh data.

    (I hope it’s ok posting here for support – comments on the the v2.0 support page have been disabled)

  8. @Alex

    Sure, it’s easy. Assuming you have the jquery library and ajaxify correctly installed, you just reference the DOM element from within your function… something like this…

    $(#some_selector_name).ajaxify({
        <ajaxify stuff goes here>;
    });

    Here is a link to our site where we use ajaxify that is wrapped in a document.ready function….

    Drip Irrigation (ajaxify)

    View the source code and try the “add to compare” feature. You’ll see ajaxify used as well as some other jquery goodness. Feel free to copy our source code if it will help you.

    If you have not used ajaxify before I suggest you get one of Max’s examples working first. Then wrap it in your function.

    Best of luck, Ajaxify rocks!

  9. @Marty
    Thanks for the help – I figured out that I needed event:false; and then it would work as I had intended.

    Nice site – I love the animation, very smooth & stylish.

  10. I having problems with the Jquery core 1.4.2 and UI 1.8.
    If you use the button widget, the form data will execute normaly, like there’s no Ajaxify?

    Does anyone know a solution for this?

    I tried to submit with a input submit button and the submit event in ajaxify and even with a link to trigger a submit, but both ways do not trigger ajaxify, When changing to core 1.3.2 it works as it should.

    Thank Joost

  11. an extra update:

    the problem is not the core 1.4 but the button widget!

    with the button widget you can make buttons from an anchor, just by adding class button to it.

    if you do so the ajaxify will not work anymore!

  12. Does Ajaxify support loading html snippet’s (say via jQuery load() function) or do you have to have a PHP or other server-side script?

    If is does not, I would like to request that as a feature to be added.

    Thanks.

  13. Dear Max,

    Ajaxify is exactly what I’m looking for, but darn if I can get it to work. I’m new to jQuery but as far as I can tell I’m doing what I’m supposed to:

    1) I’m loading all of the .js packages in your distribution ZIP.

    2) I’m giving the links a class of “ajaxify” and specifying a valid container, for example:

    <a href="mypage.php?act=show_folder&amp;folderid=$folder_id" rel="nofollow">

    Still, no matter what I do, when I click on a link it opens in a new window. What am I doing wrong?

    Many thanks in advance for any help you can provide!

    Mike

Pages: « 1 2 [3] Show All

Leave a Reply

Markup Controls
Emoticons Smile Grin Sad Surprised Shocked Confused Cool Mad Razz Neutral Wink Lol Red Face Cry Evil Twisted Roll Exclaim Question Idea Arrow Mr Green