Toolbar button not work


#1

I add a new button to the toolbar with execute javascript code option to open a new window ( window.open(‘TestNewWindow.php’, ‘title’, ‘width=800,height=700’); )

When I click on the button for the first time the new window open without any problem, but after closeing it and try to click the button again it is not working anymore.
I have to click on an other button first then it works againg for that time.

Is there a way to make open window with the button work without the click to an other button first?


#2

Hi,

Yes, i found the same issue:
One solution, waiting resolution :
1)Create a new page (example : test.php);
2) Include it in your software:
In this new page include the following code:

<meta http-equiv=“refresh” content=“0; url=your index page” />
<script type=“text/javascript”>
function load()
{
window.open(‘TestNewWindow.php’,‘Title’,‘width=1000,height=700’);
}
</script>

<body onLoad=“load()”>

Replace the “your index page” by your home page (example: index.php) or an other page of your choice-

In Component (for your button code)
Use Go to a Page/Url
Then under Page/URL
Write : test.php

…and try it that way:


#3

Thanks for the workaround. It is indeed a strange bug related to the Chromium engine used.