Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 24th, 2024, 7:12 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: HTML5 using a variable for webaddress
PostPosted: August 25th, 2015, 2:07 pm 
Offline

Joined: November 19th, 2008, 3:42 pm
Posts: 4
Location: Ohio
Opus: Pro v 9
OS: Windows 8
Hello,

I'm using a variable to hold a web address that is used with the Launch Webpage action. This works in preview mode as well as when published as a SWF or EXE project. However, when publishing as an HTML5 project, the variable appears to be considered just text by the Launch Webpage action. The variable is named <website>, and when I try to launch the website, a browser is launched looking for a local file named "<website>".

I've also added the variable as a text object on the screen so I can see if the variable is holding the web address, and it is. So the variable assignment is working, it's just when using a variable for the URL to launch a website that isn't. Again, it works in all other project formats, just not HTML5.

For HTML5 projects, are there any other ways to launch a website using a variable that stores the web address? Note I've also tried the script function "LaunchURL()"

Thanks,

tom


For this message bluehat1 has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: HTML5 using a variable for webaddress
PostPosted: August 28th, 2015, 10:41 am 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Code:
window.open(website)


Where website is the variable name. Just add to a script action.

BTW, add a profile using the 'User Control Panel' link at the top right of this page.

</mack>

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: Re: HTML5 using a variable for webaddress
PostPosted: August 28th, 2015, 2:22 pm 
Offline

Joined: November 19th, 2008, 3:42 pm
Posts: 4
Location: Ohio
Opus: Pro v 9
OS: Windows 8
Thanks. DW support provided this javascript action solution, which works beautifully...

window.location.href=_DWPub.myURL

where myURL is the website variable.


For this message bluehat1 has been thanked by : mackavi


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group