Rajasekhar,

           My quick guess is, you are trying to use variables (availW and availH which 
are in script scope), in the out of script scope
I'm not sure but, try using hidden varialbles to store (availW and availH) then use 
them in applet tag.


--- Rajasekhar wrote
hi all

iam trying to fit an applet into the browser window based on the browsers available 
width and height......
for this i have coded in the following manner........

<html>
 <body>
  <script type="text/javascript">
   var w,h,availW,availH;

   w = window.screen.availWidth;
   h = window.screen.availHeight;
   if(document.all)
   {
         availW = document.body.clientWidth-40;
         availH = document.body.clientHeight-40;
      }else
      {
        availW = innerWidth;
         availH = innerHeight;
      }
  </script>
  <applet code="Applet1" width=availW height=availH>
  <param name="UserName" value="rajak">
  </applet>
 </body>
</html>

but the problem here is though the variables availW and availH give me the required 
width and height but iam unable to use them within the applet tag........
plz help as to how i can assign these variables to the applets width and height 
attribues.........or kindly tell me if there is any other way to do so.........

with rgds
Rajasekhar

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to