Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Javascript error

Javascript error

Scheduled Pinned Locked Moved ASP.NET
helpjavascript
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Agweet
    wrote on last edited by
    #1

    Hi all, can any1 please help...im getting an error "expected '}'" in my javascript here is my function and were i call it event: OnClientMouseOver="javascript:MyFunction()" function: function MyFunction() { document.getElementById("<%=radpnlBarItems.ClientID%>").style.color = "#000066"; } plz help, thanks in advance

    living life on the flip side

    A S 2 Replies Last reply
    0
    • A Agweet

      Hi all, can any1 please help...im getting an error "expected '}'" in my javascript here is my function and were i call it event: OnClientMouseOver="javascript:MyFunction()" function: function MyFunction() { document.getElementById("<%=radpnlBarItems.ClientID%>").style.color = "#000066"; } plz help, thanks in advance

      living life on the flip side

      A Offline
      A Offline
      ash04
      wrote on last edited by
      #2

      it is may be because value of the code : radpnlBarItems.ClientID is not comming properly.

      DAsh04

      A 1 Reply Last reply
      0
      • A ash04

        it is may be because value of the code : radpnlBarItems.ClientID is not comming properly.

        DAsh04

        A Offline
        A Offline
        Agweet
        wrote on last edited by
        #3

        thanks but how will i sort it out?

        living life on the flip side

        A 1 Reply Last reply
        0
        • A Agweet

          thanks but how will i sort it out?

          living life on the flip side

          A Offline
          A Offline
          ash04
          wrote on last edited by
          #4

          use it function MyFunction() { alert(<%=radpnlBarItems.ClientID%> ); //document.getElementById("<%=radpnlBarItems.ClientID%>;").style.color = "#000066"; }

          DAsh04

          1 Reply Last reply
          0
          • A Agweet

            Hi all, can any1 please help...im getting an error "expected '}'" in my javascript here is my function and were i call it event: OnClientMouseOver="javascript:MyFunction()" function: function MyFunction() { document.getElementById("<%=radpnlBarItems.ClientID%>").style.color = "#000066"; } plz help, thanks in advance

            living life on the flip side

            S Offline
            S Offline
            shames Sam
            wrote on last edited by
            #5

            function MyFunction() { document.getElementById("<%=radpnlBarItems.ClientID%>").style.color = '#000066'; } try this

            Web Developer

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups