[Zope] How to update parent window after selecting an object from child window?
Ping Lau
pinglau@tm.net.my
Tue, 5 Oct 1999 21:28:13 -0500
This is a multi-part message in MIME format.
------=_NextPart_000_0008_01BF0F78.877754A0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I am trying to write a simple address book program as an exercise. I =
created 4 folders. The hierarchy looks like this:
Country
State_Province
City
Address
Each country contains one or more states/provinces. Each state/province =
contains one or more cities. Address folder is at the same level as =
Country folder. Country has only one attribute: name. State has two =
attributes: name and countryid. City also has two attributes: name and =
state_provinceid. Address has three attributes: street, cityid, and =
type.
In the Address form, I have a
1. textarea box to collect street info
2. select/option box to collect address type info
3. button, when clicked will open a new window to show a list of cities. =
In the City List, there is one button next to each city to allow users =
to select it.
The question is how to show whatever users has typed in the street =
textarea box and the city, state, and country names in the Address form =
after an user has selected a city. I know how to call SQL method to =
join city, state, & country tables. Most importantly, I don't want to =
save the Address to the table until the City is selected.
Regards,
Ping
------=_NextPart_000_0008_01BF0F78.877754A0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>
<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2></FONT><FONT color=3D#000000 size=3D2>I am trying to =
write a=20
simple address book program as an exercise. I created 4 =
folders. The=20
hierarchy looks like this:</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT> </DIV>
<DIV><FONT color=3D#000000 size=3D2>Country<BR> =20
State_Province<BR> City<BR>Address</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT> </DIV>
<DIV><FONT color=3D#000000 size=3D2>Each country contains one or more=20
states/provinces. Each state/province contains one or more =
cities. =20
Address folder is at the same level as Country folder. Country has =
only=20
one attribute: name. State has two attributes: name and =
countryid. =20
City also has two attributes: name and state_provinceid. Address =
has three=20
attributes: street, cityid, and type.</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT> </DIV>
<DIV><FONT color=3D#000000 size=3D2>In the Address form, I have a<BR>1. =
textarea box=20
to collect street info<BR>2. select/option box to collect address type=20
info<BR>3. button, when clicked will open a new window to show a list of =
cities. In the City List, there is one button next to each city to =
allow=20
users to select it.</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT> </DIV>
<DIV><FONT color=3D#000000 size=3D2>The question is how to show whatever =
users has=20
typed in the street textarea box and the city, state, and country names =
in the=20
Address form after an user has selected a city. I know how to call =
SQL=20
method to join city, state, & country tables. Most =
importantly, I=20
don't want to save the Address to the table until the City is=20
selected.</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT> </DIV>
<DIV><FONT color=3D#000000 =
size=3D2><BR>Regards,<BR>Ping</FONT></DIV></BODY></HTML>
------=_NextPart_000_0008_01BF0F78.877754A0--