Server-side hide or show something depending on a URLparameter

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default Server-side hide or show something depending on a URLparameter

    Hi.
    I want to show some rows from a table depending of wich langauje I specify in
    the URL (default.asp?lang=en) using JScript.
    I get the variable using Request.QueryString('lang') but I don't know how to
    use the "If" sentence..

    Somebody would help me? Tnx!

    <% if (Request.QueryString('lang') == 'en') { %>
    <tr>
    <td align="center">English</td>
    </tr>
    <% } %>


    CharlyAR Guest

  2. Similar Questions and Discussions

    1. How to hide toolbar on left side of pdf
      Hello, We have a vb.net 2005 windows application using the activeX control. We currently hide the scrollbars and show only a limited number of...
    2. How to hide/show a group
      Hello, I created a group and added some children to it How can I show/hide the group with all children included? The group itself doesn't have...
    3. popup menus won't hide - PVII show/hide layers behaviour
      I've used the 'Auto show/hide by PVII" behaviour to create some popup menus for the navigation which make use of divs which appear and disappear....
    4. hide/show with mouseover
      I have page with all the medical terms. Instead of click on each term to show the definition, I want it to show when I have the mouseover on each...
    5. hide password on client side
      Did anyone tried to hide a password on client side before sending it over net (MD5 - like yahoo mail client)? thank you, Jure
  3. #2

    Default Re: Server-side hide or show something depending on aURL parameter

    Found it, the code is:

    <% if (Request.QueryString("lang") = "es") then %>
    <tr>
    <td align="center">English</td>
    </tr>
    <% end if %>
    CharlyAR Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139