473,789 Members | 2,547 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Reaching a sibling frame ?????

hi,
here is my main html file

INDEX.JSP
-------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META name="GENERATOR " content="IBM WebSphere Studio">
<TITLE>main.htm l</TITLE>
</HEAD>
<frameset name = "index" cols="163,*" border="0" frameborder="no ">
<frame name="menu" src="menu.jsp" noresize scrolling="no"/>
<frameset rows="30,*" border="0" frameborder="no ">
<frame name="header" src="header.jsp " noresize scrolling="no"/>
<frame name="body" scrolling="yes"/>
</frameset>
</frameset>
</HTML>

what i want to do is to refresh the 'menu' frame form within the 'body'
frame.
in the body frame, i have my loggon form, when the logging succed, i display
a welcom file "welcomUser.jsp ' in the 'body'. and i have created a
javascript
called at onLoad of welcomUser.jsp

WELCOMEUSER.JSP
--------------------------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@page import="eshop.u til.*"%>
<HTML>
<HEAD>
<META name="GENERATOR " content="IBM WebSphere Studio">
<TITLE>acceuilU sert.jsp</TITLE>

<SCRIPT language="JavaS cript">
function reloadMenu()
{
parent.menu.loc ation.href = "menu.jsp";
}
</SCRIPT>

</HEAD>

<BODY onLoad="reloadM enu()">
<%
String name="";
if (session != null) {
User user = (User) session.getAttr ibute("user");
if (user != null)
name = user.getName();
}
%>

welcome <%= name %>
</BODY>
</HTML>

THE ERROR
---------------
parent.menu.loc ation null object
i have tried also parent.parent.m enu.location, with no success
PLEASE HELP, i have a big headache i don't understand i have drawn the
hierarchy structure!!!! i don't understand
in my opinion the hierarchy structure is as follow

FramSet-Top
Frame-Menu FrameSet
Frame-header
Frame-body

so to reach the Menu frame from the body-frame, there is tow steps to reach
FramsetTop (parent.parent) , and finally to reach menu is
(parent.praent. menu)
but it doesn't work -;((((

THANKS FOR YOUR HELP
Jul 20 '05 #1
2 4509
i am very shamed , i have test the WelcomUser.jsp outside of its context, so
of course there is no parent
ok forget about it

"Java_Forum " <hb******@wanad oo.fr> a écrit dans le message de news:
bj**********@ne ws-reader3.wanadoo .fr...
hi,
here is my main html file

INDEX.JSP
-------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META name="GENERATOR " content="IBM WebSphere Studio">
<TITLE>main.htm l</TITLE>
</HEAD>
<frameset name = "index" cols="163,*" border="0" frameborder="no ">
<frame name="menu" src="menu.jsp" noresize scrolling="no"/>
<frameset rows="30,*" border="0" frameborder="no ">
<frame name="header" src="header.jsp " noresize scrolling="no"/>
<frame name="body" scrolling="yes"/>
</frameset>
</frameset>
</HTML>

what i want to do is to refresh the 'menu' frame form within the 'body'
frame.
in the body frame, i have my loggon form, when the logging succed, i display a welcom file "welcomUser.jsp ' in the 'body'. and i have created a
javascript
called at onLoad of welcomUser.jsp

WELCOMEUSER.JSP
--------------------------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@page import="eshop.u til.*"%>
<HTML>
<HEAD>
<META name="GENERATOR " content="IBM WebSphere Studio">
<TITLE>acceuilU sert.jsp</TITLE>

<SCRIPT language="JavaS cript">
function reloadMenu()
{
parent.menu.loc ation.href = "menu.jsp";
}
</SCRIPT>

</HEAD>

<BODY onLoad="reloadM enu()">
<%
String name="";
if (session != null) {
User user = (User) session.getAttr ibute("user");
if (user != null)
name = user.getName();
}
%>

welcome <%= name %>
</BODY>
</HTML>

THE ERROR
---------------
parent.menu.loc ation null object
i have tried also parent.parent.m enu.location, with no success
PLEASE HELP, i have a big headache i don't understand i have drawn the
hierarchy structure!!!! i don't understand
in my opinion the hierarchy structure is as follow

FramSet-Top
Frame-Menu FrameSet
Frame-header
Frame-body

so to reach the Menu frame from the body-frame, there is tow steps to reach FramsetTop (parent.parent) , and finally to reach menu is
(parent.praent. menu)
but it doesn't work -;((((

THANKS FOR YOUR HELP

Jul 20 '05 #2
In article <bj**********@n ews-reader3.wanadoo .fr>, hb******@wanado o.fr
enlightened us with...
<frameset name = "index" cols="163,*" border="0" frameborder="no ">
<frame name="menu" src="menu.jsp" noresize scrolling="no"/>
<frameset rows="30,*" border="0" frameborder="no ">
<frame name="header" src="header.jsp " noresize scrolling="no"/>
<frame name="body" scrolling="yes"/>
</frameset>
</frameset>
</HTML>

what i want to do is to refresh the 'menu' frame form within the 'body'
frame.


<script type="text/javascript">
top.frames["main"].reload()
</script>

-------------------------------------------------
~kaeli~
Press any key to continue or any other key to quit.
Who is General Failure and why is he reading
my hard disk?
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace
-------------------------------------------------
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
11312
by: Peter Rohleder | last post by:
Hi, I'm using a style-sheet where I make use of the XPATH-"following-sibling"-expression. The part which makes problems looks similar to the following code: --------------------------- <xsl:for-each select="headdata/extension/person">
1
9437
by: Philipp Lenssen | last post by:
I have some chapters a document goes through, so at the end of each document I want to output "Continue with XYZ", where XYZ is the next-sibling of the current one I select. However I don't know how to write the XPath to express this. I tried variants of this with ASP/MSXML: sPhase = "foo" set xNext = xPhasesDoc.documentElement.selectSingleNode( "following-sibling::phase")
1
2611
by: Niall Smart | last post by:
Hi I'm trying to emulate a "following-sibling-or-self" XPath axis without using the union operator. The XML looks like this: <deeply-nested> <select> <option value="1">One</option> <option value="2" selected="selected">Two</option> <option value="3">Three</option>
2
5900
by: Michael K?nig | last post by:
Hello, I've an XML-file structured like this <table> <tr> <td>Nombre:</td> <td>Joseph</td> <td>Apellido:</td> <td>Ratzinger</td>
0
1110
by: Elaine | last post by:
I have a truly curious problem with HtmlHelp and Sibling Mode in Visual C++ ..Net 2003 in an MFC app. Sibling mode allows the help viewer to display on top of the app, but if the app is clicked, then the app becomes the top most window. The idea is to let the user switch back and forth between the help viewer and the application. For the case of Menu Items only, sibling mode does not appear to work correctly under normal running...
11
2162
by: localpricemaps | last post by:
i have some html which looks like this where i want to scrape out the href stuff (the www.cnn.com part) <div class="noFood">Cheese</div> <div class="food">Blue</div> <a class="btn" href = "http://www.cnn.com"> so i wrote this code which scrapes it perfectly:
3
2747
by: patrizio.trinchini | last post by:
Hi, how can remove sibling elements based on the value of an attribute ? For instance, gven the XML document: <root> <parentElment> <testElement name="A"> <removableElement/>
12
3665
by: apicard | last post by:
I have a simple document like this: <Accept> <XXXX/> <Token image="From"/> <Date value="2007-01-01"/> <Token image="To"/> <Date value="2007-01-01"/> </Accept>
0
10404
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9016
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7525
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6761
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5415
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5548
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4089
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3695
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2906
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.