Solved

modal window - passing in parameter

Posted on 2009-07-13
2
765 Views
Last Modified: 2012-05-07
Hi,

i need a button on a webpage that when you click on shows a modal window (similar to light box) and displays a page with a form on it
however, i need the parent to pass in a parameter

so the parent would have a button called "get quote" which needs to have a value of the product name
that would load a modal window with a quote form, but automatically populate a text box with the product name

Ideally I need a working example of a pop up window that does this
thanks
0
Comment
Question by:paulCardiff
2 Comments
 
LVL 31

Accepted Solution

by:
GwynforWeb earned 500 total points
Comment Utility
Are you sure you want to use a modal window. Their implementation is browser specific and some browsers don't allow them.

see  http://javascript.about.com/library/blmodal.htm

( from Rhiwbina :-) )
0
 

Author Comment

by:paulCardiff
Comment Utility
thanks!

are there any alternatives that are cross browser compatible?

nice place you're from :o)
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

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.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

762 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now