Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Posting into transactional frame
Message
De
24/02/2016 12:36:49
 
 
À
Tous
Information générale
Forum:
Javascript
Catégorie:
Autre
Titre:
Posting into transactional frame
Divers
Thread ID:
01631966
Message ID:
01631966
Vues:
41
I have done this for years but today, I need to enhance some of that.

Basically, a form is posting into a transactional frame.

That transactional frame returns some code like this:
loTable=parent.MESSAGE.document.getElementById('LXToolbarIDTable')
loImage=parent.MESSAGE.document.getElementById('LXToolbarIDImage')
loTD=parent.MESSAGE.document.getElementById('LXToolbarIDTD')
loImage.style.opacity=1
loTD.style.opacity=1
loTD.innerHTML='Test'
loTable.onclick=function() {alert('onclick');}
So, basically, this goes like like:

1. A click is done on the form
2. The submit is forwarded to the transactional frame
3. The transactional frame answers with that javascript code
4. It resets the opacity of two elements from the form who did the post
5. It also needs to set back the onclick of an element to something

This works. I can click several times on the form to post and it works well.

However, from that form, if I have another click which submits something also to that transactional frame, this erases from memory the loTable.onclick reference.

So, it seems as because the onclick reference to an element of the form was set from another frame, if that frame changes URL after, it will erase anything it set in memory.

So, something has to be changed in loTable.onclick to achieve the same.

Any idea?
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