Solved

modal window - passing in parameter

Posted on 2009-07-13
2
772 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
[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
2 Comments
 
LVL 31

Accepted Solution

by:
GwynforWeb earned 500 total points
ID: 24840652
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
ID: 24840787
thanks!

are there any alternatives that are cross browser compatible?

nice place you're from :o)
0

Featured Post

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
How to build a simple, quick and effective accordion menu using just 15 lines of jQuery and 2 css classes
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)

734 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