Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 11:32 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: can i define global function in opus ?
PostPosted: July 17th, 2006, 9:54 am 
Offline

Joined: June 5th, 2006, 12:01 pm
Posts: 9
can i define global function in opus ?


Top
 Profile  
 
 Post subject:
PostPosted: July 17th, 2006, 12:35 pm 
Offline

Joined: October 26th, 2004, 1:26 pm
Posts: 262
Hi Shivam,

Can you give us more specfic information and elaborate on what you intend to do?

Possibly a script function on a Master Page could be considered as 'global'. :?:

_________________
Cheers,
Steve


Top
 Profile  
 
 Post subject:
PostPosted: July 17th, 2006, 3:08 pm 
Offline

Joined: October 26th, 2004, 10:23 am
Posts: 666
Location: Digital Workshop
Assign a reference to the function to a name in the Publication object, you can then use that globally (after the function has been "seen", so do it on the first page of the publication). For example:
Code:
function MyGlobalFunctionDef( Obj, bob )
{
   Obj.GetPage().FindChild(bob).Hide();
}

GetPublication().MyGlobalFunction = MyGlobalFunctionDef;

call it from any page as:
Code:
MyGlobalFunction( this, "AnObject" )

_________________
ddww Opus Developer


Top
 Profile Visit website  
 
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 57 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