This topic is locked

Target for link

1/17/2014 4:24:49 AM
PHPRunner General questions
W
wpl author

Hello to all,
we have a mapping application from which we use to call a PHPRunner app with URLs like so:



http://server/site/table1_list.php?q=(someField1~equals~someValue1)



This will open a new browser window/tab and show the respective record.
If we then call the RunnerApp with a different table:



http://server/site/table2_list.php?q=(someField2~equals~someValue2)



also a new window/tab will open in the browser.
Does anybody know of a possibility to have these pages always being opened in the same window/tab?
Thanks

Sergey Kornilov admin 1/17/2014

I don't have a solution but here is something that you can try.
If you open your link via window.open() you can specify the same window name and all links will be open in the same window.
More info:

http://www.javascript-coder.com/window-popup/javascript-window-open.phtml

W
wpl author 1/17/2014



I don't have a solution but here is something that you can try.
If you open your link via window.open() you can specify the same window name and all links will be open in the same window.
More info:

http://www.javascript-coder.com/window-popup/javascript-window-open.phtml


Sergey,
thanks for your input. But, unfortunately, we call the RunnerPages from PHP. And if you've got 10 tables (listpages) you want to target, you end up with 10 different window/tabs. That's why I have been searching for a solution.
Thanks again

Sergey Kornilov admin 1/17/2014

I'm not sure what prevents you from giving all those windows the same name like "mywindow".
And yes, you will have to switch to opening it from Javascript if you need this functionality.