Hi,
Maybe there is an easier way from what I am about to write but at least in one case, this is what I did.... You can also define this process as creating your own customized event.
1) You use the following link URL: href="javascript:showLink('variable')".
You can change of course the "showLink" name and the variable can be anything.... You can add this URL to your text and link....
2) You add to the Tersus web directory the following Javascript function:
==============================================
function showLink(variable) { setCookie('Cookie Name',variable); var eventSpec = new tersus.Event('<New Event Name>'); window.engine.handleEvent(window.rootDisplayNode,eventSpec); } ============================================== I think the proper place to insert this Javascript is under "settings.js" file name (as this file is included by default by the Tersus application).
function showLink(variable)
{
setCookie('Cookie Name',variable);
var eventSpec = new tersus.Event('<New Event Name>');
window.engine.handleEvent(window.rootDisplayNode,eventSpec);
}
I think the proper place to insert this Javascript is under "settings.js" file name (as this file is included by default by the Tersus application).
Note: The Cookie is only used to pass parameters from the link to the model (in the Model you can use "get cookie" building block to retrieve the parameter). There is no need for this if no parameters are required. Also, <New Event Name> can be any name of your choice.
3) You Model The new event and act upon it. In the screen shot attached you can see an event called <On Part Link> and the model is reading a parameter from the Cookie to open the PopUp.... I am sure that if you followed me thus far, you are good to go...
Note: The event must be modeled in the TOP view (in the main view at the start of the hirarchy).
All the best,
Joel.
To use the full functionality of this web site, JavaScript needs to be turned on.
For best results, use the Firefox browser..
Copyright © 2003-2017 - Tersus Software Ltd., All rights reserved. Terms of Use License Graphic design by EmaraDesign