html - Access Modifiers within javascript -


i trying access function in javascript saying not declared. trying set access modifier , wondering how within javascript.

below function trying declare public.

    <script language ="javascript" type ="text/javascript"> function popuppicker(ctl, w, h) {     var popupwindow = null;     settings = 'width=' + w + ',height=' + h + ',location=no,directories=no, menubar=no,toolbar=no,status=no,scrollbars=no,resizable=no,dependent=no';     popupwindow = window.open(<%= getservername.getservername("/quoteman/datepicker.aspx?ctl=") %>);     popupwindow.focus(); }; 

edit: trying call function.

    <asp:textbox id="dateintxt" runat="server" width="80px"></asp:textbox><asp:imagebutton                     id="imagebutton1" runat="server" borderstyle="none" imageurl="~/icons/vwicn063.gif"                     onclientclick="popuppicker('dateintxt', 250, 250);" width="21px" /></td> 

there no access modifiers in javascript, nested scope language. closures create appearance of access modifiers can make functions available objects @ times.

check out javascript closures great visual explanation of how closures work in javascript.


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -