ExtendScript Help - Why am I getting "prompt is not a function" error?

Hello RH friends,
I need to search through my 2200+ topic project, find any topics that use a certain image in the source and then open up that file in the wysiwyg editor to visually see what's happening to the conditional markings on those topics. I need to open them in chunks since I've determined there are some 600+  topics that has the image I'm looking for. Seems like something a script would be able to handle. Does anyone have a script that does something like this or something similar?
Anyway, I started messing around in the script editor with a test script to figure some of this out, but I get an error right off the bat when I try using the standard js prompt method to capture a text
string. I have these two lines of code in my script:
var strText = prompt ("Type a string to search for. Topics with that string will then open in the RH viewer.","i_chiclet.gif","String to Find");
alert (strText);
Running it directly from within the script editor, the prompt command works fine.
However, running the script from within RH--which is what I need to do for it to work on the current project to look at, I get a message that says:
"prompt is not a function."
What am I missing?
I'm using RH 9.02.271
Windows 7 64-Bit with adminstrator access

RH ExtendScript bug... Use Window.prompt() and it'll work. The same goes for confirm: Window.confirm() does work. Alert() does work however and prompt and confirm work in ExtendScript toolkit itself.
I've never tried opening a topic in the WYSIWYG and I don't think that RoboHelp supports this. You can open a file with ExtendScript, but that just launches the file in default viewer (probably your web browser). I'll look into opening a topic in the WYSIWYG, but I can't promise anything.
Greet,
Willam

