onClick, onBlur, onChange function etc.

I ' v browsed number of threads and found that (for example) 'The HTML Form element attributes' people can fill "onBlur, onClick, onChange, etc.". In fact what programming language is used to fill this? Functions of "onXXX" how many out there? Documentation can help.
Thank you.

Gamez.

Hello

what you're talking about are the javascript event handlers. Since I'm German I this quick overview for you: http://de.selfhtml.org/javascript/sprache/eventhandler.htm

Maybe you can use it to search the function names in the web.

Welcome them

Tags: Database

Similar Questions

  • myPanel.grp.myTabbedPanel.myTab1.onChange = function

    How can I make an onChange or onClick function to my tab?

    {

    function myScript (thisObj) {}

    function myScript_buildUI (thisObj) {}

    var myPanel = (thisObj instanceof Panel)? thisObj: new window ("palette", "Estudio Voraz Panel', undefined, {resizable: true}");

    myPanel.layout.resize ();

    res = "group {orientation: 'column', margins: a spacing of 0: 0,------}»

    alignment: ["fill", "fill"] alignChildren: ['fill', 'top'],

    myTabbedPanel: Panel {type: 'tabbedpanel'------}

    myTab1: Panel {type: 'tab', text: 'Salidas', margins: [4,8,4,8], spacing: 5, alignChildren: ['fill', 'center'],------}

    },\

    },\

    myTab2: Panel {type: 'tab', text: "Plecas"------}

    imageWIP: IconButton {text: 'In PROGRESS', alignment: ["top", "top"], preferredSize: [372 180]},

    },\

    myTab3: Panel {type: 'tab', text: 'Bites',------}

    imageWIP: IconButton {text: 'In PROGRESS', alignment: ["top", "top"], preferredSize: [372 180]},

    },\

    myTab4: Panel {type: 'tab', text: 'Menus'------}

    imageWIP: IconButton {text: 'In PROGRESS', alignment: ["top", "top"], preferredSize: [372 180]},

    },\

    myTab5: Panel {type: 'tab', text: 'Wipers'------}

    imageWIP: IconButton {text: 'In PROGRESS', alignment: ["top", "top"], preferredSize: [380 180]},

    },\

    }";

    myPanel.grp = myPanel.add (res);

    myPanel.grp.spacing = 0

    FUNCTION

    myPanel.grp.myTabbedPanel.myTab1.onChange = function() {}

    What

    {

    case 'tab1 ':

    blablabla

    }

    END PANEL - NO PONER NADA ESTA LINEA ABAJO.

    Return myPanel;

    }

    var myScriptPal = myScript_buildUI (thisObj);

    If ((myScriptPal! = null) & & (myScriptPal instanceof window)) {}

    myScriptPal.center ();

    myScriptPal.show ();

    }

    }

    myScript (this);

    }

    I want to do some functions for different cases of tab. For example:

    When I change the brand Tab2 a function etc.

    this. Selection , this is what tells you what tab was clicked. This is how you identify the purpose of the tab. If you want to perform a function based on the clicked tab, you would use this.selection and then feed the installation of switch that you had originally.

    myPanel.grp.myTabbedPanel.onChange = function(){
        var selectedTab = this.selection;
        switch(selectedTab.text){     //Use tab name as unique identifier
              case "Salidas":     //If Salidas was clicked...
                  //...run function here
                  break;
              case "Plecas":     //If Plecas was clicked...
                  //...run function here
                  break;
              //and so on for the other tabs you have.
        }
    }
    

    The purpose of the tab has these properties...

    imageWIP

    assets

    alignment

    characters

    justify

    text

    Graphics

    visible

    limits

    location

    maximumSize

    minimumSize

    preferredSize

    size

    windowBounds

    alignChildren

    children

    page layout

    margins

    orientation

    spacing of

    Properties

    activated

    helpTip

    dash

    layoutDirection

    parent

    textDirection

    window

    type

    .. .and may use these methods:

    Close()

    Show()

    masquer()

    Add()

    Remove()

    toSource()

    addEventListener()

    removeEventListener()

    dispatchEvent()

  • How the fire javascript Onchange function AUTOMATICALLY

    Hello

    I have 2 items together is to have a javascript function Onchange.

    P1_SELECT_LIST1 (javascript - Onchange1)
    P1_SELECT_LIST2 (javascript - Onchange2)

    I want Onchange2 automatically runs whenever Onchange1 is executed.
    I mean whenever Onchange1 is executed... I want the fire automatocally Onchange2 javascript...

    Thank you
    Deepak

    Deepak,

    I don't have what you're trying here?

    P1_SELECT_LIST1 - attributes of HTML form elements
    OnChange = "JavaScript:F1 (this); »

    function f1 (pThis)
    {
    $x_Value ('P1_YYYY', 'XX');
    }

    So now change SL1, f1 is triggered and you pass the object to the f1. But you do not use? So what is the use of pass?

    In your initial post...

    I want Onchange2 automatically runs whenever Onchange1 is > run.

    But you do it in reverse?

    ----------------------------------------------------------

    However, try...

    P1_SELECT_LIST1 - attributes of HTML form elements

    onchange="javascript:f1();"
    

    P1_SELECT_LIST2 - attributes of HTML form elements

    onchange="javascript:f2(this);"
    

    Page - header HTML

    
    

    Kind regards
    Hari

  • What did the effect of upgrade of the "rocket"? (such as functions, etc.)

    I want to know what exactly the FW update did the "rocket" as characteristics, sound, etc.?

    It's in the first post of the topic the Sansa Fuze Firmware update .

  • Help with the site of comics 'Next' and 'Previous' functions etc...

    I currently have a site powered by Dreamweaver for my comic and I would like to be able to move the strip back on the first page. Right now, I use a Flash slideshow, but this isn't what I want. I want it to work like this: http://www.amazingsuperpowers.com/ or this: http://xkcd.com/ with the buttons 'next' and 'previous' to go to the back or front. Maybe a "random" button

    If you want to suggest ComicPress by WordPress, I already went this route and ran into problems with the way I structured. I know it's possible with DW I can't find a reference material at all. If anyone could help, I would appreciate it, of course.

    These arrows preceding and following resemble their links hardcoded for me.

    You have a few options if you don't want to code by hand each page;

    1. create a database and use the rand function and the database identification numbers to launch the next and prev page.

    or

    2 propose a naming convention that uses numbers of identification in the name of the file, and then use javascript on each page to go to the next or previous or random. example: my_cartoon_01.html, my_cartoon_02.html - the script would simply add or subtract a 1 according to the file name.

    3. using a script of third party like that of the DMX zone:

    http://www.DMXzone.com/go?13984

    HTH

    -Daniel Hoviss

  • Install Firebug causes: two title bars, unable to open the tab addons and inability to use the vibration function, etc.

    After further research, I think this should be classified as a plugin problem...

    Firebug 1.7 X A10 causes two title bars (standard windows bar and a second inside with the new tab in Firefox just orange... both with minimize/maximize/close buttons), and other bizarre behaviors listed below:

    Any saved tabs to before the installation/activation are gone.
    Choosing Addons in menu does nothing. After you open a new empty tab Addons Manager is responsible.
    Choice of feedback-> me xxxx, does nothing.
    Hit the reload button does nothing
    URL bar (page address) remains the same between tabs (if changes to the loaded page)
    Addon Firebug works fine.

    After obtaining the Addon Manager (it took a bit of work to do) and disable Firebug, all problems are gone. My story of previous tab is also returned.

    This seems to be specific to Windows XP. I installed this version of Firebug with Win7 with success.

    The two title bars is a known - bug http://code.google.com/p/fbug/issues/detail?id=4012

  • myDropDownList.onChange buttons hide/visible, staticText etc., but scrolling through albums of all components

    Here is my code, but the thing is when I change my ddList that all objects of the Panel remain in the same place, so the thing is that I want to hide things but scrolling upward things have ordered more of my Panel.

    C5 ToolKit v1.0

    An after effects Script by Adrian Wülfrath

    // [email protected]

    Estudio Voraz

    VARIABLE CALL PARA A LAS DISTINTAS IMAGENES

    var imageName0 = "_vorazimg/voraz.png";

    var imagePath0 = File($.fileName).path + ' / ' + escape (imageName0);

    var imageName1 = "_vorazimg/off.png;

    var imagePath1 = File($.fileName).path + ' / ' + escape (imageName1);

    var imageName2 = "_vorazimg/sni.png";

    var imagePath2 = File($.fileName).path + ' / ' + escape (imageName2);

    var imageName3 = "_vorazimg/sna.png";

    var imagePath3 = File($.fileName).path + ' / ' + escape (imageName3);

    var imageName4 = "_vorazimg/proyectoBtn.png";

    var imagePath4 = File($.fileName).path + ' / ' + escape (imageName4);

    var imageName5 = "_vorazimg/sva.png";

    var imagePath5 = File($.fileName).path + ' / ' + escape (imageName5);

    Voraz Explorer button

    var winBrowserCmd = "C:/Program Files/Internet Explorer/iexplore.exe."

    var macBrowserCmdStart = "osascript-e ' open location------" ";" "

    var macBrowserCmdEnd = ' \ ' "";"

    AQUI BEGINS HAS CREARSE VENTANA DEL PANEL

    {

    function myScript (thisObj) {}

    function myScript_buildUI (thisObj) {}

    var myPanel = (thisObj instanceof Panel)? thisObj: new window ("palette", "Estudio Voraz Panel', undefined, {resizable: true}");

    res = "group {orientation:"column",-}".

    groupOne: Panel {text: 'Master', direction: "column", alignment: ['fill ', ' fill'], alignChildren: ["fill", "fill"],------}

    ddPanel: DropDownList {properties: {items: ['OFF', 'Salida No. Image', 'Salida No. Astérix', 'Salida Ventana Asterix','-']}}, \

    },\

    groupTwo: Panel {text:' template:', direction: "column", the alignment: ['fill', 'top'], alignChildren: ["fill", "fill"],------}

    imageDemo: IconButton {text: 'Model Salida No. Image',}, alignment: ["fill", "fill"],

    },\

    groupThree: Panel {text: 'Color System + line selector', direction: "column", alignment: ['fill ', ' fill'], alignChildren: ["fill", "fill"],------}

    ddColorSystem: DropDownList {properties: {items: ['Amarillo', 'Morado', 'Blue', 'MidBlue', 'DarkBlue','Roj o ']}}, \

    ddLineSelector: DropDownList {properties: {elements: ['line 1' ", ' 1 Hashtag + line" ", ' 1 line + Info", 1 Line + Info + Hashtag ','-', "2 lines","2 lines + Hashtag" ", ' 2 lines + Info", 2 lines + Info + Hashtag ',' '-', ' 3 lines "", ' 3 lines + Hashtag "", ' 3 lines + Info ' ", ' 3 lines + Info + Hashtag"]}},

    },\

    BtnGroup: Panel {text: 'Botones' orientation: 'row', alignment: ['fill', 'top'],------}

    editText: button {text: 'Edit text', alignment: preferredSize ['fill', 'left'],: [80,25]},

    editCaritas: button {text: 'Edit Caritas', alignment: preferredSize ['fill', 'left'],: [80,25]},

    editIconos: button {text: "Edit Iconos", alignment: preferredSize ['fill', 'left'],: [80,25]},

    editImage: button {text: "Change image", alignment: ['fill', 'left'], preferredSize: [100,25]},

    },\

    groupFour: Panel {text:'Caritas / Iconos, direction: "column", alignment: ['fill ', ' fill'], alignChildren: ["fill", "fill"],------}

    ddArreglosAsterix: DropDownList {properties: {items: ['OFF', "Caritas Astérix", 'Iconos Astérix']}}, \

    },\

    groupChecker: Panel {text: 'Options', orientation: 'row', alignment: alignChildren ['fill ', ' fill'],: ["fill", "fill"],------}

    ddPatterns: DropDownList {properties: {items: ['Models OFF', '-', "Acción", "Comedia", "Deportees", "Girly", "Geek", "Todo",' -','EXTRA ','-',' ASTERIX ']}},

    CBfoto: Case {text: "Foto"},

    CBWipper: Case {text: 'Wipper In'}, \

    CBSting: Case {text: 'Hashtag Sting'}, \

    },\

    groupRender: Panel {text: "Add al Render tail", orientation: 'row', alignment: ['fill ', ' fill'], alignChildren: ["fill", "fill"],------}

    renBtn: button {text: 'Add al Render tail'}, \

    },\

    groupVoraz: Panel {text: "www.estudiovoraz.com", of orientation: 'column', alignment: ['fill ', ' fill'], alignChildren: ["fill", "fill"],------}

    myIconButton: IconButton {text: 'IconButton',},

    },\

    }";

    myPanel.grp = myPanel.add (res);

    Default values (Practicamete're nada mas para indicate en position default por goes a permanecer cada cosa).

    myPanel.grp.groupOne.ddPanel.selection = 0

    myPanel.grp.groupFour.ddArreglosAsterix.selection = 0

    myPanel.grp.groupThree.ddColorSystem.selection = 0

    myPanel.grp.groupThree.ddLineSelector.selection = 0

    myPanel.grp.groupChecker.ddPatterns.selection = 0

    myPanel.grp.groupVoraz.myIconButton.image = imagePath0

    myPanel.grp.groupTwo.imageDemo.image = imagePath1

    myPanel.layout.layout (true);

    Home default

    myPanel.grp.groupTwo.visible = true;

    myPanel.grp.groupThree.visible = false;

    myPanel.grp.BtnGroup.visible = false;

    myPanel.grp.groupFour.visible = false;

    myPanel.grp.groupRender.visible = false;

    myPanel.grp.groupChecker.visible = false;

    myPanel.grp.groupTwo.imageDemo.image = imagePath1

    AL HACER CLICK IN THE IMAGEN MANDA UNA ALERTED

    myPanel.grp.groupTwo.imageDemo.onClick = function)

    {

    Alert ("Primero debes seleccionar una opcion del Menu drop-down. ADVERTENCIA esto solo con works the paquetería of channel 5. \

    ("If need more information you can consultarlo con www.estudiovoraz.com");

    }

    From aqui to add todo el código than dedicate con sus variable mandas is a call desde tus variable y functions.

    Sub-panels: (Cuando mandas a con call variable in a number of a specific algo to you UI)

    var BtnURL = myPanel.grp.groupVoraz.myIconButton

    var BtnText = myPanel.grp.BtnGroup.editText

    var BtnCaritas = myPanel.grp.BtnGroup.editCaritas

    var BtnIconos = myPanel.grp.BtnGroup.editIconos

    var BtnImagen = myPanel.grp.BtnGroup.editImage

    var ddSelectPanel = myPanel.grp.groupOne.ddPanel

    var myPanel.grp.groupThree.ddColorSystem = ddColor

    var ddPatterns = myPanel.grp.groupChecker.ddPatterns

    var ddLineSelector = myPanel.grp.groupThree.ddLineSelector

    var ddOpciones = myPanel.grp.groupFour.ddArreglosAsterix

    var rendaBtn = myPanel.grp.groupRender.renBtn

    var myPanel.grp.groupChecker.CBfoto = CFoto

    var CWipper = myPanel.grp.groupChecker.CBWipper

    var CSting = myPanel.grp.groupChecker.CBSting

    var patInp = myPanel.grp.groupFour.patInp

    MANAGER PARA AS VEAN O SE ESCONDAN LAS THINGS LED PANEL

    ddSelectPanel.onChange = function()

    {

    Switch (ddSelectPanel.Selection.Text)

    {

    //PRIMER CASE                                                                                                                                            ---------  SALIDA NO IMAGE   ---------

    case "Salida No. Image":

    myPanel.grp.groupTwo.visible = true;

    myPanel.grp.groupTwo.imageDemo.image = imagePath2

    myPanel.grp.groupThree.visible = true;

    myPanel.grp.BtnGroup.visible = true;

    myPanel.grp.BtnGroup.editImage.visible = false;

    myPanel.grp.groupFour.visible = true;

    myPanel.grp.groupRender.visible = true;

    myPanel.grp.groupChecker.visible = true;

    myPanel.grp.BtnGroup.editCaritas.visible = true;

    myPanel.grp.BtnGroup.editIconos.visible = true;

    myPanel.grp.BtnGroup.editImage.visible = false;

    myPanel.grp.groupChecker.CBSting.visible = false;

    myPanel.grp.groupChecker.CBfoto.visible = false;

    CUANDO SE EN EL MENU SELECT DROPDOWN SALIDA NO. IMAGE O LO THAT MATCH, LO ABRE EN EL VIEWER

    projectItem ("_Render Salida No. Image") .openInViewer ();

    CUANDO SE HACE CLICK IN IMAGE TREE MODEL USED

    myPanel.grp.groupTwo.imageDemo.onClick = function)

    {

    projectItem ("_Render Salida No. Image") .openInViewer ();

    }

    ACCION BOX WIPPER

    CWipper.onClick = function)

    {

    if(CWipper.Value == true)

    {

    projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property ("Wipper In").setValue([1]);

    }

    if(CWipper.Value == False)

    {

    projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property ("Wipper In").setValue([0]);

    }

    }

    COLOR SYSTEM OF MENU DROP-DOWN

    ddColor.onChange = function)

    {

    Switch (ddColor.selection.text)

    {

    case "Amarillo":

    projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property ("colour System").setValue([1]);

    break;

    case 'Morado ':

    projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property ("colour System").setValue([2]);

    break;

    case "LightBlue":

    projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property ("colour System").setValue([3]);

    break;

    case study 'MidBlue ':

    projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property ("colour System").setValue([4]);

    break;

    case "blue":

    projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property ("colour System").setValue([5]);

    break;

    case "Rojo":

    projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property ("colour System").setValue([6]);

    break;

    by default:

    Alert ("error: perhaps no none option selected, brought Nuevo...");

    break;

    }

    }

    LINE SELECTOR DROPDOWN LIST

    ddLineSelector.onChange = function)

    {

    Switch (ddLineSelector.selection.text)

    {

    case "1-line":

    projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([1]);

    break;

    case "1 line + Hashtag:

    projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([2]);

    break;

    case "1 line + Info:

    projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([3]);

    break;

    case "1 line + Info + Hashtag:

    projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([4]);

    break;

    case "2 lines:

    projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([6]);

    break;

    case "2 lines + Hashtag:

    projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([7]);

    break;

    case "2 lines + Info:

    projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([8]);

    break;

    case "2 lines + Info + Hashtag:

    projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([9]);

    break;

    case "3 lines":

    projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([11]);

    break;

    case '3 lines + Hashtag:

    projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([12]);

    break;

    case '3 lines + Info:

    projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([13]);

    break;

    case '3 lines + Info + Hashtag:

    projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([14]);

    break;

    by default:

    Alert ("error: perhaps not a stereo none option, select una opcion del Line Selector");

    break;

    }

    }

    LIST DROPDOWN CARITAS / ICONOS

    ddOpciones.onChange = function)

    {

    Switch (ddOpciones.selection.text)

    {

    case "OFF":

    projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property (Caritas Asterix").setValue([0])";

    projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property ("Iconos Asterix").setValue([0]);

    break;

    case "Caritas Astérix":

    projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property (Caritas Asterix").setValue([1])";

    projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property ("Iconos Asterix").setValue([0]);

    break;

    case "Iconos Astérix":

    projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property (Caritas Asterix").setValue([0])";

    projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property ("Iconos Asterix").setValue([1]);

    break;

    by default:

    Alert ("error: perhaps no none option selected, brought Nuevo...");

    break;

    }

    }

    EDIT TEXT BUTTON

    BtnText.onClick = function)

    {

    projectItem ("NIS _EditTxt") .openInViewer ();

    }

    CHANGE CARITAS BOTON

    BtnCaritas.onClick = function)

    {

    projectItem ("NIS _EditCaritas") .openInViewer ();

    }

    CHANGE THE BOTON ICONOS

    BtnIconos.onClick = function)

    {

    projectItem ("NIS _EditIconos") .openInViewer ();

    }

    MODELS OF MENU DROP-DOWN

    ddPatterns.onChange = function)

    {

    Switch (ddPatterns.selection.text)

    {

    case 'OFF models':

    "projectItem("Salida_No_Image").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([1]) of control. "

    break;

    case "acción":

    "projectItem("Salida_No_Image").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([3]) of control. "

    break;

    case "Comedia":

    "projectItem("Salida_No_Image").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([4]) of control. "

    break;

    case "deportees":

    "projectItem("Salida_No_Image").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([5]) of control. "

    break;

    case "Girly":

    "projectItem("Salida_No_Image").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([6]) of control. "

    break;

    case 'Geek ':

    "projectItem("Salida_No_Image").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([7]) of control. "

    break;

    case "Todo":

    "projectItem("Salida_No_Image").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([8]) of control. "

    break;

    case 'EXTRA ':

    "projectItem("Salida_No_Image").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([10]) of control. "

    break;

    case "ASTERIX":

    "projectItem("Salida_No_Image").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([12]) of control. "

    break;

    by default:

    Alert ("error: perhaps no none option selected, brought Nuevo...");

    break;

    }

    }

    ACCION BOX FOTO

    CFoto.onClick = function)

    {

    if(CFoto.Value == true)

    {

    "projectItem("Salida_No_Image").layer ("_Control").property("Effects").property (v2").property("Foto").setValue([1]) of control. "

    }

    if(CFoto.Value == False)

    {

    "projectItem("Salida_No_Image").layer ("_Control").property("Effects").property (v2").property("Foto").setValue([0]) of control. "

    }

    }

    ADD TO RENDER QUEUE

    rendaBtn.onClick = function)

    {

    var QTtemplate = "Lossless." Select el model

    salt1 var = projectItem ("_Render Salida No. Image"); Search the model that will has Renderizar por su number

    var newPath = ('Salida No. Image');  Este are el number del path knew the asigna para salida to

    If (salt1! = null & & salt1 instanceof CompItem) {}

    var theRender = app.project.renderQueue.items.add (salt1);

    If (salt1 == salt1) {}

    theRender.outputModules [1] .applyTemplate (QTtemplate);

    theRender.outputModules [1] mpfprojectdir\dev10\src\csharp\projectbase.file = new queue (newPath);

    }

    }

    }

    break;

    //SEGUNDO CASE                                                                                                                                    ---------  SALIDA NO ASTERIX   ---------

    case "Salida No. Asterix":

    myPanel.grp.groupTwo.visible = true;

    myPanel.grp.BtnGroup.editImage.visible = true;

    myPanel.grp.groupTwo.imageDemo.image = imagePath3

    myPanel.grp.groupThree.visible = true;

    myPanel.grp.BtnGroup.visible = true;

    myPanel.grp.groupFour.visible = true;

    myPanel.grp.groupRender.visible = true;

    myPanel.grp.groupChecker.visible = true;

    myPanel.grp.groupChecker.CBSting.visible = false;

    myPanel.grp.groupChecker.CBfoto.visible = false;

    myPanel.grp.groupFour.visible = false;

    myPanel.grp.BtnGroup.editCaritas.visible = false;

    myPanel.grp.BtnGroup.editIconos.visible = false;

    myPanel.grp.BtnGroup.editImage.visible = false;

    CUANDO SE EN EL MENU SELECT DROPDOWN SALIDA NO. IMAGE O LO THAT MATCH, LO ABRE EN EL VIEWER

    projectItem ("_Render Salida No. Asterix") .openInViewer ();

    CUANDO SE HACE CLICK IN IMAGE TREE MODEL USED

    myPanel.grp.groupTwo.imageDemo.onClick = function)

    {

    projectItem ("_Render Salida No. Asterix") .openInViewer ();

    }

    ACCION BOX WIPPER

    CWipper.onClick = function)

    {

    if(CWipper.Value == true)

    {

    projectItem("Salida_No_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("Wipper In").setValue([1]);

    }

    if(CWipper.Value == False)

    {

    projectItem("Salida_No_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("Wipper In").setValue([0]);

    }

    }

    COLOR SYSTEM OF MENU DROP-DOWN

    ddColor.onChange = function)

    {

    Switch (ddColor.selection.text)

    {

    case "Amarillo":

    projectItem("Salida_No_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("colour System").setValue([1]);

    break;

    case 'Morado ':

    projectItem("Salida_No_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("colour System").setValue([2]);

    break;

    case "LightBlue":

    projectItem("Salida_No_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("colour System").setValue([3]);

    break;

    case study 'MidBlue ':

    projectItem("Salida_No_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("colour System").setValue([4]);

    break;

    case "blue":

    projectItem("Salida_No_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("colour System").setValue([5]);

    break;

    case "Rojo":

    projectItem("Salida_No_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("colour System").setValue([6]);

    break;

    by default:

    Alert ("error: perhaps no none option selected, brought Nuevo...");

    break;

    }

    }

    LINE SELECTOR DROPDOWN LIST

    ddLineSelector.onChange = function)

    {

    Switch (ddLineSelector.selection.text)

    {

    case "1-line":

    projectItem("Salida_No_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([1]);

    break;

    case "1 line + Hashtag:

    projectItem("Salida_No_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([2]);

    break;

    case "1 line + Info:

    projectItem("Salida_No_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([3]);

    break;

    case "1 line + Info + Hashtag:

    projectItem("Salida_No_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([4]);

    break;

    case "2 lines:

    projectItem("Salida_No_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([6]);

    break;

    case "2 lines + Hashtag:

    projectItem("Salida_No_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([7]);

    break;

    case "2 lines + Info:

    projectItem("Salida_No_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([8]);

    break;

    case "2 lines + Info + Hashtag:

    projectItem("Salida_No_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([9]);

    break;

    case "3 lines":

    projectItem("Salida_No_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([11]);

    break;

    case '3 lines + Hashtag:

    projectItem("Salida_No_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([12]);

    break;

    case '3 lines + Info:

    projectItem("Salida_No_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([13]);

    break;

    case '3 lines + Info + Hashtag:

    projectItem("Salida_No_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([14]);

    break;

    by default:

    Alert ("error: perhaps not a stereo none option, select una opcion del Line Selector");

    break;

    }

    }

    MODELS OF MENU DROP-DOWN

    ddPatterns.onChange = function)

    {

    Switch (ddPatterns.selection.text)

    {

    case 'OFF models':

    "projectItem("Salida_No_Asterix").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([1]) of control. "

    break;

    case "acción":

    "projectItem("Salida_No_Asterix").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([3]) of control. "

    break;

    case "Comedia":

    "projectItem("Salida_No_Asterix").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([4]) of control. "

    break;

    case "deportees":

    "projectItem("Salida_No_Asterix").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([5]) of control. "

    break;

    case "Girly":

    "projectItem("Salida_No_Asterix").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([6]) of control. "

    break;

    case 'Geek ':

    "projectItem("Salida_No_Asterix").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([7]) of control. "

    break;

    case "Todo":

    "projectItem("Salida_No_Asterix").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([8]) of control. "

    break;

    case 'EXTRA ':

    "projectItem("Salida_No_Asterix").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([10]) of control. "

    break;

    case "ASTERIX":

    "projectItem("Salida_No_Asterix").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([12]) of control. "

    break;

    by default:

    Alert ("error: perhaps no none option selected, brought Nuevo...");

    break;

    }

    }

    EDIT TEXT BUTTON

    BtnText.onClick = function)

    {

    projectItem ("_EditTxt SNA") .openInViewer ();

    }

    ADD TO RENDER QUEUE

    rendaBtn.onClick = function)

    {

    var QTtemplate = "Lossless."   Select el model

    var SEL2 = projectItem ("_Render Salida Asterix No.");  Search the model that will has Renderizar por su number

    var newPath = ('Salida No. Asterix');  Este are el number del path knew the asigna para salida to

    If (sel2! = null & & sel2 instanceof CompItem) {}

    var theRender = app.project.renderQueue.items.add (sel2);

    If (sel2 == sel2) {}

    theRender.outputModules [1] .applyTemplate (QTtemplate);

    theRender.outputModules [1] mpfprojectdir\dev10\src\csharp\projectbase.file = new queue (newPath);

    }

    }

    }

    break;

    //TERCER CASE                                                                                                                                            ---------  SALIDA VENTANA ASTERIX ---------

    case "Salida Ventana Astérix":

    myPanel.grp.groupTwo.visible = true;

    myPanel.grp.groupTwo.imageDemo.image = imagePath5

    myPanel.grp.groupThree.visible = true;

    myPanel.grp.BtnGroup.visible = true;

    myPanel.grp.BtnGroup.editImage.visible = true;

    myPanel.grp.groupFour.visible = false;

    myPanel.grp.groupRender.visible = true;

    myPanel.grp.groupChecker.visible = true;

    myPanel.grp.BtnGroup.editCaritas.visible = false;

    myPanel.grp.BtnGroup.editIconos.visible = false;

    myPanel.grp.BtnGroup.editImage.visible = true;

    myPanel.grp.groupChecker.CBSting.visible = false;

    myPanel.grp.groupChecker.CBfoto.visible = true;

    CUANDO SE EN EL MENU SELECT DROPDOWN SALIDA NO. IMAGE O LO THAT MATCH, LO ABRE EN EL VIEWER

    projectItem ("_Render Salida Ventana Asterix") .openInViewer ();

    CUANDO SE HACE CLICK IN IMAGE TREE MODEL USED

    myPanel.grp.groupTwo.imageDemo.onClick = function)

    {

    projectItem ("_Render Salida Ventana Asterix") .openInViewer ();

    }

    ACCION BOX WIPPER

    CWipper.onClick = function)

    {

    if(CWipper.Value == true)

    {

    projectItem("Salida_Ventana_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("Wipper In").setValue([1]);

    }

    if(CWipper.Value == False)

    {

    projectItem("Salida_Ventana_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("Wipper In").setValue([0]);

    }

    }

    COLOR SYSTEM OF MENU DROP-DOWN

    ddColor.onChange = function)

    {

    Switch (ddColor.selection.text)

    {

    case "Amarillo":

    projectItem("Salida_Ventana_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("colour System").setValue([1]);

    break;

    case 'Morado ':

    projectItem("Salida_Ventana_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("colour System").setValue([2]);

    break;

    case "LightBlue":

    projectItem("Salida_Ventana_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("colour System").setValue([3]);

    break;

    case study 'MidBlue ':

    projectItem("Salida_Ventana_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("colour System").setValue([4]);

    break;

    case "blue":

    projectItem("Salida_Ventana_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("colour System").setValue([5]);

    break;

    case "Rojo":

    projectItem("Salida_Ventana_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("colour System").setValue([6]);

    break;

    by default:

    Alert ("error: perhaps no none option selected, brought Nuevo...");

    break;

    }

    }

    LINE SELECTOR DROPDOWN LIST

    ddLineSelector.onChange = function)

    {

    Switch (ddLineSelector.selection.text)

    {

    case "1-line":

    projectItem("Salida_Ventana_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([1]);

    break;

    case "1 line + Hashtag:

    projectItem("Salida_Ventana_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([2]);

    break;

    case "1 line + Info:

    projectItem("Salida_Ventana_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([3]);

    break;

    case "1 line + Info + Hashtag:

    projectItem("Salida_Ventana_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([4]);

    break;

    case "2 lines:

    projectItem("Salida_Ventana_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([6]);

    break;

    case "2 lines + Hashtag:

    projectItem("Salida_Ventana_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([7]);

    break;

    case "2 lines + Info:

    projectItem("Salida_Ventana_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([8]);

    break;

    case "2 lines + Info + Hashtag:

    projectItem("Salida_Ventana_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([9]);

    break;

    case "3 lines":

    projectItem("Salida_Ventana_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([11]);

    break;

    case '3 lines + Hashtag:

    projectItem("Salida_Ventana_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([12]);

    break;

    case '3 lines + Info:

    projectItem("Salida_Ventana_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([13]);

    break;

    case '3 lines + Info + Hashtag:

    projectItem("Salida_Ventana_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([14]);

    break;

    by default:

    Alert ("error: perhaps not a stereo none option, select una opcion del Line Selector");

    break;

    }

    }

    EDIT TEXT BUTTON

    BtnText.onClick = function)

    {

    projectItem ("SVA _EditTxt") .openInViewer ();

    }

    BtnImagen.onClick = function)

    {

    projectItem ("SVA _EditFootage") .openInViewer ();

    }

    MODELS OF MENU DROP-DOWN

    ddPatterns.onChange = function)

    {

    Switch (ddPatterns.selection.text)

    {

    case 'OFF models':

    "projectItem("Salida_Ventana_Asterix").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([1]) of control. "

    break;

    case "acción":

    "projectItem("Salida_Ventana_Asterix").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([3]) of control. "

    break;

    case "Comedia":

    "projectItem("Salida_Ventana_Asterix").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([4]) of control. "

    break;

    case "deportees":

    "projectItem("Salida_Ventana_Asterix").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([5]) of control. "

    break;

    case "Girly":

    "projectItem("Salida_Ventana_Asterix").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([6]) of control. "

    break;

    case 'Geek ':

    "projectItem("Salida_Ventana_Asterix").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([7]) of control. "

    break;

    case "Todo":

    "projectItem("Salida_Ventana_Asterix").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([8]) of control. "

    break;

    case 'EXTRA ':

    "projectItem("Salida_Ventana_Asterix").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([10]) of control. "

    break;

    case "ASTERIX":

    "projectItem("Salida_Ventana_Asterix").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([12]) of control. "

    break;

    by default:

    Alert ("error: perhaps no none option selected, brought Nuevo...");

    break;

    }

    }

    ACCION BOX FOTO

    CFoto.onClick = function)

    {

    if(CFoto.Value == true)

    {

    "projectItem("Salida_Ventana_Asterix").layer ("_Control").property("Effects").property (v2").property("Foto").setValue([1]) of control. "

    }

    if(CFoto.Value == False)

    {

    "projectItem("Salida_Ventana_Asterix").layer ("_Control").property("Effects").property (v2").property("Foto").setValue([0]) of control. "

    }

    }

    ACCION BOX FOTO

    CWipper.onClick = function)

    {

    if(CWipper.Value == true)

    {

    projectItem("Salida_Ventana_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("Wipper In").setValue([1]);

    }

    if(CWipper.Value == False)

    {

    projectItem("Salida_Ventana_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("Wipper In").setValue([0]);

    }

    }

    ADD TO RENDER QUEUE

    rendaBtn.onClick = function)

    {

    var QTtemplate = "Lossless." Select el model

    salt1 var = projectItem ("_Render Salida Ventana Asterix"); Search the model that will has Renderizar por su number

    var newPath = ('Salida Ventana Asterix');  Este are el number del path knew the asigna para salida to

    If (salt1! = null & & salt1 instanceof CompItem) {}

    var theRender = app.project.renderQueue.items.add (salt1);

    If (salt1 == salt1) {}

    theRender.outputModules [1] .applyTemplate (QTtemplate);

    theRender.outputModules [1] mpfprojectdir\dev10\src\csharp\projectbase.file = new queue (newPath);

    }

    }

    }

    break;

    //DEFAULT CASE                                                                                                                                    ---------  DEFAULT CASE  APAGA TODO  ---------

    by default:

    myPanel.grp.groupTwo.visible = true;

    myPanel.grp.groupThree.visible = false;

    myPanel.grp.BtnGroup.visible = false;

    myPanel.grp.groupFour.visible = false;

    myPanel.grp.groupRender.visible = false;

    myPanel.grp.groupChecker.visible = false;

    myPanel.grp.groupTwo.imageDemo.image = imagePath1

    AL HACER CLICK IN THE IMAGEN MANDA UNA ALERTED

    myPanel.grp.groupTwo.imageDemo.onClick = function)

    {

    Alert ("Primero debes seleccionar una opcion del Menu drop-down. ADVERTENCIA esto solo con works the paquetería of channel 5. \

    ("If need more information you can consultarlo con www.estudiovoraz.com");

    }

    break;

    }

    }

    ACCIÓN PARA EL ESTUDIO VORAZ LINK

    BtnURL.onClick = LinkToURL;

    function LinkToURL()

    {

    alert ("http://www.estudiovoraz.com");

                var URL = " http://www.estudiovoraz.com "; your web page

    If ($.os.indexOf ("Windows")! = - 1).

    system.callSystem (winBrowserCmd + "" + URL);

    on the other

    system.callSystem (macBrowserCmdStart + URL + macBrowserCmdEnd);

    }

    FUNCION WHAT TODOS LOS OF THE INDEX OF THE ITEM PROJECT DETECTA Y IN ASIGNARLE LUGAR DEL LO DETECTA POR SU NUMBER NUMBER

    projectItem (name) function

    {

    var items = app.project.items;

    i = 1;

    While (I < = items.length) {}

    If (items [i] .name = name)

    {

    Return app.project.item (i);

    break;

    }

    i ++ ;

    }

    }

    END PANEL - NO PONER NADA ESTA LINEA ABAJO.

    Return myPanel;

    }

    var myScriptPal = myScript_buildUI (thisObj);

    If ((myScriptPal! = null) & & (myScriptPal instanceof window)) {}

    myScriptPal.center ();

    myScriptPal.show ();

    }

    }

    myScript (this);

    }

    OK, apparently it does work well with panels, because even if the height is 0, something is from the Panel...

    You can try the panels inside the packing groups. It will start to be a little heavy, but it works.

    Here's a toy example to illustrate:

    var w = new Window("palette", "test");
    w.content=w.add("group{orientation: 'column', margins: 0, spacing: 0,\
                                    alignment: ['fill', 'fill'], alignChildren: ['fill', 'top'],\
                                    gr1: Group{orientation: 'row', margins: [0,5,0,5], spacing: 10, alignChildren: ['fill', 'center'],\
                                                    titleST: StaticText{text: 'Option Level', alignment: ['left', 'center']},\
                                                    menu : DropDownList{properties: {items: ['0', '1', '2', '3']}},\
                                                    },\
                                    gr2: Group{orientation: 'row', margins: [0,5,0,5], alignChildren: ['fill', 'center'],\
                                                    content: Panel{orientation: 'row', margins: [5, 10, 5, 5], spacing: 0, alignChildren: ['fill', 'center'],\
                                                                        text : 'Option 1',\
                                                                        menu : DropDownList{properties: {items: ['A', 'B', 'C', 'D', 'E']}},\
                                                                        },\
                                                    },\
                                    gr3: Group{orientation: 'row', margins: [0,5,0,5], alignChildren: ['fill', 'center'],\
                                                    content: Panel{orientation: 'row', margins: [5, 10, 5, 5], spacing: 0, alignChildren: ['fill', 'center'],\
                                                                        text : 'Option 2',\
                                                                        menu : DropDownList{properties: {items: ['A', 'B', 'C', 'D', 'E']}},\
                                                                        },\
                                                    },\
                                    gr4: Group{orientation: 'row', margins: [0,5,0,5], alignChildren: ['fill', 'center'],\
                                                    content: Panel{orientation: 'row', margins: [5, 10, 5, 5], spacing: 0, alignChildren: ['fill', 'center'],\
                                                                        text : 'Option 3',\
                                                                        menu : DropDownList{properties: {items: ['A', 'B', 'C', 'D', 'E']}},\
                                                                        },\
                                                    },\
                                    gr5: Panel{orientation: 'row', margins: [5, 10, 5, 5], spacing: 10, alignChildren: ['fill', 'center'],\
                                                    text : 'Commands',\
                                                    btnA: Button{text: 'A'}, btnB: Button{text: 'B'}, btnC: Button{text: 'C'},\
                                                    },\
                                    }");
    w.content.gr1.menu.onChange = function(){
        // set visibility of options groups (gr2 to gr4)
        var x = this.selection.index + 1;
        var k;
        for (k=1; k<=3; k++){
            w.content.children[k].maximumSize.height = x>k ? 1000 : 0;
            };
        w.layout.layout(true);
        };
    //==============================
    w.content.gr1.menu.selection = 0;
    w.show();
    

    Xavier

  • Search function

    I want to create a search function in my application that searches all pages in my application for the results.  The problem I have is that all the result finally as hyperlinks and when you click on it, I lose the BB10 design features (ie. bar actions, menu overflow, etc..).  Can anyone help?

    You use some framework that search and generates links? (i.e. the elements of ?) You can access these items until they are inserted into the DOM, or even some trigger to let you know once they are inserted?

    If so and you use a framework like BBUI, you then have to edit each link to remove the href attribute (i.e. href = "#"), then add an onclick for each function used by this BBUI appropriate (or infrastructure of user interface you use) mechanism to open the new page (example: bb.pushScreen).

    You can also define a target = "_blank" on each element of that will open in a browser of the child, which provides a default close button, but you will lose the other user interface elements.

    It comes down to links causing web engine to navigate to another location, thereby losing the previous contents. You must manually manage the features of each link to get your desired result.

  • Drop Down List index - my script does not recognize the leader line in my function

    Community AE script-

    I'm a designer not a programmer naked with me.  I just try something simple, no baby and I cannot for the life of make me this simple script to work.

    I saw the script adds FAST and thought I would try to imitate this script for me as a challenge.  I watched videos of David Torno on Pro video Coalition and a simple example Script UI.  I searched for my answer on these here forums and tried to combine a simple script to examples within these forums and may not have to recognize clues to my drop-DOWN LIST down.  Here's my simple script:

    {

    function myScript (thisObj) {}

    function myScript_buildUI (thisObj) {}

    var myPanel = (thisObj instanceof Panel)? thisObj: new window ('palette', 'Add', undefined, {resizable: true});

    res = "group {orientation: 'row', alignment: ["fill","fill"] alignChildren: ["fill","fill"],------}»

    groupOne: group {orientation: 'row', alignment: ["fill", "fill"] alignChildren: ['fill', 'top'],------}

    myStaticText: StaticText {text:'New:'}, \

    myDropDownList: DropDownList {properties: {items: ['solid', 'Light']}}, \

    },\

    groupTwo: group {orientation: 'row', alignment: ["fill", "fill"] alignChildren: ['fill', 'top'],------}

    MyButton: button {text: 'Add'}, \

    },\

    }";

    myPanel.grp = myPanel.add (res);

    Default values

    myPanel.grp.groupOne.myDropDownList.selection = 0;

    myPanel.grp.groupTwo.myButton.onClick = myButtonClick;

    Design of Control Panel

    myPanel.layout.layout (true);

    myPanel.grp.minimumSize = myPanel.grp.size;

    Make the resizable Panel

    myPanel.layout.resize ();

    myPanel.onResizing = myPanel.onResize = function() {this.layout.resize ()};

    Return myPanel;

    }

    function myButtonClick() {}

    var app.project.activeItem = myComp;

    If (myComp! = null & & myComp instanceof CompItem) {}

    If (myPanel.grp.groupOne.myDropDownList.selection.index == 0) {}

    myComp.layers.addSolid ([0,0,0], "MySolid", myComp.width, myComp.height, 1)

    } Else if (myPanel.grp.groupOne.myDropDownList.selection.index == 2) {}

    myComp.layers.addLight ("Light", [myComp.width/2, myComp.height/2]);

    }

    }

    }

    Make a floating window

    var myScriptPal = myScript_buildUI (thisObj);

    If ((myScriptPal! = null) & & (myScriptPal instanceof window)) {}

    myScriptPal.center ();

    myScriptPal.show ();

    }

    }

    myScript (this);

    }

    If I comment out the lines

    If (myPanel.grp.groupOne.myDropDownList.selection.index == 0) { and If (myPanel.grp.groupOne.myDropDownList.selection.index == 1) { }}

    the script will add the SOLID and LIGHT.  But it will never work with these active lines - Add button does nothing.

    I could just make use of onChange with the drop-down list, but I want to understand how onClick actions of connection in the drop-down list.

    I copied this piece of the forum script and modified to work with my script, but nothing seems to work:

    buttonOne.onClick = onButtonOneClick;

    function onButtonOneClick() {}

    If (myPalette.dropdownlistOne.selection.index == 0) {}

    to do this

    } else {}

    This instead

    }

    }

    Can someone take a look at my script at the top of the page and tell me why this won't work?  I pretty much pulled out the last piece of hair I have on this - simple problem?

    Thank you in advance.

    Your click of button function does not know what "myPanel. You could do something like this inside the function:

    var this.parent.parent.parent = myPanel;

    There are other ways to do it, maybe as a global variable that maintains the reference of the Panel.

    In addition, your second if looking for selection.index == 2 instead of 1.

    Dan

  • How to use onChange with edittext?

    Hello

    It's I want my script to work:

    In the first window, the user fills some edittext boxes with numbers. By clicking OK, a second window will appear, where previously entered values and the results of calculations based on said the numbers are displayed.

    Rejecting the second dialog box with OK, another script in the same folder is started which receives the variables of the second window. The second menu has a back button that redirects the user to the first window.

    Would this be possible? I start just to script, so any help would be very appreciated.

    var value1;
    var value2;
    var value3;
    var Value4;

    Win1();

    function Win1() {}
    var win1 = new window ("palette", "1", [200,100,700,340]) window;
    win1.editPanel = win1.add ("panel", [25,15,476,140], "Edit");

    win1.editPanel.Add ("statictext', [15,20,255,35], 'Width :");
    win1.editPanel.editA = win1.editPanel.add ("edittext", [225,20,270,40],"120",] ");
    win1.editPanel.editA.OnChange = function () {this.value = this.text};
    Value1 = win1.editPanel.editA.value;

    win1.editPanel.Add ("statictext', [15,40,255,55],"Height :");
    win1.editPanel.editB = win1.editPanel.add ("edittext", [225,40,270,60],"120",] ");

    win1.editPanel.editB.OnChange = function () {this.value = this.text};
    value2 = win1.editPanel.editB.value;

    win1.editPanel.Add ("statictext', [15,60,255,80], ' width multiplier :"); ' ")
    win1.editPanel.editC = win1.editPanel.add ("edittext", [225,60,270,80], '2' ");
    win1.editPanel.editC.OnChange = function () {this.value = this.text};
    value3 = win1.editPanel.editC.value;

    win1.editPanel.Add ("statictext', [15,80,255,100]," multiplier height :"); '")
    win1.editPanel.editD = win1.editPanel.add ("edittext", [225,80,270,100], '2' ");
    win1.editPanel.editD.OnChange = function () {this.text = this.value};
    Value4 = win1.editPanel.editD.value;

    win1.okBtn = win1.add ("button", [155,187,245,5], "OK");
    win1.cancelBtn = win1.add ("button", 260, 187, 350 (5) and "Cancel");

    win1.okBtn.onclick = function() {}
    win2. Show();
    win1. Close();
    };
    win1.cancelBtn.onclick = function() {}
    win1. Close();
    };

    win1. Show();
    return 1;
    Return to value2;
    return value3;
    return the value4;
    }

    Value5 var = value1 * value3;
    var Value6 = value2 * value4;

    function Win2() {}
    var win2 = new window ("palette", "2", [200,100,700,340]) window;
    win2.controlPanel = win2.add ('Committee', [25,15,470,170], 'Control');

    win2.controlPanel.Add ("statictext', [15,20,255,40]," Width: "+ Value1 +" "" "");

    win2.controlPanel.Add ("statictext', [15,40,255,60]," Height: "+ Value2 +" "" "");

    win2.controlPanel.Add ("statictext', [15,60,255,80]," multiplier width: "+ value3 +" "" "");

    win2.controlPanel.Add ("statictext', [15,80,255,100]," multiplier height: "+ value4 +" "" "");

    win2.controlPanel.Add ("statictext', [15,100,255,120]," total width: "+ Value5 +" "" "");

    win2.controlPanel.Add ("statictext', [15,120,255,140]," height: "+ Value6 +" "" "");



    win2.okBtn = win2.add ("button", [155,187,245,5], "OK");
    win2.backBtn = win2.add ("button", 260, 187, 350 (5) and "Back");
    win2.cancelBtn = win2.add ("button", 365, 187, 455 (5) and "Cancel");

    win2.okBtn.onclick = function() {}
    win2. Close();
    };
    win2.cancelBtn.onclick = function() {}
    win2. Close();
    win1. Show();
    };
    win2.backBtn.onclick = function() {}
    win2. Close();
    };

    win2. Show();
    //}

    Hello Andrea,

    First of all, you did some confusion and error

    Keep in mind, this dialog box are unsynchronisious... I explain (I try, I am not an expert)

    (1) you prepare your first dialogbox

    -here a panel

    -Add "edittext" with the value box

    - ...

    (2) planning your second dialogbox

    -here a panel

    -Add "edittext" box with your dialogbox variable first, but currently, dialogbox does not have the value yes = not defined

    (3) you call first dialbox

    ...

    Finally, you need to consider your second dialogbox like integrate function onClick, because when onClick will be invoked, or the values will be actually present.

    I hope I was clarly or not...

    Now your code:

    for statictext and editext .text (and NO value) to transfer or to seize the 'value', value is status of for example-online checkbox.value checkbox is true or false

    win1.editPanel.editA = win1.editPanel.add("edittext", [225,20,270,40],"120",);
    win1.editPanel.editA.onChange = function () {this.value = this.text};
    value1 = win1.editPanel.editA.value;
    

    your onChange is useless, because if there are changes, of course the 'value' will be changed, no need to re - assign a changed value

    but you might have used onChange to calculate and display the result, without creating a second dialog box (see the second script, lastest)

    Now check your modified script:

    function Win1() {
        var win1 = new Window("palette", "Window 1",[200,100,700,340]);
        win1.editPanel = win1.add("panel", [25,15,476,140], "Edit");
    
        win1.editPanel.add("statictext", [15,20,255,35], "Width:");
        win1.editPanel.editA = win1.editPanel.add("edittext", [225,20,270,40]);
         win1.editPanel.editA.text=120;
    
        win1.editPanel.add("statictext", [15,40,255,55], "Height:");
        win1.editPanel.editB = win1.editPanel.add("edittext", [225,40,270,60]);
         win1.editPanel.editB.text=120;    
    
        win1.editPanel.add("statictext", [15,60,255,80], "Multiplier Width:");
        win1.editPanel.editC = win1.editPanel.add("edittext", [225,60,270,80]);
        win1.editPanel.editC.text=2;    
    
        win1.editPanel.add("statictext", [15,80,255,100], "Multiplier Height:");
        win1.editPanel.editD = win1.editPanel.add("edittext", [225,80,270,100]);
        win1.editPanel.editD.text=2;
    
        win1.okBtn = win1.add("button", [155,187,245,5],"OK");
        win1.cancelBtn = win1.add("button", [260, 187, 350, 5],"Cancel");
    
        win1.okBtn.onClick = function() {
    
              var value5 = win1.editPanel.editA.text*win1.editPanel.editC.text;
              var value6 = win1.editPanel.editB.text*win1.editPanel.editD.text;
    
         ///////////////// create win2 /////////////
        var win2 = new Window("palette", "Window 2",[200,100,700,340]);
        win2.controlPanel = win2.add("panel", [25,15,470,170], "Control");
    
        win2.controlPanel.add("statictext", [15,20,255,40], "Width:"+win1.editPanel.editA.text+"");
        win2.controlPanel.add("statictext", [15,40,255,60], "Height:"+win1.editPanel.editB.text+"");
        win2.controlPanel.add("statictext", [15,60,255,80], "Multiplier Width:"+win1.editPanel.editC.text+"");
        win2.controlPanel.add("statictext", [15,80,255,100], "Multiplier Height:"+win1.editPanel.editD.text+"");
    
        win2.controlPanel.add("statictext", [15,100,255,120], "Total Width:"+value5+"");
    
        win2.controlPanel.add("statictext", [15,120,255,140], "Total Height:"+value6+"");
    
        win2.okBtn = win2.add("button", [155,187,245,5],"OK");
        win2.backBtn = win2.add("button", [260, 187, 350, 5],"Back");
        win2.cancelBtn = win2.add("button", [365, 187, 455, 5],"Cancel");
    
        win2.okBtn.onClick = function() {win2.close();    };
        win2.cancelBtn.onClick = function() {win2.close();win1.show();    };
        win2.backBtn.onClick = function() {win2.close(); win1.show()   };
        //////////////////// end of win2 ////////////////////
                win2.show();
                win1.close();
        };
    
        win1.cancelBtn.onClick = function() {      win1.close();    };
    
        win1.show();
        return win1;
    }
    
    Win1();
    

    The same, but shorter than a dialogbox and onChange

    function Win1() {
        var win1 = new Window("palette", "Window 1");
        win1.editPanel = win1.add("panel", undefined, "Edit");
    
        win1.editPanel.add("statictext", undefined, "Width:");
        win1.editPanel.editA = win1.editPanel.add("edittext", undefined);
         win1.editPanel.editA.text=1200;
    
        win1.editPanel.add("statictext", undefined, "Height:");
        win1.editPanel.editB = win1.editPanel.add("edittext", undefined);
         win1.editPanel.editB.text=1200;    
    
        win1.editPanel.add("statictext", undefined, "Multiplier Width:");
        win1.editPanel.editC = win1.editPanel.add("edittext", undefined);
        win1.editPanel.editC.text=20;    
    
        win1.editPanel.add("statictext", undefined, "Multiplier Height:");
        win1.editPanel.editD = win1.editPanel.add("edittext", undefined);
        win1.editPanel.editD.text=20;
    
         win1.editPanel.add("statictext", undefined, "Result Width:");
        win1.editPanel.editE = win1.editPanel.add("edittext", undefined);
        win1.editPanel.editE.text=24000;    
    
        win1.editPanel.add("statictext", undefined, "Result Height:");
        win1.editPanel.editF = win1.editPanel.add("edittext", undefined);
        win1.editPanel.editF.text=24000;
    
        win1.cancelBtn = win1.add("button", undefined,"Cancel");
    
        function calcul(){
              win1.editPanel.editE.text = win1.editPanel.editA.text*win1.editPanel.editC.text;
              win1.editPanel.editF.text = win1.editPanel.editB.text*win1.editPanel.editD.text;
         };
         win1.editPanel.editA.onChange=
         win1.editPanel.editB.onChange=
         win1.editPanel.editC.onChange=
         win1.editPanel.editD.onChange= function() {  calcul() };
    
        win1.cancelBtn.onClick = function() {      win1.close();    };
    
        win1.show();
        return win1;
    }
    
    Win1();
    

    Best regards, art.chrome

    Post edited by: artchrome (added a shorter script)

  • LabVIEW VI error when executing DLL functions

    Hello OR developers!

    I have driver for windows application created by Jungo WinDriver program for PCI-E card.

    Application works very well. I have edited and compiled the project as DLL manual suite.

    I can read successfully resource information of the PCI-E card such as bars of memory, its size, disruption of functions etc.

    Next, I need to perform DMA transfers. The application supports these functions and works.

    I followed feature-by-feature and see if my code works correctly and he returned to Labview information - successful execution of the function.

    First of all is strange that whenever I close VI I have error message:

    "LabView.exe has encountered a problem and needs to close. We are sorry for the inconvenience ".

    fDebug: 0 Offset: 0083002e

    Exception information

    Code: 0xc0000005 flags 0x0

    Address record 0 x 0 0x0000000000c3002e

    ......................................................................

    ......................................................................

    But when I'm building application EXE of VI - this error do not occur.

    Maybe someone can help me or point on the string I managed properly resources LabView and C?

    LabView block sometimes after a few seconds after successful execution of VI.

    The code below:

    If an application calls a DLL written in a given buffer, the application should allocate memory buffer and release it afterwards. This is the case for all languages, not only for the LV for create a buffer tank one way would be to create a U8 array with sufficient size and to convert the table to a string using the function 'Type Cast'. See the documentation for the DLL for the minimum size of the buffer. Maybe the DLL returns an error code if the buffer size is to small. If you can get the maximum size of the tank messages, add 1 (for the trailing NULL character) as the size of the array U8 and you should be on the safe side. Same for the other settings, especially for tables.

  • Automate the function find-in-time using Javascript / Custom Button?

    Dear Adobe community,

    Thank you in advance for any help or ideas you may have on this issue.

    My client and his team shoot a lot of video and make a lot of PDF reports based on these videos.

    My client seeks a form created in which he can easily add a MP4 (h.264) file to a PDF and then reference this file several times throughout, incorporating the "Seek time" function, (or another JavaScript solution involving the StartAt / EndAt functions, etc.) to bring up the highlights.

    This would allow its inspectors crew field document their results, place the video they record alongside their notes, and end users of these documents would be able to jump right to the points of interest in the video (as each instance would seek to different starting points along the timeline of an embedded video file).

    In an ideal world, the Inspector documenting the results via PDF would be able to use a button or another simple function to add the video file, which would encourage then to enter the offset / time StartAt, so that they do not spend too much time fishing around in the background dialogs for these functions.  Is there a relatively simple way to do this is in the Acrobat DC, XI or X environment?

    Again, any thoughts would be greatly appreciated.  Thank you.

    You describe the use cases, you don't need JavaScript at all. With the movie embedded in the PDF file, simply open the comments Panel and rubbing to the point of interest in the video with the video, add a comment on the image and save the file. You can even use the annotation of the circle, the pen or the legend to show the specific area of the frame that need attention.

    Then when the comment is selected in the comment Panel, the video will jump up to the moment where the comment was added.

    J-

  • Debugging of the callback functions

    I'm fine with my comments?

    Ordinary (unnamed) callback functions are all listed as (for example) onClick() in ESTK functions pane. In addition, local variables in these functions are not in the data browser. So in my humble OPINION of debugging is not possible.

    So I tried the method with named callback functions that avoids these two disadvantages:

    Callbacks without a name Named callbacks
    myDlg.btn2.onClick = function() {
      $.bp(true);
      aLocal = "gugus";
      if (this.text == 'Disable Him') {
        this.text = 'Enable Him';
        myDlg.btn1.enabled = false;
      } else {
        this.text = 'Disable Him';
        myDlg.btn1.enabled = true;
      }
    }
    myDlg.btn2.onClick = ActButton2;
    // ...
    function ActButton2 () {
    $.bp (true);
      var aLocal = "gugus";
      if (this.text == 'Disable Him') {
        this.text = 'Enable Him';
        myDlg.btn1.enabled = false;
      } else {
        this.text = 'Disable Him';
        myDlg.btn1.enabled = true;
      }
    }
    Œuvrant variable does not appear in the data browserVariable Œuvrant is listed in the data Explorer
    The functions are named onClick in the functions paneFunctions have separate names in the functions pane
    callback functions are within the window functioncallback functions (are) / (maybe) outside the window function

    Of course, the names for the named callback functions must be unique for the script.

    What version of FrameMaker do you use?

    Now, I see your problem:

    You can't do something like this:

    wPnlN.p0.b1.onClick = Button1p (whatIsThis, outerParm) ;
    

    Means: you cannot pass parameters to this function here. Otherwise, the function is executed immediately.

    wPnlN.p0.b1.onClick = Button1p; // no brackets!!!!!!
    
  • onChange Panel tabs, had an error in my window Panel.

    I have a problem with my Panel of the window, when I close the Panel after effects I had this NULL IS NOT AN OBJECT error in this line: switch (selectedTab.selection.text) how can I fix that?

    The thing is that I have this case to call my TabbedPanel with the names of different tab, but when I close the Control Panel window I got this error.

    // FUNCIONES EL TABBED PANEL
    myPanel.grp.myTabbedPanel.onChange = function(){ 
        var selectedTab = myPanel.grp.myTabbedPanel;
        switch(selectedTab.selection.text){
              case "Salidas":     //If Salidas was clicked... 
                    
                        myPanel.grp.myTabbedPanel.myTab1.ddPanel.selection = 0
                    
                  break; 
              case "Plecas":     //If Plecas was clicked... 
    
    
                         myPanel.grp.myTabbedPanel.myTab1.ddPanel.selection = 0
                        
                  break; 
              //and so on for the other tabs you have. 
              default:
              break;
        } 
    } 
    

    This means that the selectedTab is not a choice.

    Add the following statements before your error line:

    If (! selectedTab |! selectedTab.selection) return;

  • Event in adf:commandbutton onclick()

    How can I use with javascrips onclick() event to show the Alert.message in a button?

    In fact, I want to display a message after clicking on a button. Thank you

    Not the case for me (jdev 11.1.1.6/11.1.1.7)

    How have you declared function onclick()?

    function myOnClick (evt) {}

    Alert ("click!");

    }

    ?

    In addition, try to test with the own page containing just the button and see what happens...

Maybe you are looking for

  • Satellite A300-1BZ - what is my system board part number?

    Hey guys I recently fried my laptop computer motherboard but I have trouble coffee the part number for him. The model number of the laptop is * PSAJ4E-03L016KS *, * could some body help me with this please if I can order a new one. Thanks for your he

  • U 17 X-5BA6PK-XD6U3F-60VC03

    Hi Sir, See below to fix my hp windows 7 does not start and gives me an error this and the product ID # H004UA #ABA U 17 X-5BA6PK-XD6U3F-60VC03, how could I "solved this error problem

  • Windows Media refuses to cooperate!

    When I try to copy a cd in Windows Media, the extraction operation works Ok.  However, no music is in the library, there is no recently added files and screen asks me to put a cd in the disc drive.  In other words, it brings back me to the first scre

  • How can I view the details of the full header of a suspicious email in Windows Mail?

    To report a suspicious email for immediate action, I need to be able to send the email full header details. Any help is appreciated! Terry

  • Win 7 - Gadgets Google Desktop (clock) disappeared

    I use Google "clock" desktop gadgets in Windows 7. No apparent reason, the seconds hand disappeared, I tried to uninstall the clock, thinking I could reinstall and restore the missing hand. But when I try to use the control panel 'the desktop gadgets