#1 (permalink)  
Old 08-21-2008, 10:41 PM
Registered User
 
Join Date: Apr 2007
Location: Australia
Posts: 20
How to provide User choice in where to display images from list

I am looking at having more flexibility in arranging images on a web page. I want to have an explorer style menu on the left and be able to select an image from the list and then view it on the right hand side of the page. The items are either full screen html, ½ or ¼ screen.

See current "non explorer style menu" web site as an idea. Aquarium Automation

I have found a javascript explorer menu (dhtmlxTree) that uses xml data and enables me to select the file, which will load a corresponding url for that image which has been defined in the xml.

Once selected I would then like to click on a header or existing image and get it replaced by the one I have selected from the list. As per the current web site if the image selected is ¼ screen it can easily replace the existing image. However if the image selected is ½ screen (horizontal) I need it to take up the space of two ¼ screen images. Each image has small menu that sits above each area as per the existing web site.

Thus
If I select a file which is a html file I need it to fill the entire right hand side.
If I select a file which is ¼ screen I would like to choose if it displays in Upper right UL LL LR
If I select a ½ screen display in upper or lower portion of the area.

I think I can get the menu tree to work and load a url once item is slected, however don't know how to load the url to the display area. Iframes div tables ???
Reply With Quote

  #2 (permalink)  
Old 08-22-2008, 11:55 PM
curtiss's Avatar
Moderator
 
Join Date: May 2003
Posts: 1,438
This is actually a very complex and time-consuming sort of project. You are going to need to study AJAX very intensively and learn how to use Javascript asynchronously with PHP (or whichever server side interpreter you're using) to locate the appropriate images, determine the type and size of the image, and then replace the appropriate items within the DOM (document object model) with the selected item.

I would honestly estimate that this would probably take a beginner anywhere between six and eighteen months to put together from scratch (assuming that there are no pre-built scripts out there that can do this for you), and that it would take an experienced programmer at least 80 hours (possibly three times that, depending on the complexity of the images you will be swapping out).

If you want to build it yourself, I would follow these steps:
1) If you are not familiar with PHP and the way it handles GET requests, its image manipulation functions and its file stream functions, begin by looking for some good tutorials on those subjects
2) If you are not familiar with the DOM and the way Javascript can manipulate it (adding new elements to a page, replacing existing elements with new elements, etc.), look for some good tutorials on that subject. I wrote a five-part tutorial for HTMLCenter on the subject, so you may be able to glean some information from that.3) Finally, if you are not familiar with the way AJAX works, visit W3Schools and read their tutorial on using AJAX.
__________________
I hate Internet Explorer! Anyone with me?
Reply With Quote
  #3 (permalink)  
Old 08-24-2008, 06:20 AM
Registered User
 
Join Date: Apr 2007
Location: Australia
Posts: 20
Thanks for the comments... It's good to understand the complexity of such a requirement. on the flip side the site has taken 2 years thus far to get to where it is today so my expectations are for the next phase to take a number of months. I may have to split the requirements into a couple of phases.
Reply With Quote
Reply


Thread Tools
Display Modes 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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
user content websites? voodoo5010 Programming and Scripting 1 07-15-2008 02:14 AM
Display Value (ie 28.3) dynamically in web page Bad Inferno Graphics and Flash 0 07-01-2007 06:03 AM
Row Of Images With Captions curtiss Programming and Scripting 6 02-17-2007 10:12 PM
Loading correct images.. yuppicide Programming and Scripting 5 01-24-2007 06:57 AM


All times are GMT -5. The time now is 03:24 AM.

 
Bitrix
Clicky Web Analytics
CloudContacts
Maxtango


Subscribe to our feed | add to myYahoo!

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
© 1997-2007 HTMLCenter