• KH0903
  • NEWBIE
  • 0 Points
  • Member since 2008

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
Hello,

I created a simple VF custom component from the cookbook example (increment-decrement custom component).
There is also some javascript in the custom component.
I have used this custom component in other VF page.When this custom component get rendered in the VF page, all this custom component gets rendered in a <span> tag, so also the javascript is also in this span tag. When any function from this javascript is called, Error comes and says that function is not defined.

Has any one of you created a custom component with javascript, and used that javascript function in your component. Looks like a bug in rendering of the custom component or there should be some other way to use the custom component or to use the javascript in custom component.

Any thoughts/ suggests are welcome.

Thanks,
Sunil