I have a single page (products) which responds to URL parameters and displays the information accordingly.
Here are some examples:
http://www.mysupersite.com/productshttp://www.mysupersite.com/products/buyhttp://www.mysupersite.com/products/buy/computers
These are user-friendly URLs. The URL parameters are "buy" and "computers".
I need to pass the parameters from the current page in an ajax() to my server so that it knows what types of information to send back e.g.
$.ajax({
type: "POST",
url: "/cfc/getsomeproducts",
dataType: "html",
data: {
//psuedo code below...
ProductCategory: "buy",
ProductType: "computers"
}
})
To clarify, if I were on /products/buy, I would need to send ProductCategory: 'buy'. If on /products/buy/computers, ProductCategory: 'buy', ProductType: 'computers'.
How could I achieve something like this?
http://www.mysupersite.com/products/buy/computers? Can you explain what doesn't work with what you have??and are separated by&, eg/some/uri?category=buy&type=computersurlparameter in your code above to/products.cfmand useGETinstead ofPOSTand it should work as requiredPOST. I fail to see what the problem is