Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 6:48 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Delay function
PostPosted: June 11th, 2016, 5:35 am 
Offline

Joined: May 16th, 2008, 4:50 pm
Posts: 368
Location: Berghem The Netherlands
Opus: Opus Pro 9.75
OS: Windows 10
System: `HP
Hi,
I use the delay function in a HTML5 project and that works fine as long as i use the "Time" setting.
When i want to use the "Variable" option to set the time, nothing happened.
Is that normal or impossible to use the delay in HTML5 that way or am i doing something wrong?

Ad

_________________
Opus Pro v9.75
Windows 10 on HP EliteBook i7
http://www.csnmedia.nl


For this message Ad Mulders has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject: Re: Delay function
PostPosted: June 11th, 2016, 7:11 am 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Looking at the code, it appears to be a bug as the variable is exported as a string containing the variable name rather than the variable itself.

You need to contact DW support and let them know.

For now, it is possible to fix it manually, but you would need to edit the code each time you published - if that would help?

</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: Delay function
PostPosted: June 11th, 2016, 7:36 am 
Offline

Joined: May 16th, 2008, 4:50 pm
Posts: 368
Location: Berghem The Netherlands
Opus: Opus Pro 9.75
OS: Windows 10
System: `HP
Thanks, so it's a problem in Opus?
I send them a mail.

If i want to fix it manually, what code do i have to change?
Ad

_________________
Opus Pro v9.75
Windows 10 on HP EliteBook i7
http://www.csnmedia.nl


For this message Ad Mulders has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject: Re: Delay function
PostPosted: June 11th, 2016, 11:05 am 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Assuming you are using a publication, not page variable - to manually change it:

1. Publish your project - in settings should probably enable 'create readable output' unless your code editor has a beautify option.

2. Open the HTML in a code or text editor.

3. Locate the line new DWActionDelay('myTime') - 'myTime' is the name of my variable - use yours.

4. Change the line to new DWActionDelay(_DWPub.myTime * 1000) - again your variable & we multiple because delay uses milliseconds.

5. Save HTML.

</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


For this message mackavi has been thanked by : Ad Mulders


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 11 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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group