AJAX requests in web site template Jun18 '06
Feedback
# (2 of 2): Matthom
2 days, 3 hours after the fact. (Tue 20 Jun 2006, 1:37 PM CST)
Yes. In fact, every request that does actually exist as a path (ie: mydomain.com/documents/expenses.doc) should be reached. In other words, if the file or folder does not exist, it goes to my default template page.
So I could easily just request (through AJAX) the full file path, but there’s one problem: appending variables to that file path. Once you use the question mark (?) in the file path (through AJAX), it breaks.
Not sure if this is part of the .htaccess file, that’s not allowing it, or what. Still trying to figure it out.
RSS feed for comments on this post
Leave feedback
matthom
is published and produced by Matt Thommes - an independent publishing enthusiast, mobile blogger, content creator, informative writer, web developer from Chicago.
Never one to conform, Matt intends to promote the effect the web has on our lives, in an effort to intensify, instruct, and clarify all that is happening around us.
A template is a very good way to setup a web site, but you may run into problems when using AJAX.
You are at the feedback permalink page for: AJAX requests in web site template
# (1 of 2): Jennifer Grucza » jennifergrucza.com
1 day, 23 hours after the fact. (Tue 20 Jun 2006, 10:21 AM CST)
Well it depends on how your template system works. Can’t you tell it to only work on certain files or folders or filename patterns? Or to exclude certain ones? So that not everything goes through the template. E.g. put your AJAX pages into a different folder and exclude them.