SitePoint Sponsor

User Tag List

Results 1 to 13 of 13

Hybrid View

  1. #1
    SitePoint Wizard silver trophy Jeremy W.'s Avatar
    Join Date
    Jun 2001
    Location
    Toronto, Canada
    Posts
    9,123
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Several URGENT JS issues

    Hey guys,

    I've got a load of JS issues that came up at the last minute before I'm to present a kiosk to a 10,000 person audience.

    I need to sort these out as soon as possible.

    The app is at https://server2.tacf.org/cbs/2/launch.asp

    This page should launch another in full screen mode. That app should launch a little typing window (keyboard.asp) in fullscreen mode, which is then resized to a certain size.

    After they are finished typing they hit send and it sends the info back to the appropriate box.

    Wonderful, reasonably simple, but bloody little of it is working on this computer.

    Win2k and IE6, fresh install.

    The launcher launches the CBS system. On the second page, after selecting a conference, the type buttons launch the keyboard window.

    The keyboard window is NOT resized, and it is not moved. Big problem. When "send" is hit, the data is not sent back to the main window...

    This is where I'm at, and I have to have this done in 2 hours. It works at every other computer, adn I don't know why it's NOT working here

    Most of the code should be viewable on the pages, with the exception of inet.js, of which the content is:

    Code:
    function openBoard(sender1,form1,pass1)
    {
    	document.form.sender.value=sender1;
    	document.form.form.value=form1;
    	document.form.pass.value=pass1;
    
    	var keyboard=window.open('keyboard.asp','keyboard','width=550,height=320,top=150,left=15,menu=no,toolbar=no,directories=no,status=yes,fullscreen,scrollbars=no,,dependent=no');}
    
    function doUpdate(txt)
    {
    	eva=document.form.sender.value;
    	document.form.elements[eva].value = txt;
    }
    The contents of keyboard.asp are:

    Code:
    <HTML>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <meta name="Author" content="Connie Janzen, Jeremy Wright and Chas Winder">
    <title>Keyboard</title>
    <style>
    INPUT
    {
    	width:35;
    	height:35;
    	background: #FFFFFF;
    	border: 1px inset #800000;
    	color: #000000;
    	font-weight: bold;
    }
    
    </style>
    <script language="javascript">
    <!--
    function sL(l)
    {
    	document.keyboard.text.value+=l;
    }
    
    function sendKeys()
    {
    	window.alert("sent");
    //	window.opener.doUpdate(document.keyboard.text.value);
    //	window.close();
    }
    
    function resizeMe()
    {
    window.alert("resized");
    //	window.resizeTo(500,320);
    //	window.moveTo(5,200);
    }
    
    // -->
    </script>
    </head>
    <body bgcolor="lightyellow" onLoad="resizeMe();">
    <form name="keyboard">
    
      <P align="center"><INPUT type="text" name="text" length="20" style="width:200"></p>
      
      <p align="center">
      <input type="button" value="1" name="B3" onClick="sL(this.value);">
      <input type="button" value="2" name="B3" onClick="sL(this.value);">
      <input type="button" value="3" name="B3" onClick="sL(this.value);">
      <input type="button" value="4" name="B3" onClick="sL(this.value);">
      <input type="button" value="5" name="B3" onClick="sL(this.value);">
      <input type="button" value="6" name="B3" onClick="sL(this.value);">
      <input type="button" value="7" name="B3" onClick="sL(this.value);">
      <input type="button" value="8" name="B3" onClick="sL(this.value);">
      <input type="button" value="9" name="B3" onClick="sL(this.value);">
      <input type="button" value="0" name="B3" onClick="sL(this.value);">
      <input type="button" value="-" name="B3" onClick="sL(this.value);"><br>
      
    
      <input type="button" value="Q" name="B3" onClick="sL(this.value);">
      <input type="button" value="W" name="B4" onClick="sL(this.value);">
      <input type="button" value="E" name="B5" onClick="sL(this.value);">
      <input type="button" value="R" name="B6" onClick="sL(this.value);">
      <input type="button" value="T" name="B7" onClick="sL(this.value);">
      <input type="button" value="Y" name="B8" onClick="sL(this.value);">
      <input type="button" value="U" name="B9" onClick="sL(this.value);">
      <input type="button" value="I" name="B10" onClick="sL(this.value);">
      <input type="button" value="O" name="B11" onClick="sL(this.value);">
      <input type="button" value="P" name="B12" onClick="sL(this.value);"><br>
      
      <input type="button" value="A" name="B13" onClick="sL(this.value);">
      <input type="button" value="S" name="B14" onClick="sL(this.value);">
      <input type="button" value="D" name="B15" onClick="sL(this.value);">
      <input type="button" value="F" name="B16" onClick="sL(this.value);">
      <input type="button" value="G" name="B17" onClick="sL(this.value);">
      <input type="button" value="H" name="B18" onClick="sL(this.value);">
      <input type="button" value="J" name="B19" onClick="sL(this.value);">
      <input type="button" value="K" name="B20" onClick="sL(this.value);">
      <input type="button" value="L" name="B21" onClick="sL(this.value);">
      <input type="button" value="'" name="B22" onClick="sL(this.value);"><br>
      
      <input type="button" value="Z" name="B24" onClick="sL(this.value);">
      <input type="button" value="X" name="B25" onClick="sL(this.value);">
      <input type="button" value="C" name="B26" onClick="sL(this.value);">
      <input type="button" value="V" name="B27" onClick="sL(this.value);">
      <input type="button" value="B" name="B28" onClick="sL(this.value);">
      <input type="button" value="N" name="B29" onClick="sL(this.value);">
      <input type="button" value="M" name="B30" onClick="sL(this.value);">
      <input type="button" value="," name="B31" onClick="sL(this.value);">
      <input type="button" value="." name="B32" onClick="sL(this.value);"><br>
    
      <input type="button" value="SPACE" name=" " onClick="sL(this.name);" style="width: 200">
    </P>
      
      <P align="center"><input type="button" value="SEND" name="B34" style="width: 200" onClick="sendKeys();">
      <input type="button" value="CLEAR" name="B35" style="width:200" onClick="document.keyboard.text.value='';"></P>
    </form>
    
    </body>
    </HTML>
    PLEASE help... This is desperately urgent

    J
    SVP Marketing, SoCast SRM
    Personal blog: Strategerize
    Twitter: @jeremywright

  2. #2
    SitePoint Wizard silver trophy Jeremy W.'s Avatar
    Join Date
    Jun 2001
    Location
    Toronto, Canada
    Posts
    9,123
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Well,

    I've got a few issues working. The only one not working now is that resizing isn't working...

    self.resizeTo(x,y);
    self.moveTo(z,a);

    Simply isn't doing anything, even though the func is being called...

    The rest of the issues are working, but this silly one isn't

    J
    SVP Marketing, SoCast SRM
    Personal blog: Strategerize
    Twitter: @jeremywright

  3. #3
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I was going to say use window instead of self,

    Code:
    function resizeMe()
    {
            window.alert("resized");
    	window.resizeTo(500,450);
    	window.moveTo(5,200);
    }
    This function works!, Are you having problems with netscape?

  4. #4
    SitePoint Wizard silver trophy Jeremy W.'s Avatar
    Join Date
    Jun 2001
    Location
    Toronto, Canada
    Posts
    9,123
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I'm using IE6. It's only for 1 terminal, so I don't need to worry about cross-browser, just need it to work on this deployment.

    So it's working for you?
    SVP Marketing, SoCast SRM
    Personal blog: Strategerize
    Twitter: @jeremywright

  5. #5
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The source you posted works fine, but doesn't work when in full size. If thats the problem your having?

  6. #6
    SitePoint Wizard silver trophy Jeremy W.'s Avatar
    Join Date
    Jun 2001
    Location
    Toronto, Canada
    Posts
    9,123
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    ... yes, that's the problem I'm having...
    SVP Marketing, SoCast SRM
    Personal blog: Strategerize
    Twitter: @jeremywright

  7. #7
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry I dont have the time to write this up properly, but heres a nice example that will work as a demonstration.

    this might help you as well. If your really stuck I will see if i can help you out more...

    http://www.devguru.com/Technologies/...ef/window.html

    Code:
    <a href="javascript:start()">Shake me!!</a>
    
    <script language="javascript">
    <!--  
      function start()
      {
        if (document.layers || document.all)  
          {  
          a=1;setInterval("Jump()",10);  
          }  
      }
      function Jump()
      {  
        a=a+1;self.moveBy((Math.random()*a*2 -a),(Math.random()*a*2)-a);  
      }  
    //-->
    </script>

  8. #8
    SitePoint Wizard silver trophy Jeremy W.'s Avatar
    Join Date
    Jun 2001
    Location
    Toronto, Canada
    Posts
    9,123
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    ... Not really what I'm looking for, I don't think...

    I'm looking to resize the fullscreen window, and then move it to certain coordinates.

    ... How is this possible, what am I doing wrong? It works on my computer, but not on this one

    J
    SVP Marketing, SoCast SRM
    Personal blog: Strategerize
    Twitter: @jeremywright

  9. #9
    SitePoint Wizard silver trophy Jeremy W.'s Avatar
    Join Date
    Jun 2001
    Location
    Toronto, Canada
    Posts
    9,123
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Okay, interesting issue...

    I've tried this out on other sites, and it seems like the resizeTo and moveTo don't work at all...

    For instance here: http://dpreview.cnet.com/webbuilding...7123518-1.html

    The "see it in action" link just opens full screen for me, nothing else...

    What the heck is going on?! Should I start a thread in the Computer Help Desk?
    SVP Marketing, SoCast SRM
    Personal blog: Strategerize
    Twitter: @jeremywright

  10. #10
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That is odd, it wouldn't even let me move the window... I will have a look into it tommorow... Why dont you open a normal popup for now and resize it to the window size. Thats a temp solution tho, I will look into it tommorow when I have more will have free time, just very busy right now..

    Another thing is remember to set the focus on the keyboard window. As your popup window falls behind the others...

  11. #11
    SitePoint Wizard silver trophy Jeremy W.'s Avatar
    Join Date
    Jun 2001
    Location
    Toronto, Canada
    Posts
    9,123
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Yeah that's all happening. I need to solve this today though, but if it isn't by the end of the day I'll do teh age old temp solution and hope you and I can figure out soomething tomorrow
    SVP Marketing, SoCast SRM
    Personal blog: Strategerize
    Twitter: @jeremywright

  12. #12
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Have a look at this... got it from http://www.chromeless.org
    Attached Files Attached Files

  13. #13
    Web-coding NINJA! silver trophy beetle's Avatar
    Join Date
    Jul 2002
    Location
    Dallas, TX
    Posts
    2,900
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    IE6 with SP1 (6.0.2800) handles fullscreen windows differently to eliminate the 'chromeless bug', as this effect with neither intended nor desired. Most likely the source of your grief.
    beetle a.k.a. Peter Bailey
    blogs: php | prophp | security | design | zen | software
    refs: dhtml | gecko | prototype | phpdocs | unicode | charsets
    tools: ide | ftp | regex | ffdev





Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •