This is a discussion on AJAX PHP Books within the Coding Help forums, part of the Webmaster Help category; I don't get it. The link above has that (the car search menu). Also another ajax is here : http://www.funkyjamjars.ie/ajax/rss_reader/ ...
| |||||||
| Register | Forum Rules | FAQ | Donate | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||||
| I don't get it. The link above has that (the car search menu). Also another ajax is here : http://www.funkyjamjars.ie/ajax/rss_reader/ still working on it cause i need php5 so i am trying to get to work with php < 5 also another one here: http://www.funkyjamjars.ie/carsales_dealers.htm
__________________ :. Web Design & Development Web Design Ireland :. Search Engines Optimization Search Engines Optimization :. Directory Submission Directory Submission :. News & Press Release Ireland GiveItSocks.com :. Used Cars Ireland, Car Parts & Car Audio Cars For Sale, Car Parts & Accessories :. I Have 2 Find It Directory SEF Directory |
| |||||
| What I mean it what site did you get the script from? Not where you implemented it |
| |||||
| for the menus? not a clue - really - i got a bit from there, a bit from there and put it togheter to work the way i wanted. Some of the Ajax function are just XMLHttpRequest common function then using those you create your own funtion to work with your request. |
| |||||
| If you guys are interested in AJAX then I strongly recommend heading over to ajaxian.com if you haven't already doen so. Great place to learn by seeing what other people are doing and there are loads of tutorial based how-to's on the site.
__________________ Search Engine Optimisation - Red Cardinal Internet Marketing Internet Consultant Ireland | Search Engine Optimisation Services Catering Company Dublin - My sister's handmade canape company! |
| |||||
| |
| |||||
| Ok, you are right there a 2 xmlhttprequest made, one for the left menu and the second for the main page. The reason is, cause both of them require some seller_id, and based on that will show on the left the category he has products for, and then in the main page we display his products only. The website that all that is coming from will have many sellers, and I need to filter products and categories based on the id they get at the time of register, so i need the filter. The xmlhttprequest id made to a local page that will be on the seller server, the the page that has been requested (at the moment) is using curl or fopen to get the page, cause javascript doesn't allow it for security reasons. Do you have a better ideea? I tried XML, but found it very complicated to get some features working right, when using ajax and xmlhttprequest is a lot easier and more flexible. I am looking into getting the back button and history sorted out for those pages as well. |
| |||||
| Quote:
Quote:
Even when I click on a product to get more details you could just make this a normal HTTP request (better for SEO) as you are returning a full page anyhow. Maybe I'm totally getting this wrong, but it looks like you are creating extra work for yourself when the simple route (single HTTP request->server scraps required page->server parses data to your template->server sends page) means less overhead, no problems recovering from page history issues, and far more crawlable pages for your site (of course you need to try and avoid the dupe content filters). Quote:
Do the afiliate sites use rss feeds? That could be another option if so and lightweight in terms of overhead. Rgds Richard |
| |||||
| I could do all that without the ajax request indeed using fopen or curl to write it into the source as well, good for SEO, but i am experimenting with ajax to get the hang of it. The pages requested will be located on our server and the reaon we are doing this is cause they contain a lot of sensitive data (database connection) and to be on the safe side I use this option. I don't want to make too many pages to request all the data, cause it might not be worth it, and the seller server might not have all the php features that the pages will require. I can not offer RSS feed at the moment cause i don't see the point and is very limited of what you can do with it. We are trying to get a shopping cart system based on that feed so it will be complicated to get it done using RSS. I made a quick page for the start without using ajax onload event to write some source into the background for SEO here: http://www.funkyjamjars.ie/Logicsoft...ax/index_1.php# that will probably be better, what do you think? Last edited by louie; 17-08-2006 at 05:13 PM. |
| |||||
| Sorry maybe I didn't explain what I meant too well: Rather than: 1. me making a request for the page, 2. the server sending me the page, 3. then my browser (via AJAX) sending two requests for the side_bar and main_body, 4. and finally writing them to the dom via JS (well actually via innerHTML); why not just build all that on the server at my first request and save the overhead (I am completely missing out on something here?). If this is just for experiment then keep it up! Rgds Richard. |
| Tags |
| ajax, books, php |
| Thread Tools | |
| Display Modes | |
|
|
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PHP on windows | louie | Coding Help | 20 | 22-02-2006 06:25 PM |
| ||||||||
| | ![]() | |||||||