Dockable Javascript Palette - Is it possible?

I have created a Javascript Palette to allow the user to perform actions on TextFrames.
var myWindow = new Window("palette", "My Palette", undefined, {resizeable:true, closeButton:true});
Is is possible to make it 'Dockable' with the other normal panels? e.g. (Scripts, ScriptLabel, Paragraph Styles).
Or is it possible to create a Plugin which can then render the javascript inside of itself?
Thanks
Nathan Deamer

I built something using Configurator 2, I haven't checked Configurator 3 yet. I found it useful for creating basic GUI components to run JSX scripts. If you really want to add a lot of interaction though you should go with learning CS Extension Builder. There is a learning curve, but it is a lot better than building using C++.
I think I am going to go see what they improved with Configurator 3. The biggest weakness I saw before is that there were not URIs for InDesign to do commands, but there were for Photoshop.

Similar Messages

  • Align palette: equal spacing possible between stroke edges not just fill edges.

    right now with align palette, you can choose an equal spacing between edges of fills, as the bottom row shows, the top row shows alignment and spacing is only possible between the paths of strokes, not their outside edge. So I`m hoping we can also apply equal spacing between the outside edges of strokes, without having to convert them to fills for CS6

    I understand. You're right, but now it is not difficult to switch on the SmartGuides unnecessarily interfere and instead of helping.
    Maybe the idea would be smart guides to be involved only for the selected objects — kind "smart aligns"?
    In Illustrator, I miss these smart fix intervening only in specific situations. Introduced in Illustrator a lot of very good features but their use is still in the spirit of the 90s usebility. I know that it is easy to criticize but I just work on many different programs and when I toggle to Illustartors immediately feel a different world.

  • Javascript help needed if possible

    I am trying to combine code from codaslider and shadowbox, but whatever I try, my code is basically rubbish!!
    I want to combine the following two links in to one:
    <a rel="shadowbox[Mixed];width=640;height=360" href="#">
    <a class="xtrig" href="#1" rel="coda-slider-3">
    I am fairly certain that all I need to do is combine the two 'rel=' parts of the code to get it working. Basically, what I am trying to do is stop codaslider from sliding when I click and instigate the shadow box. Is it possible?
    TIA
    Mat

    No, it can't be done. JSP code runs before the HTML page is generated; it's a server side technology. JavaScript runs on the client's machine, after the page has been rendered.

  • Ajax without JavaScript - Is it really possible?

    I read your article Ajax Without J . Wondering Is it really possible.
    How about if i have following situations
    1) I wanna display Alert Message whenever users click on Delete button i.e. confirmDelete function using JavaScript
    2)Clearing the form fields on click of Reset button
    This can be easily accomplished using JavaScript functions. Do we have something similar in Ajax4Jsf
    Also is it possible to conditionally render buttons using Ajax4Jsf. For example whenever user selects "New" from h:selectOneMenu i dont wanna display Delete button. I am using Ajax4Jsf here with reRender attribute on h:commandButton it doesnt work
    Regards
    Bansi

    duplicate for http://forum.exadel.com/viewtopic.php?t=5943

  • Possible to get javascript control after a static embed? Without using swfobject?

    I am in a situation where I have an html page with a static embed of StrobeMediaPlayback.swf. Looks like it is version 2.0 if that is important.
    By static, I mean it does not use swfObject to embed the player. The <object> tag and all the parameters are hard-coded into th html. I can not change this embed.
    I would like to be able to seek the video using javascript. Is this possible and how can I do it? All off the examples I have found rely on using javascript to embed the player
    Thanks in advance

    I would expect you should be able to find it in the dehydration store using the orabpel users credentials but not sure which table - cube_scope perhaps.
    To complicate matters, you'll probably find it's stored as blob, so take a look at http://nandol.com/491 to determine how to convert this.

  • Is it possible to run an action from an acrobat javascript

    I'd like to run an action created in the "Action Wizard", from a javascript.
    Is it possible?
    Otherwise I need a way to save a pdf from javascript, with the same settings as set up in the action (downsample images and discarding objects).
    Can that be done?
    Thanks,
    Andreas

    Thanks for confirming that actions can not be started from Acrobat javascript.
    The suggestion to use preflight for optimized save has been done on a couple of questions similar to mine, but never explained in detail, so I'll just add some detail, while exploring it:
    I didn't know where to find the PDFOptimizer settings for preflight in Acrobat Pro XI, but it's here:
    1. Show the "Print production" pane, by checking it in the small foldout menu in the top of the right hand menu.
    2. Under Print production click Preflight.
    3. from the Options menu in the top right corner of the Preflight window, select Create new preflight profile.
    4. Under "Fixups" you will find many of the Save optimized PDF options, such as Downsample images, and discard object.

  • How to open an URL and close the URL window, using adobe javascript

    Hi,
      Is it possible to open an URL and close the URL back again(without allowing the user to perform any other operation)? I was able to acheive the opening of the URL, using the app.launchURL("address". true); - But here it lauches in new window, and how do i close the window using the javascript. Is it possible?
    Thanks.

    Hi all
    In addition to what Bobby W - Adobe TS added, you might find
    the following useful as a bypass or workaround to the pesky prompt.
    var pw=window.parent;pw.opener=window.self;window.open("
    http://www.adobe.com");
    pw.close();
    I think this will only work for IE browsers. Actually, I
    think the whole window.close() only works for IE, but could be
    wrong about that.
    Cheers... Rick

  • Using browser javascript to copy selected text from a pdf file opened in Air app.

    I have posted this question on reader forum as well, but I think it is more suited here...
    I am trying to create a note-taking application in air. I want to extract selected text from pdf file as a string object or to the clipboard.
    Obviously, all pdfs in my local storage will not be scripted to recieve postMessages and act accordingly, and that is not practical either. So, my problem is, how can I copy the selected text in the pdf file (opened as an object in htmlloader within my Air app) to clipboard or directly in another control by say clicking a button in air application? I suppose, this is possible using javascript, however, I don't know which reader methods are exposed to the wrapper htmlloader control. In short, I want to execute app.execMenuItem("Copy") command through htmlloader javascript. Any alternate solutions are also welcome.
    This is similar to passing inbuilt commands/methods/functions (of adobe reader) to pdf-reader plugin embedded in a webpage via javascript. This is possible in IE where the pdf is rendered as activex object, and hence JSObject interface of pdf document/reader is accessible to the browser javascript. I have also read that this same JSObject is accessible to VB as interface for IAC, so as the Air is Adobe's own product, I was wondering if equivalent of JSObject is accessible to htmlloader control as well.
    Thanks in advance...
    Mits

    Thank you Thom for your reply...
    from
    http://www.adobe.com/devnet/acrobat/javascript.html
    ...Through JavaScript extensions, the viewer application and its plug-ins expose much of their functionality to document authors, form designers, and plug-in developers...
    As it is explicitly mentioned, that the functionality of adobe reader are exposed for plugin development, I thought someone here might have used external javascript to execute some safe methods in adobe reader. The functionality (i.e. external javascript interface-JSObject) is already available for VB programmers to develop IAC. Further, the Acrobat SDK example called "AcroPDFinHML" shows how one can embed a pdf-reader in a html page and execute some safe methods (like gotonextpage(), zooming etc.) in IE as ActiveX plugin. I have checked it myself for adobe reader 9, and it works perfectly, so there is no security issue as such to implement the same for another browser (like in my case, the htmlloader control in flex/air app).
    I intend to create a note taking application in air, where it is very much required that I should be able to copy selected text from various pdf documents, that are open in my app, and subsequently paste/collect/save the collected notes and process them afterwords (offcourse, from the pdfs that allow me copying text). However, it is not happening for me here. As the pdfs are opened through adobe reader plugin, it does not register the copy command executed by my air app. It registers the system level copy command (by keyboard shortcut Ctrl+C), but my air app has no way to execute the system level copy command programmatically. So I am kind of stuck here...
    Thanks again for your reply. Having known what am I intend to accomplish, any other (may be alternative) solutions will be appreciated nonetheless...
    Mits

  • Is there a way to reduce the size of a palette without dragging from the bottom corner?

    My work bought me a huge new Thunderbolt monitor yesterday, so I took advantage of the real estate and expanded my Layers palette to be very tall, and along with several other adjustments, saved this out as a custom workspace. Today though I am working only on a laptop offsite with no Thunderbolt and the bottom of the Layers palette is offscreen where I can't get to it. I know if I change workspaces to one of the Adobe presets it will give me a standard size Layers palette, but if possible I would like to work within my custom workspace and just change the height of the palette.
    Any help would be appreciated, thanks in advance.

    Did you save your workspace with a name of your choosing?
    Look at the Workspace selector at the upper-right.  You can instantly change overall layout by choosing different workspaces.
    Save the one you have before you lose it (it's under the Window - Workspace menu), then try the different ones.
    You could, for example, save two different workspaces, one for the large monitor and one for the little monitor.
    For immediate relief, you could choose Essentials and start to customize again.
    -Noel

  • Web_show.document and javascript window.close()

    Hi¨
    Since javascript call are not possible in web_show.document function with IE SP2 client, Is there a way to close browser in the same time than forms when running in separate frame?
    Thanks

    In fact my first idea was to initialise a value inside the HTMLPostForm line but this one is executed when form is already closed so I cannot use this solution.
    The onbeforeclose condition in the basejini.html does not work and onbeforeunload is activated when browser is closed or when there is a redirection.
    I would like to fire the message if the users close the browser but not fire the message when the user close the forms (do a redirection to the close.html page).

  • Is it possible to change LOV definition using dynamic action?

    Hi,
    I have a multi-select LOV page item, P27_MULTI_CLASS_CODE, defined as below.  On page load, this list only contains values based on what has been passed to P27_OLO_CODE or P27_OLO_CODE_SW.
    SELECT DISTINCT c.class_code d, c.class_code r
      FROM ORGANIZATION o,
           POSITION p,
           CLASS c
    WHERE o.org_wk = p.org_wk
       AND p.class_wk = c.class_wk
       AND o.org_active_flag = 'Y'
       AND p.pos_active_flag = 'Y'
       AND c.class_active_flag = 'Y'
       AND (o.olo_code = :P27_OLO_CODE
            OR o.olo_code = :P27_OLO_CODE_SW)
    ORDER BY c.class_code ASC
    Before submitting the page, I would like the LOV definition of P27_MULTI_CLASS_CODE to change to the following (similar query without reference to P27_OLO_CODE or P27_OLO_CODE_SW) based on whether the user selects checkbox item, P27_ALLOW_SW.   By doing this, P27_MULTI_CLASS_CODE would contain a full range of values rather than limited values.
    SELECT DISTINCT c.class_code d, c.class_code r
      FROM ORGANIZATION o,
           POSITION p,
           CLASS c
    WHERE o.org_wk = p.org_wk
       AND p.class_wk = c.class_wk
       AND o.org_active_flag = 'Y'
       AND p.pos_active_flag = 'Y'
       AND c.class_active_flag = 'Y'
    ORDER BY c.class_code ASC
    I wanted to avoid writing Javascript.  Is this possible using dynamic actions...or at least somehow refresh P27_MULTI_CLASS_CODE so that it ignores P27_OLO_CODE and P27_OLO_CODE_SW?
    I've tried creating a dynamic action to clear the value of  P27_OLO_CODE or P27_OLO_CODE_SW, in hope it would trigger P27_MULTI_CLASS_CODE to display all values, but it has not been successful.  Any ideas?
    APEX 4.2

    I was able to resolve by changing the SQL statement to P27_MULTI_CLASS_CODE.  Note:  I also included an additional condition.
    SELECT DISTINCT c.class_code d, c.class_code r
      FROM ORGANIZATION o,
           POSITION p,
           CLASS c
    WHERE o.org_wk = p.org_wk
       AND p.class_wk = c.class_wk
       AND o.org_active_flag = 'Y'
       AND p.pos_active_flag = 'Y'
       AND c.class_active_flag = 'Y'
       AND (:P27_ALLOW_SW = 'Y'
            OR (o.olo_code =  :P27_OLO_CODE
                OR o.olo_code = :P27_OLO_CODE_SW)
       AND (:P27_PAY_PLAN IS NULL
             OR p.pay_plan = :P27_PAY_PLAN)
    ORDER BY c.class_code ASC
    I also changed the Cascading LOV Parent Item(s) value to:  P27_OLO_CODE,P27_OLO_CODE_SW,P27_PAY_PLAN,P27_ALLOW_SW.  Optimize Refresh = No, since a change in any one of these values should trigger refresh of LOV.
    The Dynamic Action was also modified to NULL out P27_OLO_CODE,P27_OLO_CODE_SW when P27_ALLOW_SW was enabled.
    So far, so good!  Thanks for your suggestions Tom and Howard!

  • How to use javascript and scriptlet simultaneously

    Hi all!!
    I have a jsp page on which there are two selection lists. One is for publisher names list and second is for journal names list corresponding to publisher selected in first selection list.
    When publisher name is selected in first selection list then all journal names should be listed in second selection list. it requires fetching rows in database.
    ie; action is onChange of first selection list ie; javascript and database is of scriptlet part.
    how to do that??
    I know that scriptlet can't be used in javascript. and it is possible by submitting this form. but i don't want to submit this form.
    Please help me out.
    Thanks

    Hi _abhi,
    Use the onchage action in the drop down tag which will redirect using URL encode to the same page and get the parameter data and pass the value to the second Drop down
    Cheers

  • How to use "WHOSE" concept in Javascript

    Hi Scripters,
    I have one question about the difference in between Applescript & Javascript?
    My question is about this "WHOSE" concept in Javascript when compared as of to Applescript usage which made it very simple.
    The below mentioned Applescript code will select the entire page items in page 1 of document 1 whoever omiting those items whose geometric bounds are less than 0.
    tell application "Adobe InDesign CS4"
         set selection to (every page item of page 1 of document 1 whose (item 1 of geometric bounds is not less than 0))
    end tell
    Here in this above mentioned code I have used "WHOSE" concept to omit some specific page items, however using javascript it is not possible to use this WHOSE concept to simply the Javscript code.
    thanks

    Unfortunately lack of a nice filtering syntax is indeed one of the many flaws of the JavaScript language.
    Generally speaking we just write this in an ugly way with a for loop:
    var i, p, page=app.document[0].pages[0], s=[];
    for (i=0; i<page.pageitems.length; i++) {
      p = page.pageitems[i];
      if (!(p.geometricBounds[1] < 0)) {
        s.push(p);
    app.select(s);
    Some people like to use Marc Autret's whose and findItems functions though: see http://forums.adobe.com/message/3070983#3070983.

  • Javascript in pl/sql process block

    Hi,
    Can someone please tell me why this code is not working.....
    I have put this in my pl/sql process....
    htp.p('<script language=javascript>');
    htp.p('var r=confirm("This is a duplicate record , do you want to proceed?");');
    htp.p('if (r==true)');
    htp.p('{document.wwv_flow.submit();}');
    htp.p('else{ }');
    htp.p('</script>');
    Please help
    thanks and regards,
    deepa

    What you need, in your case, is the reverse approach
    – calling PL/SQL from JavaScript code – which is
    possible, using AJAX...
    It seems like what you are trying to do is a
    validation process. Pressing the button should fire a
    JavaScript code, which in turn will fire an on-demand
    PL/SQL procedure, and according to the returned
    results will display a confirm dialog boxHi Arie,
    This is exactly what I am struggling to do, but I don't think is working...is there a good example somewhere, with good documentation saying what goes where? I've tried looking at Carl's On-Demand page example and I just can't tell if I'm following it correctly.
    Based on what is entered in P4_PROJECT_NUM, I need to verify that the value isn't already in the database when the user tabs out of the field.
    My javascript for page 4 (in HTML Header):
    function checkCO()
    var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=validate_value',4);
    get.add('ID', $x('P4_PROJECT_NUM').value)
    gReturn = get.get();
    if(gReturn) // if function return true
    alert($x('P4_PROJECT_NUM').value + ' already exists in database.');
    get = null;
    //-->
    </script>
    My onDemand process, from the Application Processes:
    declare
    v_count number;
    cursor cr_check_co is
    select count(*)
    from usd_changeorders
    where chg_ref_num = v('ID');
    begin
    open cr_check_co;
    fetch cr_check_co into v_count;
    close cr_check_co;
    if (nvl(v_count, 0) = 0) then
    return true;
    else
    return false;
    end if;
    end;
    I am calling the javascript from the onBlur event of the field I want verified.
    I am getting an alert, but it is displaying every time, whether the value is valid or not.
    Can you tell me what I am doing wrong?
    Thanks!!
    Janel

  • Set MaxLength in h:inputTextarea through javascript

    hi,
    There is no maxlength attribute in <h:inputTextarea> for JSF. So how can i set the length through javascript ?
    Is it possible?
    Thanks,

    It is possible but not straightforward. Try a JavaScript forum.

Maybe you are looking for