Correction to javascript tutorial

In http://download.oracle.com/docs/cd/E14373_01/appdev.32/e13363/javascript.htm#CHDDHAFA, it says to enter "confirmDelete('Would you like to perform this delete action?');" as the URL for the button. This should be "javascript:confirmDelete('Would you like to perform this delete action?');".
I had to go to oracle-dba.com to find that out.
Also, the "Contact us" link on that page does not provide any way to contact Oracle.

http://discussions.apple.com/thread.jspa?threadID=2244015&tstart=0

Similar Messages

  • JavaScript Tutorial

    I am a developing web designer/producer and I am about to
    jump into the world of JavaScripting. Can anyone recommend a decent
    tutorial that I can view online and learn the basics? Any help is
    greatly appreciated.

    smurfo68 wrote:
    > I am new to javascript also. If, you do a google search
    for javascript
    > examples or tutorials. You will find a lot of sites with
    free tutorials and
    > information. Here are some links to some tutorials that
    I have been reading:
    >
    >
    http://www.tizag.com/javascriptT/index.php
    >
    http://www.codetoad.com/javascript/
    >
    http://www.getfreesofts.com/scriptscategory/8/0/1/0.html
    >
    > These are just a few. Good Luck!!!!!
    >
    www.irt.org is an old favourite of mine.
    Steve

  • How to correctly place javascript as text in these fora

    I recall having come across some advice about how to insert lengthy JavaScript in the Adobe-fora but cant remember or locate the thread; if I remember correctly it was implied that simply copy-pasting the lines can create problems of some kind.
    Could someone please point me in the right direction?
    Happy new year
    pfaffenbichler

    Thanks a lot for the prompt reply  unfortunately (in this case) I work on a Mac.
    But I guess I can to do the changes listed in the Script with »Find and Replace«, so that should work out.
    Thanks again!

  • Why doesn't my javascript site work in Safari? (works on PC/IE)

    Can I find a site that details the problems that Safari has in correctly parsing javascript and/or rendering HTML generated by that javascript?
    My site has some frames, some document.write()'s, some simple on-the-fly pages with nothing fancy, some pictures, some links, totally not rocket science. It works great on PC/IE but none of the Mac browsers (incl. IE5 and FireFox and especially Safari) will handle it. They kinda sorta run SOME of my script, but they have lots of errors and the site just "doesn't work right" anywhere but in IE on Windows. I didn't use any code that's Windows-specific, either.
    I am seriously not going to do a browser detection and write multiple sets of codes for the various browsers (God, how many are there? over a hundred according to w3.org) ... it just ain't gonna happen, so spare me that lecture cuz I've been there before and I ain't going back.
    Am I screwed? or does somebody out there actually know how to handle this. Woe to us all, from the lack of standards on the web! How do we put up with it?
    I really appreciate any insights and assistance dealing with this. Thanks!
    -- töff
    g5   Mac OS X (10.3.9)   meh

    Welcome to Apple Discussions
    Wish I could help you but creating java code is not one of my strengths. I do create the pages on my web site though (using GoLive CS). I'm amazed how differently each browser renders the page. I came across this site via a Google search. It may be germane to your question?
    You may have better success though posting your question on the MacFixit Internet forum.
    Good Luck.
    iMac G5 Rev C 20" 2.5gb RAM 250 gb HD/iBook G4 1.33 ghz 1.5gb RAM 40 gb HD   Mac OS X (10.4.8)   LaCie 160gb d2 HD Canon i960 printer

  • Is javascript capable of exporting specific artboards to a jpg?

    I can export a single artboard to a jpg using the GUI but "artboardRange" doesn't do anything when exporting to a jpg.
    I can use the artboardRange in the pdf save options and that works fine but, while the artboard selection is there in the jpg export dialog in the windows gui I can't get this to work in javascript.
    Am I going to have to copy my content to a separate document containing only what I want and then export from that?
    I tried changing the visibility of objects I didn't want on the jpg but that just leaves a blank area in the resulting jpg even with "artboardClipping" = true. Actually, I don't know that artboardclipping even does anything from what I've tried.
    Any suggestions or does this just not work in JavaScript with CS4?
    Edit:
    If I export to a jpg and use the artboards then a separate jpg is made for each artboard included with a prefix of the artboard # in the name, i.e. filename-01.jpg and filename-02.jpg. It'd be great if I could script this correctly.

    Yeah, these are only document methods in Illustrator.
    Actually, saveAs using PDFSaveOptions doesn't work right either. If I specify an artboard with artboardRange is doesn't do anything different; it just puts each artboard on a separate page in a pdf. However, if I set artboardRange to an empty string it actually changes the name of the current document to a .pdf and THEN I can resave it by adding the artboardRange during the second try which seems a bit odd.
    At this point I don't believe the "Use Artboards" and the "Range" options which are available in the GUI function correctly in Javascript for either saveAs or exportFile which is annoying as I need this to work.
    Also, the PDFSaveOptions.artboardRange string is actually validated and must be either blank or a valid range expression. If I have 2 artboards and I specify '3' it'll fail but if I specify '1' or '2' it still saves all of the artboards. The saveMultipleArtboards option does nothing.

  • Projects first created in Windows are now not publishing correctly from a Mac

    I've been using the Windows version of Captivate for months without issues, putting together a large number of HTML5 courses, non-responsive. Lots of custom javascript via the 'Execute JavaScript' action for smartshapes, etc.
    I just purchased a new Macbook Pro and then purchased a subscription license for Captivate. Now my cptx files that were working fine when opened and published from Windows Cp are very not publishing correctly - the javascript does not execute, etc. Everything *appears* fine within Captivate but I get issues upon preview/publish.
    Thank goodness I have the 30 days to cancel the subscription and get a refund...but before I do that - has anyone else tried switching to a Mac and run into problems with Captivate projects?
    Both machines have 8.01 installed. The only thing I can think of is, after installing 8.0 via the subscription download, I then did the 'Check for updates' and it went and downloaded and installed the 8.01 update. When I did this on Windows I followed the directions on a blog post somewhere (sorry - I forget the name!) that stressed deleting some directories on the machine first before running the update. I assumed the subscription files would be fixed/patched....

    After struggling with this last night I took a look again this morning and narrowed down and corrected the problem. Basically, this is what happened to cause the issue and how I resolved it. Hopefully it helps others in the future.
    Steps
    Create project in Windows version of Cp (I was using version 8.01).
    For my client's requirements, which are quite unique and complex compared to the typical Cp project, custom quiz questions/scoring had to be developed. Since these are HTML5 (non-responsive) courses, and Javascript is the fastest/most efficient way to do this, I used Javascript extensively for quizzes via the 'Execute Javascript' action. So for quiz questions, each answer is simply a smartshape (transparent, with answer text in it) that triggers the 'Execute Javascript' on click. In addition, on many of the quiz slides there are Edge Animate/HTML5 interactions embedded.
    Worked fine on windows upon publish. But when I opened on a new Mac and published, when a question answer was clicked nothing would happen.
    Turns out the problem seems to be with the text in the Javascript window. I think it somehow gets corrupted, though it looks fine. I had to literally delete the javascript, save it, and then copy it back in. Once I did that, it works.
    I've invested too much time in this project so far, so don't want to risk any more major issues popping up like this, so I switched back to Windows and canceled my subscription this morning. Fortunately I have a license from my employer for Windows and will just use that with Boot Camp.

  • Javascript Conditional Division Resize

    I can't get code like this to work, the logic is right, but I
    can't get it to work on 2 divisions that properties initially the
    height is set to auto.
    function resizeContent(){
    if(document.getElementById("content_left").style.height <
    '405px'){
    document.getElementById("content_left").style.height='405px';
    if(document.getElementById("content_right").style.height
    < '405px'){
    document.getElementById("content_right").style.height='405px';
    }

    Hello,
    First you didn't make all the changes that were suggested before
    this
    &lt;script language="JavaScript1.1" type="text/javascript">
    function beware()
    if(html_GetElement('P3_BOARD_GROUP_TYPE_ID')==6)
    {(!(confirm('Warning!  This will change all Timers to default values.  Continue?')))}
    {html_GetElement('P3_EMULATION').focus()}
    &lt;/script
    still wouldn't work anyway
    now what you need to do is either supress or allow doSubmit in your javascript.
    So first change the select to a regular select so the proper onchange is applied
    Second use this javascript
    &lt;script language="JavaScript1.1" type="text/javascript">
    function beware(){
    if(html_SelectValue('P3_BOARD_GROUP_TYPE_ID')==6){
    var answer = confirm('Warning! This will change all Timers to default values. Continue?');
    if(answer){doSubmit()}
    else{html_GetElement('P3_EMULATION').focus()}
    &lt;/script>
    You should take a quick run through this javascript tutorial http://www.w3schools.com/js/js_intro.asp and hour or two spent here is going to save you countless hours later and allow you to build more adavced (and working) functionality.
    Carl

  • ReplaceAll regexp and JavaScript

    I want to write a function that will escape special characters in a String so that they render correctly in JavaScript.
    For example, if a string contains a tab, I want the tab to be replaced by \t and so on for all the escape characters : \', \", \\, \b, \f, \n, \t and \r.
    Here is my function so far :
    public static String JSStringFormat(String value) {
        String result = "";
        if (value != null) {
            result = value;
            result = result.replaceAll("\'", "\\\\'");
            result = result.replaceAll("\b", "\\\\b");
            result = result.replaceAll("\f", "\\\\f");
            result = result.replaceAll("\n", "\\\\n");
            result = result.replaceAll("\t", "\\\\t");
            result = result.replaceAll("\r", "\\\\r");
        return result;
    }So far, this works... But I can't find the solution for \\ and \"... I've tried many things but nothing works...
    Anyone can help ?

    replaceAll("\"", "\\\""); // I thinkIt throws compilation error on this line itself. If
    you are using an IDE, it wont allow you to go further
    with that line.
    replaceAll("\\\\", "\\\\\\\\"); // I think.
    I had a slight error in the quote one the replacement string needed two more quotes. This works:         String str = "\\a \"xyz\" \\ b";
            System.out.println(str);
            //System.out.println(str.replaceAll("\\" , "\\\\\\"));
            System.out.println(str.replaceAll("\"", "\\\\\""));
            System.out.println(str.replaceAll("\\\\", "\\\\\\\\"));Your line (commented above) gives Exception in thread "main" java.util.regex.PatternSyntaxException: Unexpected internal error near index 1
    ^
    regEx is particular about special characters like $
    and \.Yes, I know.
    So when you are using replaceAll, you have to
    be careful with regex, and replace them. For example,
    if you have a $ to be replaced, you have to replace
    it the following way.
    str.replaceAll("\\$", "\\\\\\$");Yes.
    >
    so, instead of directly using the $, you have to use
    "\\" that tells the regEx, yes this is a special
    character and treat it normally, like any other
    character.Yes.
    Along those same lines, like I said, you need \\ to get a single \ in a Java String. Then, if you want a literal \ in the regex, you need to provide the regex compiler with \\, which means your Java String literal must be \\\\.

  • Error testing Business Rules tutorial (rules-104 Order Approval)

    Hi all,
    I followed step by step "rules-104" tutorial and when testing I get the following exception:
    Fact not found in the rule engine working memory, rule session execution failed.
    The rule session 4 failed because an instance of the fact order.OrderApproval could not be found in the working memory of the rule session.
    This is most likely a rule modeling error. The decision service interaction expects the fact instance to exist in the working memory of the rule session. Check the rule actions in rule designer and make sure that a fact of the expected type is being asserted. Contact oracle support if error is not fixable.
    The error message is pretty clear, but I don't know how to fix it
    Any idea what am I missing?
    Thanks

    Hi Phil,
    I think you are referring to tutorial "rules-102" which makes use of IF-THEN rules as you say. However, tutorial "rules-104" makes use of DT and it looks like bucketset used are correct (according with tutorial solutions)
    Any idea?
    Thanks

  • ADF validator or JavaScript for client side validation ?

    using JDev and ADF 11g
    Problem description : To apply validations such as date range check, pattern matching, maxlength etc.. on ADF Faces Components.
    Solution 1: Use ADF validator such as Reg Expr validator, Max Length validator
    Souliton 2: Write Javascript code for validating the component's value at cleint side.
    When using ADF Validator for such type of validation checking, a request is send to the server for processing (additional overhead) . However we can do such validations with javaScript functions without the need to interact with the server. So, what benefit does ADF Validator serves when one needs to implement such validations ?
    Please share your views...

    H,
    afaik, client side validation in ADF Faces suppresses server round trips if a validation error is detected on the client. Only if no problem is found, the server side validation is challenged upon submit (so no extra round trip for validation). Shay is absolutely correct. JavaScript is a convenience but never a solution.
    Here's how to create a custom validator with a client and server side implementation : http://download.oracle.com/docs/cd/E15523_01/web.1111/b31973/af_validate.htm#BABEIIDD
    Frank

  • Javascript is somewhat blocked on FF 6 while works OK w all other browsers

    This is a browser compatibility issue
    Main menu on my index page http://www.apexservice.ru/en/default.htm is not properly activated when mouseover with the new FF 6 (menu item is highlighted but does not enable/open the submenus), while the previous FF3 & FF4, as well as IE 7,8 and Opera10 all open the submenus correctly.
    JavaScript is enabled.
    I did not test with FF5 though as kept using FF4 and then leapfrogged to FF6.
    Any idea what to tweak?
    Regards,
    Sergey Hramov

    Firefox only supports innerHTML and not outerHTML, so you need to use other code for Firefox.
    See e.g.:
    * http://snipplr.com/view/5460/outerhtml-in-firefox/
    * http://stackoverflow.com/questions/1700870/how-do-i-do-outerhtml-in-firefox

  • Javascript issues

    I guess this subject has been address before but I can`t solve the problem.
    when I login to a some sites that requires user id and password all i get is a blank page. This is in all browsers.
    or if I write any javascript it will not be displayed.
    (All script is correct.)
    Javascript is enabled in all browsers and popups unblocked.
    Help need
    macbook pro Mac OS X (10.4.8)
    macbook pro Mac OS X (10.4.8)

    Click here and follow the instructions, or if there’s a type of adware not covered by them on the computer, these ones. If you're willing to use a tool to remove it(you don't need to, but may find it easier), you can instead run Adware Medic; this link is a direct download.
    (124887)

  • Javascript conditional check

    Hi,
    See Javascript below.
    I'm trying to pop-up a warning message window conditionally if P410_BOARD_GROUP_TYPE_ID = 6 and the user selects a different value in the Select List. It seems ilke I am either A) passing in the value of P410_BOARD_GROUP_TYPE_ID incorrectly, or B) choosing the wrong type of event handler. Can someone spot where I'm going wrong? It's as though the function isn't even being calling on my page when I run it.
    <b>In the HTML Form Element Attributes box for P410_EMULATION:</b>
    onSelect=beware('P410_BOARD_GROUP_TYPE_ID');
    <b>In the HTML Header:</b>
    <script language="JavaScript1.1" type="text/javascript">
    function beware()
    if(html_Element('P410_BOARD_GROUP_TYPE_ID')=6)
          {(!(confirm('Warning!  This will change all Timers to default values.  Continue?')))}
          {html_GetElement('P410_EMULATION').focus()}
    </script>

    Hello,
    First you didn't make all the changes that were suggested before
    this
    &lt;script language="JavaScript1.1" type="text/javascript">
    function beware()
    if(html_GetElement('P3_BOARD_GROUP_TYPE_ID')==6)
    {(!(confirm('Warning!  This will change all Timers to default values.  Continue?')))}
    {html_GetElement('P3_EMULATION').focus()}
    &lt;/script
    still wouldn't work anyway
    now what you need to do is either supress or allow doSubmit in your javascript.
    So first change the select to a regular select so the proper onchange is applied
    Second use this javascript
    &lt;script language="JavaScript1.1" type="text/javascript">
    function beware(){
    if(html_SelectValue('P3_BOARD_GROUP_TYPE_ID')==6){
    var answer = confirm('Warning! This will change all Timers to default values. Continue?');
    if(answer){doSubmit()}
    else{html_GetElement('P3_EMULATION').focus()}
    &lt;/script>
    You should take a quick run through this javascript tutorial http://www.w3schools.com/js/js_intro.asp and hour or two spent here is going to save you countless hours later and allow you to build more adavced (and working) functionality.
    Carl

  • JavaScript eBook

    Is there any free comprehensive javascript tutorial ebook to refer ?

    Check this giuciao.blogspot.com
    Message was edited by:
    user485129

  • Call javascript function in an html page, how to?

    How can i call a javascript function in an html page were my flash catalyst swf is?

    I think you will need to import the catalyst fxp into flash or flash builder and add action script to invoke the javascript.
    These two links may be of use
    http://blog.codefidelity.com/?p=15
    http://www.switchonthecode.com/tutorials/flex-javascript-tutorial-simple-interaction
    I hope that helps

Maybe you are looking for