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. ASP.NET
  4. Javascript Method call!!

Javascript Method call!!

Scheduled Pinned Locked Moved ASP.NET
javascript
4 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.
  • S Offline
    S Offline
    sabby2006
    wrote on last edited by
    #1

    Hi All, I have a scenario. I have two javascript files attached in my aspx page. I have a function which is present in both the files. I want to call the method from first file only. Is there any way of doing this other then changing the order of the attached files

    Regards

    S V N 3 Replies Last reply
    0
    • S sabby2006

      Hi All, I have a scenario. I have two javascript files attached in my aspx page. I have a function which is present in both the files. I want to call the method from first file only. Is there any way of doing this other then changing the order of the attached files

      Regards

      S Offline
      S Offline
      Sandeep Mewara
      wrote on last edited by
      #2

      Overload the methods with different number of parameters. It's not good to have two methods of same name and same signature. Either overload them or change the name.

      1 Reply Last reply
      0
      • S sabby2006

        Hi All, I have a scenario. I have two javascript files attached in my aspx page. I have a function which is present in both the files. I want to call the method from first file only. Is there any way of doing this other then changing the order of the attached files

        Regards

        V Offline
        V Offline
        Venkatesh Mookkan
        wrote on last edited by
        #3

        Change the name of the other function name to different.

        Castle Rider


        My: Website | Yahoo Group | Blog Spot

        1 Reply Last reply
        0
        • S sabby2006

          Hi All, I have a scenario. I have two javascript files attached in my aspx page. I have a function which is present in both the files. I want to call the method from first file only. Is there any way of doing this other then changing the order of the attached files

          Regards

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          You can use namespaces in JavaScript, although it is unconventional and a better approach would be, as the others have suggested, rename the method(s)


          I know the language. I've read a book. - _Madmatt

          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