Hi everybody,
i try to open an website over a button with this script:
on mouseup
launch url "someurl"
end mouseup
But this doesn´t work in a standalone HTML5 app?
what is my error??
Thanks for some newbi help
Launch url not workin?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Launch url not workin?
Hi libuda,
welcome to the forum!
You are doning nothing wrong, -> launch url "someurl" is not supported in HTML5.
If in doubt, check the Dictionary, all supported platforms for a command/function are listed.
Best
Klaus
welcome to the forum!
You are doning nothing wrong, -> launch url "someurl" is not supported in HTML5.
If in doubt, check the Dictionary, all supported platforms for a command/function are listed.
Best
Klaus
Re: Launch url not workin?
Hi Klaus,
thnaks for the answer.
Do you know an easy way to open a website over an button in an HTML5-app?
thnaks for the answer.
Do you know an easy way to open a website over an button in an HTML5-app?
Re: Launch url not workin?
Hi libuda,
sorry, no idea...
Best
Klaus
sorry, no idea...
Best
Klaus
Re: Launch url not workin?
Hi everybody,
instead of launch url i try to use a javascript on the HTML-page to open the webpage for me.
So i try
do "pagejump (myurl);" in browser
in livecode.
And on the HTML-Page:
function pagejump (myparam) {
a window open statement
}
But it doesn´t work too. Anyone any idea???
instead of launch url i try to use a javascript on the HTML-page to open the webpage for me.
So i try
do "pagejump (myurl);" in browser
in livecode.
And on the HTML-Page:
function pagejump (myparam) {
a window open statement
}
But it doesn´t work too. Anyone any idea???
Re: Launch url not workin?
So finally i get it to work:
Here is the solution:
In Livecode you can use:
do "jumpurl(targeturl);" as "JavaScript"
and on the embedding website:
<script type="text/javascript">
function jumpurl(target) {
an here use: window open with the target
}
</script>
or you do this in livecode direct. Without embeded javascript on the website:
put "window open('" & targeturl & "', '_blank')" into tScript
do tScript as "JavaScript"
Here is the solution:
In Livecode you can use:
do "jumpurl(targeturl);" as "JavaScript"
and on the embedding website:
<script type="text/javascript">
function jumpurl(target) {
an here use: window open with the target
}
</script>
or you do this in livecode direct. Without embeded javascript on the website:
put "window open('" & targeturl & "', '_blank')" into tScript
do tScript as "JavaScript"