Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fancy javascript manipulation
Message
De
14/10/2001 00:20:00
 
 
À
Tous
Information générale
Forum:
Internet
Catégorie:
Javascript
Titre:
Fancy javascript manipulation
Divers
Thread ID:
00568245
Message ID:
00568245
Vues:
48
Here's an interesting one. A HTML page is calling a javascript which opens a new window. From that opened window, I can then issue something like this:
window.opener.Message.To.value=lcMessageMark
This works fine as long as the form name and the field name remains the same. And, that will work as long as the form name is Message and that the field name is To.

Now, from the original HTML page, I have several calls to this javascript function to store the returned value in various fields. So, for example, before calling the function, I may issue something like this to store the form name and the field name.
document.MyForm.Form.value='MyForm'
document.MyForm.Field.value='NoMember'
GoGetValue()

function GoGetValue()
{
   window.open("MyUrl");
}
Then, I need a mecanism from the opened window to dynamically assign the returned value in the MyForm.NoMember field.

So, I would need something like this:
lcForm=window.opener.MyForm.Form.value
lcField=window.opener.MyForm.Field.value
window.opener.&lcForm.&lcField.value=lcMessageMark
But, of course, that syntax is not working. How can I achieve that?
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform