Copied to clipboard

Flag this post as spam?

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


  • Andres Tenjo 35 posts 55 karma points
    Mar 18, 2011 @ 20:33
    Andres Tenjo
    0

    call nodes with javascript

    Hi all !

    I need to call diferent nodes in some template using js, someone have an example ?

    Thanks all !

  • Brad Hunt 26 posts 57 karma points
    Mar 18, 2011 @ 23:01
    Brad Hunt
    0

    Andres-

    Can you be more specific on what you are trying to achieve? What do you mean by "call" different nodes with js?

    Brad

  • Daniel Bardi 927 posts 2562 karma points
    Mar 18, 2011 @ 23:23
    Daniel Bardi
    0

    Use jquery ajax, you can make calls to umbraco webservices. (asmx)

    This all depends on what you are wanting to do with the nodes.

    You could also call the information server side and pass to page before load

  • Brad Hunt 26 posts 57 karma points
    Mar 19, 2011 @ 02:55
    Brad Hunt
    0

    Andres-

    If all you would like to to is include some references to javascript libraries, you can do that in the master page like you normally would do in HTML or you can add it to the XSLT like this:

    ...
    <xsl:template match="/">
    <xsl:value-of select="umbraco.library:RegisterJavaScriptFile('menujs', '/menu/menuscript.js')"/>
    ...
Please Sign in or register to post replies

Write your reply to:

Draft