Re: Stuck in chapter 3 of the Mendis book
Re: Stuck in chapter 3 of the Mendis book
- Subject: Re: Stuck in chapter 3 of the Mendis book
- From: Paul Lynch <email@hidden>
- Date: Thu, 29 Jun 2006 08:11:45 +0100
On 29 Jun 2006, at 07:57, email@hidden wrote:
We created a new project, which is supposed to become the splash
page for the Dynamic Movies app. It has an image, and an image map
hand-typed in to Main.html which looks like this:
<map name="splashmap">
<area shape=rect coords="191,137,259,174" href="http://www.dell.com">
<area shape=rect coords="0,80,215,159" href="http://www.apple.com">
<area shape=rect coords="146,52,253,97" href="http://www.ibm.com">
<area shape=rect coords="204,89,265,128" href="http://www.sun.com">
</map>
Then we created a component called WOArea.
He lost me completely at the top of page 44:
"Now in the Main component, replace each of the image map area
elements with WOArea dynamic elements."
I have no idea how to do that. I can add four WOAreas to the page,
of course, but how to make them replace the image map? Not a
clue. I tried looking at his source code but as usual all traces
of this intermediate step are gone, so it didn't help.
He meant that you should replace each of the four area lines above
with the WOArea component, with appropriate bindings. Which is
exactly what he said :-). You will end up with something like:
<map name="splashmap">
<WebObject name="WOArea1"></webobject>
<WebObject name="WOArea2"></webobject>
<WebObject name="WOArea3"></webobject>
<WebObject name="WOArea4"></webobject>
</map>
Second problem:
I tried to keep going but got stuck again right away at the top of
p. 45:
"So create a new component called WOMappedRollover. Cut and paste
the elements for the image map (that is the script, the image map
itself, and the image) into the WOMappedRollover component."
Script? Eh what? I have no idea what he's talking about, and once
again the sample code fails me because there doesn't seem to be any
trace of this step left in it. Or I'm just not seeing it because I
don't know what he's referring to.
Script = Javascript.
Paul
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden