HighDots Forums  

onClick GoTo URL

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss onClick GoTo URL in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Karlhevera
 
Posts: n/a

Default onClick GoTo URL - 07-01-2008 , 09:10 AM






I have 'details' pages, which are accessible from various lists, depending
whether they are called from the 'by date' or 'by event' listing. The visitor
has to click the 'Back' arrow at top left to return to the calling page. Is
there a way I could incorporate a onClick behaviour, which will return the
visitor the the calling page, the 'parent'? In the 'behaviours' panel I could
only see that I can only assign a specific URL to the behaviour, which would
not work in my case, as the calling URLs might be different each time the page
is visited..
karl,London



Reply With Quote
  #2  
Old   
djinn
 
Posts: n/a

Default Re: onClick GoTo URL - 07-01-2008 , 10:50 AM






Karlhevera wrote:
Quote:
I have 'details' pages, which are accessible from various lists, depending
whether they are called from the 'by date' or 'by event' listing. The visitor
has to click the 'Back' arrow at top left to return to the calling page. Is
there a way I could incorporate a onClick behaviour, which will return the
visitor the the calling page, the 'parent'? In the 'behaviours' panel I could
only see that I can only assign a specific URL to the behaviour, which would
not work in my case, as the calling URLs might be different each time the page
is visited..
karl,London


<a href="javascript:history.go(-1);">back</a>

HTH

--
chin chin
Sinclair


Reply With Quote
  #3  
Old   
Michael Fesser
 
Posts: n/a

Default Re: onClick GoTo URL - 07-01-2008 , 02:40 PM



..oO(djinn)

Quote:
Karlhevera wrote:
I have 'details' pages, which are accessible from various lists, depending
whether they are called from the 'by date' or 'by event' listing. The visitor
has to click the 'Back' arrow at top left to return to the calling page. Is
there a way I could incorporate a onClick behaviour, which will return the
visitor the the calling page, the 'parent'? In the 'behaviours' panel I could
only see that I can only assign a specific URL to the behaviour, which would
not work in my case, as the calling URLs might be different each time the page
is visited..
karl,London

a href="javascript:history.go(-1);">back</a
JFTR: Every browser already has a back button and users know how to use
it. There's hardly a reason to reinvent the wheel, especially since it
relies on JS and would appear as a non-working link to users without JS.

Micha


Reply With Quote
  #4  
Old   
djinn
 
Posts: n/a

Default Re: onClick GoTo URL - 07-01-2008 , 02:53 PM



Michael Fesser wrote:

Quote:
JFTR: Every browser already has a back button and users know how to use
it. There's hardly a reason to reinvent the wheel, especially since it
relies on JS and would appear as a non-working link to users without JS.
Yep - for sure - but it's what the OP was asking for :-)

--
chin chin
Sinclair


Reply With Quote
  #5  
Old   
Karlhevera
 
Posts: n/a

Default Re: onClick GoTo URL - 07-01-2008 , 02:56 PM



many thanks... as they say: it's easy, when you know how.. Never though that it could be this simple..:-)

Reply With Quote
  #6  
Old   
Murray *ACE*
 
Posts: n/a

Default Re: onClick GoTo URL - 07-01-2008 , 02:58 PM



It's not. 8)

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"Karlhevera" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
many thanks... as they say: it's easy, when you know how.. Never though
that it could be this simple..:-)


Reply With Quote
  #7  
Old   
Karlhevera
 
Posts: n/a

Default Re: onClick GoTo URL - 07-01-2008 , 03:10 PM



Djinn: this is the snippet.. where do I put the line?
<map name="Map" id="Map">
<area shape="rect" coords="4,4,64,21" href="#"
onclick="MM_goToURL('parent','apothecary_summary.h tm');return
document.MM_returnValue"
onmouseover="MM_swapImage('Image1','','pics/closelabel_swap.jpg',1)"
onmouseout="MM_swapImgRestore()" />
</map>


Reply With Quote
  #8  
Old   
Karlhevera
 
Posts: n/a

Default Re: onClick GoTo URL - 07-01-2008 , 03:25 PM



Michael: Sure, everyone is aware of the button's existence. However, I was
aked 'why do I have to click on the 'Back' arrow, at the top of the browser, to
go back to the previous page?'... This took me back to my former incarnation,
where I used if lastkey().... or inkey() ..do whatever...obviously not
available in DW? or is burried somewhere?



Reply With Quote
  #9  
Old   
Michael Fesser
 
Posts: n/a

Default Re: onClick GoTo URL - 07-01-2008 , 03:36 PM



..oO(Karlhevera)

Quote:
Michael: Sure, everyone is aware of the button's existence. However, I was
aked 'why do I have to click on the 'Back' arrow, at the top of the browser, to
go back to the previous page?'
Who asks such stupid questions? ;-)

Micha


Reply With Quote
  #10  
Old   
djinn
 
Posts: n/a

Default Re: onClick GoTo URL - 07-01-2008 , 04:50 PM



Karlhevera wrote:
Quote:
Djinn: this is the snippet.. where do I put the line?
map name="Map" id="Map"
area shape="rect" coords="4,4,64,21" href="#"
onclick="MM_goToURL('parent','apothecary_summary.h tm');return
document.MM_returnValue"
onmouseover="MM_swapImage('Image1','','pics/closelabel_swap.jpg',1)"
onmouseout="MM_swapImgRestore()" /
/map

Hi,

If you'd still like to do it - then it would look something like this,
given those co-ords and onclicks etc.........

<map name="Map" id="Map">
<area shape="rect" coords="4,4,64,21" href="javascript:history.go(-1);"
onclick="MM_goToURL('parent','apothecary_summary.h tm');return
document.MM_returnValue"
onmouseover="MM_swapImage('Image1','','pics/closelabel_swap.jpg',1)"
onmouseout="MM_swapImgRestore()" />
</map>

HTH

--
chin chin
Sinclair


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.