This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > January 2005 > Javascript and Behaviours problems





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Javascript and Behaviours problems
silver_bullet!

2005-01-18, 12:15 pm

Hi,

I've searched this forum but not found my particular problem.

In some links I have been using the javascript:; and behaviours method to open
& size a new window. However, having converted the site to utilise templates
the links no longer work.

A few weeks ago a chap called Daryl advised me not to go down this route and
suggested that I use the following method -

<a href="page.cfm" onClick="myJavascriptFunctionCall();return false;">Text
Link</a>

From this I get the impression that I need an external javascript. Where do I
get it and what do I do with it?

Any help would be much appreciated.

Murray *TMM*

2005-01-18, 12:15 pm

myJavascriptFunctionCall() is a symbolic representation of the code on YOUR
page.

In other words, if you are using the Open Browser Window behavior, your code
would look this, before -

<a href="java script:;" onClick="MM_openBrWindow(...)">

and this, after -

<a href="foo.cfm" onClick="MM_openBrWindow(...);return false">

Get it?

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"silver_bullet!" <webforumsuser@macromedia.com> wrote in message
news:csitcc$hmn$1@forums.macromedia.com...
> Hi,
>
> I've searched this forum but not found my particular problem.
>
> In some links I have been using the java script:; and behaviours method to
> open
> & size a new window. However, having converted the site to utilise
> templates
> the links no longer work.
>
> A few weeks ago a chap called Daryl advised me not to go down this route
> and
> suggested that I use the following method -
>
> <a href="page.cfm" onClick="myJavascriptFunctionCall();return false;">Text
> Link</a>
>
> From this I get the impression that I need an external javascript. Where
> do I
> get it and what do I do with it?
>
> Any help would be much appreciated.
>



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews