Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 2006
    Posts
    149
    Plugin Contributions
    0

    Default Incorporating AJAX

    Hi everybody,

    I am trying to incorporate ajax for all the links opened in the central column ( I have done similar things for other platforms ex. joomla). I am using the xajax library and the main loading concept as follows:

    1) jscript at the end of the page (below the closing body tag) changes ALL the links on the page to be loaded via the xajax function (let's say load_xajax('target') to a specified div.

    2) I remove all the headers, left and right columns from the targets to get a "raw" code to be loaded onto that div.

    3) the "raw" code is loaded to the dedicated div below the breadcrumb

    OK, everything works perfectly except one problem - I cannot extract the raw target code without body, head ets tags. If I am using the flags:

    $flag_disable_left = true;
    $flag_disable_right = true;
    $flag_disable_header = true;
    $flag_disable_footer = true;

    it still generates the complete html page with all the tags (body, head and so on) and css links. As a result I am getting a page with the double html and body tags.

    I tried to play with $body_code, but still cannot extract a valid target code to insert into the ajax div.

    My question: how to extract the same code that is placed in the center column (require($body_code);)?

    I would appreciate some advice from zen gurus.

    Thanks

    Andy

  2. #2
    Join Date
    Oct 2006
    Posts
    149
    Plugin Contributions
    0

    Default Re: Incorporating AJAX

    Fixed it already.. I could not find anything better than making the second index2.php and tpl_main_page2.php to create an output of the central column only and without body/head tags

  3. #3
    Join Date
    Nov 2007
    Posts
    30
    Plugin Contributions
    0

    Default Re: Incorporating AJAX

    Would you mind sharing a link to your site? I'd like to check out the stuff you're doing with AJAX. I have some ideas to incorporate AJAX with Zen Cart.

  4. #4
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: Incorporating AJAX

    you need to remember that even though you set the header flag to false,
    the html_header.php will automatically load
    Zen cart PCI compliant Hosting

  5. #5
    Join Date
    Oct 2006
    Posts
    149
    Plugin Contributions
    0

    Default Re: Incorporating AJAX

    It is almost done. I will give you a link in a few days when the site is ready

  6. #6
    Join Date
    Jun 2007
    Location
    Australia - Melbourne
    Posts
    310
    Plugin Contributions
    6

    Default Re: Incorporating AJAX

    Hi,

    I was looking for a thread like this.

    I have uploaded two AJAX Based modules (and a lot more I haven't published) but the way I learned it was guerilla based. In short, I developed my own way to apply AJAX which is by putting all the server files inside AJAX_servers folder.

    If it is possible, I would like somebody more experienced to review my method. Although at this point I have not met any problem, I don't want to take the risk of going at the wrong direction.

    The links to my modules are:

    AJAX Image Swapper:
    http://www.webextremecustomiser.com/...&products_id=1

    and

    AJAX Banner Swapper:
    http://www.zen-cart.com/index.php?ma...roducts_id=855

    Thank you for taking the time to read my post.

    Jay
    The greatest pleasure in life is doing what people say you cannot do.

    Check on www.WebExtremeCustomiser.com for my modules (free contribution):
    AJAX Image Swapper
    AJAX Banner Swapper
    Fixed Navigation

 

 

Similar Threads

  1. Incorporating site
    By pmcclay in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 4 Nov 2010, 06:36 PM
  2. Incorporating into an exisiting site
    By abasel in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 27 Jun 2007, 10:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg