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

"E Michael Brandt" <[email protected]> wrote
in message
news:fb3rqv$qv3$[email protected]..
>
> 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.
>
Yes i have the manual in front of me, i'm building a behavior
to call
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
: ','+arguments;
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+")";

Similar Messages

  • I bought a cd with Lightroom 5. After installation and registration I am not able to use 'help' function and I cannot update the software. I anyone able to give me a hint how to handle it? Thank you ind advance Karl

    I bought a cd with Lightroom 5. After installation and registration I am not able to use 'help' function and I cannot update the software. Is anyone able to give me a hint how to handle it?
    Thank you in advance
    arl

    Hi Keith, sorry for my late reply.
    Surely I am able to connect to the help function when Icontact the website
    of AdobeLR5.The problem is as follows,
    When I open LR5 on my computer and work with it and try to open the help
    function in the software, I don't get it.
    When I bought the CD I was naiv enough to believe that I get an independent
    working software. I learned in the meantime, that the seller does not allow
    to work with, without being connected to them.
    I don't believe that I am paranoid, but I like to buy something and use it
    without to inform the supplier that I do it. Otherwise I could have bought
    the license fpr LR5 via internet.
    Best regards
    Karl
    2015-01-02 13:42 GMT+01:00 kglad <[email protected]>:
        I bought a cd with Lightroom 5. After installation and registration I
    am not able to use 'help' function and I cannot update the software. I
    anyone able to give me a hint how to handle it? Thank you ind advance Karl
    kglad <https://forums.adobe.com/people/kglad?et=watches.email.outcome>
    marked Keith_Reeder
    <https://forums.adobe.com/people/Keith_Reeder?et=watches.email.outcome>'s
    reply on I bought a cd with Lightroom 5. After installation and
    registration I am not able to use 'help' function and I cannot update the
    software. I anyone able to give me a hint how to handle it? Thank you ind
    advance Karl
    <https://forums.adobe.com/thread/1669640?et=watches.email.outcome> as
    helpful. View the full reply
    <https://forums.adobe.com/message/7059196?et=watches.email.outcome#7059196>

  • Helper Function Module; one or many

    I have been doing all my function development in individual ps1 files for ease of testing. I.e. I have a Reg-Functions file, which contains all my Registry manipulation functions, and I have some script level code at the bottom to test the functions. I had
    planned to then put all the helper functions together in a single module, but smaller files are a little easier to get around in, so now I wonder if having 10 or 12 different modules is a better way to go?
    Also, I can see some of them having shared dependencies. So A.psm1 & B.psm1 both depend on Z.psm1. Can I load Z.psm1 in both without trouble when I then load both into script.ps1? Or is there bad juju there? I know, this is one I should just test rather
    than asking the question, but I am away from the Windows VM at the memento and just had the thought.
    Gordon

    Attempting to import a module that is already loaded a second time will not affect anything.
    As for one big module versus 12 smaller ones, I would really see that as personal preference on how you want to manage them.  How many functions are we talking about total?  I have seen some modules with hundreds of functions, I guess it can also
    come down to how long you want the import process to take especially if you have a large number of seldom used functions.

  • Find location without GPS function

    Can the user have their location detected via a WAP site without the use of GPS? In the case of search for nearby locations via a directory service on WAP without GPS functionality (when user cannot download app version).
    Thanks!

    This cannot be done directly. Phones with GPS will have the 'network positioning' feature which helps to obtain a GPS fix if satellite signals are poor, but I'm pretty sure it can't be used as standalone location method.
    Any phone could theoretically know its approximate location based on which network base-station it is connected to (this is how network positioning works in GPS phones), but there is no software that I know of to put this information to use in the way you suggest.
    Message Edited by mccbleue on 06-Apr-2009 04:55 PM

  • Adobe Photoshop CS5.1 reinstalled because the Help functions gives an error message (7).

    Hi,
    When I tried to use the Help function in Adobe Prhotoshop CS5.1 a pop up message shows errorcode (7) advising to reinstall the product. So I did, but it did not work. What can I do more? Mind you, the Help function in Bridge is working as it should and both products are installed at the same time.
    Regards,
    Aad

    Have you manually launched the Communiuty Help client and verified, if the PS help is actualyl listed there? If not, you might wanna add it to the list. Also take care to install al lthe pertinent updates for the help client...
    Mylenium

  • Problems with Photoshop Elements 9 Help Function

    I recently installed Photoshop Organizer and Elements 9.  When I try to access any of the first six options in the help section of the menu at the top of the window I get an Adobe AIR error message stating that the installation of this application is damaged and to contact the publisher for assistance.  This also occurs when I access the help button in one of the Photoshop Editor image processing functions.  How do I repair the damaged help function of the software?  Any help would be appreciated.
    Thanks,
    Rick Davis

    Thanks for the quick reply.  I had again the problem and thanks to yr explanation problem is solved : whack the spacebar
    Bea

  • Opportunities in account overview without partner function dependency

    Hello,
    on the account overview page we can see the opportunities as well as the interaction history for a account.
    In the interaction history frame we can see every activity and opportunity where the account is involved.
    In the opportunities frame we could only see these opportunities where the account has a special partner function in the opportunity.
    For example the main account role is prospect.
    This account is involved in several opportunities with several different partner functions in the opportunities.
    We can only see these opportunities in the account overview where he is assigned with the role prospect.
    We did a customization for the time-frame in IMG: Customer Relationship Management => Master Data => Business Partner => Specify Display Options for Business Transactions.
    Is there a similar way to customize the partner function dependency for display?
    Or is there another way to show all the opportunities (in the opportunity frame) where the account is involved, without partner function dependency?
    Best regards and thanks in advance
    Matthias Breuer

    Matthias,
    I believe you could influence this via the BADI CRM_BP_UIU_BT in enhancement spot CRM_UIU_BP_ENHANCEMENT.  You can edit the selection criteria CT_SELECTION_PARAM as needed. 
    You can review the code CL_BUPA_IL_OPPORTUNITY_COMP to determine what criteria is being pouplated before the BADI is being called.  In addition the filter value of the implementation needs to be 'BPQOPP'.  From what I have seen SAP is hard-coding the partner type selection for the opportunity selection.
    Take care,
    Stephen

  • In your tutorial, having a problem linking the "Search the LabVIEW bookshelf" (on my D drive) help function with my Acrobat 4.0 reader(on my C drive)

    When I was using the temp system demo vi, I selected Help>>Search the LabVIEW bookshelf. I then had a pop up window display tell me that the manual file "D:\National Instruments\LabVIEW 6.1\manuals\lvlib.pdf" could not be opened. I then did a search for this file and found that the pdf file is where it should be. I also checked to see that my Acrobat 4.0 reader files were in tact and they are. I was able to open up this file in Acrobat 4.0 but only by double clicking the name of the pdf file while it is highlighted in my find files function box (It also works if I go directly to the pdf file itself in its folder location a
    nd double clicked on it). Nevertheless, for some reason when a vi is opened and when using the Help function in order to use "Search the LabVIEW bookshelf", it does not link to my Acrobat reader. Are my LabVIEW configuration settings wrong? I just recently had LabVIEW 6.1 installed. What do I need to do in order for LabVIEW to properly link up to my AcroRD32.exe file?

    In your LabVIEW 6.1\help directory, please replace the lvmanual.vi with the attached VI and try to select Help>Search the LabVIEW Bookshelf again.
    If it still does not work, please post a reply.
    Thank you,
    Kelly Holmes
    LV Documentation
    Kelly H
    LabVIEW Documentation
    National Instruments
    Attachments:
    lvmanual.vi ‏49 KB

  • How can I get help function?

    My Mail help function is not working. After clicking on help, window appears, but stays empty. All other applications have properly working help function.

    Try rebuilding your spotlight index.
    1. Apple menu -> System Preferences -> Spotlight -> Privacy.
    2. Add the hard drive to the panel by dragging it in.
    3. Remove it by selecting it and hitting the minus sign in the bottom left corner of that panel.
    4. Wait until when you look at the Spotlight menu it no longer says that it is indexing. The Spotlight menu is in the upper right corner of the screen, and has a blue circle with a white magnifying glass.

  • Error When Trying to use SAP Help Function

    I receive the following Error while simply clicking on Help in SAP.  I put a ticket in and out IT support was by SAP the following highly intelligent and helpful info/advice This is an actual quote!!!!:
    “This option is not available if they are looking for training on how to use SAP, then need to request this from SAP support or an individual that is working with SAP in their departnemtn"
    I was of the opinion that software comes with the help function in most cases (I say most because I could imagine someone making it a separate module but it would not go over well at all).  I
    I found a folder on the corporate shared drive called SAP_Help and took the following screen shots and there was a notedpad doc that listed every chm file and what it covered. 
    Next I opened SAP from Windows Server 2008 Applications Portal and so after I RDP'd into the server help works...
    Anyone know why this is happening I went to school and got a degree in Accounting.

    It seems you are using wrong client ID. Make sure your logon pad has right details. You should verify this with your basis team.
    If the problem persists then try re-installing. But before you do that you can execute sapbexc.xla which is in the c:\program files\sap\bw. Type c:\ in cell c3 and click "start button". Any red flag means you have wrong version dll/ocx on your local drive, in that case you should reinstall with right patches.
    if this solution helps u then pls assign points

  • Round without round function

    currently, we face a issue, given PO amount 3230.58, after calling function "round", it becomes 3231.00, this is ok, but if PO amount 3230.12, after calling function round, it becomes 3230.12, it should be 3230.00,how to fix this?
    if without calling function round, can any piece of code to fix the issue? thanks

    Hi, Please try the following code
    DATA: v_two_decimal type i VALUE '100',
          v_amount1      TYPE MAXBT VALUE '100.12',
          x_amount1      TYPE maxbt.
    CALL FUNCTION 'HR_IN_ROUND_AMT'
      EXPORTING
        amount        =  v_amount1
        rndoff        = v_two_decimal " round off precision 2 decimal places
       RNDLMT        = 'N'
    IMPORTING
       RETAMT        = x_amount1.
    x_amount1 will give 100.00
    if the value of  v_amount1  is 100.58,
    it will give 101.00

  • F4 / Help Functionality for input field in custom java iView

    Hi,
    As we see many F4 help on each input field in a transaction, how can we mimic the same functionality in a Custom Java iView. For example, ME23N, you can search a PO based on some criteria, when i create a new custom java iview using BAPI_PO_DISPLAY, how can provide that F4 or help functionality to the Purchase Order field.
    Your help is really appreciated.
    Thanks,
    Vijay

    Hi Vijay,
    the F4 Help functionality is always of big concern when you're switching from a R/3 or ABAP-SAP GUI environment to a webfront end. First of all: the convinience you're used to of creating a seach help and adding it to your data fields is gone, i.e. the current development status in the portal/java/webdynpro implies that you have to do most of the work on your own. Simple value helps might not be a problem, but complex ones are (as the one you've described). Here is a link to a tutorial in Java-webdynpro, maybe it gives you an idea:
    https://www.sdn.sap.com/sdn/developerareas/webdynpro.sdn?page=TutWD9_OVS.htm
    Regards,
    Ulli

  • My FCE Help function has disappeared

    Does anyone know why my help function might have disappeared? I am using version 4.0.1 on my 21.5" new iMac. I have just bought the software too and made one software update. Since updating the software and clicking on Help, I am offered the user manual and various other links, but when I type in a help topic, anything at all, like "capturing video" for example, into the Search box, it tells me "No results found". Why would that be?

    Try trashing the preferences like this:-
    http://www.fcpbook.com/Misc1.html
    If you prefer a free app that will do it automatically try this:-
    http://www.digitalrebellion.com/pref_man.htm

  • How to handle help function type in a dynpro

    Hello
    I've made a button with the functiontype H ( Help Function) and now I'd like to react on this button.
    But in the POV AND POH I can't call a module, because for this I need an input-/outputfield.
    (FIELD "FIELDNAME" MODULE "MODULENAME").
    My question is, how can I react on this functiontype / "HelpButton" ?
    Thx in advance
    Christian

    There are two ways:
    First************
    Process after input.
    module user_command.
    Code inside module user_command:
    IF SY-UCOMM = 'H'      "Function code for help button
    *fetch all the list and store into an internal table.
    * Call another screen to display the internal table.
    endif.
    Second*****************
    Create an input field on the screen and make it invisible.
    Process after input.
    module user_command.
    Code inside module user_command:
    IF SY-UCOMM = 'H'      "Function code for help button
    *fetch all the list and store into an internal table.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
    *         DDIC_STRUCTURE         = ' '
          retfield               = 'name of field of internal table which is to be returned to invisible dynpro field'
    *         PVALKEY                = ' '
         dynpprog               = 'program name'
         dynpnr                 = 'dynpro number'
         dynprofield            =  'name of invisible dynpro field'
    *    STEPL                  = 0
    *    WINDOW_TITLE           =
    *    VALUE                  = ' '
        value_org              = 'S'
    *   MULTIPLE_CHOICE        = ' '
    *   DISPLAY                = ' '
    *   CALLBACK_PROGRAM       = ' '
    *   CALLBACK_FORM          = ' '
        TABLES
          value_tab              = Internal table containing list to be displayed
    *     FIELD_TAB          =
    *     RETURN_TAB             =
    *      dynpfld_mapping        =
       EXCEPTIONS
         parameter_error        = 1
         no_values_found        = 2
         OTHERS                 = 3
    endif.

  • Photoshop CS5 "Help" function not working - Adobe Air error message?

    Installed Photoshop CS5, and thought everything was working okay, but when I click on Photoshop Help, I get the error message "Adobe Air - This installation of this application is damaged. Try re-installing......" I have re-installed first Adobe Air, same problem and then uninstalled and re-installed Photoshop CS5, but the problem remains. When I first tried to use the Help function it tried to update something and for some reason this failed. I'm wondering if others have seen the same problem and know of a solution? Thanks, David.

    Hello:  there may be a configuration issue going on here.  I have escalated this issue to our Help app engineering team. In the meanwhile, please try the following:
    Uninstall the Adobe Help application: go to your Application folder > Adobe > Adobe Help (drag it to the Trash)
    Delete the following directory:
    USER NAME (home) > Library > Preferences > chc.4875E02D9FB21EE389F73B8D1702B320485DF8CE.
    Empty the Trash
    Manually update the application via this link: http://www.adobe.com/support/chc/
    Select "Photoshop" in Step 1 and then click the Install badge in Step 2.  Make sure to select "Open" (and not Save) in the installation dialog box to fully update the app.
    Note: The previous instructions did not include deleting the old application or its preference file. This will help ensure that it is thoroughly updated.

Maybe you are looking for

  • Buying new mac to deal with fcp issue

    I have a power book g4 and was running FCP HD and decided to upgrade my camera to HD. However my mAc would not capture the footage from the camera. Having been into the Mac store I was informed of two choices. Either purchase the new version of FC St

  • Importing Footage DV/NTSC codec Hi Res into Final Cut Studio

    A friend, computer wizard, figured out a way to capture dv footage hi res using a linux computer. (this enabled to captured 4 tapes at once). He used the DV/NTSC codec and we checked that all the settings matched final cut's settings. The files play

  • Regarding CLDC Hotspot

    Hi, i am Mukesh From India Bangalore. can any one help me in setting the cldc hotspot implemation ? i mean what are all things required to setup the development enviorment,i have gone through the white papers but it is not clear how to set up. second

  • Can you set up a subscription service so blog posts are emailed to subscribers

    I would like to allow people to sign up to receive my blog posts via email (ie like how they can in blogger etc) but can't see anywhere to do this? Is it possible? Thanks

  • Sending log files for scheduled jobs as attachment through mail

    Hi All, Can any one please help me out to write a pl/sql program to send log files for scheduled jobs as attachment through mail. Thanks.