Hi all,
I am trying to insert a URL into one item defined as Rich Text Editor; the URL link a page in the same application
I'm using the following javascript function :
function f_pasteEditor(p_idesc,p_nomeesc)
{
var oEditor = FCKeditorAPI.GetInstance('P182_AZIONI');
var htmlSnippet = '<a href="f?p=&APP_ID.:62:&SESSION.::NO:62:P62_ESC_ID,P62_CATEGORY:'+p_idesc+',SISTEMA">'+p_nomeesc+'</a>';
alert(htmlSnippet);
oEditor.InsertHtml(htmlSnippet);
}
But using the previous syntax the SESSION variable is replaced by its value, so I get a hyperlink that works only in the current session.
Furthermore, the first part of the hyperlink is not correct; it contains '/ i / fck / editor /' instead of '/ apex /'
And now my questions:
How can I enter and save a hyperlink (to a page in the same application) that can be used from different sessions ?
How can I open the linked page in a popup window ?
How can I fix the first part of the hyperlink (set the BasePath ????)
regards and many thanks for any help.
saverio