I have this code:
<script language="javascript">
<!--
        var addForm;

        function test () {
                addForm = new Window('addFormWin', {className: "alphacube", 
width:300, height:200, zIndex: 110, resizable: true, title: "Add Link", 
showEffect:Element.show, hideEffect: Effect.SwitchOff, draggable:true})
                addForm.setAjaxContent('http://www.rubyonrails.org/', {method: 
'get'}, true, true);
                // addForm.show();
        }
// -->
</script>
<a href='javascript:;' onclick="test();">add win</a>

At the first click nothing happened, when I click again: "window addFormWin is 
already register is the DOM!!, be sure to use setDistroyOnClose()"
addForm.show() displays an empty window!

Is there somewhere an example on how to use setAjaxContent() the proper way?

Marius



_______________________________________________
Javawin mailing list
[email protected]
http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com

Reply via email to