Size of the NetSpell window

Last post 12-14-2006, 12:15 PM by tyrone.hopes. 5 replies.
Sort Posts: Previous Next
  •  12-08-2006, 10:31 AM 24992

    Size of the NetSpell window

    Hi
    I have just been testing the installation of cute editor (which runs great) and net spell in my product, but the net spell window was displaying strangely.  The window was very large, nearly the size of the main browser window, and there was none of the form showing.  This was found to exist beyond the bottom right corner of the net spell window.
     
    I had a look at the code in spellcheck.aspx and found this script:
    var OxOf1ca=["availWidth","availHeight"]; window.focus() ; window.moveTo((screen[OxOf1ca[0x0]]-0x258)/0x2,(screen[OxOf1ca[0x1]]-0x190)/0x2) ;
     
    I guessed it was trying to get the size of the window and set up the starting point of the display,  so remmed it out.
    Net spell  displays fine now, and the window is just the right size.
     
    Was this the correct route  to take or should I have modified some parameter I don't know about??!!
     
    I'll be interested in feedback and will amend if necessary.  I thought I should post this in case anyone else got the error.
    Cheers
    Tyrone Hopes
  •  12-08-2006, 11:54 AM 24996 in reply to 24992

    Re: Size of the NetSpell window

    Tyrone,
     
    >>The window was very large, nearly the size of the main browser window,
     
    Which browser are you using? What's your screen resolution setting?
     
    Here is the souce code of the above code.

        <script>
      window.focus();
      window.moveTo((screen.availWidth-600)/2,(screen.availHeight-400)/2) ;
        </script>
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  12-13-2006, 5:42 AM 25091 in reply to 24996

    Re: Size of the NetSpell window

    Hi Adam
    In response to your questions, I'm using IE 6.0.2900.2180.  Screen res on my laptop is 1024 x 768.  The client has a monitor with a much greater resolution.  Reinstating the code, I get the following: (with the browser maximised):
    This isn't so large - I apologise I reported the error incorrectly - about 30% - however - see where the form is in the bottom right?  That's the main problem.  To get all of the form in the window, you have to drag the bottom right corner to the right and down, so that the window relative to the screen ends up about 60% the size of the browser window.  At this pont the form is in the bottom right corner with a big margin above and to the left (which doesn't change size).  If you want the form contents to be bang in the middle of the window, with a similar sized margin all round, carry on moving the window frame to it stretches  75% - 80% across the screen.  That is me worrying about the aesthetics of the thing.
     
    I replaced the code with what you supplied and it ran with the same effect as above.
    Cheers
    Tyrone 
  •  12-13-2006, 5:54 AM 25092 in reply to 25091

    Re: Size of the NetSpell window

    Adam
    The window - with the offending code disabled - sits in the middle of mybrowser window and is just the right size.  Is there other code doing this else where ? In which case with the code, the placement of the window is done twice and therefore gets it wrong.  Just a thought.
    Tyrone
  •  12-13-2006, 2:00 PM 25100 in reply to 25092

    Re: Size of the NetSpell window

    Tyrone,
     
    >>In which case with the code, the placement of the window is done twice and therefore gets it wrong.
     
    No, the placement of the window is done only once. I just checked the code.
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  12-14-2006, 12:15 PM 25124 in reply to 25100

    Re: Size of the NetSpell window

    Hi Adam
    Okay, it must be something else that's causing the problem.  It works fine with the javascript disabled so I will just leave it like that for the time being.
    Cheers
    Tyrone
View as RSS news feed in XML