Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to create a common HTML page to display details of images selected from a previous page

Posted on 2013-01-28
1
Medium Priority
?
267 Views
Last Modified: 2013-02-19
In a web application (with HTML, javascript, CSS etc)I am creating a start up HTML page that contain lots of images.

Then when the user clicks any of the images, another window pops up with details of that selected image. This page contains
1. The larger version of the of image
2. Detailed description

I want to keep this second message window a common one for all images. So I plan to use
ajax to read details of each image from a file. Then build the contents of the page dynamically using javascript.

By problem is to tell the second window what image was selected from first page so that
I can pull information of that image from the file shwo build the second page dynamically.

So how should I send a value from one page to another in HTML?
0
Comment
Question by:prain
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 38

Accepted Solution

by:
Tom Beck earned 1000 total points
ID: 38829561
It sounds like you want a modal popup (a div on the same page that you toggle on and off using javascript). This div can be loaded with the necessary image and details using an ajax call to the second page by using an url with a query at the end to hold the id of the image selected.

Example: http://www.mydomain.com/largeImage.html?id=img123

When the second page reads from the file using the image id to select the proper image and details, you can then use some javascript on that page to fill in the blanks, i.e large image path and details text.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Suggested Courses

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question