User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 456,583 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,610 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 1654 | Replies: 3
Reply
Join Date: Nov 2007
Posts: 10
Reputation: Cosmocrazy is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
Cosmocrazy Cosmocrazy is offline Offline
Newbie Poster

Question Images, thumbnails, and iFrames

  #1  
Nov 4th, 2007
Hi guys. I know that the web has this magical thing called JavaScript which makes making some types of web pages much easier. I was wondering if you could help me by providing a code snippet or something for this situation:

I am making a site for my art teacher that displays the work of her students. I already have some of it down, except it needs a lot of work. The basic setup is Home > pick a course > pick an assignment > view images. On each of the assignment pages, I put thumbnails and a big frame to display the selected image. An example:

Art 1 - Pencil Portrait
Please forgive me for the extremely long load times; this is what I meant by "needs a lot of work".

Anyway, you get the basic setup. User clicks on thumbnail, and an HTML page with the image in it pops up in iFrame. The image that pops up there can also be clicked on to show the image in its actual size.

The problem with that is that I have to make an HTML page for each image in which I put the resized image and make it a link to see the actual size one.

I have hundreds of images. (and more in future semesters) I do not want to make a custom HTML page for each one. I was also thinking of putting the thumbnails on each assignment page in a frame, so that I can expand easily in future semesters. This would make a total of 2 iFrames on each page. One for the thumbnails, and one for the image currently being viewed.

Is it possible to have some script on each assignment page that makes it so that when you click on one of the thumbnails, it loads the image in the iFrame with the iFrame's height? I know there's a way, I'm just not experienced enough to pull it off without help. There are also a few things to note:
  • I do not want the image to open in a new window
  • I do not have access to the server (as in I can't implement any server-side stuff)
  • The captions that you see below the image [that show who the work was done by] are unnecessary; I don't need them anymore.
  • I am still willing to make the thumbnails on each page, just not the customized HTML pages that they link to.
  • I would like the image in the iFrame to link to the actual size image.

If you could provide me with a solution that works I'd appreciate it GREATLY.
Last edited by Cosmocrazy : Nov 4th, 2007 at 9:10 pm. Reason: Edited solution criteria
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jun 2007
Location: Valley Center, Kansas
Posts: 643
Reputation: kkeith29 is on a distinguished road 
Rep Power: 3
Solved Threads: 72
kkeith29's Avatar
kkeith29 kkeith29 is online now Online
Practically a Master Poster

Re: Images, thumbnails, and iFrames

  #2  
Nov 8th, 2007
can you use php at all? i can make a script for this in a few hours in php but i am still trying to think of a way to do this in javascript.
Reply With Quote  
Join Date: Nov 2007
Posts: 10
Reputation: Cosmocrazy is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
Cosmocrazy Cosmocrazy is offline Offline
Newbie Poster

Re: Images, thumbnails, and iFrames

  #3  
Nov 9th, 2007
It just so happens that I am switching host providers. I will now be using the amazing x10hosting.com with the no ads, free 10GB/month bandwidth with cPanel and all the support for php, mySQL and that other stuff. so yes, the server ill be using does support php but i hope i dont have to rebuild a huge chunk of the site because of it.
Reply With Quote  
Join Date: Jun 2007
Location: Valley Center, Kansas
Posts: 643
Reputation: kkeith29 is on a distinguished road 
Rep Power: 3
Solved Threads: 72
kkeith29's Avatar
kkeith29 kkeith29 is online now Online
Practically a Master Poster

Re: Images, thumbnails, and iFrames

  #4  
Nov 9th, 2007
you shouldn't have to. i sent you a private message with a url to a test script i made. have a look. i think it would work for your site quite nicely.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JavaScript / DHTML / AJAX Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 6:29 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC