•
•
•
•
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
![]() |
•
•
Join Date: Nov 2007
Posts: 10
Reputation:
Rep Power: 2
Solved Threads: 0
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:
If you could provide me with a solution that works I'd appreciate it GREATLY.
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
•
•
Join Date: Jun 2007
Location: Valley Center, Kansas
Posts: 643
Reputation:
Rep Power: 3
Solved Threads: 72
•
•
Join Date: Nov 2007
Posts: 10
Reputation:
Rep Power: 2
Solved Threads: 0
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.
![]() |
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Generate Thumbnail images on the fly. (PHP)
- Help with comments box and uploading and resizing images for users (PHP)
- Resizing images w/ python (Python)
- Datalist navigation (ASP.NET)
- Thumbnailed images (PHP)
- in need of dreamweaver help possibly photoshop CS as well (Graphics and Multimedia)
- PHP image swapping ? (PHP)
- I just wanted some opinions on my site (Website Reviews)
- Missing Thumbnails (Web Browsers)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Javascript help
- Next Thread: Extending HTML Forms


Linear Mode