[SOLVED] Virtual Keyboard Issue: Works in Tabs, Not in Pop-Ups |
6/7/2024 5:41:26 AM |
PHPRunner General questions | |
Q
qbin author
Sure, here is the optimized text for your forum post: Hello, I'm trying to implement a virtual keyboard on the add page. When I open the add page in a separate tab, it works perfectly. However, if I open it in a pop-up, it doesn't work at all—no errors, it just doesn't function. I've tried placing the JavaScript code directly in the event handlers for both the add and list pages. I've also attempted including the script from multiple external files as well as a single external file. Despite these efforts, the virtual keyboard still doesn't work in the pop-up, though it works flawlessly when not using a pop-up. Am I missing something? Thanks Here is the code for the numerical keyboard. <!DOCTYPE html> |
|
![]() |
Sergey Kornilov admin 6/7/2024 |
You need to contact this code author in this regard. You cannot expect people here to help you with some totally random piece of code that someone else wrote. |
Q
|
qbin author 6/7/2024 |
I've shared this here because I suspect there might be something I've missed, such as not incorporating JS where necessary (event X or something). |
C
|
cristi 6/7/2024 |
PHPRunner page templates are bootstrap based so what you call "popup" is actually a "modal". If you study the code behind an "add" page and an modal "add" page you will see that there are quite big differences: field names not being static, other clasess for divs, etc - and here lies your issue. Just of curiosity: you used some AI to describe the problem for you? - your post starts with: "Sure, here is the optimized text for your forum post:" - nothing wrong with that, just curious.... |
Q
|
qbin author 6/10/2024 |
Hi Cristi, Thank you for your help. I know that PHPRunner assigns an ID (that record ID or something like this) to every field when opening it in a modal. Since I'm not a JavaScript expert, I managed to solve the issue with a simpler code that doesn't use any library, rather than tweaking the existing code. Yes, I've described the problem to an AI, ask it to improve it and generate a title for me (lack of inspiration :)... ). |