Javascript Method call!!
-
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
-
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
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.
-
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
Change the name of the other function name to different.
Castle Rider
My: Website | Yahoo Group | Blog Spot
-
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
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