Forums / General Questions / blank page for ajax requests

blank page for ajax requests

Locked

Views: 782

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
14 Dec 2007, 2:52 PM
#1
skrnr avatar

skrnr

New Zenner

Join Date:
Dec 2007
Posts:
2
Plugin Contributions:
0

blank page for ajax requests

I want to do an ajax call to check the cart status.

Right now I'm just pulling the cart page and parsing out some data I outputted there. This isn't an ideal solution.

I'd rather be connecting to a blank zen cart page with just the data I require. But how do I suppress all the template stuff around it?

Or alternatively what are the minimum files I need to include in order to include on a custom php page to get the shopping cart status?

I couldn't even figure out how to get to the session outside of a template page

16 Dec 2007, 4:32 AM
#2
jaycode avatar

jaycode

Zen Follower

Join Date:
Jun 2007
Location:
Australia - Melbourne
Posts:
306
Plugin Contributions:
1

Re: blank page for ajax requests

I handle this with creating all my ajax server pages inside a folder AJAX_servers, then calling application_top before everything else, and rewrite the header to xml/text.

I have documented it on:
http://www.webextremecustomiser.com/?p=15

Feel free to download my contribution ajax image swapper, the structure there may be able to help you with that.

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

18 Dec 2007, 7:59 PM
#3
skrnr avatar

skrnr

New Zenner

Join Date:
Dec 2007
Posts:
2
Plugin Contributions:
0

Re: blank page for ajax requests

Yep. application_top did the trick.

It was stupid of me not to go through the includes on index.php to figure that out.

Thank You.

19 Dec 2007, 10:00 AM
#4
jaycode avatar

jaycode

Zen Follower

Join Date:
Jun 2007
Location:
Australia - Melbourne
Posts:
306
Plugin Contributions:
1

Re: blank page for ajax requests

Great, good luck with the ajax stuff mate

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