/script/ script/ alert(document.cookie); /script/

Test

Hello J.A.M,
Thank you for reply. I really appreciate it.
I tried this script but it doesn't show up anything. I have tried it in both IE 8 and Mozilla Firefox. And in IE8 at the status bar i get this error
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; CPDTDF; .NET4.0C)
Timestamp: Wed, 23 Nov 2011 09:30:06 UTC
Message: Object doesn't support this property or method
Line: 1
Char: 1
Code: 0
Thanks & Regards
John.

Similar Messages

  • Document level script to display zeros in calcuated field

    I have created a form, with the calculated fields set to read only, and with a validation script of
    if (event.value == 0) event.value = '';
    (so that the calculated fields do not display as $0.00)
    All but four of the calculated fields are named Item.0, Item.1 etc., plus there are SubTotal, ShippingCharge, CCFee and Total fields that need to stay blank until data is entered into the form.
    Initially, I tried to add the script as a document level script, but it didn't work and I'm thinking it needs more to the script to use at the document level, but I have no idea what more it needs.
    Where did I go wrong?  It certainly would be quicker to add calculated fields if I didn't have to add that validation script to each.

    Even with a document level script you would need to call it in every calculated field.
    I you were to write "app.alert("Hello World");" as a document level function, it would only execute when the PDF was initialized or opened and not again as long as the PDF remained open.
    If you rote a document level function using JavaScript like:
    function Hello() {
    appp.alert"Hello World, I am a function");
    return true;
    It would never run until called  with  a JavaScript statement like "Hello();"
    So even with a document level script and preferably a function, you still would need to edit every calculation to call the function or the script would never run.
    You could also create a document level function to suppress the zero display and then write more code to add the call to this function to the calculated fields.
    You need to learn more about the scope of items, how events are processed within a PDF, what functions are and how to use them effectively. You might want to start with getting or linking to a copy the Acrobat JS API Reference.

  • Which method is ideal to transfer Java scripts from old documents to new ones?

    I have at least eight different single pages with specific java scripts and have these options:
    Copying from the «all edit java scripts» the whole piece to paste into the same window in the new Acrobat document (sometimes some fields lost function).
    Copying the specific java script located in «Document java scripts» i into the same window in the new Acrobat document , also with problems.
    Insert the specific page with a java script into the new one Acrobat document. This method has been perfect for the moment although I don't know if it is just orthodox enough to avoid conflicts in the future.

    !. Not recommended, you will pull all including fields, and document actions as well as overwrite existing form field and document actions.
    2. Possible but could be time consuming.
    3. Best choice. I would look at inserting a blank page into the PDF with the code, copy any fields with script to the blank page, save the file and then extract the inserted page. The page will also pickup the document actions and document level JavaScripts.
    Another option would be creating an FDF file to add the document level code and actions to a PDF.

  • Delete Document Level Script Using JavaScript?

    Hello all.
    Is there a way for a document level script to delete itself? I am running Adobe Acrobat Professional 11.
    My situation is that I am currently analysing data using a Java application. The Java application taylors a script to suit each specific PDF, and then inserts it into the PDF automatically. When the PDF is opened, the script runs once and then is no longer needed.
    As the script is no longer needed it would be preferred if the script could automatically be deleted. Is it possible the script has access to the field in which it is stored (e.g. doc.javascriptField = "";)? Or by some miracle, a delete function already exists?
    I think that due to the lack of need for such a function by general and advanced users I won't get the answer I am hoping for. But it is worth a shot. In the mean time, I am inserting a flag into the KeyWord field so that the script does not run twice. It works, but it is not exactly clean.
    Any help would be greatly appreciated.
    Thanks
    Jonny O

    My original idea of...
    stamper.addJavaScript("this.addScript("oneTimeScript", "app.alert('Annoying Popup')")");
    Did not work.
    However, while debugging I did come across the name given to a script added via iText (Java library). The default is "000000000000000". With any added scripts being incremented by 1. So the this.removeScript("ScriptName") function works perfectly.
    Thanks
    Jonny O

  • Getting undefined error for current document in script

    I'm getting a "Error Number: 2" "Error String: myDoc is undefined" in my script.
    I tweaked some scripts so they traverse my entire book, and open up every section (document) in my book and run the code for each section.ext
    The code runs great and opens and closes sections where it doesn't find text to add links to, but once it opens a document and finds text that it CAN add links to, it throws that error.  Below is my code:
    main();
    exit();
    function main() {
        var myBook = app.activeBook,
                myDocs = myBook.bookContents.everyItem().getElements(),
                myDoc,
                myHyperlinkStyle,
                myCount = 0;
        for (var i=0; i< myDocs.length; i++) {
            myDoc = app.open(File("\\\\computerOnNetwork\\c$\\Folder\\" + myDocs[i].name));
            myHyperlinkStyle = myDoc.characterStyles.item("linkstyle");
            try {
                var script = app.activeScript;
            } catch(err) {
                var script = File(err.fileName);
            var myScriptFolderPath = script.path;
            var myFindChangeFile = new File(myScriptFolderPath + "/SearchTextAndUrls.txt"); //mac path for users desktop //File.openDialog("Choose the file containing the tab separated list");
            //alert(myFindChangeFile)
            myFindChangeFile = File(myFindChangeFile);
            var myResult = myFindChangeFile.open("r", undefined, undefined);
            if(myResult == true){
                app.findTextPreferences = NothingEnum.nothing;
                app.changeTextPreferences = NothingEnum.nothing;
                //Loop through the find/change operations.
                do {
                    //read 1 line into myLine
                    myLine = myFindChangeFile.readln();
                    myFindChangeArray = myLine.split("\t");
                    //The first field in the line is the value to find
                    myFindVal = myFindChangeArray[0];
                    // second is the url
                    myFindUrl = myFindChangeArray[1];
                    doSearchAndReplace(myFindVal, myFindUrl, app.activeDocument);
                } while(myFindChangeFile.eof == false);
                    myFindChangeFile.close();
                    // reset search
                    app.findTextPreferences = NothingEnum.nothing;
                    app.changeTextPreferences = NothingEnum.nothing;
            alert("Done! " + myCount + " hyperlinks have been added.");
            myDoc.close();
    function doSearchAndReplace(stringfind, urlstring, searchin) {
        app.findTextPreferences.findWhat = stringfind;
        //Set the find options.
        app.findChangeTextOptions.caseSensitive = false;
        app.findChangeTextOptions.includeFootnotes = false;
        app.findChangeTextOptions.includeHiddenLayers = false;
        app.findChangeTextOptions.includeLockedLayersForFind = false;
        app.findChangeTextOptions.includeLockedStoriesForFind = false;
        app.findChangeTextOptions.includeMasterPages = false;
        app.findChangeTextOptions.wholeWord = false;
        var myFoundItems = searchin.findText();
        for (i = 0; i < myFoundItems.length; i++) {
            var myHyperlinkDestination = myMakeURLHyperlinkDestination(urlstring);
            myMakeHyperlink(myFoundItems[i], myHyperlinkDestination);
            myFoundItems[i].applyCharacterStyle(myHyperlinkStyle, false);
            myCount++
    function myMakeHyperlink(myFoundItem, myHyperlinkDestination){
        try {
            var myHyperlinkTextSource = myDoc.hyperlinkTextSources.add(myFoundItem);
            var myHyperlink = myDoc.hyperlinks.add(myHyperlinkTextSource, myHyperlinkDestination);
            myHyperlink.visible = false;
        catch(myError){
    function myMakeURLHyperlinkDestination(myURL){
        //If the hyperlink destination already exists, use it;
        //if it doesn't, then create it.
        try{
            var myHyperlinkDestination = myDoc.hyperlinkURLDestinations.item(myURL);
            myHyperlinkDestination.name;
        catch(myError){
            myHyperlinkDestination = myDoc.hyperlinkURLDestinations.add(myURL);
        myHyperlinkDestination.name = myURL;
        //Set other hyperlink properties here, if necessary.
        return myHyperlinkDestination;
    Any and all help is greatly appreciated!

    This ended up being my fixed/final code:
    main();
    exit();
    function main() {
        var myBook = app.activeBook,
                myDocs = myBook.bookContents.everyItem().getElements(),
                myDoc,
                myHyperlinkStyle;
        for (var i=0; i< myDocs.length; i++) {
            myDoc = app.open(File("\\\\computerOnNetwork\\c$\\Folder\\" + myDocs[i].name));
            myHyperlinkStyle = myDoc.characterStyles.item("linkstyle");
            try {
                var script = app.activeScript;
            } catch(err) {
                var script = File(err.fileName);
            var myScriptFolderPath = script.path;
            var myFindChangeFile = new File(myScriptFolderPath + "/SearchTextAndUrls.txt"); //mac path for users desktop //File.openDialog("Choose the file containing the tab separated list");
            //alert(myFindChangeFile)
            myFindChangeFile = File(myFindChangeFile);
            var myResult = myFindChangeFile.open("r", undefined, undefined);
            if(myResult == true){
                app.findTextPreferences = NothingEnum.nothing;
                app.changeTextPreferences = NothingEnum.nothing;
                //Loop through the find/change operations.
                do {
                    //read 1 line into myLine
                    myLine = myFindChangeFile.readln();
                    myFindChangeArray = myLine.split("\t");
                    //The first field in the line is the value to find
                    myFindVal = myFindChangeArray[0];
                    // second is the url
                    myFindUrl = myFindChangeArray[1];
                    doSearchAndReplace(myFindVal, myFindUrl, app.activeDocument, myDoc, myHyperlinkStyle);
                } while(myFindChangeFile.eof == false);
                    myFindChangeFile.close();
                    // reset search
                    app.findTextPreferences = NothingEnum.nothing;
                    app.changeTextPreferences = NothingEnum.nothing;
            alert("Done! Hyperlinks have been added.");
            myDoc.close();
    function doSearchAndReplace(stringfind, urlstring, searchin, myDoc, myHyperlinkStyle) {
        app.findTextPreferences.findWhat = stringfind;
        //Set the find options.
        app.findChangeTextOptions.caseSensitive = false;
        app.findChangeTextOptions.includeFootnotes = false;
        app.findChangeTextOptions.includeHiddenLayers = false;
        app.findChangeTextOptions.includeLockedLayersForFind = false;
        app.findChangeTextOptions.includeLockedStoriesForFind = false;
        app.findChangeTextOptions.includeMasterPages = false;
        app.findChangeTextOptions.wholeWord = false;
        var myFoundItems = searchin.findText();
        for (i = 0; i < myFoundItems.length; i++) {
            var myHyperlinkDestination = myMakeURLHyperlinkDestination(urlstring, myDoc);
            myMakeHyperlink(myFoundItems[i], myHyperlinkDestination, myDoc);
            myFoundItems[i].applyCharacterStyle(myHyperlinkStyle, false);
    function myMakeHyperlink(myFoundItem, myHyperlinkDestination, myDoc){
        try {
            var myHyperlinkTextSource = myDoc.hyperlinkTextSources.add(myFoundItem);
            var myHyperlink = myDoc.hyperlinks.add(myHyperlinkTextSource, myHyperlinkDestination);
            myHyperlink.visible = false;
        catch(myError){
    function myMakeURLHyperlinkDestination(myURL, myDoc){
        //If the hyperlink destination already exists, use it;
        //if it doesn't, then create it.
        try{
            var myHyperlinkDestination = myDoc.hyperlinkURLDestinations.item(myURL);
            myHyperlinkDestination.name;
        catch(myError){
            myHyperlinkDestination = myDoc.hyperlinkURLDestinations.add(myURL);
        myHyperlinkDestination.name = myURL;
        //Set other hyperlink properties here, if necessary.
        return myHyperlinkDestination;

  • How to find a text in the Frame maker document via script?

    How to find a particular text in the Frame maker document via script?

    johnsyns wrote:
    Why it doesn't work for the other days? When i tried to change the days other than wednesday. it return nothing.
    Reason why Justin's code does not work for other days is date format mask DAY returns day blank padded to 9 characters which is the longest day name which, yes you guessed right, is WEDNESDAY. You either need to blank pad or use format modifier FM:
    SQL> select *
      2    from (SELECT TO_DATE(SYSDATE+ROWNUM, 'DD-MON-YY') dt
      3            FROM DUAL CONNECT BY ROWNUM <= 27)
      4  WHERE TO_CHAR(dt,'DAY') = 'TUESDAY'
      5  /
    no rows selected
    SQL> select *
      2    from (SELECT TO_DATE(SYSDATE+ROWNUM, 'DD-MON-YY') dt
      3            FROM DUAL CONNECT BY ROWNUM <= 27)
      4  WHERE TO_CHAR(dt,'DAY') = 'TUESDAY  '
      5  /
    DT
    07-APR-09
    14-APR-09
    21-APR-09
    28-APR-09
    SQL> select *
      2    from (SELECT TO_DATE(SYSDATE+ROWNUM, 'DD-MON-YY') dt
      3            FROM DUAL CONNECT BY ROWNUM <= 27)
      4  WHERE TO_CHAR(dt,'FMDAY') = 'TUESDAY'
      5  /
    DT
    07-APR-09
    14-APR-09
    21-APR-09
    28-APR-09
    SQL> SY.

  • Using Scripts to detect document size in inches?

    Is it possible that a script detects the document size in inches not in pixels?
    Thanks for the help!

    The size an Image will print is a simple calulation the numbet of Pixel Wide Devided by the imageg current DPI resolution. And numbet of Pixel High Devided by the imageg current DPI resolution. You can always change the DPI while maintaining the same number of pizels using Image Size with resample NOT checked to change the image's print size. All the information can be retrived in a script and the script can change the image's print size with or without resampling the image.

  • How to save the output of sap script to pdf document in sap

    hi abapers
    how to save the output of sap script in sap so that can retrieve the saved document later.
    i have to save the rcia output from sap script in pdf document in sap so that it can be retrieved later
    how to use dms

    Hi deepika,
    This thread will solve ur problem OTF  -> PDF
    Regards,
    Pravin

  • Move recorded document between scripts using session map

    Hi all experts on scripting!
    We have a 2 scripts ! First script is a callback script that is recording a message from the calling customer which is saved in a"recorded document" that will be played towards an Agent when he/she is picking up the callback call.
    The (Callback) script first records a message from the customer which is saved in a document (not stored in a repository). The Callback script is then doing a "call redirect" to a new script (Agent script) where the agents are answering the callback calls!
    Now we want to move the recorded document/prompt from the "Callback script" in a variable to the "Agent script" so when an Agent is selected he will hear the Callback message from the calling customer and also "receive a voicemail with the recording + CallerID ...in case if the agent doesn't get through to the calling customer!
    Can we úse "get session" and "set session" for this and if so how?
    Rgds Mikael

    Here is a step-by-step of the process to use a Session Object to store and retrieve a Document.
    Script 1
    Variables
    Session the_session = nullDocument the_recording = DOC[]
    Script
    ...You just captured the recording in the variable the_recording.../* Grab a reference to the Session */the_session = Get Contact Info (--Triggering Contact--, Session)/* Store the Document in the Session Object *//* In the properties of this step, you will need go to the Context tab and Add a new context: Name = "the_recording"; Value = the_recording */Set Session Info (the_session)...Now you do your Call Redirect...
    Script 2
    Variables
    Session the_session = nullDocument the_recording = DOC[]
    Script
    ...You have just accepted the call.../* Grab a reference to the Session *//* In a Call Redirect scenario, this is the same Session from Script 1 */the_session = Get Contact Info (--Triggering Contact--, Session)
    /* Retrieve the Document from the Session Object */the_recording = Get Session Info (the_session, "the_recording")/* You now have the Document the_recording in this second script */...Now you are ready to play the recording to the Agent...
    Anthony Holloway
    Please use the star ratings to help drive great content to the top of searches.

  • Developed Sap scripts of invoice documents

    hi,     
        how to Developed Sap scripts of invoice documents, purchase requisition documents and purchase order documents to suit client needs.if understand any one give me one example.

    you have standard one.
    invoice ---  RVINVOICE01.
    U CAN FIND ALL IN TNAPR TABLE.
    U NEED TO CHANGE THOSE AS PER CLIENT REQUIREMENT.
    REGARDS.
    SANTHOSH REDDY

  • Document level scripting from process workflow

    Hi all,
    is there some way to add a "document level" script from process workflow in Livecycle Workbench?
    That is, I have a script i want to add to a pdf in my process workflow. How can I do that? Is there some service/function/script I can use to do that?
    I'd really appreciate any help.
    Thanks
    Alessio

    Not that I am aware of, could be wrong though

  • Document level scripting

    I have read about document level scripting -
    This is a nice feature - since it allows a certain level of generalization rather that writing a scriptlet for each objects events.
    I am using Live cycle designer 8.2
    How can I create a document level javascript function ?  i can't see how to do it .
    I am familiar with java scripting and have been scripting for a number of events but i would really like to be able to have a callable function that I pass certain parmeters to for processing.
    please indicate how I can do this .
    Thanks

    You should post this in the LiveCycle Designer forum here, if you haven't already.

  • Script to load documents in KM Repository DB mode

    Is there any good documentation on writing a script to load documents into a KM repository that is set up in DB mode? 
    In the past we had this repository as an FSDB and we could create scripts to upload to the file system.  Now in DB mode we need to do the same.
    Thanks,
    Matt

    Thanks Julian. 
    Can you suggest how to open the webDAV from a batch file?
    Copy C:/MyData/Test1.txt  //webDAV/Folder1/Test1.txt
    Thanks,
    Matt

  • Weblogic.admin script to alert server status

    Hi,
    Can anybody share a weblogic.admin utility script for alerting the server status in unix ?

    Below is the solaris shell script integrated with weblogic.admin utility....
    If the server status is other than running it will sends a alert mail to you.
    Sometime your server may be in shutdown mode and if you execute the below script, it says destination not reachable on specified port and then also it sends a alert mail.
    Change it according to ur env and execute...
    set -x
    export CLASSPATH=”/wl_home/server/lib/weblogic.jar”
    declare -a Port=( 8003 7072 8201 )
    declare -a ServerState[]
    declare -a ServerName[]
    declare -a ObjectName[]
    i=”0″
    IP=Weblogic host address
    while [ $i -lt 5 ]
    do
    ServerState[$i]=`java weblogic.Admin -url $IP:${Port[$i]} -username weblogic -password weblogic GET -pretty -type ServerRuntime -property State |grep -i State |awk ‘{print $2}’`
    ObjectName[$i]=`java weblogic.Admin -url $IP:${Port[$i]} -username weblogic -password password GET -pretty -type JVMRuntime -property ObjectName |grep -i ObjectName |awk ‘{print $2}’`
    if [ "${ServerState[$i]}” != “RUNNING” ] ;
    then
    mailx -s ” Weblogic Server Staus- $IP ” [email protected]<<EOF
    Weblogic Managed server ${Port[$i]} is in SHUTDOWN state
    EOF
    fi
    i=`expr $i + 1`
    done
    Thanks,
    Kartheek
    Troubleshooting in weblogic gives thrilling experience .......

  • script alert('Helo test'); /script

    <script>alert('Helo test');</script>

    Names are Ok.  I believe it has something to do with the way my computer is handling my memory.  If I only slect 15-20 files it seems to work fine (though a lot slower than before).  If I slect 200 files it stops after processing 20 or so files?  In the past I never had this problem before.  I have also checked my hard drives and have plenty of space left.

Maybe you are looking for

  • How to create a group policy for a group not to logout from rdp

    there is already a global policy for all users in OU which will disconnect a rdp session after 15 min of inactivity and log user out in another 15 min, (logout 30minutes) how do I create another policy  for a group in that OU so that group user will

  • I want to Create a Project that combines TWO VIs, is it possible?

    Hi every one I am working on a project that essentially is split into two part at the moment; 1. Data Acquisition - (In LabVIEW SignalExpress) 2. Data Manipulation Now I want to combine them together so that they can work sequentially together at the

  • How to define branches of a bank in oracle hrms

    Hi Im new to oracle hrms and i have a question regarding on how to reflect the different branches of a bank in oracle hrms.Is it through defining an organization for each branch ?Please advice Thank you regards

  • Crystal report 10  for vs2008 C++  64bit  compilation

    Hi: I have a program develop by vs2008 C++ and  use crystal report 10(so old  the newer vision   cr2008 is not supprot for vs 2008 c++?) for report the 32bit program goes well but now i  compilation the program to 64bit the  crystal report 10 cannot

  • Mountain lion not downloading --or really slow

    Hi, Ordered the download last night. My Mac Pro is using Lion 10.7.4, and is fully updated ---but the mountain lion download appears to be stuck (...still downloading this morning). Please advise. Thanks.