Flatten the problem of the Page JavaScript Debugger

I found a common solution online on the flattening of comments in a PDF file:

1) press CTRL + J to open the debugger window

(2) delete anything out of the window of the console

(3) type this.flattenPage)

(4) leave the cursor in the line and press CTRL + ENTER

I tried this on two computers, each running Windows XP Pro SP3 with Acrobat 9.1.1 Professional it worked on one but not the other. Those who did not gave this error message:

This.Flatten is not a function

1:Console:exec

undefined

Any ideas why it would work on one and not the other?

This.Flatten is not a function

1:Console:exec

undefined

The name of the function is flattenPages. You have typed a space after flattening?

Tags: Acrobat

Similar Questions

  • problem with javascript in the page jspx

    Hello

    using the last jdev from RTO 11 g.

    I'll have more javascript which works fine if I try out jdev using a html file but fails when I run the page with the error:
    OracleJSP error: oracle.jsp.parse.JspParseException:
    Error: oracle.xml.parser.v2.XMLParseException (/ adflib/myapp/setup/ui/page/CloseBrowser.jspx):
    [Line no.: column 37 #: 28: name expected instead of].


    JavaScript:

    < af:resource type = "javascript" >
    function getCompId (name) {}
    name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); "
    regexS var = ' [------? &] ' + name + ' = ([^ & #] *)';
    var regex = new RegExp (regexS);
    results var = regex.exec (window.location.href);
    If (results == null) return "";
    otherwise return results [1];
    }
    < / af:resource >

    Hello

    JSPX is a strict xml page... the problem is that your function has a few characters that are interpreted as part of the xml...
    As far as I know using & in xml are not valid... you use & amp; instead...
    so, you should try including your script inside cdata like this

    
    
  • Problem with the help of the $s javascript function to fill a page element

    Hello Oracle APEX community,

    I work on a page dashboard of exploration down and have been a problem when I try to fill a Page of text (hidden or not) element using javascript built in function $s.
    The feature works very well when the data is a number such as dept_id (even if the field type is varchar type). However, trying to pass what is a text the process fails, unless a value is hardcoded as parameter to the function. So, for example, I have a table with constituents by State counties. I would like to fill out (filter) a table based on when you click a bar for a State without having to submit the page. I use dynamic actions and built in javascript function in the SQL code for the graph to achieve; But even once, it works fine when I use a field varchar as the FIPS code (FIPS for Texas is "48"), but when I try to fill the page element by using the abbreviation of the State "TX" (new varchar), it fails.

    Here is an example of code that works:
    SELECT 'javascript:$s("P1_DEPTNO",'||d.deptno||')' LINK,
    d.dname LABEL,
    sum(e.SAL) sal
    FROM emp e, dept d
    where e.deptno = d.deptno
    group by 'javascript:$s("P1_DEPTNO",'||d.deptno||')', d.dname 
    And here is an example of code that does not work:
    SELECT 'javascript:$s("P1_DEPTNO",'||d.loc||')' LINK,
    d.dname LABEL,
    sum(e.SAL) sal
    FROM emp e, dept d
    where e.deptno = d.deptno
    group by 'javascript:$s("P1_DEPTNO",'||d.loc||')', d.dname 
    However, when I hard code a value the script text works:
    SELECT 'javascript:$s("P1_DEPTNO","BOSTON")' LINK,
    d.dname LABEL,
    sum(e.SAL) sal
    FROM emp e, dept d
    where e.deptno = d.deptno
    group by 'javascript:$s("P1_DEPTNO","BOSTON")', d.dname
    ORDER BY d.dname 
    I encounter this problem on several versions of the APEX: (4.0.2.00.07 - local installation) and (4.1.0.00.28 - apex.oracle.com)

    Does anyone know of this problem and how to solve? I have looked for the parameters of the element of the page itself and can not understand.
    I rewrote my sql to use the fields of value of my tables instead, but I have a few objects on the page that will really depend on the data of base characters instead.

    Thank you
    Wayne

    In your javascript that you generate, surround your value with quotes and it will then should always work with the numbers and strings (your channels are probably interpreted as variable names and that they do not exist when running, so slip out).

    Example:

    SELECT 'javascript:$s("P1_DEPTNO","'||d.loc||'")' LINK,
    

    Published by: gti_matt on August 16, 2011 09:50

  • Problem with onload javascript in the page of the apex

    I want to run some javascript by their SUMMIT when the user loads the page, but I can't get the onload function to work. I'm new to javascript, so it's probably a simple error on my part.

    All I want to do is to change the background color of a field (P5_GRPT) based on the value of another field (P5_MIN_DAYS). I just want something basic that works so I can build on that and make it more elegant/generic, but at the present time, the script below seems to have no effect. Any help would be appreciated. I put the focus of cursor attribute to ' don't focus not cursor ' (Apex version 3.01.00.12)

    Header html page:
    <script type="text/javascript">
    Function trafficlight()
    {
    c = document.getElementById("P5_MIN_DAYS").value;
    switch(c)
    {
    case 1:
    $x("P5_GRPT").style.backgroundColor = "green";break;
    case 2:
    $x("P5_GRPT").style.backgroundColor = "yellow";break;
    default:
    $x("P5_GRPT").style.backgroundColor = "red";break;
    }
    }
    </script>
    The body of the html page:
    onload="trafficlight();"

    Hello

    I think that the value of your item is interpreted as a string, not as a number.

    Try this:

    function trafficlight() {
      c = parseInt(document.getElementById("P5_MIN_DAYS").value);
    
      switch(c) {
        case 1:
          $x("P5_GRPT").style.backgroundColor = "green";break;
        case 2:
          $x("P5_GRPT").style.backgroundColor = "yellow";break;
        default:
          $x("P5_GRPT").style.backgroundColor = "red";break;
      }
    }
    

    Hope this helps,
    Dirk

  • How can I stop Firefox displaying Javascript/CSS inline when viewing the Page (CTRL + U) Source?

    Recently, I noticed that the Javascript and CSS files are shown online while you watch a page source. Is there a way to stop the Firefox to do this?

    Thanks for the test.

    When I try Reddit, this stylesheet is not inline in the page.

    I can't access/browsing Netflix, I'm redirected to a login screen. But it seems strange that when I try to navigate around Netflix, I'm still on HTTPS and you load on HTTP.

    This problem happens only in the pages of HTTP and not HTTPS pages?

    Is it possible that some sort of proxy or security filter modifies the page until it reaches your browser?

  • Extension of JavaScript causing a reload of the page

    Hello

    I created an extension of fast, based on dialogue by Tim Neil spinner code I found here https://github.com/tneil/WebWorks/tree/master/api/ui/Spinner/src/blackberry/ui/spinner

    Now, I have a basic function that takes a string and returns in a callback. This will be modified later to take a path of the image and returns a string containing an image of the data encoded in base64.

    Including the html from the application and function extension containing a script below.

    My problem is that on the successful recall, my 'onLoad' fuction is called again.

    Is there anyway to stop this happenning. OR I'm doing something wrong.

    See you soon.

    
    
    
    
    
    
    Invoke Extension
    
    
    
    
    ///===================================================
    
    public final class FunctionTest extends ScriptableFunction {
        public static final String NAME = "myfunction";
        private ScriptableFunction _callback = null;
    
        public Object invoke(Object obj, Object[] args) throws Exception
        {
            if (args.length == 2) {
                String strPath = (String)args[0];
                // Now get the callback method to fire
                _callback = (ScriptableFunction)args[1];
    
                Object[] result = new Object[1];
                result[0] = strPath;
                // Create a final thread safe result to pass into the thread object
                final Object[] threadedResult = result;
                // Create a new thread to make sure that the invoke of the JavaScript callback
                // does not initiate from the UI thread.  This can otherwise cause a deadlock scenario
                new Thread () {
                    public void run() {
                        try
                        {
                            // Pass the result of the spinner back to the handle of the JavaScript callback
                            _callback.invoke(_callback, threadedResult);
                        }
                        catch (Exception e) {
                            throw new RuntimeException(e.getMessage());
                        }
                    }
                }.start();
    
            }
    
            return UNDEFINED;
    
        }
    

    Reloading is caused the href = "" in your anchor tag. " A href empty, the page reloads. Try to use a button to trigger your code instead:

  • Smartphones blackBerry 8330 "is a problem in the attempt to make the page"

    On my BB 8330, this message keeps coming up for me "a problem occurred while trying to make the page" - I found an older post that suggests

    "Whetehr to check your browser supports java or not. Do the following-

    Go to Internet browser-> click on menu then Options-> browser Configuration-> check the JavaScript support and allow JavaScript popups. »

    I did and it did not help.

    Any suggestions/help would be appreciated (prefer not to load third party software something that should work without it).

    Thank you.

    Hi and welcome to the Forums!

    On the same page that you set javascript, you can also change how your BB browser identifies Web sites. Try to settle on IE or FF and see if that helps as well. There are many parameters various institutions - the best thing to do is to look through them the combination that best suits your situation.

    See you soon!

  • JavaScript doesn't work is not on the page navigation

    Hello

    I have a manual tabular presentation on the emp table. There is a javascript function that calls for the deptno column change. If deptno is RESEARCH (20), then it turns off the field for this employee hiring date.


    The same function is called on page load using the threshold:

    $("[name=f04]').change ();


    It works fine when the page is loaded for the first time. When I navigate to see the next set of rows (for example, 16 to 30) then the javascript code does not work.


    An example can be seen on apex.oralce.com:

    https://Apex.Oracle.com/pls/Apex/f?p=30264:28


    Workspace: apex2014

    Username: forum

    Password: abc123

    Application: 30264 Dev2

    Page: 28

    Can someone explain why it behaves like this?

    Thank you

    ZKay wrote:

    I have a manual tabular presentation on the emp table. There is a javascript function that calls for the deptno column change. If deptno is RESEARCH (20), then it turns off the field for this employee hiring date.


    The same function is called on page load using the threshold:

    $("[name=f04]').change ();


    It works fine when the page is loaded for the first time. When I navigate to see the next set of rows (for example, 16 to 30) then the javascript code does not work.

    Can someone explain why it behaves like this?

    This occurs because the function is called only once the page loads, and therefore affects only the lines that existed when the page is initially rendered. Page navigation performs a partial page of AJAX (PPR) refresh that completely replaces a set of lines of form (including their properties dynamically applied) with a new series with different properties. It is necessary to apply the function whenever a new set of lines is displayed. The best way to proceed is to call the function using an dynamic after Refresh with a dynamic range action:

    Event: After refresh

    Selection type: Region

    Region:

    Action: Run the JavaScript Code

    Scope of the event: Dynamics

    Fire on Page load: Yes

    Code:$('[name=f04]').change();

    Note that rows 13 & 18 in your function cause errors of execution. As I do not understand the purpose of these that I commented on them in order to demonstrate the dynamic action solution:

    function test2(pThis){  // orpheus4192
      var v_item_value = pThis.value;
      var v_hiredate_item = $(pThis).closest('tr').find('td[headers=HIREDATE] input[name=f05]');
      var v_hiredate_button = $(pThis).closest('tr').find('td[headers=HIREDATE] button');
      var currIndex = $('select[name="'+pThis.name+'"]').index(pThis);
      var currRow  = currIndex+1;
    
        //alert(pThis.name);
      if ( v_item_value == '20' ){
          v_hiredate_item.prop('readOnly',true);
          v_hiredate_button.prop('disabled',true);
    
          //document.getElementById("f08_"+[currRow]).disabled=true;
      }
      else{
          v_hiredate_item.prop('readOnly',false);
          v_hiredate_button.prop('disabled',false);
          //document.getElementById("f08_"+[currRow]).disabled=false;
      }
    }
    

    Things are not helped by the mixture of techniques here. The code would be easier to understand and maintain if a coherent approach was followed. It is recommended to always use jQuery to select and manipulate items, then select the items of dynamically across the table from the declarative mode headers attributes, rather than trying to understand the absolute values of ID from the control of the name and line numbers. It's much more intuitive, generally requires less code and is waterproof later insertions and changes in the order of the columns. Potential problems are only the changes to the control type or the column alias (because the latter is generally required in the selector), but these changes are likely to occur less frequently.

    Do not forget that to get the headers consistent and understandable static ID selectors must be applied manually to the IR columns in APEX 5.0...

  • Web site is now in the center of the page, built the new site using 'cc', but with some problems

    Hello all I said that I would stay with the new site and as well as I have one or two small issues, starting by!

    New Web site, rollover buttons with not color in place when you click

    And someone told me that it is a very good site, but do not show the images in the box with the yellow frame upwards unless I tilt the screen at a weird angle, I think he means the image of hero! and sounds

    as it uses a Tablet

    I built this website using the tutorial by David Powers l http://www.adobe.com/devnet/dreamweaver/articles/first_website_pt1.htm sent to me by Hans-Günter

    I could have made one or two mistakes when creating this site, I take my hat off to you, the Web designers, it took me a week to build you could have dune in two hours lol

    Please can someone take a look and help me with problems who need a fix

    Thank you very much for your time

    It was the old site

    old website.jpg

    This is the new website

    new website.jpg

    The address is http://www.lawrenceg.com

    This is the code to the Index.html page

    <! doctype html >

    < html >

    < head >

    < meta charset = "utf-8" >

    < title > < /title > Home Page

    < link href = "styles/main.css' rel ="stylesheet"type =" text/css">"

    < style type = "text/css" >

    body, td, th {}

    color: #999999;

    }

    < / style >

    <!-the following script tag downloads a font of Adobe Edge Web server fonts to use in the web page. We recommend that you do not modify it.-->

    "< script src="jQueryAssets/jquery-1.8.3.min.js "type =" text/javascript"> < / script >

    < script >

    var __adobewebfontsappname__ = "dreamweaver".

    function MM_openBrWindow (theURL, winName, features) {//v2.0

    Window.Open (Theurl, winName, Features);

    }

    < /script >

    " < script src =" http://use.edgefonts.NET/source-Sans-Pro:N6, N2:default.js "type =" text/javascript"> < / script > "

    <!-[if lte IE 7] >

    < script type = "text/javascript" src = "js/html5shiv.js" > < / script >

    <! [endif]-->

    < / head >

    < body >

    < div id = 'wrapper' >

    < header id = "top" >

    < h1 > < img src = "images/contact_page - image_47.png" width = "43" height = "47" alt = "" / > My Studio < / h1 >

    < nav id = 'mainnav' >

    < ul >

    < li > < a href = "index.html" class = 'thispage' > home < /a > < /li > "

    < li > < a href = "About Lisezmoi.html" > about me < /a > < /li >

    < li > < a href = 'Work.html Studio' > work in Studio < /a > < /li >

    < li > < a href = 'The Gallery.html' > The Gallery < /a > < /li >

    < li > < a href = "Us.html of Contact" > contact us < /a > < /li >

    < /ul >

    < / nav >

    < / header >

    < div id = 'Heroes' >

    < section >

    < h2 > < / h2 >

    < H2 > welcome to my workshop! < / h2 >

    < p > my name is Lawrence; I'm a photographer & amp; Photographic artist < /p >

    < p > I have kept this site simple and to the point with no unwanted useless stuff, we have a system of full navigation for your wedding rings at the top if you do not have to keep coming back to the home page every time, check us on < a href = "#" onClick = "MM_openBrWindow ('https://www.facebook.com/LawrencesPhotoStudio ',' Facebook ',' location = yes, scrollbars = yes wid th = 1200)" (, height = 600') "> Facebook < /a > < a href =" # "onClick =" MM_openBrWindow ('https://twitter.com/Lawrencegtraing ',' Twitter ',' location = Yes, scrollbars = yes, width = 1200, hei ght = 600') "> Twitter < /a > < a href =" # "onClick =" MM_openBrWindow ('http://www.flickr.com/photos/lawrenceg/ ',' Flickr location ',' = yes, scrollbars = yes, width = 1200, height is 600') "> Flickr < /a > < /p > "

    < / item >

    < img src = ' home_page - image.jpg "alt ="image of the studio homepage"/ > < / div >

    < section id = 'hand' >

    < h2 > this site works best in internet explore! < / h2 >

    < p > you can always use firefox and google chrome if you want, this site looks a little better when displayed in internet explore. < /p >

    < p > if you decide to buy all our prints, framed or canvas prints! < /p >

    < p > all comes with 30 day money back guarantee guarantee and is sold through our secure payment site < a href = "#" onClick = "MM_openBrWindow ('http://lawrence-graves.artistwebsites.com/ ',' FineArtAmerica ',' location = yes, scrollbars = yes, width = 1000, height is 600')" > Fine Art America! < /a > < /p >

    < p > so, how can we help you, you are looking for something a little special to hang on your wall, perhaps you have a family to come a meeting < a href = "#" onClick = "MM_openBrWindow ('http://weddindimages.blogspot.co.uk/',",' location = yes, scrollbars = yes, width = 1000, height = 80 0') "> wedding or an important party < /a > as a new addition to the family? < /p >

    < p > maybe you think that < a href = "#" onClick = "MM_openBrWindow ('http://childrensphotography2013.blogspot.co.uk/ portraits ',' ',' location = yes, scrollbars = yes, width = 1000, height is 800')" > special portrait of children < /a >, in order to capture a moment in time can be invaluable and don't forget your < /p > baby's first portrait

    < p > < a href = "#" onClick = "MM_openBrWindow ('http://petsimages2013.blogspot.co.uk/ ',' animals ',' location = yes, scrollbars = yes, width = 1000, heig ht = 800')" > what our pets < /a > after all what they are part of the family too! < /p >

    < p > sometimes we need a photographer to capture a very special moment, but to capture the excellence you need of an artist who can produce the results you are looking for < /p >

    < h2 > working with Photoshop! < / h2 >

    < p > sometimes your standard photographer in not right for some assignments and you need professional image editing services, check these examples below < /p >

    < p >

    < side class = "floatleft" > < a href = "#" > < img src = "images/The_art_of_alteringan_image_SMALL.jpg" alt = "working in photoshop" width = "200" height = "140" onClick ="MM_openBrWindow (' images/The_art_of_alteringan_image.jpg', 'photoshop1 ',' location = Yes, scrollbars = yes, width = 1040, height is 740')" / > < /a > < / side > "

    < /p >

    < p > side view aside, take a look at this image! This was photographed on a rooftop of the apartment on the island of Kos, Greece, when the Sun was high at about 14:00 on a very hot day. As you can see there are things that need to change in the image on the left, we had only one or two small changes! to activate this drad look image in beautiful photo! < /p >

    < p > < / p >

    < h2 > digital horizons with layer cache < / h2 >

    < p > what is a new layer digital background for this special image that needs a complete makeover! < /p >

    < p >

    "< side class ="floatleft"> < a href =" # "> < img src ="images/pets_small1.jpg"alt ="Pet Photography"width ="200"height ="140"onClick =" MM_openBrWindow ("images/pets_large1.jpg ',' PetPhotography ',' location = yes, scrollba rs = yes, width = 1060, height is 720')" / > < /a > < br >

    < / side >

    < /p >

    < p > check out it! This consisted of one of our Pet photography photo shoots we have done in 2011 for one of our customers, that they wanted both dogs in the same picture, but some dogs do not want to play. So we photographed and then separately to the angle that we wanted, so they would be present in the new digital background! < /p >

    < p > < / p >

    < p > these are some of the adjustments and improvements we can do, you can find more examples of our editing inside the work studio page! < /p >

    < p > < / p >

    < p > < / p >

    < / item >

    < id side = "sidebar" >

    < h2 > check out our gallery!

    < / h2 >

    < p > you can check out some of our work in the Gallery, loves animals, then check out some of our animals wild black and white images, portraits and photography pet < /p >

    < h2 > free reviews and tutorials! < / h2 >

    < p > you can find some camera and lens customers, more tutorials Photoshop and photography on the Facebook pages and Twitter < /p >

    < h2 > visit our store! < / h2 >

    love Art, check out < p > < a href = "#" onClick = "MM_openBrWindow ('http://lawrence-graves.artistwebsites.com/',",' location = yes, scrollbars = yes, width = 1000, hei ght = 600') "> Fine Art America < /a > < /p >

    < p > each purchase includes a money back guarantee! < /p >

    "< div class ="floatleft"id ="figcaption"> < a href =" # "> < img src ="Images/What_you_looking_at_small.jpg"alt ="Birds of prey"width ="200"height ="136"onClick =" MM_openBrWindow ("images/What_you_looking_at.jpg ',' BirdOfPrey ',' location = yes, llbars = yes, width = 1060 CORS, height is 730')" / > < /a > < / div >

    < p align = "left" > This is one of the many images, we have to sell, you can choose print, framed print or a canvas we also sell metal printing, acrylic, iphone greeting cards and galaxy phone case too! < /p >

    < h2 align = "left" > Photo restoration work! < / h2 >

    < p align = "left" > we do also some digital photo restoration work; restore the old black and white! Remove any unwanted photos and much more! < /p >

    < h2 > new sets of digital background! < / h2 >

    < p > Our Digital Background Sets will come with complete coverage in a layer, set of images and more < /p >

    < p > each set will come with a video tutorial showing you how to use these fabulous games with your own images < /p >

    < p > set to be launched in 2014 < /p >

    < p > or if you prefer, you can simply send us your pictures and let us do the work for you < /p >

    < p > we charge only a small fee for this service! < /p >

    < p > < / p >

    < / side >

    <>footer

    < p > & copy; Copyright 2013 my studio to lawrenceg.com < /p >

    < / footer >

    < / div >

    < / body >

    < / html >

    Photos of Laurent g 2010 says:

    New Web site, rollover buttons with not color in place when you click

    On each of your pages, you need to add the class = "brochures" to your anchor tags.

    So the link to the "about me" page looks like in below:

  • On Lisezmoi.html"class ="brochures"> About Me"
  • 'The Gallery' link on the 'Gallery' page looks like this:

  • The Gallery.html"class = 'thispage' > The Gallery"
  • Do the same for the pages 'Studio work' and 'contact us '.

    Photos of Laurent g 2010 says:

    And someone told me that it is a very good site, but do not show the images in the box with the yellow frame upwards unless I tilt the screen at a weird angle, I think he means the image of hero! and sounds

    as it uses a Tablet

    They're all pretty a your subtle grey but that I do not see is on the page "about me". You just need to bring the gray tone to the top of a few stops.

  • Javascript window.open() options can request to the page itself?

    For the experienced:

    After I finished writing the application (using JDeveloper 10.1.3.4) there is a new requirement for her: for the entire application, each page only the content area must be visible (like what full screen did in Internet Explorer) menu bar, toolbar, status bar, title bar,... of the browser everything should be hidden, especially the URL of the page should not be visible.

    I thought about the javascript window.open() method and found the options 'channelmode = yes, fullscreen = yes' to meet this requirement:
    window.open("http://URLOf.theFirstPageOf.theApplication", "_blank", "channelmode=yes, fullscreen=yes")
    These options are supported by Internet Explorer only if; Firefox will always display the title bar and the URL with these options value. First of all, this is what I found; are there other ways to achieve the same effect?

    It's OK to be limited to use only Internet Explorer. But the problem is that the 'channelmode = yes, fullscreen = yes' to take effect only when the second parameter is "_blank" to open a new browser window. I tried to "_self", "_parent", then no new window has been opened, but "channelmode = yes, fullscreen = yes" did not effect either.

    Is there a way to get around that, that is, get the page itself in full screen, without having to open a new browser window?

    Thank you very much for help!


    Newman

    Hello

    don't forget that you could start a browser in kiosk from the command-line mode. So, if the application is started from the desktop, then this might be an option. However, for a change in distance of the window I don't see how this can be done. You can minimize the window root which creates the new window, but you can not close

    Frank

  • How to convert a message Inline in the Page of the Apex of javascript alert message

    Hi all. IM new at the Apex.

    Current - approach
    I have a region report dynamics developed using the API like APEX_ITEM etc. I use scripts in java to validate these dynamic elements and Alerts popup as shown below.

    function ValidateNotObservedCB (p_row_num)
    {
    var v_row_num = p_row_num;
    var v_not_observed_cb_status = document.getElementById('f_notobserved_'+v_row_num).checked;
    var v_not_in_district_cb_status = document.getElementById('f_notindistrict_'+v_row_num).checked;
    var v_program_code = document.getElementById("f_program_code_"+v_row_num).value;
    If ((v_program_code.length > 0) & & (document.getElementById('f_notobserved_'+v_row_num).checked == true))
    {
    "BOLD" alert ("you have already entered a program code.") "BOLD"
    document.getElementById('f_notobserved_'+v_row_num).checked = false;
    document.getElementById('f_notobserved_'+v_row_num).value = 'n';
    } else if ((v_program_code.length==0) & & (document.getElementById('f_notobserved_'+v_row_num).checked == true)) {}
    document.getElementById('f_notobserved_'+v_row_num).value = 'Y ';
    document.getElementById('f_notobserved_'+v_row_num).checked = true;
    } else
    {
    document.getElementById('f_notobserved_'+v_row_num).checked = false;
    document.getElementById('f_notindistrict_'+v_row_num).checked = false;
    document.getElementById('f_notindistrict_'+v_row_num).value = 'n';
    document.getElementById('f_notobserved_'+v_row_num).value = 'n';
    }
    }

    Question/problem - how can I convert these to Inline messages alert messages to indicate on the page, similar to what appears when we take stock of the Validations at the APEX.

    Waiting for answers because this is urgent.
    Thanks in advance,
    Madhu

    You created an empty paragraph with an Id that you might find in your javascript code with

    document.getElementById ('message')

    After this in your javascript code say you in this paragraph "now your text is:" with the function

    innerHTML = 'your message ';

    And the generated HTML code is

    + Your message +.

    And everything works fine!

    Do not forget to say that my answer was 'Correct '! Thank you...

    Bye and good luck on APEX.

  • JavaScript: box always invalid after the page

    Hello

    In a region, I have a check box that must be disabled by default. After clicking on a button that applies a MRU/present (and verification of certain conditions) the box should switch to on.

    What I did:
    -The Javascript of the enableCheckbox() and disableCheckbox() functions are defined in the HTML page header (they work).
    -In the foot of the region with the box I call the function disableCheckbox ('myCheckbox'); to get the default value.
    -The optional URL redirection of the button says:
    JavaScript:doSubmit('SUBMIT'); to submit
    JavaScript:enableCheckbox('myCheckbox'); to activate the checkbox

    The problem is that the box will switch on, because submit/reload the page to disable the checkbox through the foot of the region. Think of other solutions, I realized that each top up will set the default again...

    How can that be resolved?
    Thanks in advance,

    Roger

    Hi Roger,

    You must have somewhere a logic that determines if the checkbox should be disabled/enabled.

    Generally speaking, it would be the value of one or more fields and the box should be checked whenever the field related (s) is / are updated using the onchange event.

    There are several ways to check for this, but the principles would be the same. For example:

    function check()
    {
     var x = document.getElementById("P1_PAGEITEM");
     var c = document.getElementById("P1_CHECKBOX");
     if (x.value == 'XXX')
     {
      c.disabled = false;
     }
     else
     {
      c.disabled = true;
     }
    }
    

    This function can be used on the page loading - by adding a call to it in Footer region region - and the attributes of the P1_PAGEITEM using:

    onchange="javascript:check();"
    

    Andy

  • Firefox 34.0.5 cannot print correctly. I checked all the pages on firefox problems and still can not solve the problem.

    I use 34.0.5 with Windows 7 and that you cannot print correctly. In print preview, it appears in a label size. I double checked all my settings in firefox and my preferences from the printer, I checked all the pages on firefox problems and still can not solve the problem.

    I was able to finally solve the problem, but I had to do a complete reset of firefox. Thank you for your time.

  • Since Vista upgrade of fonts on the pages Web resembles a printer on insufficient ink. Note, this is not a printer problem, but a problem of display. How can I fix this?

    I've recently updated WIndows Vista with Microsoft updates. After the reboot, the fonts on most of the pages in Firefox and my word processing program, (StarOffice not MS Word), light, incomplete, appearance part of the letter low while the rest is dark. Looks like, what I can only describe as, a printer on insufficient ink. I tried to increase the font size, reboot again.

    I suspect the problem with Windows and not Firefox but I'm lost as to how to correct the problem, so any help will be greatly appreciated.

    You can check your ClearType or other parameters of smoothing of police. I think that this page requires IE: http://www.microsoft.com/typography/cleartype/tuner/tune.aspx

  • My mozilla recently opened emails see the problem of loading pages and emails in the Inbox are not open and other email folders also not load

    recently I downloaded many video converter software. After that whenever I open my emails, I'm not able to load the pages. Only, he opens the Inbox and when I click on any mail in the Inbox, it opens the mail and immediately which automatically closes a few seconds and not be able to display messages. It displays also error message on top a second (e.g. loading problem) same error message appears when I try to open any other folder as spam, etc. in e-mail and project files does not open and only inbox is up but not able to open e-mail messages. Is the same with all the photo files or those things accessible through google search, never, it opens and opens like email, closes immediately. I tried deleting and reinstalling mozilla, but the problem still persists.

    You can try the following steps in case of problems with web pages:

    Reload Web pages and ignore the cache to refresh potentially stale or corrupt.

    • Hold down the SHIFT key and click the Reload button
    • Press 'Ctrl + F5' or 'Ctrl + Shift + R' (Windows, Linux)
    • Press 'Command + shift + R' (Mac)

    Clear the cache and cookies only from Web sites that are causing problems.

    "Clear the Cache":

    • Firefox/tools > Options > advanced > network > content caching Web: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Firefox/tools > Options > privacy > Cookies: "show the Cookies".

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance).

    • Do NOT click on the reset button on the startup window Mode without failure.

Maybe you are looking for