Compile in jsxbin with javascript script

It's posible compile a file into jsxbin with a javascript function ?
El mensaje fue editado por: thinkink_es
Or call a command line process in ESTK via execute() ??

It´s GREAT. Thanks
Ok, is what I look
Its the same, working in indesing or in ESTK, if its possible write a lines for orientation.
I know well scripting in indesing, but don´t in ESTK, i think its similar, but i don't know.
Exists a ESTK scripting forum?
or some
pdf scripting guide?
Thanks a lot!!

Similar Messages

  • Acrobat reader print with javascript script

    Hello,
    I read the documentation for printing silently using javascript, but it does not work as not all COM objects are installed.
    A code example:
    <body>
    <object id="examplePDF" data="DFWCRT133735.PDF" type="application/pdf" title="SamplePdf" width="100%" height="100%">
       Your browser does not support PDF, Please install Adobe Acrobat.
    </object>
    <div id="pdfprop">
    </div>
    <script type="text/javascript">
        var pdf = document.getElementById("examplePDF");
        var divProps = document.getElementById("pdfprop");
        if (pdf) {
    // Attempt 1: Works, but shown printing dialig which I do not want
    //        pdf.print();
    // Attempt 2: Does not work. Shows an exception about parameters when printing
            //var printParms = { bUI: false, bSilent: true, bShrinkToFit: true };
            //pdf.print(printParms);
    // Attempt 3: Does not work as can't instatiate unexistent progid, class AcroExch.PDDoc. COM object is not registered
            var srcDoc = new ActiveXObject("AcroExch.PDDoc");
            var jsObj = srcDoc.GetJSObject();
            var pp = jsObj.getPrintParams();
            pp.interactive = pp.constants.interactionLevel.automatic;
            pdf.print(pp);
    </script>
    </body>
    I read in google something about the Acrobat Pro version will have the missing COM object, but I can't force all my clients to buy that product. Is it possible with the reader version.
    I'll appreciate any help.

    I am trying with Reader 9.
    I am not trying to print from the server. The printing will happen on the client computers that is why I am trying to print using javascript from an html page. My clients do have different versions of Reader from 6 to latest
    Is there any way to achieve it with out installing anything else on the computers?
    Thanks,

  • Script For compile in jsxBin ??

    Can anyone know if it´s posible compile a script or file in jsxBin with a javascript function?

    It´s GREAT. Thanks
    Ok, is what I look
    Its the same, working in indesing or in ESTK, if its possible write a lines for orientation.
    I know well scripting in indesing, but don´t in ESTK, i think its similar, but i don't know.
    Exists a ESTK scripting forum?
    or some
    pdf scripting guide?
    Thanks a lot!!

  • How can I compile all functions, procedures and packages with a script?

    I need to compile all functions, procedures and packages of 5 schemas (users) with a script.
    How can I do it?
    Thanks!

    you can create a script to select all invalid objects in those schemas Since Oracle 8 introduced NDS this approach has struck me as a trifle old fashioned. It's much simpler to loop round the query in PL/SQL and use EXECUTE IMMEDIATE to fire off the DDL statements. No scripts, no muss, no fuss.
    Having said that, the problem with this approach and also with using DBMS_UTILITY.COMPILE_SCHEMA is that they do not compile all the invalid objects in dependency order. This may result in programs being invalidated by the subsequent compilation of dependencies. This is due to the introduction of Java into the database.
    The UTLRP script is much better, because it (usually) avoids cyclic references. But you still may need to run it more than once.
    In general it is better to avoid sledgehammer recompilations (like DBMS_UTILITY.COMPILE_SCHEMA, which starts by invalidating all the objects). If we have twenty invalid objects, nineteen of which are dependencies of the twentieth, we actually only need to recompile the master object, as recompiling it will trigger the recompilation of all the others.
    Cheers, APC

  • Illustrator Script: How can I duplicate a layer ( with sublayers ) with javascript code ?

    Dear All
    I want to duplicate a layer structure, as the "Duplicate Layer" submenu do with Javascript code, but I can't.
    I can duplicate only PageItems or selected object, but no Layers.
    Anybody knows how can I do it ?

    Thanks for your answer.
    #target illustrator 
    var docRef = app.activeDocument; 
    var ln = 'Layer 1'; 
    var ol = docRef.layers.getByName(ln); 
    var nl = docRef.layers.add(); 
    nl.name = ln+' Copy'; 
    for (var a = ol.pageItems.length-1; a >= 0; a--) { 
        ol.pageItems[a].duplicate(nl, ElementPlacement.PLACEATBEGINNING); 
    The problem with this code is, that it can't duplicate also the sublayers, and the sublayer elements.
    Sure I can write a recursive function, but I think there should exist a duplicate function somewhere ( for Photoshop script exist ! ) or a small trick, but I can't find it.
    Thanks

  • Problem with loading two Javascript scripts

    I loaded a dreamweaver widget called "twitter client" to pull user info from twitter. Problem is that it will not show up in the browser. I can get it to load and show, but only after I comment out the footer information. The footer is pulled externaly and calls on a Javascript hosted on another server. Here is the code showing the problem. I also loaded it to http://www.tempthirteen.com/template/. I am really at a loss as to what is causing it.
    Thanks so much!!
    Nate

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" dir="ltr">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="shortcut icon" href="images/struct/favicon.ico" type="image/x-icon" />
    <title>Your Site Title Here</title>
    <meta name="robots" content="all" />
    <meta name="Copyright" content="(c) Duke University" />
    <meta name="description" content="This is where you can put a description of your organization or your website." />
    <meta name="keywords" content="duke university, duke" />
    <meta content="en-US" name="language"/>
    <link type="text/css" rel="stylesheet" media="all" href="css/screen.css" />
    <link type="text/css" rel="stylesheet" media="print" href="css/print.css" />
    <link rel="stylesheet" href="http://brandbar.oit.duke.edu/header/css/screen-globalHeader-nologo.css" type="text/css" media="Screen" />
    <link rel="stylesheet" href="http://brandbar.oit.duke.edu/footer/footer.css" type="text/css" media="screen" />
    <!--[if lte IE 6]><link rel="stylesheet" href="css/screen-ie6.css" type="text/css" />
    <link rel="stylesheet" href="http://brandbar.oit.duke.edu/footer/footer-ie6.css" type="text/css" /><![endif]-->
    <script src="scripts/jquery.js" type="text/javascript"></script>
    <script src="scripts/twitter_search.js" type="text/javascript"></script>
    <style type="text/css">
    /* BeginOAWidget_Instance_2125523: #twitter */
            #twitter { height: 258px; width: 292px}
    /* EndOAWidget_Instance_2125523 */
    </style>
    <script type="text/xml">
    <!--
    <oa:widgets>
      <oa:widget wid="2125523" binding="#twitter" />
    </oa:widgets>
    -->
    </script>
    </head>
    <body class="shadowBackground">
    <script type="text/javascript" src="http://brandbar.oit.duke.edu/header/bar.html"></script> 
    <div id="pagewrapper" class="home">
        <div id="header">
            <div id="logo">
                <p><a href="http://www.duke.edu" tabindex="1" accesskey="1"><img src="images/struct/logo-print.png" width="141" height="64" alt="Duke University" /></a></p>
                <h1><a href="index.html" rel="home" tabindex="2" accesskey="2">Your Site Title Here</a></h1>
            </div>
            <form action="http://www.duke.edu/search/" method="get" id="search-inBanner" name="duke_search">
            <label for="search-field-banner"><input class="text" id="search-field-banner" name="q" value="Search" tabindex="3" accesskey="3" /></label>
            <button id="search-go-banner" type="submit" tabindex="4" accesskey="4">Go</button>
              </form>
        </div>   
        <div id="wrapper">
        <div id="nav">
            <ul>
                <li><a href="landing.html" tabindex="5" accesskey="5">Nav Link One Here</a></li>
                <li><a href="landing.html" tabindex="6" accesskey="6">Nav Item 2</a></li>
                <li><a href="landing.html" tabindex="7" accesskey="7">Nav 3</a></li>
                <li><a href="landing.html" tabindex="8" accesskey="8">Nav Link Four Goes Here</a></li>
                <li><a href="landing.html" class="last" tabindex="9" accesskey="9">Nav Link 5</a></li>
            </ul>   
        </div>   
        <div id="content">
            <div class="col">
              <div id="twitter"></div>
                <script type="text/javascript">
    // BeginOAWidget_Instance_2125523: #twitter
    $(document).ready(function() {
        $('#twitter').twitterSearch({
            term: 'from%3Adukenews',
            title: '',
            titleLink: 'http://www.twitter.com/dukenews',
            bird: false,                    // true or false (show or hide twitter bird image)
            birdSrc: '/images/tweet.gif',         // twitter bird image
            birdLink: 'http://twitter.com/dreamweaver',        // url that twitter bird image should like to
            avatar: true,                // true or false (show or hide twitter profile images)
            anchors: true,            // true or false (enable embedded links in tweets)
            animOutSpeed: 500,    // speed of animation for top tweet when removed
            animInSpeed: 500,    // speed of scroll animation for moving tweets up
            pause: true,                // true or false (pause on hover)
            time: true,                    // true or false (show or hide the time that the tweet was sent)
            timeout: 4000,            // delay betweet tweet scroll
            css: {
                a:     { textDecoration: 'none', color: '#3B5998', fontWeight: 'normal'},
                container: { backgroundColor: '#eee' },
                frame: { border: '10px solid #33ccff', borderRadius: '10px', '-moz-border-radius': '10px', '-webkit-border-radius': '10px' },
                img:   { width: '30px', height: '30px' },
                loading: { color: '#888' },
                text:  {fontWeight: 'normal', fontSize: '12px', color:'#000'},
                time:  { fontSize: '12px', color: '#CCC' },
                title: { backgroundColor: '#33ccff', padding: '0px 0 0px 0', textAlign: 'center', fontWeight: 'bold', fontSize: '14px'},
                titleLink: { textDecoration: 'none', color: '#3B5998' },
                user:  { fontSize: '12px'},
                fail:  { background: '#6cc5c3 url(/images/failwhale.png) no-repeat 50% 50%'}
    // EndOAWidget_Instance_2125523
                </script>
    <h2> </h2>
                <h2>Header Here</h2>
                <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas commodo mauris ut erat fermentum ultrices. In mauris est, ullamcorper eu molestie eu, semper ut sapien. In eu auctor quam. Etiam gravida lorem sed dolor iaculis vestibulum.</p>
            </div>
            <div class="col">
                <img src="images/placeholder-2.jpg" alt="Placeholder 2" height="214" width="304"  />
                <h2>Header Here</h2>
                <ul>
                    <li><a href="http://www.duke.edu">Link Sample 1</a></li>
                    <li><a href="http://www.duke.edu">Link Sample 2</a></li>
                    <li><a href="http://www.duke.edu">Link Sample 3</a></li>
                    <li><a href="http://www.duke.edu">Link Sample 4</a></li>
                </ul>
            </div>
            <div class="col last">
                <img src="images/placeholder-3.jpg" alt="Placeholder 3" height="214" width="305"  />
                <h2>Contact Us</h2>
                <p>Office of Lorem Ipsum<br />
                30000 Allen Drive<br />
                PO Box 9000<br  />
                Durham, NC 27707</p>
                <p><span class="cat">Phone: </span>919-555-1234<br />
                <span class="cat">Fax: </span>919-555-1234<br />
                <span class="cat">Email: </span><a href="mailto:[email protected]">[email protected]</a></p>
            </div>
        </div>
        </div>
    </div>
    <script src="http://brandbar.oit.duke.edu/footer/videos_podcasts_full.php" type="text/javascript"></script>
    <script type="text/javascript"  src="http://brandbar.oit.duke.edu/header/js/jquery.min.js"></script>
    <script type="text/javascript" src="http://brandbar.oit.duke.edu/header/js/globalHeader.js"></script>
    <script type="text/javascript"  src="http://brandbar.oit.duke.edu/footer/js/footer.js" ></script>
    </body>
    </html>

  • Problem with JavaScript in DPS

    Hello,
    i have little problem with one HTML page in DPS. We've created HTML form, which is formatting output with JavaScript and then passing to local mail client via mailto. It works nicely in Safari on desktop, it works in Safari on iPad BUT it don't work in DPS, when we use it as HTML content (frame on page where form is loaded). Unfortunately, there is no way how to learn what's wrong - on iPad it works, it's not working just in DPS (and it's not working in Viewer on desktop too).
    Anyone have any idea what to do?
    Script is fairly simple, it's my compilation of other works, because i'm not JS programmer, just i'm skilled with google-copy-paste... So there can be some VERY trivial error, but i don't know correct syntax...
    very simple version of this form, which is not working in DPS (but everywhere else), is here
    http://dl.optio.cz/mailtoExample.html
    Thanks for any help!

    Hello,
    when used in DPS browser, it's working (as part of HTMLresources.zip). I don't know if this will help, but here is small game, which works correctly in DPS in web overlay. when you move any red circle, it will let you send results via email. But this is too complicated for my minimal skills.
    http://dl.optio.cz/Hra_en/
    Anyway, thanks for help
    Martin

  • Open and Close Popup With Javascript

    Using Apex 3.2
    I have probably done this loads of times in my old job, but do not have access to the code and today I just can't get it to work properly.
    I have opened a pop up window with javascript
    Now I need to close it and refresh the calling page, but only if it passes the validation on the popup.
    I have a hidden item on my pop up called P7_FLAG.
    I have a page process after validation that sets P7_FLAG to (only set to 1, if passes validation).
    I also have a SUBMIT button.
    So once I click my SUBMIT button the page should look at the validations, if ok, set P7_FLAG to 1, then close the popup and refresh the calling page.
    My current javascript look like this
    <script type="text/javascript">
    function saveChanges(){
    doSubmit('SUBMIT');
    var test = $x('P7_FLAG').value;
    if(test == '1')
    window.close();
    window.opener.doSubmit('REFRESH');
    </script>On my button
    javascript:saveChanges();The problem is that I need to click the SUBMIT button twice.
    First time it sets P7_FLAG
    Second time it closes page and refreshes.
    I have probably made some basic error, but today I cannot see it.
    Cheers
    Gus
    Edited by: Gus C on May 10, 2012 12:48 AM

    <script type="text/javascript">
    function saveChanges(){
    doSubmit('SUBMIT');
    var test = $x('P7_FLAG').value;
    if(test == '1')
    window.close();
    window.opener.doSubmit('REFRESH');
    </script>javascript does not wait for the current action to complete and then perform the next line.
    means in your function call
    doSubmit('SUBMIT');is triggered and it carry on's to next line that is
    $x('P7_FLAG').value;this will not be set because you are setting the value of P7_FLAG to 1 in plsql and trying to check in javascript, which will not work.
    what you need to do is amend your js function like below
    <script type="text/javascript">
    function saveChanges(){
    doSubmit('SUBMIT');
    </script>create a page branch to procedure and make it conditional to when P7_FLAG = 1
    and set the branch source to below
    htp.p('window.close();');
    htp.p('window.opener.doSubmit(''REFRESH'');');

  • Problem with JavaScript in URL iView

    Hi,
    I am facing a problem with javascript when i am trying to access my application through URL iView. In the javascript window.top is used to access the frames in the window. But the EP is not recognizing it as valid. what exctly the problem and please suggest me a solution.
    Ashok.

    Hi,,
    thanks for the quick reply. But what i asked was different. I will put it in different way. I have deployed a application in Web Application Server and trying to access it through URL iView. My application is pure J2EE application with html,jsp and JS files. In javascript we used window.top property of the java script which is working fine MS IE. The problem is window.top is a IE specific property which is not having any equallent open standerd so EP is throwing a java script error. As I know the only possible solution for this problem is inherating IE rendaring capabilities to iView(i.e iFrame). is there any way to do that?
    Ashok.

  • Html5 video player won't work with slider script??

    Hi - I'm new to html5 and Dreamweaver, but I've worked with html in the past, so most things aspects aren't foreign to me.
    My question is this: I'm working with an existing html5 template and it had a slider graphics bar near the top. It works fine and scrolls through three pre-made banners.
    The problem is I just added the widget for HTML5 Videoplayer and inserted it into my code. The video box, etc. shows up fine, and will play, but now the slider graphic box at the top doesn't work anymore. Instead it just displays all three banners as images, one on top of the other.
    When I look closer at the script code that the widget embeds, it seems as though the script widget code is not playing well with the existing script code. When I remove the script code that the widget installs, the slider works perfectly again (but the video obviously won't play).
    The exact code is included below. My question is, how can I make the two of these scripts work together???Any help would be great appreciated. Thanks, Blair
    <script src="scripts/elegant-press.js" type="text/javascript"></script>
    <script src="kaltura-html5player-widget/jquery-1.4.2.min.js" type="text/javascript"></script>
    <script src="kaltura-html5player-widget/mwEmbed-player-static.js" type="text/javascript"></script>
    <!--[if IE]><style>#header h1 a:hover{font-size:75px;}</style><![endif]-->
    <link href="kaltura-html5player-widget/mwEmbed-player-static.css" rel="stylesheet" type="text/css">
    <style type="text/css">
    /* BeginOAWidget_Instance_2294029: #kalturaPlayer */
                                  @import url("http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/themes/redmond/jquery-ui.css");
    /* EndOAWidget_Instance_2294029 */
    </style>
    <script type="text/xml">
    <!--
    <oa:widgets>
      <oa:widget wid="2294029" binding="#kalturaPlayer" />
    </oa:widgets>
    -->
    </script>

    Hi - I'm new to html5 and Dreamweaver, but I've worked with html in the past, so most things aspects aren't foreign to me.
    My question is this: I'm working with an existing html5 template and it had a slider graphics bar near the top. It works fine and scrolls through three pre-made banners.
    The problem is I just added the widget for HTML5 Videoplayer and inserted it into my code. The video box, etc. shows up fine, and will play, but now the slider graphic box at the top doesn't work anymore. Instead it just displays all three banners as images, one on top of the other.
    When I look closer at the script code that the widget embeds, it seems as though the script widget code is not playing well with the existing script code. When I remove the script code that the widget installs, the slider works perfectly again (but the video obviously won't play).
    The exact code is included below. My question is, how can I make the two of these scripts work together???Any help would be great appreciated. Thanks, Blair
    <script src="scripts/elegant-press.js" type="text/javascript"></script>
    <script src="kaltura-html5player-widget/jquery-1.4.2.min.js" type="text/javascript"></script>
    <script src="kaltura-html5player-widget/mwEmbed-player-static.js" type="text/javascript"></script>
    <!--[if IE]><style>#header h1 a:hover{font-size:75px;}</style><![endif]-->
    <link href="kaltura-html5player-widget/mwEmbed-player-static.css" rel="stylesheet" type="text/css">
    <style type="text/css">
    /* BeginOAWidget_Instance_2294029: #kalturaPlayer */
                                  @import url("http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/themes/redmond/jquery-ui.css");
    /* EndOAWidget_Instance_2294029 */
    </style>
    <script type="text/xml">
    <!--
    <oa:widgets>
      <oa:widget wid="2294029" binding="#kalturaPlayer" />
    </oa:widgets>
    -->
    </script>

  • Problem with Java Script after upgrade from BW 3.5 to BI7

    Dear Colleagues,
    We're facing the issue with Java Script after upgrade of BW 3.5 to BI7.
    Just after update we checked the basic functionality and it occured that some of web templates that use Java Script don't work. They generate seelction screen, but after selection the screen becomes blank without any error messages.
    We're currently stucked since web templates weren't converted to BI7 version so they should work exactly as before the upgrade.
    We compared the Java code with other environment that was not upgraded - it's perfectly the same.
    The only explanation that comes to my mind is that some Java Script settings on the server level were changed during the upgrade but I have no idea where I can check that.
    Thanks in advance for any suggestions,
    Andrzej Bobula

    Hi Deepu,
    Thanks, it was great to read your reply and then few minutes later talk to you live on SDN Day!
    Unfortunately, http cache clean-up did not help. But there is another funny thing I found - for exactly the same 3.5 webtemplate html code returned from WebAS 3.5 was different then from 7.0.
    Unfortunately, this editor does not allow to paste complete code, even in CODE brackets, but here are main differences:
    <b>3.5</b>
       if (navigator.appName == "Microsoft Internet Explorer")
    <frame src="/sap/bw/BEx?SAP-LANGUAGE=E&PAGENO=1&REQUEST_NO=1&CMD=GET_TEMPLATE"
    name="Content">
    and
    <b>7.0</b>
       if (navigator.appName.indexOf("Microsoft Internet Explorer")!=-1)
    <frame src="/sap/bw/BEx?SAP-LANGUAGE=E&PAGENO=8&REQUEST_NO=0&CMD=GET_TEMPLATE"
    name="Content" 0nLoad="javascript:loadTitle()">
    (I intentionaly put 0 i/o o in 0nLoad, otherwise Forum's editor does not accept the text.
    How about SAP's claim that technical upgrade from 3.x to 7.0 changes nothing?
    Regards,
    Vitaliy

  • Web.show_document() with javascript

    Hi Guys,
    I'v been searched this forum about web.show_document() with javascript.
    I saw some threads said
    I can do like
    WEB.SHOW_DOCUMENT ('javascript:window.open("http://www.google.com","","fullscreen=no,titlebar=no,location=no,toolbar=no,menubar=no,status=no,resizable=yes");self.close()','_blank');
    and someone said it worked, but it doesn't work in my machine.
    also some one said the javascript engine is not included in Form 10.1.2, so I can not use WEB.SHOW_DOCUMENT function like above.
    My form builder is 10.1.2.0.2 (Production), os is xp sq2 ,ie 6.(ie6 has some tighter security)
    I want to get clarification about this function, can i use the javascript on it or not ? I really want the pop up window without toolbar and customize size. I need do some configuration in formweb.cfg also?
    Thanks in advance. I appreciated every response.
    Appcat

    Hi Jan,
    Thanks for your reply. I check the metalink about it.
    The first solution is
    1. Make forms Developer URL a trusted site in IE to allow script executions.
    For that open Internet Explorer->Internet Option-> Security.
    Select the "Trusted Sites" Option.
    Click on the Sites Button.
    Add the Developer Suite URL in that.
    for example
    http://<Yourmachinename>:8889/
    It doesn't work in my machine ,still can not activate the javascript.
    The second solution is
    2. Place the script invocation code in a html file in Oracle_home/forms/server directory and call it.
    For example :
    Create a simple form.
    In Forms Trigger :
    web.show_document('http://<Yourmachinename>:8889/file.html');
    In the file.html you may enter the code, for example:
    <HTML>
    <HEAD>Heading</HEAD>
    <BODY>
    <SCRIPT LANGUAGE="Javascript">
    window.open("http://www.yahoo.com","_self");
    </SCRIPT>
    </BODY>
    </HTML>
    It also doesn't work in my machine, the problem is http://<Yourmachinename>:8889/file.html can not be found, even i put it under the Oracle_home/forms/server folder, but i click it directly ,the javascript works. that means the URL http://<Yourmachinename>:8889/file.html is incorrect or I should put the html file into other directory. And I also checked the default.env,FORMS_PATH=D:\DevSuiteHome\forms.
    anything wrong with my env?
    Do you have any idea about it?
    Thanks,
    Appcat
    Message was edited by:
    user577805
    Message was edited by:
    user577805

  • Printing different URL with javascript

    I am trying to print a URL using javascript but i do not want to print the current page. I have searched google, this forum and a javascript book and can not seem to figure it out. To exlplain in it generic terms i want to be on one page and tell it to print another. Reason being, I am looking at an overview page and want to print a report made in Oracle reports, (Yes I could load the report and print it but i want to print multiple reports from one button)(The reports do work and are valid) Here is a rundown of what I am doing.
    From a button i am calling a 'url' with the following code:
    javascript:V_PRINT('P50_CUSTOMER_ID','P50_YEAR');
    And then in the html header i have the code: (printing same page twice, just an example)
    <script language="JavaScript" type="text/javascript">
    function V_PRINT (formItem1,formItem2) {
    var formVal1 = document.getElementById(formItem1).value;
    var formVal2 = document.getElementById(formItem2).value;
    var url1;
    var url2;
    url1 = 'http://www.google.com/search?hl=en&q=' + formVal1 + '+' + formVal2;
    url2 = 'http://www.google.com/search?hl=en&q=' + formVal1 + '+' + formVal2;
    url1 = print();
    url2 = print();
    </script>
    This code just prints the current page. I know I am calling print incorrectly and thats where i need the help. Of course I might just be approaching it all wrong. Either way I hope someone with javascript knowledge can help.
    Thanks

    Hello,
    To print a page it has to be open in the browser since all it does it call the browsers print dialog.
    Here is one solution http://www.irt.org/script/508.htm and you can also try a iframe instead of a regular frame.
    If it's crossdomain request like your example here that might cause problems as well. There might be additional problems.
    Carl

  • XML IDOC post to R/3 Via WAS - want to see error content with JavaScript

    Hi,
    I am posting XML IDOCs to our R/3 system via a webpage that I have built with JavaScript.  I am posting to the WAS, which is configured to read the XML IDOC with SAP's standard class handler CL_HTTP_IDOC_XML_REQUEST.  We are on basis 620 support pack SAPKB62041.
    In my webpage, I have the JavaScript code set to read the status and statusText so I can see the response from WAS when I post my XML IDOC.  However, I am getting back very generic information when I encounter a 409 error.  THe statusText is always "input_not_found".  So I debugged the class handler code and found that SAP is returning back the more descriptive error info in HTML format.
    I ran a packet sniffer to see what WAS returns and the info looks like this:
    <html><head><title>IDoc-XML-inbound not ok</title><h1>IDoc-XML-inbound not ok</h1></head><body>
    E:Table Lookup Error:300 Cannot map value for field MESCOD in table ZFI_IF_IDOCORG using values
    SNDSAD = |TE|  and RCVLAD = |GL|  and MESTYP = |ACC_DOCUMENT|</body></html>
    I want to know how I can get my webpage to read this HTML info and store that into an alert so I can read this text that I'm returning back to the HTTP post.
    This is how my script looks.  I'm using IE6.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
         <title>Test XML</title>
    <SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
    <!--
    function XMLHTTPButton_onclick(DataToSend) {
         var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
         xmlhttp.Open("POST","http://some_server:1089/sap/bc/zxml_idoc?sap-client=200&sap-language=EN",false);
         xmlhttp.setRequestHeader("Content-Type", "text/xml");
         xmlhttp.send(DataToSend);
            alert(xmlhttp.Status);
            alert(xmlhttp.statusText);
         alert(xmlhttp.responseXML.xml);
    //-->
    </SCRIPT>
    </head>
    <body>
    <BR>
    This page posts to
    <BR>
    http://some_server:1089/sap/bc/zxml_idoc?sap-client=200&sap-language=EN
    <FORM name=xmlform method=post >
    <P><TEXTAREA style="WIDTH: 623px; HEIGHT: 369px" name=xmlData rows=23 cols=77>
    </TEXTAREA>
    <P>
    <INPUT type="button" value="Submit XMLHTTP" id=XMLHTTPButton name=XMLHTTPButton
    LANGUAGE=javascript onclick="return XMLHTTPButton_onclick(document.xmlform.xmlData.value)">
    </form>
    Previously with this class handler, SAP returned the detailed info back to the "alert(xmlhttp.statusText)" and I had no problem seeing the return info.  But now they have decided to format it in HTML and I don't know how to view this text since it has no ID on it to pull this into an alert box.
    If anyone has any ideas, please let me know.
    Thanks,
    Andrea

    Ok!
    I have solve the problem. So, I was trying to connect via SSO within an user that was not registered in R/3 and I forgot it.
    Sorry for the inconvenience.

  • NEED a java coder to help with a script for a programs of mine.

    I play a game, very competitively, and need someone to make and compile a script for me. I am willing to pay upwards of 100 USD for this script made to MY standards. There will be a lot of work involved...Probably 12 hours studying my game and the purpose of the script(s). I will be buying 2-3 scripts, at roughly 50-100 USD each, depending on the quality. I will transfer the money via paypal, or other means if we can reach an agreement.
    Please IM me at Chadtrapier on AIM or send an email to [email protected]
    Or...Add me on MSN - [email protected]
    We can reach an agreement with these scripts...
    Thank you, I will also check this thread, so reply if you would like.
    ~Chad

    Ummm. Do you think that's a lot of money or something? Think in the range of 40-60 per hour. And if you're talking about warcraft I don't think they java hooks to make bots. I think you need to figure out what your problem is first and maybe learn to code them yourself.

Maybe you are looking for

  • Error on Travel and Expense

    Folks, I am getting this error when I am trying to create new expense report   My Travel Profile   500   Internal Server Error   SAP NetWeaver Application Server 7.00/Java AS 7.00 Failed to process request. Please contact your system administrator. [

  • Moved iTunes Library to external drive- now can't move iPad purchase to Mac

    I moved my iTunes Library to an external drive because I didn't have enough internal HD space to move a movie purchased on the iPad to my Mac. Now iTunes won't sync my iPad - and wants to reformat it - because it says it was formatted on another Mac.

  • What lens should I get for my 5dmk2?

    I shoot a lot of everything mostly scenery and creepy stuff? Looking for a l lens have about 900 to spend!

  • Exporting to Excel - How to control Column Heading?

    I'm working in SSRS 2012.  I have one tablix in the report body.  The tablix has both Row and Column Groups. When rendering in the web browser the report page breaks on a row group.  The Repeat Column Headers property is set to "True" so it shows the

  • Alpha channel in Adobe Media Encoder output

    Hello, I would like to know how to get the same result in Adobe Media Encoder as you get from AE rendering using Quicktime container and PNG + alpha codec. On the left is the SS from playing AME rendered video in any player, even Win preview, on the