Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 23rd, 2024, 12:04 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: HYPERTEXT works automatically
PostPosted: August 13th, 2007, 3:47 pm 
Offline

Joined: July 26th, 2005, 6:02 pm
Posts: 14
Hi,

I am trying to place hypertext to text area. Hypertext function automatically works without waiting any clicks.

What is the solution of this problem?


Thanks for your assistance...

Doruk AR
Media Team
CENG


Top
 Profile  
 
 Post subject:
PostPosted: August 13th, 2007, 3:58 pm 
It would help greatly if you could let us know what version of Opus you are using, and what your computer environment and OS is. By going into your Profile (see link towards the top of the page, you can set up a signature (like I and many others have done) thereby attaching this info to every post.

In addition (I'm asking a lot, aren't I :) ) is is possible for you to post an example of your problem?

I've never come across this problem, and it's just possible that the additional info might help someone come up with a solution for you.

HTH


Top
   
 
 Post subject:
PostPosted: August 13th, 2007, 5:03 pm 
Offline

Joined: July 26th, 2005, 6:02 pm
Posts: 14
Hi Sentosa,

Firstly, thank you for your interest. I have added additional information to my signature.

Here is a sample code which automatically runs the hypertext


////////////////////////////////////////////

function try01()

{
Text01.SetSelection(4,7)
Text01.CreateHypertext(cal())
}


function cal()

{
Text01.ReplaceSelection('trial')
}


/////////////////////////////////////

I have textbox01 and a button in the main page, the button runs try01()
which is expected to create the hyperlink, it creates the hyperlink but additionally runs cal() function.


I hope this will be enough for explaining my problem.

_________________
Doruk AR
Media Team

Opus Pro XE 5.5;
Windows XP Pro SP2;IntelĀ® Core 2 Duo T5600 1,83 GHz 2 MB Cache ; 2GB RAM


Top
 Profile  
 
 Post subject: CreateHypertext problem
PostPosted: July 10th, 2008, 3:38 pm 
Offline

Joined: July 10th, 2008, 3:22 pm
Posts: 2
Hi,

I am also experiencing this problem. I'm running Opus Presenter Pro, version 6.01 on Windows XP Professional. The problem occurs in script activated via a left mouse click on a button. A hyperlink created by the script is automatically run without the user clicking on the hyperlink text.

Example code:
TextDescription.SetSelection(0,-1)
TextDescription.ReplaceSelection("Testing")
TextDescription.SetSelection(1,4)
TextDescription.CreateHypertext(myURLpage())

function myURLpage()
{
LaunchURL("http......")
}

Many thanks for any advice,

Stuart


Top
 Profile  
 
 Post subject:
PostPosted: July 10th, 2008, 4:12 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Hi Stu,

The help file is wrong.

If you are calling a script function in a script object you need to omit the open / close parenthesis like such:

TextDescription.CreateHypertext(myURLpage)

not

TextDescription.CreateHypertext(myURLpage())

Hope it helps,

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: CreateHypertext problem
PostPosted: July 11th, 2008, 10:27 am 
Offline

Joined: July 10th, 2008, 3:22 pm
Posts: 2
Thanks Mack - that fixed it!

Kind regards,
Stu


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 32 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