Go Back   CodingForums.com > :: Client side development > JavaScript programming > Ajax and Design

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-04-2007, 04:20 PM   PM User | #1
sftl99
Regular Coder

 
Join Date: Apr 2005
Location: austin, tx
Posts: 148
Thanks: 0
Thanked 0 Times in 0 Posts
sftl99 is an unknown quantity at this point
PHP submit without reload

See the link below. The PHP is fine, but if you start clicking through thumbnails you can see that the page's functionality is suffering big time. The page must reload to pass the PHP variables. Take a look at the URL's and the links...is there any way to get this done without reloading the page? Is there any way to do it using only collection.php (i.e. not creating a new page and having to fit everything in)?

http://www.catherinepage.net/collection.php?c=Acanthus

I'm sorry, I'm a PHP person, I have no starting point here with AJAX. I understand if you're not willing to help.
sftl99 is offline   Reply With Quote
Old 05-07-2007, 04:56 PM   PM User | #2
david_kw
Senior Coder

 
Join Date: Nov 2006
Posts: 1,000
Thanks: 0
Thanked 0 Times in 0 Posts
david_kw will become famous soon enough
Yes it can be done. Personally I'm not even sure I'd use ajax for this site unless the number of items in each collection isn't representitive of the final website. It looks like you have 30-40 items. Sometimes what I do instead of ajax is to just load all the data into the original webpage and only show the bits I need to show at any given time.

It looks like the only parts that are changing are the item information, the description, and the medium sized image. Plus the highlight border in the gallery. All that can be represented with text (the image by using the URL).

The other way is with ajax which can make things more flexible but typically takes a bit more work. If you are going to start having more (maybe 100+?) returns from a search then ajax probably makes more sense.

Do you have any thoughts on which one makes more sense for your site?

david_kw
__________________

www.eXfer.net
david_kw is offline   Reply With Quote
Old 05-07-2007, 06:19 PM   PM User | #3
snake_eyes
New Coder

 
Join Date: Mar 2007
Posts: 74
Thanks: 0
Thanked 0 Times in 0 Posts
snake_eyes is an unknown quantity at this point
Smile

Hello,

try this out, hoping it helped:

http://www.huddletogether.com/projects/lightbox/

Regards
snake_eyes is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 09:15 AM.


Advertisement
Log in to turn off these ads.