Hi Kevin,

this will work but it's not good code style because the parser cannot parse the HTML file correctly.
It would be better to use something like:

<webobject name="HomeURL"></webobject>

instead of the whole <a href....

and set

HomeURL : WOHyperlink
{
  href="javascript:void(0);";
  onMouseDown="MM_openBrWindow...";
}

If the URL in your Dreamweaver MM_openBrWindow call is variable, then you may create the whole onMouseDown string in the code

HomeURL : WOHyperlink
{
  href="javascript:void(0);";
  onMouseDown=myURLOnMouseDown;
}

where

public String myURLOnMouseDown()
{
return "MM_openBrWindow('" + someFunctioncallOrBindingForMyHomeURL() + "','photography','width= 450,height= 300')";
}

Regards,
Helmut

Am 30.06.2008 um 06:28 schrieb Ren, Kevin:

Hi,

I have these code could not compiled

Said "the character '<' must be escaped"

How to fix it?

<a href="#" onMouseDown="MM_openBrWindow('<WEBOBJECT Name=HomeURL></ WEBOBJECT>','photography','width= 450,height= 300')">

<WEBOBJECT NAME=HomeImage></WEBOBJECT></a>


HomeURL :  WOActionURL { action = homeActionURL; }
HomeImage: WOImage {
        filename = "home.jpg";
        width="125";
        height="75";
        border="0";
}


thanks

Kevin


"This communication is confidential and may contain privileged and/ or copyright material. If you are not the intended recipient you must not use, disclose, copy or retain it. If you have received it in error please immediately notify me by return email, delete the emails and destroy any hard copies. ANZ National Bank Limited does not guarantee the integrity of this communication, or that it is free from errors, viruses or interference."

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/helmut.schottmueller%40mac.com

This email sent to [EMAIL PROTECTED]

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]
  • Code question Ren, Kevin
    • Re: Code question Helmut Schottmüller

Reply via email to