We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22592
    • 11 Posts
    Hello,

    this is not so much a snippet, module or plugin but a simple way to make all sites ’AJAXY’ without serverside coding.

    Only thing needed is to set the class attribute of links.

    It is a modified version of the code from http://www.twinhelix.com in that it allows more than one class to be defined for a link.

    Basically, it works like this:

    In your template:
    - Include the javascript lib. (see attached example)
    - Create a <div name="sometargetname">initial content</div>
    - Give links a class of ’loadinto-sometargetname’ (you can have multiple classes separated by whitespace, so you can still use CSS to style them).
    - Now if you click the link, the page will be loaded into the div instead of being called as a new page.

    N.B. the pages that will be loaded into the div MUST be valid html/xml/xhtml, otherwise Firefox will not play.

    This means that you make 1 page which is fully layouted and pretty and the rest is simple xml stuff.
    Also easier on your webserver too smiley

    Greets!

    Then,
      ---
      "Change the rules, challenge the future!"
      • 15914
      • 145 Posts
      OK, I’ve found this useful already. This needs to go into the Resources.
        Kunal Kapoor
        Technical Director
        Limesharp Internet Limited - Effective, Functional, Standards Compliant

        IRC Nick: KingKoopa
        Skype ID: KingKoopa16
        • 32241
        • 1,495 Posts
        Cool stuff, but the license is not.

        I’ll check this out sometime today.
          Wendy Novianto
          [font=Verdana]PT DJAMOER Technology Media
          [font=Verdana]Xituz Media
        • What is the matter with the LGPL?
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
            • 32241
            • 1,495 Posts
            Quote from: rthrash at Feb 16, 2006, 03:33 PM

            What is the matter with the LGPL?

            Hemm.. I saw that script before I think there is a statement on the site that says if we are going to use it under commercial usage, we need to either contact the owner to discuss it further or we need to pay for the script to use it. Ehmm... But I’m trying to look for that statement now, and I couldn’t find anything relate to that, except the LGPL.

            I’l look this further, it’s been like a few months ago when I last checked this site.
              Wendy Novianto
              [font=Verdana]PT DJAMOER Technology Media
              [font=Verdana]Xituz Media
              • 22592
              • 11 Posts
              Heya,

              it is LGPL (http://creativecommons.org/licenses/LGPL/2.1/) which basically states that you can use it for any purpose you see fit.

              I just noticed I forgot to include the original. *shame on me*

              I have modified the zip file to include the full original code.
                ---
                "Change the rules, challenge the future!"
                • 23703
                • 180 Posts
                Is this what you saw Djamoer?

                http://www.twinhelix.com/dhtml/divscroll/
                  • 2762
                  • 1,198 Posts
                  I agreee with wendy undecided
                  Script License Agreement

                  You may use this script only if you agree that:

                  1. You must EITHER:
                  1. Donating Users: This script is "donation-ware". If you can make a donation to support this script, it may be used on a website without a crediting link. Please consider making a donation! I have spent a lot of time developing, debugging and documenting scripts, and any support is welcome. More info...
                  2. Free Users: All websites using this script for free must contain somewhere a visible crediting link to TwinHelix Designs, e.g. ’DHTML / JavaScript Tree by TwinHelix Designs’.
                  2. You must leave the "Script Name/Author/URL" comment in the source of the script file.
                  3. This script is provided on an "AS-IS" basis, without any warranties, and you use it entirely at your own risk.
                  4. This script may not be redistributed, sold, rented, leased or sublicensed to third parties without my prior consent.

                  If you have another use for the script (for example, within a web application) or wish to arrange alternate licensing terms, please contact me for more information.
                    Free MODx Graphic resources and Templates www.tattoocms.it
                    -----------------------------------------------------

                    MODx IT  www.modx.it
                    -----------------------------------------------------

                    bubuna.com - Web & Multimedia Design
                    • 22592
                    • 11 Posts
                    Yep, but that is for the DivScroll.

                    I will mail the author to get clarification.


                    Greets!
                      ---
                      "Change the rules, challenge the future!"
                      • 32241
                      • 1,495 Posts
                      Quote from: Pont at Feb 16, 2006, 07:28 PM

                      Is this what you saw Djamoer?

                      http://www.twinhelix.com/dhtml/divscroll/

                      Thanks for pointing that out. That might be the one that I saw. Paladin, if you can confirm the license with the author, it will be great. Knowing how the credit need to be appeared on the site will be great as well.

                      Thanks
                        Wendy Novianto
                        [font=Verdana]PT DJAMOER Technology Media
                        [font=Verdana]Xituz Media