Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Sa 118 posts 152 karma points
    Dec 05, 2009 @ 08:10
    Sa
    0

    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/>";
                }

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Dec 05, 2009 @ 17:13
    Dirk De Grave
    2

    Hi Sam,

    Can you elaborate. It's not clear what you're asking here?

     

    Looking forward to your info.

     

    Cheers,

    Dirk

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Dec 06, 2009 @ 00:27
    Aaron Powell
    1

    it loads a node into the content tree, from what I can tell. Then it does an alert.

  • Sa 118 posts 152 karma points
    Dec 06, 2009 @ 14:17
    Sa
    0

    thanks for replying..

    When i select particular content,it is not getting selected..i mean i cannot retrieve value of particular selected content

  • 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.

Please Sign in or register to post replies