Le forum (ô combien francophone) des utilisateurs de Powerbuilder.
Bonjour,
J'ai une application PBWEBFORM qui se trouve dans le frame d'une page HTML.
Y a-t-il moyen, depuis l'applicatif, d'agir sur le Javascript régissant une autre partie du frame HTML ?
En gros, je voudrais changer le banner en fonction de la langue choisie par l'utilisateur de mon application.
Hors ligne
Bonjour, une expression du style
parent.frames["frame1"].document.objet.propriete = valeur
Hors ligne
un truc dans ce goût là, oui
le frame de mon application s'appelle : NAME=page
le frame sur lequel je veux agir est : NAME=logo
A ce dernier est associé un fichier js : change_banner.js
Dans ce fichier, j'ai une variable Lang que je voudrais modifier depuis mon application PBWEBFORM
Voici le code HTML de la page :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <title>Application PBWEBFORM</title> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> </head> <FRAMESET border=0 frameSpacing=0 frameBorder=0 rows="100,*"> <FRAMESET COLS="157,*"> <FRAME border=no name=logo marginWidth=0 marginHeight=0 src="logo.html" frameBorder=0 noResize scrolling=no> <FRAME border=no name=logo marginWidth=0 marginHeight=0 src="banner.html" frameBorder=0 noResize scrolling=no> </FRAMESET> <FRAMESET COLS="*"> <FRAME NAME=page SRC="pbwebform/default.aspx" TITLE="Title"> </FRAMESET> </FRAMESET> </HTML>
Hors ligne