Similar Messages

  • Getting 'insertItemAt is not a function' Error Message

    I am using abode pro 8 and am getting a 'insertItemAt is not a function' error message using the following code. (This code below was written as an example to show the process I want - I want to clear a combo box, then add data to it.)
    The error message only appear in a one of my pdf's I currently use, otherwise it works as written. Because I want the data to appear listed from top to bottom within the combo box from 1 to 5, I insert 5 first. 5 gets inserted, but when the code tries to insert 4, it trippers the error message. Any thoughts - is there another way to insert data into a combo box?
    var i = 0;
    var ii = 5;
    var v = new Array();
    v[1] = 1;
    v[2] = 2;
    v[3] = 3;
    v[4] = 4;
    v[5] = 5;
    //Combo Box
    this.getField("Fund Company-Long-Name").clearItems();
    var a = this.getField("Fund Company-Long-Name");
    for (var i= ii;  i > 0; i--)
                 if(v[i] != undefined)
                             app.alert(i);      
                             a.insertItemAt(v[i], (i, ""));
    v[0] = " ";
    a.insertItemAt(v[0], (0, ""));
    this.getField("Fund Company-Long-Name").value = " ";  
    //================Gives this error message=============
    Acrobat Database Connectivity Built-in Functions Version 8.0
    Acrobat EScript Built-in Functions Version 8.0
    Acrobat Annotations / Collaboration Built-in Functions Version 8.0
    Acrobat Annotations / Collaboration Built-in Wizard Functions Version 8.0
    Acrobat Multimedia Version 8.0
    Acrobat SOAP 8.0
    a.insertItemAt is not a function
    4:Field:Mouse Down

    Yes, I'm actually looking at those two methods now. New questions arise.
    If my combo Box is called "Fund Company-Long-Name", how could I add a varying number of items to it, using the "setItems" command?
    I can get it to work for a defined number of items, as below. But I don't know how to insert a variable to replace ["A", "B", "C"] below.
    /=======================================
    this.getField("Fund Company-Long-Name").clearItems();
    var a = this.getField("Fund Company-Long-Name");
    a.setItems(["A", "B", "C"]);

  • Why do i get prompted to enter password for mac outlook 2011 intermittently? the password is correct and it is annoying to keep getting prompted

    why do i get prompted to enter password for mac outlook 2011 intermittently? the password is correct and it is annoying to keep getting prompted

    Applications/Utilities/Keychain Access - delete the password there. While there, Keychain Access menu/First Aid.

  • Why do I get prompted to subscribe online when I attempt to convert a PDF file to word

    Why do i get prompted to subscribe online when I attempt to convert a PDF file to word?  It's Adobe Pro XI.

    Open pdf document,  click tools,  click content editing,  click export file to (choose word).   Or open pdf document and choose save as.  Either way it prompts to subscribe.

  • How to get prompts to NOT save last value

    In webi there is an option whether or not to save the last value used for prompts.  I don't see this in deski; how do I get prompts to not remember the last value used?  Currently they display the value I selected when I was testing the report and last saved it.  Since the prompts are constrained to the list of values, it won't let me delete the value in deski.  I'm running these reports in infoview; I tried deleting them there and saving it but it didn't help.  I created universe prompts and specified "not_persistent" as the parameter and that doesn't help either.
    Thanks.

    Hi,
    The old values in prompts can be removed by the purge option in Business Objects. If we purge the report, it will deletes the contents of the report and will remove the old prompt entries.
    You can try the other thing, make a default value in the prompt; it will show you only that value even if you refreshes it fro more times.
    Regards,
    Chithambar.

  • I cannot get Elemtnts 13.1 to download completely.  I have three different case numbers from Adobe and nothing helps.  I always get the "download failed" and the error code u44m1i210.

    I cannot get Elements 13.1 to download completely.  I have 3 different case numbers from Adobe and nothing helps.  I always get the "download failed" and the error code u44m1i210.  I would either like to get the product downloaded or eliminate the constant attempt which just ties up my computer.

    You could try the direct download links here
    Adobe Photoshop Elements 13 Direct Download Links, Premiere too | ProDesignTools
    And here is some info on that error code
    Error U44M1I210 | Install updates

  • Why do I get a "computer not authorized message" when it is authorized?

    Does anyone know why do I get a "computer not authorized message" when it is authorized and how to fix the problem?  I downloaded a couple of new apps on my iPhone and these wont sych with my iMac

    i have the same problem but i have not found a way to fix it

  • Why do I get a start-up disk full error message?  I have 800 GB and have used approx. 249.

    why do I get a start-up disk full error message?  I have 800 GB and have used approx. 249.

    Here's the appropriate answer:
    Last login: Fri May 23 13:19:44 on console
    [la-mes883094mn:~] joannhackett% diskutil list
    /dev/disk0
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        *251.0 GB   disk0
       1:                        EFI EFI                     209.7 MB   disk0s1
       2:          Apple_CoreStorage                         250.0 GB   disk0s2
       3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3
    /dev/disk1
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:                  Apple_HFS Macintosh HD           *249.7 GB   disk1
    [la-mes883094mn:~] joannhackett% diskutil cs list
    CoreStorage logical volume groups (1 found)
    |
    +-- Logical Volume Group 098533C8-3936-4FB1-BCB8-2FE94E6E0500
        =========================================================
        Name:         Macintosh HD
        Status:       Online
        Size:         250006216704 B (250.0 GB)
        Free Space:   16777216 B (16.8 MB)
        |
        +-< Physical Volume 9518DA81-D7D6-4D76-8B4D-1F235D8AEA3A
        |   ----------------------------------------------------
        |   Index:    0
        |   Disk:     disk0s2
        |   Status:   Online
        |   Size:     250006216704 B (250.0 GB)
        |
        +-> Logical Volume Family C1A37CDE-6624-4094-A29A-2BB706380979
            Encryption Status:       Unlocked
            Encryption Type:         AES-XTS
            Conversion Status:       Complete
            Conversion Direction:    -none-
            Has Encrypted Extents:   Yes
            Fully Secure:            Yes
            Passphrase Required:     Yes
            |
            +-> Logical Volume 7175D310-4566-455D-9C50-1BD4CCF257CE
                Disk:                  disk1
                Status:                Online
                Size (Total):          249670668288 B (249.7 GB)
                Conversion Progress:   -none-
                Revertible:            Yes (unlock and decryption required)
                LV Name:               Macintosh HD
                Volume Name:           Macintosh HD
                Content Hint:          Apple_HFS
    [la-mes883094mn:~] joannhackett% mount
    /dev/disk1 on / (hfs, local, journaled)
    devfs on /dev (devfs, local, nobrowse)
    map -hosts on /net (autofs, nosuid, automounted, nobrowse)
    map auto_home on /home (autofs, automounted, nobrowse)
    map -fstab on /Network/Servers (autofs, automounted, nobrowse)
    localhost:/4OM-aHuM-mGML9PliXARLB on /Volumes/MobileBackups (mtmfs, nosuid, read-only, nobrowse)
    [la-mes883094mn:~] joannhackett% df -m /
    Filesystem 1M-blocks   Used Available Capacity  iused   ifree %iused  Mounted on
    /dev/disk1    238104 227599     10255    96% 58329357 2625394   96%   /
    [la-mes883094mn:~] joannhackett%
    As for the 251 disk, what is this?  I assume it's the wrong kind of memory?  Thanks, Jo Ann

  • Have published iweb site for five years with no problems and just opened a new site and get - 404: Page not found  This error is generated when there was no web page with the name you specified at the web site.-is the problem with iweb or with hosting?  T

    I am sorry if thie is republished-My first time doing this and I am not sure what goes where and where to hear feedback.
    Have published iweb site for five years with no problems and just opened a new site and get -
    404: Page not found 
    This error is generated when there was no web page with the name you specified at the web site.-
    Troubleshooting suggestions:
    Ensure the page you are linking to exists in the correct folder.
    Check your file name for case sensitivity . Index.htm is not the same as index.htm!
    Temporarily disable any rewrite rules by renaming your .htaccess file if it exists
    is the problem with
    iweb or with hosting?
    One Apple tech started to fix Iweb and had to end session and the next said problem with hosting at Network Solutions as it published
    to local folder. NWS has checked sttting a few times-
    Any help would be extremely appreciated as trying to fix this for about five weeks
    Thanks VG
    <Email Edited by Host>

    It's a really bad idea to post your email address - it's an invitation to spam - and I've asked the Hosts to remove it. (Even though I've now noticed you mis-spelled it! - anyway, never post your address in a forum.)
    You have a site here: http://virginiagordon.com/www.virginiagordon.com/WELCOME.html
    If that's not the page you are having trouble with, what is that page's URL?

  • Mountain Lion Upgrade, now I am getting a "disk not ejected properly" error

    I just upgraded to Mountain Lion and I am getting a "disk not ejected properly" error on my external time machine backup drive.  Can I fix this myself?

    Maybe the Seagate needs some firmware or other update to be compatible. Tried Google or Seagate for any info?
    Sometimes with TM you almost need to start fresh... keep what you have as is as backup archive.
    And don't use just one backup set or method. Redundant, one off line, and clone your volumes in addition to what TM offers.
    If you can only use it via USB what about FW or eSATA?

  • HT204053 why wheni try to purchase items from app why do i get prompted your purchase could not be completed

    Why when im playing an app game and try to purchase items do I get prompted your purchase could not be completed?

    Contact iTune Support
    http://www.apple.com/emea/support/itunes/contact.html

  • Why do I get prompted for permission to delete files or change file names?

    One of several users (my wife) on our iMac has recently started getting prompted for the administrator password to delete, rename or perfrom other operations on files in her home directory.  I suspect a corrupt set of user configurations files.  How can I fix this?

    Remove the ACLs from files/folders in her home folder. Log in to an admin account and enter the following in Terminal:
    sudo chmod -R -N ~wife
    (where "wife" is your wife's account's short name)

  • Why do I get a Track out of memory error while running open loop frequency response?

    MatrixX Build 61mx1411: I get a "Track out of memory" error when I run the Open Loop Frequency Response from the MatrixX pull down tools. What can I do to prevent this? We are running on an HP B1000 with 768 MB of RAM under HP-UX 10.2.

    In the old days of Mx say Version 5 and prior the user actually selected the amount of memory that would be allocated. Depending on the size of the model etc. you would have to allocate memory. In version 6.0 and going forward there is no need for the user to manually allocate the memory.
    Build {rstack=50000,istack=200000,sstack=50000,cstack=50​0 000}
    If this is a command in a script file that you are running and the error is resulting from that then I would try commenting out everything after the letter d in the word build and then starting it back up.
    i.e. only use Build
    I don't believe that there is a way to manually allocate the initial SystemBuild Stack size.
    I believe initially the stack size is set to 10010.
    However, one way
    you can manually set the initial SystemBuild stack size,is to create a large StateSpace as soon as you start up SystemBuild. This will prevent piece-meal reallocs while using SystemBuild.
    You can created a new SuperBlock in SystemBuild and then drop down a StateSpace Block with 199 inputs and 199 Outputs and 1 State and entered ones(200,200)as the StateSpace Matrix without any problems. This would resize this internal stack to at least 40000.
    You really should not have to do this but if that helps then you might think about doing this in your startup.ms file you could use SBA or load the file then you could delete the superblock and begin working.
    "Bob" gave me this little tid bit.
    Please let me know if any of this is of use.
    Garrett
    Garrett Thurston
    [email protected]
    Phone: 781.993.5540

  • Why am I getting iTunes could not connect to the iTunes Store.  An unknown error occurred (-54)?

    Why am I getting this error whenever I try to go to the store from iTunes 11?
    Thanks.

    Some more observations:
    iTunes.app is allowed in my third party firewall.
    Firewall blocking requests to IP addresses starting with 23., 24. etc.
    Turned off firewall.  Still iTunes reported the above -54 error.  So this eliminates firewall as a factor.
    Came to MBP and same issue here too.

  • Cannot download Fallensword Helper Scripts. Getting "Script could not be installed Error: Failed to @require json2.js"

    Hello, I did a drive eraser and reinstalled everything(to clean up computer), then when I got to reinstalling firefox I had a problem. I play a game called Fallensword. It has a script called Fallenswordhelper. So I installed GreaseMonkey, then when I tried to install scripts it said "Script could not be installed Error: Failed to @require json2.js". I have done this to my computer every year since I started using computers. I have never had this before. Please help me get a fix for this, for I google it and cannot find a answer.

    This was a indeed a problem in Greasemonkey 0.9.0. It has been resolved in Greasemonkey 0.9.1, as can bee seen at [https://github.com/greasemonkey/greasemonkey/issues/closed#issue/1262 their site]:

Maybe you are looking for

  • Problem with Individual Registration of HTMLDB app schema with SSO

    I have successfully registered HTML DB instance as partner application to SSO and it works well. Then, I also want to try with Individual registration of partner application schemas on the same HTML DB instance. I have followed every steps in 'How-To

  • Non iPhone camera app photos not showing up in iPhoto

    When I connect my iPhone 4 to my MacBook, iPhoto only shows thumbnails of photos taken with the camera app. Thumbnails taken with a third party app show up as empty hash border boxes and I am not able to import them. Why is this? It's dam annoying. I

  • System is not allowing to do PO

    Dear All, while doing PO from scheduling agreement our client has encountered the following problem in development system, however in quality it is working fine. The issue is: For quality reasons,only 500 nosremain approved for procurement. Message n

  • Final Cut Pro unexpectedly quits when scrubbing in the viewer

    Hello there! I am scrubbing an H264 clip in the viewer window and suddenly, FCP quits! I tried trashing the FCP prefs already, repairing the disk permissions, but to no avail. What seems to be the problem?

  • Crashing bug when click in Picture

    Hi all, Configuration : iMac Mac Intel 10.5.1/iTunes 7.5 (release19) It's very easy to reproduce : open iTunes click in the left bottom on Show Item artwork (Illustration of Now Playing) click in it => iTunes crashing Anybody else have this crash ? T