Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set focus issue
Message
From
30/04/2010 00:54:39
 
 
To
30/04/2010 00:31:07
General information
Forum:
Internet
Category:
Javascript
Title:
Miscellaneous
Thread ID:
01462488
Message ID:
01462489
Views:
28
Note that this problem only occurs because I am making the script live from DHTML. As DHTML cannot interpret the script, I am dumping it into a DIV, which I then make the script live later on with the DOM approach. So, when I want to set the focus on a field, I simply used the same technique by adding one additional DIV, reading its value (which is the field name), and scripting that later in the final script to set the focus.
      // If we have to set the focus on a field
      if (document.getElementById("IFrameGeneric").contentWindow.document.getElementById("LXFocus"))
      {
         lcField=document.getElementById("IFrameGeneric").contentWindow.document.getElementById("LXFocus").innerHTML
         document.getElementById(lcField).focus()
      }
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform