[SOLVED] Â popup to update another table in database |
12/10/2013 7:58:39 AM |
PHPRunner General questions | |
![]() Hi All, |
|
![]() |
Sergey Kornilov admin 12/10/2013 |
If you need to open any page in a popup i.e. Add page of another table - here is the article that can help: |
![]() |
Graphix author 12/10/2013 |
If you need to open any page in a popup i.e. Add page of another table - here is the article that can help: http://xlinesoft.com/blog/2013/04/25/displaying-a-page-in-a-popup-window/ To pre-poulate fields of that form you can use session variables. I.e. set default value to $_SESSION["somevar"] and assign a value to this session variable before opening a window in popup.
|
![]() |
Sergey Kornilov admin 12/10/2013 |
If there is no button - how do you know when to display the popup. There must be some sort of event that triggers it. |
![]() |
Graphix author 12/11/2013 |
If there is no button - how do you know when to display the popup. There must be some sort of event that triggers it.
|
![]() |
Sergey Kornilov admin 12/11/2013 |
Kevan, |
![]() |
Graphix author 12/11/2013 |
Kevan, it doesn't shed any light. When this popup needs to be shown i.e. when some page is loaded, before record is saved etc?
|
![]() |
Sergey Kornilov admin 12/11/2013 |
Okay, I got it. The event that triggers this popup is user's input. var ctrlFMC3 = Runner.getControl(pageid, 'FMC3'); |
![]() |
Graphix author 12/11/2013 |
Okay, I got it. The event that triggers this popup is user's input. Here is the example of doing something after value of field was changed: http://xlinesoft.com/phprunner/docs/show_dropdown_list_of_us_states.htm var ctrlFMC3 = Runner.getControl(pageid, 'FMC3');
|