Is there a way to discover the function calling ESTK?

Dear forum,

How do you find the calling feature?

I remember this issue has been asked on the forum before and, if my memory is good, it's Peter Kahrel who did it. Anyway, it was a long time ago and I can't find the post.

main();
function main() {
    hello();
}
function hello() {
    // Is it possible to find out that the caller function is 'main'?
}

Before taking the post, I googled for it and find many suggestions, for example:

alert("caller is " + arguments.callee.caller.toString());

But nothing works for me.

Kind regards
Kasyan

Here is a new version of the function:

function callerName() {
    var arr = $.stack.split(/[\n]/),
    callerName = arr[arr.length - 3].replace(/\(.*\)/, "")
    return callerName;
}

I fixed the regular expression to remove the brackets and everything.

The previous version returns the name of the function with arguments, as follows:

Result: ProcessTables ([paragraph: [object paragraph]])

Tags: InDesign

Similar Questions

  • Is there a way to disable the function where firefox opens a new tab when you scroll a click in the header bar?

    Is there a way to disable the function where firefox opens a new tab when you scroll a click in the header bar? This feature in conflict with my program of multiple monitors (display fusion) since this program allows you to change your current active window the monitor 1 monitor 2 and vice versa BY clicking the header of BAR SCROLLING (or whatever you call the highest part of your window). With firefox, I can't easily change my active window between monitors because instead, it opens a new tab.

    If the window is maximized, you can then switch this pref to disable the display of the tabs in the title bar:

    • browser.tabs.drawInTitlebar = false

    You can open the topic: config page via the address bar.
    You can accept the warning and click on "I'll be careful" to continue.

  • Whenever I get up for a minute, my computer turns off is there a way to disable the functions "sleep" and "hibernate"?

    My computer used to stay... since I work with clients, my computer work is often interrupted. He is turns off if I stop for a moment and it's annoying to keep back on each time. The function 'Start'-j' looked where you shut down your computer and noticed "Sleep" - who says turn to turn off and saves the info... and "Hibernate" - which goes out and saves the info... but I don't remember always those who are there. Is there a way to disable this option, so my computer stays on?

    It is not related to firefox, but I think I can help you:

    1. Click on the stack (if you are connected, there a picture of a plug) in your taskbar (near the clock) windows
    2. Click more power Options
    3. Otherwise, go to control panel-> power options
    4. Click change when the computer sleeps
    5. Adjust the settings so that your computer does not sleep for a long period of time.

    See also: http://www.howtogeek.com/howto/windows-vista/disable-power-management-on-windows-vista/

  • After cropping the photo, is there a way to prevent the function from the previous version?

    After cropping a photo, I don't want that it is original to never be recoverable. Is there a way to do this? I just discovered the tool of the previous version. Can it be disabled or the photo "permatized" sort?

    Thank you

    After cropping a photo, I don't want that it is original to never be recoverable. Is there a way to do this? I just discovered the tool of the previous version. Can it be disabled or the photo "permatized" sort?

    Thank you

    ====================================
    Library archives new copies of edition
    photos in a hidden just to file
    Revenant.

    If you deleted the originals of copies... back
    is not possible.

    Is the path to the folder on Vista systems:

    C:\Users\\Appdata\Local\Microsoft\
    Windows Gallery\Original photos

    It would be a hidden file, you may need to
    Change the following setting:

    Reach... Control Panel / folder Options / View tab.
    ... To check "Show the hidden files and folders" / apply / OK.

  • Flash game - is there a way to make the function of stage names?

    I have a game where you are conditioned to the task to collect various objects on the screen. I did level 1 and everything worked fine. Then, I decided to level 2 in a new file. I completed level 2, and deliver level 2 in the main file, however I had used the same lvel object names 1 and level 2. This has resulted in close to 100 errors due to the high amount of bodies and the functions of the same name. I want to know is that you can use code in the action script to ensure that functions and instances are specific locations. For example, to make sure I can use the function 'checkCollision' in the stage 1 and stage 2. Thanks for your time.

    lol you can use the duplicate on the same timeline function names.

    If the functions with the same names are the same, you can simply remove these functions from your 2nd stage.

    or, you can rename these functions.  This can be done using stage names to concatenate with another string and can be automated with jsfl.

  • Is there a way to stop the countdown rehearsal before she goes off without open the alarm app and turning works?

    Is there a way to stop the countdown rehearsal before she goes off without open the alarm app and turning works? Basically, if I'm ready to get up and there are 4 minutes remaining on the countdown of repetition which is the fastest way to 'Cancel' the snooze and alarm?

    There isn't a way, I discovered that allows me to do without invoking the alarm and the alarm clearing application

  • Is there a way to store the State of the vi loaded dynamically without resorting to tricks Subvi?

    I have a VI to open a UDP connection, data recovery, and then close the connection:

    Set the State to 1 opens a UDP connection.

    Definition of State 2 retrieves a UDP packet. Most of the boxes above is for the manipulation of data.

    Placed at 3 farm the UDP connection.

    Now, calling this vi as a sub - VI works fine:

    But calling the vi dynamically only:

    The second call inside the while loop will raise an error. Apparently, bibliographic are not valid from one call to the other when you call a vi loaded dynamically. What I need to know is, is there a convenient way to get around this?

    Hello

    The call dynamically a VI within a while loop can be pretty bad in terms of performance and I'm not sure it's a good idea.

    But if you really want to do this, using the function "Call by reference node" would be more appropriate in your case (you can find some examples easily).

    Best,

    J.

  • Easy way to locate the function used on the diagram by name?

    Is there an easy way to locate the functions used in the diagram under the name of the generic function?

    I have user appears somewhat to the user on my diagram functions to help me debug a difficult sequence of agross events live multiple now that it works, I want to go back and disable most of these postings. Most of them went up to now within the layers a little structure and is not easy to find.

    So is there an easy way to get a list of where these functions are used so that I can quickly go and edit them?

    I find the function is with the display hierarchy that does just what I need.

    Thank you.

  • Kalonline-works until I get the anti-piracy icon so stop saying: there is a problem with the function of anti-hacking

    I play kalonline (RPG game), when to start the game it works up until I get the anti-piracy icon so stop saying: there is a problem with the function of anti-hacking. the program stops. I am the admin of it say kal computer run it in administrator mode and I did and I delete and reinstall the game. Solve the problem in win 7 by a right click and run as administrator, they wanted to work in win xp it all fits on how to solve this problem. These are the things, I was told to do to fix it.
    Hello

    It comes to KalOnline.

    Your error message can be corrected by following these steps:

    1. run KalOnline in Administrator Mode.

    2 uninstall KalOnline d_lete the entire Inixsoft folder, then reinstall the game.
    I did it and and it has not worked. then I was told that this was causing the problem

    Please check your computer system.

    This problem has occurred by a kind of problem of piracy.

    And if you have used a kind of memory-editing program, it could be happen too.

    So if your receipt similar to, then please remove it.
    I have none of these things on my computer. All I know is that people who have not updated windows xp can play the game and people who win 7 can play the game if they right click icon and run as administrator, that I still say side here but no way to prove it.

    Hello

    I suggest you to get in touch with the manufacturer of games and see if there are any other fix for this problem.

  • is there a way to control the sansa fuse, from a windows computer?

    recently I had washed my second rocket (grrrr) and decided that I would try to repair it with parts from my old that works fine until I realized the two ribbons have been decimated by the time I was fixing broken items and now everything works fine except the Center and the wheel button.

    as is a side note that randomly, I was able to listen to all the songs when I turned on once but could never again possible to play without using the buttons in the Center

    I don't think it would be serious. the answer you are looking for is no, there is no way to control the functions of the player from the computer.

  • Best way to discover the top N

    Hi all

    Sorry to ask a question on Friday. I've had this issue for some time now, what is the best way to discover the first N?

    For example, how do you know top 10 Web hosts that have the highest use of CPU for a certain period of time.

    One way to do is to create a WCF application that returns topN HostCPUs order to use/period/average. When the interval is small, like the last hour, it works, but if I increase the time range from 1 day, the request will expire after 60 seconds. We have 500 + guests on this FMS. Not only we want to watch the hot servers right now, but also want to watch the hot servers say yesterday, or last month.

    Another way is to use groovy code below, when I use retrieveLatestValue to get the current value, it's fast, but if I replace it with retrieveAggregate and make the time range for the previous 24 hours, it takes a few minutes to run.

    #! HostCPUs # .getTopologyObjects (extinguish) {a, b->

    go = server. DataService.retrieveLatestValue (a 'use'). value?. AVG

    If (goes == null)

    go = 0

    VB = server. DataService.retrieveLatestValue (b, 'use'). value?. AVG

    If (vb is nothing)

    VB = 0

    VA - vb > 0? 0: 1

    } .subList (0, 10)

    Then, of course, these are not very effective. Is there a better way to get this top N list I'm looking for?

    Thank you

    Xiaoning

    Here is an example of the batch api to query the memory of the virtual machine, and then I take action on a specific period of time.

    import com.quest.nitro.service.sl.interfaces.data.IDataService;

    import com.quest.nitro.service.sl.interfaces.data.ObservationQuery;

    import com.quest.nitro.model.topology.TopologyObject;

    import com.quest.nitro.service.sl.ServiceLocatorFactory;

    Import org.apache.log4j.Logger;

    def LOG = Logger.getLogger ("batch.query.test");

    topologyObjects = new HashSet (#!) VMWVirtualMachineMemory # .topologyObjects);

    Log.info ("topology objects querying ${topologyObjects.size ()}...");

    endTime = System.currentTimeMillis ();

    startTime = endTime - (4 * 60 * 60 * 1000 L);

    IDataService dataSvc is ServiceLocatorFactory.getLocator () .getDataService ();.

    Query ObservationQuery = dataSvc.createObservationQuery ();

    query.setStartTime (startTime);

    query.setEndTime (endTime);

    Query.include (topologyObjects, "active");

    Query.include (topologyObjects, "affected");

    Query.include (topologyObjects, "zero");

    result = dataSvc.performQuery (query);

    long term = System.currentTimeMillis () - endTime;

    Log.info ("request completed in ${duration} ms.");

  • is there a way to save the configuration in save for web?

    Hello

    I am the latest version under cc 2015.1, camera raw, it's all updates, 10 64-bit windows pro

    I used to use ave for the web to upload picture to host image

    Well, when I select file-> save for web-> legacy

    is there a way to set the zoom ratio to adapt it to the discovered ?

    It is always 100%

    I tried to save the settings, but I do not register a zoom rate

    Thank you

    Hi Giovannivolonte,

    It is impossible for save zoom ratio in save for web, as far as I know.

    You need to change this setting.

  • Is there a way to make the search of texts in the database?

    I was wondering if there is a way to push the search of texts in the database.

    Specifically, I'm looking for a way to create a DocumentTermMatrix and work on it in the database.

    Company R Oracle provides any type of text mining functions or is there a way to push the standard package R tm is run in the database?

    Thank you

    Mike

    Mike,

    Oracle Enterprise R does not include the extraction of specific text features, but because it can exploit data in extraction of features Oracle database, it may inherit the ability to analyze textual data using the tm or other related packages of NOTCH. We provide examples of use of packages open source R with ore in the Oracle Enterprise of R User Guide and training materials. Here are some links to help you:

    See the section called "Run R calculation in Oracle Database":

    http://docs.Oracle.com/CD/E11882_01/doc.112/e36761/using.htm#OREUG163

    See slide 25:

    http://www.Oracle.com/technetwork/database/options/advanced-analytics/r-Enterprise/ore-trng3-transprncylayer-1501636.PDF

    Any R package used with ore must be installed with the R on the database server and client of R.

    Sherry

  • Once combine files, it is too large to e-mail. Is there a way to reduce the size of the file?

    Combine files and now it is too large to send. Is there a way to reduce the size of the file converted into Adobe?

    Hi yodonna,

    Adobe Reader does not reduce the size of a PDF file, such as Acrobat. But, you can download this file to your Acrobat.com account and create an anonymous link using Adobe send. Then you can send this link by e-mail. You can access Adobe send to https://cloud.acrobat.com/send. Create an anonymous link function does not require that you have an Adobe membership send.

    Best,

    Sara

  • Is there a way to exhaust the touch player full screen as well as 2 pages?

    Is there a way to exhaust the touch player full screen as well as 2 pages? I have a manual for the instructor with pages of the instructor in front of student pages

    Thank you

    Hey Lionel,.

    Adobe Reader supports the display of 2 pages already on tablets (> 8-inch screen) because smaller devices do not have a satisfactory experience when the 2 pages are displayed at the same time. Click here for more details.

    The function "full screen" is coming soon to the next update.

    Thank you

    Luz

Maybe you are looking for

  • Need to claim for HP Code connected

    I have a HP Photosmart 7510 and need to get a claim code to use connected HP The instructions are clear nod

  • Satellite L50-B-1F9 - question AMD GPU R7 260 m

    Hello I bought this toshiba laptop with a double GPUT (Intel HD and R7 m260), but after a year of owning this notebook I stumled on this problem which I didn't know before. My R7 card seems to be broken or not active for some reason any. When I go to

  • How to reset all default?

    Hello Is it possible to reset all controls by default? I have searched here and someone suggest you use the "reset to Default values" in the Edit menu, it works for the value field. But to control the structure of the case, it does not work. Any othe

  • OfficeJet 7500 a: ink not dry on paper – could be put media but not sure one to use

    Hello This is my first post so I hope I put this in the right place. I use my 7500 for attempt to print pages for my stamp album, but because the paper is slightly glossy ink not drying. The media type is defined as paper, I think this may be the cau

  • 2050 printer wizard does not showing / work

    Hello everyone. I am writing here because a strange problem with my Deskjet 2050 just drives me crazy... Shortly, my hp printer assistant disappeared from my PC and there is nothing I can do to take back, it seems. I uninstalled, reinstalled the soft