duncan_cowan Posted March 19, 2007 Share Posted March 19, 2007 hi i recently started using the script "prototype window" from http://prototype-window.xilinus.com/ the window is working fine but when i try to include the javascript commands, such as minimize or close, in the script it comes up with an error " 'win' is undefined " the place where i run the command is a register form which is accessed from the login form and both are in prototype windows here is the code: <html><head><script type="text/javascript" src="http://www.worldwarsix.com/protected/prototype_win/javascript/prototype.js"> </script><script type="text/javascript" src="http://www.worldwarsix.com/protected/prototype_win/javascript/window.js"> </script><link href="http://www.worldwarsix.com/protected/prototype_win/themes/ww6.css" rel="stylesheet" type="text/css"/></head><script>win.setSize(400,500);</script><body bgcolor=#000000>... the code is expected to make the window bigger but this doesnt happen.please could someone help?thanks in advance. Link to comment Share on other sites More sharing options...
pulpfiction Posted March 19, 2007 Share Posted March 19, 2007 Guess the error is because you have not instanciated the Window object........<script>win = new Window(................win.setSize(400,500);</script> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now