Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi folks.,
does this script works ?
i couldn't select the content here
function updateContentId() { var treePicker = window.showModalDialog('<%=umbraco.GlobalSettings.Path%>/dialogs/treePicker.aspx?appAlias=content', 'treePicker', 'dialogWidth=350px;dialogHeight=300px;scrollbars=no;center=yes;border=thin;help=no;status=no') if (treePicker !=undefined) { document.getElementById("startNode").value = treePicker; if (treePicker > 0) { umbracoStartXmlRequest('<%=umbraco.GlobalSettings.Path%>/umbraco/webservices/legacyAjaxCalls.asmx?NodeId=' + treePicker + '&ContextID=<%=umbraco.BasePages.BasePage.umbracoUserContextID%>', '','test_updateContentTitle()'); } else { document.getElementById("documentNodeTitle").innerHTML = "<strong><%=umbraco.ui.Text("content", base.getUser())%></strong>"; } window.alert("success"); } } function test_updateContentTitle() { document.getElementById("documentNodeTitle").innerHTML = "<strong>" + umbracoXmlRequestResultTxt() + "</strong><br/>"; }
Hi Sam,
Can you elaborate. It's not clear what you're asking here?
Looking forward to your info.
Cheers,
Dirk
it loads a node into the content tree, from what I can tell. Then it does an alert.
thanks for replying..
When i select particular content,it is not getting selected..i mean i cannot retrieve value of particular selected content
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
script to select contents
Hi folks.,
does this script works ?
i couldn't select the content here
function updateContentId()
{
var treePicker = window.showModalDialog('<%=umbraco.GlobalSettings.Path%>/dialogs/treePicker.aspx?appAlias=content', 'treePicker', 'dialogWidth=350px;dialogHeight=300px;scrollbars=no;center=yes;border=thin;help=no;status=no')
if (treePicker !=undefined)
{
document.getElementById("startNode").value = treePicker;
if (treePicker > 0)
{
umbracoStartXmlRequest('<%=umbraco.GlobalSettings.Path%>/umbraco/webservices/legacyAjaxCalls.asmx?NodeId=' + treePicker + '&ContextID=<%=umbraco.BasePages.BasePage.umbracoUserContextID%>', '','test_updateContentTitle()'); }
else
{
document.getElementById("documentNodeTitle").innerHTML = "<strong><%=umbraco.ui.Text("content", base.getUser())%></strong>";
}
window.alert("success");
}
}
function test_updateContentTitle()
{
document.getElementById("documentNodeTitle").innerHTML = "<strong>" + umbracoXmlRequestResultTxt() + "</strong><br/>";
}
Hi Sam,
Can you elaborate. It's not clear what you're asking here?
Looking forward to your info.
Cheers,
Dirk
it loads a node into the content tree, from what I can tell. Then it does an alert.
thanks for replying..
When i select particular content,it is not getting selected..i mean i cannot retrieve value of particular selected content
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.