This topic is locked
[SOLVED]

 My page in pop up window

5/9/2017 10:38:56 PM
PHPRunner General questions
R
Rigmantas author

Hi,

Is it possible use function Runner.displayPopup() open in pop up my own page:

<a href="my_page.php">My page</a>.

Thank you.

Regards,

Rimantas

Sergey Kornilov admin 5/11/2017
Runner.displayPopup( {

url: "my_page.php"

});
R
Rigmantas author 5/12/2017

Hi,

Ok I have tried it before writing, this work, but I need that in custom mode. There is my code snippet inserted in Visual Editor Example:

?>

<script>

Runner.displayPopup( {

url: "000.php"

});
</script>

<button onclick="Runner.displayPopup()">Click me</button>

<?php



And this not working. Firebug console: TypeError: Runner.pages is undefined

I'm not a programmer, but I'm trying to learn <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=82165&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' />

Thank you.

Regards

Rimantas

lefty 5/14/2017



Hi,

Ok I have tried it before writing, this work, but I need that in custom mode. There is my code snippet inserted in Visual Editor Example:

?>

<script>

Runner.displayPopup( {

url: "000.php"

});
</script>

<button onclick="Runner.displayPopup()">Click me</button>

<?php



And this not working. Firebug console: TypeError: Runner.pages is undefined

I'm not a programmer, but I'm trying to learn <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=82181&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' />

Thank you.

Regards

Rimantas


?>

<script>

Runner.displayPopup( {

url: "000.php"

});
<button onclick="Runner.displayPopup()">Click me</button>

</script>
<?php

R
Rigmantas author 5/15/2017

Thank you John, but I really need help.

R
Rigmantas author 5/17/2017

And, this is not possible?

Sergey Kornilov admin 5/17/2017

If you want to use this function outside of PHPRunner application - it won't work. This will only work in PHPRunner app.

R
Rigmantas author 6/2/2017

Hi,

Thank you admin <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=82317&image=1&table=forumreplies' class='bbc_emoticon' alt=':(' />.
That code snippet is worked:

?>

<button onclick="Runner.displayPopup({

url: '000.php'

})">Click me</button>

<?php



PHPRunner is the best <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=82317&image=2&table=forumreplies' class='bbc_emoticon' alt=':)' />

Regards,

Rimantas