Adding initialize script include is not callable from client
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2016 02:52 AM
Hi
I have a script include like
var Util = Class.create();
Util.prototype = Object.extendsObject(AbstractAjaxProcessor, {
ExampleFunc: function(curr) {
}
.....
i wanted to call it from server side as well as from client so initialized it like
var Util = Class.create();
Util.prototype = Object.extendsObject(AbstractAjaxProcessor, {
initialize: function() { },
ExampleFunc: function(curr) {
}
.....
but when i add initialize: function() { }, i am unable to call the function from the client script and if i remove it its not callable form server
pl help!
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2025 09:53 AM
Use _init() to call script include from client side.
_init:function(){
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2025 10:03 AM