• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Code question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Code question


  • Subject: Re: Code question
  • From: Helmut Schottmüller <email@hidden>
  • Date: Mon, 30 Jun 2008 12:28:00 +0200

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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

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@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Code question (From: "Ren, Kevin" <email@hidden>)

  • Prev by Date: Code question
  • Next by Date: [OT] Versioning and compatibility checking
  • Previous by thread: Code question
  • Next by thread: [OT] Versioning and compatibility checking
  • Index(es):
    • Date
    • Thread