0

Invoke nested javascripts

asked 2013-08-21 14:32:53 +0800

adarshcu gravatar image adarshcu
87

Hi All,

I have an external javascript library that i need to use. The external javascript uses nested functions.

So, i need to create a variable and invoke it as follows

var sample = new Sample();
sample.f1();
sample.f2();

I will need to invoke these methods at different scenarios, when the page is loaded, when a button is clicked,etc.. I have to invoke these from Composer as i have to perform some operations on button click such as external validations. Is there a way i can create these Javascript objects(var) through the composers ? Also the sample object needs to be reused from one function to another as it contains other private variables that are used among these functions.

Any help will be greatly appreciated.

Thanks in advance.

Regards, Adarsh

delete flag offensive retag edit
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2013-08-21 14:32:53 +0800

Seen: 1 times

Last updated: Aug 21 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More