This is a discussion on "pass $_POST data into popup window" within the JavaScript Forum section. This forum, and the thread "pass $_POST data into popup window are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
pass $_POST data into popup window
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
pass $_POST data into popup window
Hi all!
I have a page (generated with PHP) that has a list of employee names. What I want to do is, when the user hits on each name, a pop-up window (using Javascript) to appear which will say some more details on the employee (i.e his age, job experience etc). So I thought I make a form for each employee name, and use hidden fields to pass the info I want. For example <form> <input type="hidden" name ="age" value="23 years old"> <input type="hidden" name="experience" value="expert"> <input type="submit" value="John"> </form> With the above, I show a little example of course. What I have is a submit button with John's name written in it and I want, when the user clicks on John, a pop-up window to appear and contain the "hidden" values of age and experience in it. I don't know much about Javascript, i tried usind the document.write function, but no luck. I can only "send" data to the next page that are written in an input field, but not data that are written in hidden fields... Any thoughts? |
|
|
|
|||
|
Re: pass $_POST data into popup window
Hi there,
Pop-up windows are not a good idea as they can be blocked and most end-users object to them these days. It is also a bit of an over the top approach for what you want to do. I would suggest placing the hidden information in blocks using the div tag, eg.,
You will also need to incorporate the file that makes IE play properly with the psuedo :hover. You can get this from: http://www.xs4all.nl/~peterned/csshover.html |
![]() |
| Tags |
| pass, _post, data, popup, window |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Forced Selection In a popup window | Jamie18 | JavaScript Forum | 0 | Jun 18th, 2007 18:58 |
| Got to fit the image to 800x600 popup window | kivanc | JavaScript Forum | 2 | Dec 29th, 2006 20:12 |
| Rollover menu / popup window | magiccupcake | JavaScript Forum | 3 | Dec 18th, 2006 16:10 |
| Popup window problem in netscape 8.1 | nitu | JavaScript Forum | 0 | Sep 12th, 2006 11:33 |
| Javascript popup window with ASP | madhuri.t | Classic ASP | 0 | May 3rd, 2006 10:42 |