SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Thread: Examples Please

  1. #1
    SitePoint Member
    Join Date
    Feb 2005
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Examples Please

    Hello

    Can someone please show me examples of the following:

    1/ Script blocks such as client side JavaScript blocks that are started by a <SCRIPT> tag (versus ASP/JSP style <%...%> script blocks).

    2/ JSP/ASP style script blocks that can be embedded within tag value strings.

    3/ JSP/ASP style script blocks that can be embedded within the text between HTML tags.


    Thank you

  2. #2
    SitePoint Wizard
    Join Date
    Nov 2004
    Location
    Nelson BC
    Posts
    2,310
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    1.
    <script language="JavaScript">
    var sSortField = "title";
    var sSortDir = "ascending";
    </script>

    2.
    <input type="hidden" name="site" value="<%=strSite%>">

    3.
    Code:
    <select name="othersite" class="dbody">
    <option value="">Select Site</option>
    <%
      For Each oOSite In oNs.selectNodes("/sites/site")
        %><option value="<%=oOSite.getAttribute("title")%>"<%
        If oOSite.getAttribute("title") = Session("MRU_editsite_url") Then
          %> SELECTED<%
        End If
        %>><%=oOSite.getAttribute("title")%></option><%
      Next
    %></select>

  3. #3
    SitePoint Member
    Join Date
    Feb 2005
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks

  4. #4
    SitePoint Member
    Join Date
    Feb 2005
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What's a good site to learn more about the code you posted?

  5. #5
    SitePoint Zealot buono's Avatar
    Join Date
    Nov 2001
    Posts
    175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  6. #6
    SitePoint Wizard
    Join Date
    Nov 2004
    Location
    Nelson BC
    Posts
    2,310
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    For more reference type stuff:

    Download the Windows Scripting Reference : here
    Stick this ASP Object Reference in your favorites

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •