Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.
-
Joris van Lier #1
Behaviors without helper functions
Hi all, I'm trying to create a behavior that doesn't require a behavior
function, is this possible using the behaviors API?
Dreamweaver requires a behaviorFunction() function in behaviors, and
returnig an empty string results in a message "The Action will not be
applied".
Is it possible to insert behaviors without a behaviorfunction?
Sure I can create proxy functions that in turn call the actual command (eg
alert()) but this seems a lot of overhead to put into the document.
Joris
Joris van Lier Guest
-
Shockwave Helper
I'm currently running Shockwave 10 and have noticed a "Shockwave Helper" icon in my system tray lately. Exactly what is the Shockwave Helper that... -
Acrobat IE Helper error
About half the time I close Internet Explorer (v6), I get an "can't read" error identifying Acrobat IE Helper as the culprit. I'm looking for a way... -
Camino helper app
>>After upgrading from Chimera 0.6 to Camino 0.7, my pdf downloads I've done that repeatedly but it doesn't help. I downloaded and installed... -
popup calendar helper
Can anyone direct me to any resource or explain how to use the following calendar helper within Dreamweaver 4.0? This was written for MX, which I... -
Hardcode user for helper.exe
I have an ASP.Net app call another program, "helper.exe", on its same server. I want the helper.exe to always have a user = Administrator (as... -
E Michael Brandt #2
Re: Behaviors without helper functions
If you read the Extension help you'll see that certain functions are
indeed required by each type of Extension, whether Behavior, Command, or
Object. And certain methods are disallowed by each type as well.
--
E. Michael Brandt
[url]www.divaHTML.com[/url]
divaPOP : standards-compliant popup windows
divaGPS : you-are-here menu highlighting
divaFAQ : FAQ pages with pizazz
[url]www.valleywebdesigns.com[/url]
JustSo PictureWindow
JustSo PhotoAlbum
--
E Michael Brandt Guest
-
Joris van Lier #3
Re: Behaviors without helper functions
"E Michael Brandt" <michael@valleywebdesigns.com> wrote in message
news:fb3rqv$qv3$1@forums.macromedia.com...Yes i have the manual in front of me, i'm building a behavior to call>
> If you read the Extension help you'll see that certain functions are
> indeed required by each type of Extension, whether Behavior, Command, or
> Object. And certain methods are disallowed by each type as well.
>
commands in the AIR runtime, the air object is just available in the
document when the AIRAliases.js is included, it doesn't need a "helper"
function.
So what i'm doing now is inserting a proxy function to call the original
function, return the name of the proxy function from behaviorFunction and
wrap the call, that just seems like a lot of overhead.
Joris
function AIR_exec(cmdName) { //v1.0
if(typeof air != 'Object'){
alert('ERROR: AIR object not loaded, please include AIRAliases.js');
} else {
var cmd = 'air.'+cmdName+'(';
for(var i=1; i<arguments.length; i++){
cmd += (i==1) ? arguments[i] : ','+arguments[i];
}
cmd += ')'
eval(cmd);
}
}
//Return the name of the function that we want to be inserted into the
user's document.
function behaviorFunction(){
return "AIR_exec";
}
//Returns the actual function call string that will be inserted into the
event handler
function applyBehavior() {
addAIRAliases();
return "AIR_exec('trace',"+document.theForm.traceMessage. value+")";
}
Joris van Lier Guest
-
E Michael Brandt #4
Re: Behaviors without helper functions
In exchange for this overhead, you have the DW API adding all the
functionality of the Behaviors Window and its helper functions,
including removal of all your code from the head of the page when you've
deleted the last instance of yoru behavior from the body, allowing users
to select events from a dropdown, etc.
--
E. Michael Brandt
[url]www.divaHTML.com[/url]
divaPOP : standards-compliant popup windows
divaGPS : you-are-here menu highlighting
divaFAQ : FAQ pages with pizazz
[url]www.valleywebdesigns.com[/url]
JustSo PictureWindow
JustSo PhotoAlbum
--
E Michael Brandt Guest



Reply With Quote

