We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 29076
    • 615 Posts
    Hope someone can give me a starting-clue on these: I making a site where you can choose from lists and compare to elements on the same page, side by side.

    What is the best technic to use here, two side-by-side-IFRAME, ordinary columns and reload the hole page, or AJAX?


    Thanks.
      I think, thererfor I am! But what I am, and why...?
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      I would use Ajax, with proper degradation to a full page reload if the client does not support Javascript.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 29076
        • 615 Posts
        Thanks. I have seen this: http://demos.mootools.net/Ajax.Advanced, and I will try to see if this can do the job. If my programming skills reach that far.

        Or maybe someone has another example?
          I think, thererfor I am! But what I am, and why...?
          • 29076
          • 615 Posts
          Quote from: ganeshXL at Oct 30, 2007, 07:21 AM

          Always just two elements, or can there be more? It depends a bit what you want to do exactly.
          Always just two elements, and the only thing that is to be loaded in each part is a single, ordinary modx-document. The hole thing will have it’s own modx-template.

          Quote from: ganeshXL at Oct 30, 2007, 07:21 AM

          Is this one of those comparison table thingies that you often see in e-shops, where you can tick any number of products, and have them all listed on another page for feature/price comparison?
          That kind of thing is usually just another cart-type: with simple form elements and a separate page that reads some session or cookie value to list the items.
          Yes it’s one of those comparison table thingis, in it’s simplests form.

          I’ll try an AJAX-solution this weekend  tongue, but if someone has a good example for me I’ll be veery glad.  laugh
            I think, thererfor I am! But what I am, and why...?
            • 29076
            • 615 Posts
            I have to rethink the hole thing. I can’t just load a hole document via URL in an AJAX-frame, because it is connected to a template, and the javascript I tried in my AJAX-call loads the hole document, with template, body and all html/css.

            What I have to find out is to make the AJAX-call to only load the Content of a document, and not the hole document via URL.

            PUH!  huh

            Just found this: http://modxcms.com/forums/index.php/topic,6743.30.html. I will have a look at this as soon as possible.
              I think, thererfor I am! But what I am, and why...?