• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

xsl: html: getting attribute from other frame with refresh: Update info

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hey
i have a xsl-based website with different frames.
The top-frame is html, the navigation-frame xml with xsl and the mainframe also xml with xsl. i want to switch any moment from language. So when i click in the top on the language button i want to have information in the top of the mainframe: i want to know some information of my xml, so i can show the same information in that frame in an other language, and not at the startpage of the other language.

i want the attribute ID from the mainframe in the topframe.
<CARD ID="TF030">
is there a way to capture an attribute from another frame by refreshing the page or while pressing a button?
my english isn't very good, i hope it make's any sence.
Can somebody give me some information or an example?
thanks a lot.
Tom
thanks..
[ October 28, 2003: Message edited by: Tom db ]
[ October 28, 2003: Message edited by: Tom db ]
[ October 30, 2003: Message edited by: Tom Brown ]
 
buckaroo
Posts: 401
Postgres Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
valueof @ID
[ October 28, 2003: Message edited by: Donald R. Cossitt ]
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tom,
Sorry to bother you but I'd like to ask you to change your display name -- it doesn't quite comply with our naming policy, which requires a two-part, real (or realistic sounding) display name.
Thanks.
 
Tom Brown
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hey doco
thanks for the reply, but i want to get the value from the mainframe in the topframe. so how make i a link(connection) to the other frame?
thanks
tom
 
Donald R. Cossitt
buckaroo
Posts: 401
Postgres Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


So when i click in the top on the language button


Did you use servlet[s] to create the pages to begin with? If so, were the servlet[s] designed to be re-used based on some conditions? If so, why not have your 'submit/ion' reuse those servlet[s] to refresh those pages again - based on an updated condition?
 
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tom:
If I understand you right, you want to get info from one frame to another in a browser. You can look into Scripting in a browser (say JavaScript thru DOM) to do it. If applets are allowed, you can use that also. But local scripting is typically buggy, which has browser version issues. If possible, going thru server side is better.
 
Tom Brown
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks all for the reply,
i'll give some more information. maybe that helps.
I hope that i can explain my problem.


* I work with 2 index pages. index_nl and index_fr
* navframe with xml/xsl stylesheet.
* mainframe with xml/xsl stylesheet. in every xml file there is a <LANG>NL</LANG> or <LANG>FR</LANG>.
* I show 2 different xml-files in the mainframe. One page with toc of products and when you pick one product you go to the product in the same frame. In that xml-file there is a reference to the productnumber.
* when i am in the NL-language and push the FR-language button to go to the other language i want to give the same pages, but in the other language.

what can i do? when i push the button i have to trace which xml file is loaded in the mainframe. then i have to send it to the other indexpage to show the right page in the mainframe but in the other language. I have 2 sort of files to show in the mainframe. One toc-file wich is made by starting the page.. so thats an easy url-link. And in the other case i have to give a command to import the right xml product file.

is there an other solution? maybe an refresh button and a tool or something to catch some data from the mainframe?

i hope you can help

-------------
index_nl.htm
-------------
<frameset rows="100,375" frameborder="NO" border="0" framespacing="0">
<frame name="topframe" src="html/top_testfrans.htm" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" noresize>
<frameset cols="325,455">
<frameset rows="120,255">
<frameset cols="160,165">
<frame name="zoekframe" src="html/form_tech.htm" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" noresize>
<frame name="fotoframe" src="html/empty_foto.htm" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" noresize>
</frameset>
<frame name="navframe" src="http://.....toc=MAIN_NL" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" noresize>
</frameset>
<frame name="mainframe" src="html/empty.htm" marginwidth="0" marginheight="0" scrolling="yes" frameborder="0">
</frameset>
</frameset>
-----------------

-----------------
index_fr.htm
-----------------
<frameset rows="100,375" frameborder="NO" border="0" framespacing="0">
<frame name="topframe" src="html/top_fr.htm" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" noresize>
<frameset cols="325,455">
<frameset rows="120,255">
<frameset cols="160,165">
<frame name="zoekframe" src="html/form_tech_fr.htm" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" noresize>
<frame name="fotoframe" src="html/empty_foto.htm" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" noresize>
</frameset>
<frame name="navframe" src="...?table=PUBLI&toc=TOC_NL" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" noresize>
</frameset>
<frame name="mainframe" src="html/empty.htm" marginwidth="0" marginheight="0" scrolling="yes" frameborder="0">
</frameset>
</frameset>
-------------------


this is my top file in html. there are 3 layers for navigate. one button to switch the language. i have reduced the code. normally its code with onmouseover and stuff...
--------------------
top_testfrans.htm
--------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
</head>
<body leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0">
<div id="tech1" style="position:absolute; left:5; top:70; width:155px; height:30px; z-index:1; cursor:hand;"><a>lt;/a></div>
<div id="tech2" style="position:absolute; left:5; top:70; width:155px; height:30px; z-index:1; visibility: hidden;"><img src="../bot_tech_1.gif" width="155" height="30"></div>
<div id="tech3" style="position:absolute; left:5; top:70; width:155px; height:30px; z-index:1</div>
<div id="werk1" style="position:absolute; left:160; top:70; width:155px; height:30px; z-index:1; cursor:hand;"><a></a></div>
<div id="werk2" style="position:absolute; left:160; top:70; width:165px; height:30px; z-index:1; visibility: hidden;"></div>
<div id="product1" style="position:absolute; left:330; top:70; width:190px; height:30px; z-index:1; cursor:hand;"><a></a></div>
<div id="product2" style="position:absolute; left:330; top:70; width:190px; height:30px; z-index:1; visibility: hidden;"></div>
<table bgcolor="#666666" width="780" height="100" cellspacing="0" cellpadding="0" border="0">
<td height="30" width="115" bgcolor="#ffffff" nowrap><a href="../WEB/index_fr.html" target="_parent"><img src="../bot_fra_1.gif" name="frans1" width="115" height="30" border="0" id="frans1"></a></td>
<td height="30" width="5" bgcolor="#fffffff" nowrap><img src="../bot_right.gif" width="5" height="30"></td>
</tr>
</table>
</body>
</html>
--------------

---------------------------
example toc.xml products in mainframe
---------------------------
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="../XSL/toc.subnav.xsl"?>
<PRODS HNAME="">
<LANG>FR</LANG>
<TITLE>Product</TITLE>
<TECHCARD ID="TS005" NAME="productname" DESCRPT="description" IMAGE="P0055.jpg" TYPE="type" STYPE="stype" />
</TECHCARDS>
-----------------------

------------
example product in mainframe with product number.
------------
<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="../XSLT/pub.product.xsl"?>
<PRODUCT_f>
<LANG>FR</LANG>
<TYPE>type</TYPE>
<STYPE>stype</STYPE>
<TRANSPORT">
<product TYPE="1" CODE="TS005">
<PRODUCT NR="TS005">
<AL>
<PARA></PARA>
</AL>
</Product></TRANSPORT></product_f>
-----------------------------------

i hope you have enough information.

really thanks a lot !!

i hope somebody can help me.

Tom
 
reply
    Bookmark Topic Watch Topic
  • New Topic