This is a migrated thread and some comments may be shown as answers.

[Solved] VB Script Registrar

0 Answers 22 Views
Window
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Brent
Top achievements
Rank 1
Brent asked on 19 Jul 2011, 04:02 PM
I'm having trouble coding a script registrar for opening the window.  How do i convert this to VB?  Or, could i just put that other stuff in a javascript block and call the function in the onDocumentReady parameters?
<% Html.Telerik().ScriptRegistrar().OnDocumentReady _
        (function() New with {%>
                var windowElement = $('#Window')
                var undoButton = $('#undo')
                undoButton
                    .bind('click', function(e) {
                        windowElement.data('tWindow').open();
                        undoButton.hide();
                    })
                    .toggle(!windowElement.is(':visible'));
                 
                windowElement.bind('close', function() {
                    undoButton.show();
                });
           <%}); %>
Tags
Window
Asked by
Brent
Top achievements
Rank 1
Share this question
or