• 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
Changing image onMouseOver of WOHyperLink
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changing image onMouseOver of WOHyperLink


  • Subject: Changing image onMouseOver of WOHyperLink
  • From: Gustavo Pizano <email@hidden>
  • Date: Sun, 16 Mar 2008 21:54:59 -0500

Hello, well as some of you know im following the "WebObjects developers book" and some tutorials and wikis, 

Im trying to make a WOHyperLink who has a WOImage inside.. so the idea is that when I put the moouse over the image change... something really simple... I have the following

in wod 
HomeLink : WOHyperlink {
onMouseOver = onMouseOver;
onMouseOut = onMouseOut;
directActionName = "default";
imageName = imageName;
}
HomeImage : WOImage {

  filename = unhighlightedImage;
  border = 0;

  

}


and in the .java

public String onMouseOver(){

    

WOResourceManager rM = application().resourceManager();
String url = "" style="color: #0000c0">highlightedImage, null, null, context().request());
return imageName + ".src= '';";    
    }

    

    public String onMouseOut(){
    WOResourceManager rM = application().resourceManager();
String url = "" style="color: #0000c0">unhighlightedImage, null, null, context().request());
return imageName + ".src= '';";    
    }

I know there is a trick due that the book its made for Project builder and the depreciated tools.. so how can I achive this in WOLips?

Regards

Gustavo.

PS BTW I was able to make the connection to the database depending on admin or client and show a the corresponding page.. "Small step for WOcommunity, BIG Step for me!!! :D"

 _______________________________________________
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

  • Follow-Ups:
    • Re: Changing image onMouseOver of WOHyperLink
      • From: David LeBer <email@hidden>
  • Prev by Date: Re: Weird problem with setPrefetchingRelationshipKeyPaths
  • Next by Date: Re: Changing image onMouseOver of WOHyperLink
  • Previous by thread: Re: Weird problem with setPrefetchingRelationshipKeyPaths
  • Next by thread: Re: Changing image onMouseOver of WOHyperLink
  • Index(es):
    • Date
    • Thread