Irish SEO,  Marketing & Webmaster Discussion

 
Make money - save the planet!

AJAX PHP Books

This is a discussion on AJAX PHP Books within the Coding Help forums, part of the Webmaster Help category; Originally Posted by rgh Sorry maybe I didn't explain what I meant too well: Rather than: 1. me making a ...


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
  #21 (permalink)  
Old 17-08-2006, 05:32 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

Quote:
Originally Posted by rgh View Post
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.
You can not request another page using ajax or javascript if the page requested is on a different domain. It's a security built into javascript that doesn't allow it.
If you try you will get a "Permission Denied" error, the reason we use fopen or curl function.

I tried it but it didn't work.

The page requested has to be executed on the domain that owns the page, then send it over to the requesting party.
__________________
:. 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
  #22 (permalink)  
Old 17-08-2006, 08:54 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
You can not request another page using ajax or javascript if the page requested is on a different domain. It's a security built into javascript that doesn't allow it.
If you try you will get a "Permission Denied" error, the reason we use fopen or curl function.

I tried it but it didn't work.

The page requested has to be executed on the domain that owns the page, then send it over to the requesting party.
Yep I understand the issues with x-domain requests. What I dont know is why you are doing this in the browser? Apart from experimenting with this, is there any reason why you are doing these page refreshes via AJAX? You could do everything that you re doing on the server and just serve up the pages via normal HTTP requests.

When I request Seller your server sends me a template file and then sends 2 xmlhttprequest calls to your server for left_menu and main_body which get populated to the template. Why not just send the entire page with the first request? Less bandwidth, less overhead, less hassle.

BTW there are ways to get arounf the cross-domain security issues try a hidden I-Frame.
__________________
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
  #23 (permalink)  
Old 17-08-2006, 09: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

When you view the products, you only see 20 of them at one time, so as you said I could bring all that with one go, but one seller could have 500-1000 products, and every product has 1 or more large images plus a very large description (some of them), so what am i going to do then?

Those pages is going to have some paging function at the top and bottom for navigating trough them if more then 20 per category.

Regarding iframes - i don't like them so i don't want to use this option.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #24 (permalink)  
Old 18-08-2006, 08:28 AM
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
I made a quick page for the start without using ajax onload event to write some source into the background for SEO here:
Seller#

that will probably be better, what do you think?
Forgetting all about the technology, that page loads a lot quicker and as a user I will apreciate this.

FYI when I click on a product the div you insert in the page has width:100% so on Firefox that stretches the screen over on the right hand side. You might want to check this out.

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
  #25 (permalink)  
Old 18-08-2006, 08:38 AM
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

Thanks, i got it sorted out.
It was actually the div for the image itself - had width:110px set for some stupid reason.

removed that and it looks fine know.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #26 (permalink)  
Old 29-08-2006, 03:07 AM
georgiecasey's Avatar
Member
 
Join Date: Jul 2006
Location: Galway / Ennis
Posts: 277
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
georgiecasey will become famous soon enough
Send a message via ICQ to georgiecasey
Default

As per the original topic, I've downloaded and used a lot of AJAX books and the best IMHO is definately 'Professional AJAX' by Nicholas Zakas
__________________

My Blog
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #27 (permalink)  
Old 29-08-2006, 03:00 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

Didn't get my hands on that one yet, but as far as I can tell, it's very easy to get the hang of it. There are few rules creatting the request, the rest is left to your imagination, so wastting more money on books is not worth it, not now anyway. I am looking into getting the back button to work as well, and once that's done it's all go go.
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:17 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