NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Output tab x input focus v4.01(b4060)
Veteran

Joined: 22 Sep 2005
Posts: 113
Reply with quote
I have many scripts, where a javascript puts focus on an input field just after the onload of the window. It works perfectly in any external browser, but not in the IDE's browser (Output tab).
View user's profileFind all posts by HoTShoTSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Probably, it's because when that JScript works, the output window is not active.
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Veteran

Joined: 22 Sep 2005
Posts: 113
Reply with quote
I think it's something related with the debugging process. If I just "run" (Ctrl-F9) the script, the field gets focus correctly. But if I "run in debugger" (F9), the field receives focus for a while (1-2 cursor blinks) and looses it. It doesn't matter if I'm using Adaptive Gui or not. It seems that the debug windows (Locals, Globals, etc) "steel" the focus just after page has finished loading.
View user's profileFind all posts by HoTShoTSend private message
Veteran

Joined: 22 Sep 2005
Posts: 113
Reply with quote
Any news about this issue?
View user's profileFind all posts by HoTShoTSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Quote:
If I just "run" (Ctrl-F9) the script, the field gets focus correctly

Does it retain focus if you switch to another tab and return back?
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Veteran

Joined: 22 Sep 2005
Posts: 113
Reply with quote
ddmitrie wrote:
Does it retain focus if you switch to another tab and return back?

No, it does not.
View user's profileFind all posts by HoTShoTSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Please submit a short HTML+php file that will replicate this problem.
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Veteran

Joined: 22 Sep 2005
Posts: 113
Reply with quote
Here it is:

Code:
//test.php
<html>
<head>
<script type='text/javascript'>
    window.onload = function(){
                        document.getElementById('user').focus();
                    };
</script>
</head>
<body>
<form method='post' action='#'>
<fieldset style='width:1%'>
    <legend class='cor'>Authentication</legend>
    <table class='cor' align='center' style='width:300px'>
    <tr><td class='tdbold' style='text-align:right'>User:</td>
        <td><input type='text' name='user' id='user' value=''></td></tr>
    <tr><td class='tdbold' style='text-align:right'>Password:</td>
        <td><input type='password' name='pass' id='pass' value=''></td></tr>
    <tr><td colspan='2' align='center'><hr>
            <input type='submit' value='Login'></td>
    </tr>
    </table>
</fieldset>
</form>
</body>
</html>
View user's profileFind all posts by HoTShoTSend private message
Veteran

Joined: 22 Sep 2005
Posts: 113
Reply with quote
No news about? Could you replicate the problem?
View user's profileFind all posts by HoTShoTSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
we fixed this problem in v4.5.
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Veteran

Joined: 22 Sep 2005
Posts: 113
Reply with quote
Version 4.5 requires upgrade ($$), shouldn't the 4.01 be rebuilt with the fix?
View user's profileFind all posts by HoTShoTSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Not actually. We fixed some components and if we put them into 4.0, it would require a) some development b) new tests. As a result this minor fix (from the user perpectives) causes sensible changes in the code.
If $$ is the only reason not to upgrade, please contact our sales dept. for the offer. As I understand, they can offer you either good discount or next upgrade for free.
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Output tab x input focus v4.01(b4060)
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic