Irish SEO,  Marketing & Webmaster Discussion

 

AJAX PHP Books

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/ ...


Go Back   Irish SEO, Marketing & Webmaster Discussion > Webmaster Help > Coding Help

Register Forum Rules FAQDonate Members List Calendar Search Today's Posts Mark Forums Read


Notices

Reply

 

LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 02-08-2006, 02:36 PM
louie's Avatar
Senior Member
 
Join Date: Jan 2006
Location: Dublin, Ireland
Posts: 2,048
Nominated 5 Times in 3 Posts
Nominated TOTW/F/M Award(s): 1
louie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enough
Send a message via Yahoo to louie Send a message via Skype™ to louie
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12 (permalink)  
Old 02-08-2006, 02:45 PM
ph3n0m's Avatar
Webmonkey
Recent Blog: Show and click
 
Join Date: Jan 2006
Location: Ireland
Posts: 300
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
ph3n0m will become famous soon enough
Default

What I mean it what site did you get the script from? Not where you implemented it
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #13 (permalink)  
Old 02-08-2006, 03:06 PM
louie's Avatar
Senior Member
 
Join Date: Jan 2006
Location: Dublin, Ireland
Posts: 2,048
Nominated 5 Times in 3 Posts
Nominated TOTW/F/M Award(s): 1
louie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enough
Send a message via Yahoo to louie Send a message via Skype™ to louie
Default

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #14 (permalink)  
Old 15-08-2006, 10:20 PM
RedCardinal's Avatar
Richard Hearne
Recent Blog:
[CaRP] XML error: Invalid character at line 1152
 
Join Date: Feb 2006
Posts: 961
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
RedCardinal is a splendid one to beholdRedCardinal is a splendid one to beholdRedCardinal is a splendid one to beholdRedCardinal is a splendid one to beholdRedCardinal is a splendid one to beholdRedCardinal is a splendid one to beholdRedCardinal is a splendid one to behold
Default

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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #15 (permalink)  
Old 17-08-2006, 02:59 PM
louie's Avatar
Senior Member
 
Join Date: Jan 2006
Location: Dublin, Ireland
Posts: 2,048
Nominated 5 Times in 3 Posts
Nominated TOTW/F/M Award(s): 1
louie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enough
Send a message via Yahoo to louie Send a message via Skype™ to louie
Default

what do you think of this using Ajax to get files froma different domain?

Seller#
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #16 (permalink)  
Old 17-08-2006, 03:56 PM
RedCardinal's Avatar
Richard Hearne
Recent Blog:
[CaRP] XML error: Invalid character at line 1152
 
Join Date: Feb 2006
Posts: 961
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
RedCardinal is a splendid one to beholdRedCardinal is a splendid one to beholdRedCardinal is a splendid one to beholdRedCardinal is a splendid one to beholdRedCardinal is a splendid one to beholdRedCardinal is a splendid one to beholdRedCardinal is a splendid one to behold
Default

Quote:
Originally Posted by louie View Post
what do you think of this using Ajax to get files froma different domain?

Seller#
Just wondering, maybe I'm missing something but you seem to be sending the page via the initial HTTP request then sending 2 further requests via xmlhttprequest for the left_menu and main_body.

Is there some advantage to doing this over sending a new HTTP request and letting the server scrap the content and send a single page? I presume you are scrapping the content from another site?

I think AJAX is a great tool for specific uses but you have to be careful not to use xmlhttprequest for the sake of it, and be very careful that usage lowers overhead unless there is very real business logic in using it (e.g. editing in place and real-time database applications).

Nice to see some experimentation with AJAX. I hadn't seen that library before either.

Rgds

Richard
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #17 (permalink)  
Old 17-08-2006, 04:23 PM
louie's Avatar
Senior Member
 
Join Date: Jan 2006
Location: Dublin, Ireland
Posts: 2,048
Nominated 5 Times in 3 Posts
Nominated TOTW/F/M Award(s): 1
louie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enough
Send a message via Yahoo to louie Send a message via Skype™ to louie
Default

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #18 (permalink)  
Old 17-08-2006, 04:45 PM
RedCardinal's Avatar
Richard Hearne
Recent Blog:
[CaRP] XML error: Invalid character at line 1152
 
Join Date: Feb 2006
Posts: 961
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
RedCardinal is a splendid one to beholdRedCardinal is a splendid one to beholdRedCardinal is a splendid one to beholdRedCardinal is a splendid one to beholdRedCardinal is a splendid one to beholdRedCardinal is a splendid one to beholdRedCardinal is a splendid one to behold
Default

Quote:
Originally Posted by louie View Post
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.
Don't you have that seller_id when the page is initially requested? If so just let the server do the work before sending the page and you remove the 2 additional requests?

Quote:
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.
Again, can't this all be done on the server before your parse the page?

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:
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.

Do the afiliate sites use rss feeds? That could be another option if so and lightweight in terms of overhead.

Rgds

Richard
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #19 (permalink)  
Old 17-08-2006, 05:02 PM
louie's Avatar
Senior Member
 
Join Date: Jan 2006
Location: Dublin, Ireland
Posts: 2,048
Nominated 5 Times in 3 Posts
Nominated TOTW/F/M Award(s): 1
louie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enough
Send a message via Yahoo to louie Send a message via Skype™ to louie
Default

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #20 (permalink)  
Old 17-08-2006, 05:20 PM
RedCardinal's Avatar
Richard Hearne
Recent Blog:
[CaRP] XML error: Invalid character at line 1152
 
Join Date: Feb 2006
Posts: 961
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
RedCardinal is a splendid one to beholdRedCardinal is a splendid one to beholdRedCardinal is a splendid one to beholdRedCardinal is a splendid one to beholdRedCardinal is a splendid one to beholdRedCardinal is a splendid one to beholdRedCardinal is a splendid one to behold
Default

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
ajax, books, php

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads

Thread Thread Starter Forum Replies Last Post
PHP on windows louie Coding Help 20 22-02-2006 06:25 PM


Sponsored links

Paid On Results


All times are GMT +1. The time now is 01:32 PM.


Powered by: vBulletin Version 3.7.3, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
Hosted in Ireland by Blacknight - Test your ISP |Irish Hosting Directory| Armchair.ie|Logo by Eden Web Design|Avatars by Afterglow |Latest Blog Entries | VPS HostingAd Management by RedTyger

Search Engine Friendly URLs by vBSEO 3.2.0