Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic AREA onclick? (Read 3757 times)
pengwin
YaBB Newbies
*
Offline


U2 UniVerse | SB+

Posts: 9
Joined: May 15th, 2006
AREA onclick?
May 17th, 2006 at 4:44am
Print Post  
Is there a way to add an onclick to the <AREA tag of the map?

like :

TARGET="_self" ALT="" onclick="test(this.href)">

is there something to be added either to the hb or node class?

Thanks.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: AREA onclick?
Reply #1 - May 17th, 2006 at 6:39am
Print Post  
You could set the Hyperlink value to "javascript: test(this.href)".

Stoyan
  
Back to top
 
IP Logged
 
pengwin
YaBB Newbies
*
Offline


U2 UniVerse | SB+

Posts: 9
Joined: May 15th, 2006
Re: AREA onclick?
Reply #2 - May 17th, 2006 at 6:51am
Print Post  
and for

Code
Select All
<AREA SHAPE="RECT" COORDS="261,1277,336,1352"
HREF="#myProcess.aspx?x=250" TARGET="_self" ALT="" onclick="updateDivSrc('fProperties',this.href)">
 



?

  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: AREA onclick?
Reply #3 - May 17th, 2006 at 7:41am
Print Post  
We can add an event to the HtmlBuilder which would be raised for each AREA and let you append additional attributes and event handlers to the image areas. Until that's ready, modify your function so that it returns the URL passed as argument; then you could use it like this

HREF="javascript: updateDivs(..., '#yProcess.aspx?x=250')"

Stoyan
  
Back to top
 
IP Logged
 
pengwin
YaBB Newbies
*
Offline


U2 UniVerse | SB+

Posts: 9
Joined: May 15th, 2006
Re: AREA onclick?
Reply #4 - May 17th, 2006 at 8:16am
Print Post  
we'll give that a try Smiley ... thanks .. Smiley
  
Back to top
 
IP Logged
 
pengwin
YaBB Newbies
*
Offline


U2 UniVerse | SB+

Posts: 9
Joined: May 15th, 2006
Re: AREA onclick?
Reply #5 - May 17th, 2006 at 8:59am
Print Post  
ta - that worked 100% .. look forward to the new addition - perhaps even an attribute.add function so any "other" attrib can be added to the <MAP / <AREA tag/s? Wink

L8rs

  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: AREA onclick?
Reply #6 - May 17th, 2006 at 5:21pm
Print Post  
the control will just give you the tag string for each area so you can append anything there, is that ok ?
  
Back to top
 
IP Logged
 
pengwin
YaBB Newbies
*
Offline


U2 UniVerse | SB+

Posts: 9
Joined: May 15th, 2006
Re: AREA onclick?
Reply #7 - May 18th, 2006 at 5:31am
Print Post  
awesome  Grin
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint