Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set focus issue
Message
De
30/04/2010 00:54:39
 
 
À
30/04/2010 00:31:07
Information générale
Forum:
Internet
Catégorie:
Javascript
Titre:
Divers
Thread ID:
01462488
Message ID:
01462489
Vues:
29
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform