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
  1. Home
  2. Other Discussions
  3. Site Bugs / Suggestions
  4. Javascript Error on Message Boards

Javascript Error on Message Boards

Scheduled Pinned Locked Moved Site Bugs / Suggestions
javascriptdebugginghelpquestion
13 Posts 4 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.
  • M MartinSmith

    IE6

    M Offline
    M Offline
    MartinSmith
    wrote on last edited by
    #4

    Actually. I've just thought. If I use Firefox to browse CP I won't get this problem as the javascript debugger is an IE option. Problem sorted (for me at least)! Cheers.

    1 Reply Last reply
    0
    • M MartinSmith

      IE6

      C Offline
      C Offline
      Chris Maunder
      wrote on last edited by
      #5

      Can you do a view source and send me what you find? SwitchMessage is definitely there.

      cheers, Chris Maunder

      CodeProject.com : C++ MVP

      The 9 things Microsoft should be announcing at MIX07 (but won't)

      M 1 Reply Last reply
      0
      • C Chris Maunder

        Can you do a view source and send me what you find? SwitchMessage is definitely there.

        cheers, Chris Maunder

        CodeProject.com : C++ MVP

        The 9 things Microsoft should be announcing at MIX07 (but won't)

        M Offline
        M Offline
        MartinSmith
        wrote on last edited by
        #6

        Strange. I can't see it inline in the page at all. Searching for "SwitchMessage" only gives one result (in the onclick event) and no function definition for it

        M M 2 Replies Last reply
        0
        • M MartinSmith

          Strange. I can't see it inline in the page at all. Searching for "SwitchMessage" only gives one result (in the onclick event) and no function definition for it

          M Offline
          M Offline
          MoustafaS
          wrote on last edited by
          #7

          Then it's in a file embedded in the page.


          About : Islam
          About : Me

          1 Reply Last reply
          0
          • M MartinSmith

            Strange. I can't see it inline in the page at all. Searching for "SwitchMessage" only gives one result (in the onclick event) and no function definition for it

            M Offline
            M Offline
            MartinSmith
            wrote on last edited by
            #8

            I'm getting the same error in Firefox as well. Not that it bothers me there as I don't get the modal dialogue but just FYI. If you have firebug installed and click anywhere on the div repeatedly you'll see the errors creeping up and up. Opening firebug shows the same problem with "SwitchMessage not defined".

            1 Reply Last reply
            0
            • M MartinSmith

              Being a web developer I have javascript debugging switched on. This means that for almost every action on the message boards I have to end up closing this message box! --------------------------- Error --------------------------- A Runtime Error has occurred. Do you wish to Debug? Line: 245 Error: Object expected --------------------------- Yes No --------------------------- This is pretty tedious and presumably will affect a lot of developers using this site. Could you please sort it out? The offending bit of code is this:

              I don't think that the SwitchMessage function exists.

              N Offline
              N Offline
              Nish Nishant
              wrote on last edited by
              #9

              I suppose you've already tried a Ctrl-Refresh?

              Regards, Nish


              Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
              My latest book : C++/CLI in Action / Amazon.com link

              M 1 Reply Last reply
              0
              • N Nish Nishant

                I suppose you've already tried a Ctrl-Refresh?

                Regards, Nish


                Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
                My latest book : C++/CLI in Action / Amazon.com link

                M Offline
                M Offline
                MartinSmith
                wrote on last edited by
                #10

                Hmm, Just logged in from home and SwitchMessage seems to be there now. It's inline in the page so I can't have been seeing an old version of the page or I wouldn't have been seeing any new messages. Maybe it's been quietly fixed?

                M 1 Reply Last reply
                0
                • M MartinSmith

                  Hmm, Just logged in from home and SwitchMessage seems to be there now. It's inline in the page so I can't have been seeing an old version of the page or I wouldn't have been seeing any new messages. Maybe it's been quietly fixed?

                  M Offline
                  M Offline
                  MartinSmith
                  wrote on last edited by
                  #11

                  Now I'm in work again and getting the same issue. Is Chris just messing with my mind? :suss: I can only assume either that the code is written server side conditionally according to something about the Request and for some reason at home it gets written, at work it doesn't. Or some of the servers on the web farm have out of synch pages.

                  M 1 Reply Last reply
                  0
                  • M MartinSmith

                    Now I'm in work again and getting the same issue. Is Chris just messing with my mind? :suss: I can only assume either that the code is written server side conditionally according to something about the Request and for some reason at home it gets written, at work it doesn't. Or some of the servers on the web farm have out of synch pages.

                    M Offline
                    M Offline
                    MartinSmith
                    wrote on last edited by
                    #12

                    Sussed it! It happens when the View is on "Normal (Slow)" changing it to "Message" fixed it.

                    C 1 Reply Last reply
                    0
                    • M MartinSmith

                      Sussed it! It happens when the View is on "Normal (Slow)" changing it to "Message" fixed it.

                      C Offline
                      C Offline
                      Chris Maunder
                      wrote on last edited by
                      #13

                      I had a thought about midnight lastnight that that might have been the case. You beat me to it. Fix has been made. Thanks for your help.

                      cheers, Chris Maunder

                      CodeProject.com : C++ MVP

                      The 9 things Microsoft should be announcing at MIX07 (but won't)

                      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