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. Web Development
  3. java script code error

java script code error

Scheduled Pinned Locked Moved Web Development
javajavascripttoolshelp
4 Posts 2 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.
  • V Offline
    V Offline
    varsh12
    wrote on last edited by
    #1

    use this javascript code, but this gives following error: "'mappedimg' is an unexpected token. Expecting white space. Line 1, position 27." code is here: <body onLoad='LoadImgMap('mappedimg','cng');ChangeMappedImgSize('fitinframe','mappedimg');' onResize='LoadImgMap('mappedimg','cng');ChangeMappedImgSize('fitinframe','mappedimg');'>"; thanx in advance

    L 1 Reply Last reply
    0
    • V varsh12

      use this javascript code, but this gives following error: "'mappedimg' is an unexpected token. Expecting white space. Line 1, position 27." code is here: <body onLoad='LoadImgMap('mappedimg','cng');ChangeMappedImgSize('fitinframe','mappedimg');' onResize='LoadImgMap('mappedimg','cng');ChangeMappedImgSize('fitinframe','mappedimg');'>"; thanx in advance

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Instead of your line try following line.

      See that I have converted all the single quote inside the outer single quote into double quote so that it will interpret your arguments that you have passed inside the function correctly. HTH

      Jinal Desai - LIVE Experience is mother of sage....

      V 1 Reply Last reply
      0
      • L Lost User

        Instead of your line try following line.

        See that I have converted all the single quote inside the outer single quote into double quote so that it will interpret your arguments that you have passed inside the function correctly. HTH

        Jinal Desai - LIVE Experience is mother of sage....

        V Offline
        V Offline
        varsh12
        wrote on last edited by
        #3

        thnx for ur attention. but it gives same 16 errors: the error is : ;expected and if i remove the code it gives is erron on "onResize". said : not closed

        L 1 Reply Last reply
        0
        • V varsh12

          thnx for ur attention. but it gives same 16 errors: the error is : ;expected and if i remove the code it gives is erron on "onResize". said : not closed

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Now try this one. I think you have just copy pasted my code. By mistakenly I have printed 'o' of önResize with some different language. So you just need to replace önResize with onResize. HTH

          Jinal Desai - LIVE Experience is mother of sage....

          modified on Saturday, July 17, 2010 2:29 AM

          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