JavaScript to display the tab 'View Source' in IE

I'm trying the code below allows you to view the source of another tab in a pop-up window. The code below shows the source for the active tab. How can I change it works on another tab in my browser. It is to be used on a page of the Apex to work with IE.
function showSource(){;
    var source = "<html>";
    source += document.getElementsByTagName('html')[0].innerHTML;
    source += "</html>";
    //now we need to escape the html special chars, javascript has escape
    //but this does not do what we want
    source = source.replace(/</g, "&lt;").replace(/>/g, "&gt;");
    //now we add <pre> tags to preserve whitespace
    source = "<pre>"+source+"</pre>";
    //now open the window and set the source as the content
    sourceWindow = window.open('','Source of page','height=800,width=800,scrollbars=1,resizable=1');
    sourceWindow.document.write(source);
    sourceWindow.document.close(); //close the document for writing, not the window
    //give source window focus
    if(window.focus) sourceWindow.focus();
}

JavaScript cannot make cross scripting in the browser. Think security issues you may have.
However, if the second tab is opened by the first tab, you could do something like

var bla = window.open(....);
     bla.functionInBla();

Tags: Database

Similar Questions

  • BAM 11 g Active Studio does not display the tab names

    When I try to change a view with double click opens a window with several tabs, but without any label, so it's no possible select a. But if I click on Properties it displays the tabs normally.

    He added in both cases, with new and existing reports.

    We are using IE 7.0.5730.13 on Win XP Professional version 2002 SP3 and SOA Suite 11 g is installed on Oracle Linux 5.

    Any idea what's going on?

    Concerning

    Jorge Medina

    Hello world

    It seems that JDK 1.6.0_18 breaks BAM (and possibly other products like Webcenter).

    As a solution, use JDK 1.6.0_14, which we have confirmed the problem on an already broken system that had JDK 1.6.0_18.

    Regards, Stephen

  • What happened to the option View / Source? I used it all the time

    How you look at the source code (HTML) for the page now that you have removed the option View/Source. I am now using Chrome for this reason...

    Use one of them:

    • Firefox > Web Developer > Page Source
    • Tools > Web Developer > Page Source
    • Right-click on a web page to open the shortcut menu and select the Source of the Page
  • Have a tag to display the detailed view of the web application

    Hi all

    I try to display the detailed view of a web application, but I don't know how to change the tag to do this. What I use now is {module_webapps, 29355, i, 10524754}. What should I change or add to this tag to display the web application content in the detail view?

    Thank you. !

    Thank you, Liam, I think I found a workaround by inserting the tag because it is in the body of the module events instead. Now it shows the detail view. Weird, but it works.

  • How to use JavaScript to change the named view

    How to use JavaScript to change the named view

    Do you mean to jump to a specific Destination named within a PDF file? SE so there

    the method gotoNamedDest of the Document object.

  • stock browser does not display the tabs

    No matter who has noticed that the stock browser has occasionally tabs disappear. all I see is the blue line of the page loading. I can't scroll to the top to see the tabs. the web page displayed will completely to the top of the screen. the blue line load runs just below the bezel. I have to kill the browser back to the tabs. It happened a few times yesterday. Today, well. is this a bug or something I'm doing.

    If you have started experimental radial orders, then the tabs are not displayed unless there is more than one open. If you want to see them, bring out the radial control and choose the + to open a new tab. The new and the current tap water will appear at the top. In fact, it's one of the best features of the controls radial. With them is active, you can view your main pages in full screen without extra effort.

  • The Task Manager does not display the tab process running

    I can't seem to view the processes tab of Task Manager running in my pc and my user account is an administrator account. The only tab that appears is the users tab. What can I do to fix this? Whenever I want to kill some programs running that is causing trouble, I can't use this utility.

    Hi Darko74

    Thanks for the reply.  I forgot to ask the last time, you see the menus. File, Options, display and help?
    Otherwise, the information below may help solve this problem.

    The task manager has two different views. For the display that includes menus and tabs, double-click the border of the Task Manager window. The to return to the view without menus and tabs, double-click anywhere in the border around the tabs.

    Please post back and let us know if it helped to solve the problem.  -Thank you

    Ken
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Firefox Certificate Manager is not listed in the tab view certificate should be. I have instructions for a certificate that requires him to be selected.

    "Firefox Certificate Manager" is not indicated in the certificate of view selection in the encryption tab Instructions for the installation of a certificate of some say to select the Firefox Certificate Manager. But I just can't.

    This has happened

    Each time Firefox opened

    == I searched the tab

    You can click on the "view certificates" button to open the Firefox Certificate Manager.
    Tools > Options > advanced > encryption: Certificates > view certificates

  • How to display the tab sign in the right navigation pane (acrobat XI)?

    The sign tab is not displayed in the right navigation pane. Show the tools and commentary.

    Hello

    What OS are you?

    Please try to update your Acrobat times and see if that brings back the tab sign.

    Also, if you are using windows, try to repair Acrobat, and see if that helps.

    Concerning

    Sukrit diallo

  • display the tabs on the right side

    Hi all

    I think that my problem is a trivial thing for someone who know CSS and HTML, but that unfortunately is not my case.
    I have an application that uses the theme 13 blue-grey and the default position of the tabs on the left side of the screen.
    I just installed menu jquery plugin apex and created a menu from tabs. (By the way, great plugin, recommend to everyone).

    The thing is, it would be much better if the tabs were displayed on the right side of the screen, but I have no idea how achieve this without changing the theme. So, please, when you know how to change this model, HELP!

    Don't know if it's important, but I have apex 4.0 and the tab is a level of standard tabs.


    Thanks in advance for all replies,

    Jana

    Hi jana, there.

    You can see this link: position tabs on change of the right to the left side

    Best regards, =)
    shynn,

  • display the tabs on the fifa website

    Madam/Sir

    When I accese to fifa in particular http://en.stickeralbum.fifa.com/game/flash site

    I see all the tabs. can u guide which implies that I do?

    P.S. the other sites are fine.

    Register and ask for their support.

    See you soon.

    Mick Murphy - Microsoft partner

  • Is it possible to display the design view in the fluid grid pages?

    After the upgrade to the latest version of DW CC 2014, I noticed that design mode is disabled in the fluid grid pages. You can only use the Live View mode to change these pages. Design/Live button on pages not fluid.

    I wonder if there is a work around to allow the Design mode of publishing on the pages of fluid. It is a major concern to try to change some things in Live View mode. It would be nice to have a choice.

    @Ron

    Ron, thanks for your idea.  I just tried this in my fluid grid css file, and it worked!  The strange thing (at least in my mind) is that the code (below) is commented.  So, even though my web pages ignore this commented code, Dreamweaver is not... use it to control how the Dreamweaver program works. Well, I think that this can happen.  This code behaves as a "directive" in the Dreamweaver program.

    A notable change is that I no longer see the grey bands indicating the fluid grid columns in Live view mode, but I can live with that.

    It's my way of novice look at the situation.  But now I'm happy.

    Here are my exact code (which I deleted) of my css file.  Maybe others can try it and see if that fixes the problem.

    /*

    Properties Grid Dreamweaver fluid

    ----------------------------------

    DW-num-CLO-mobile: 4;

    DW-num-CLO-Tablet: 8;

    DW-num-OCOL-Office: 12;

    DW-gutter-percentage: 15;

    Inspiration of "Responsive Web Design" by Ethan Marcotte

      http://www.alistapart.com/articles/responsive-Web-design

    Golden by Joni Korpi grid system and

      http://goldengridsystem.com/

    */

  • See the available updates only displays the tabs with no details

    I have Vista Home Premium SP2 (french) successfully updated to date.

    At some point, the "view available updates" stopped Panel showing details (name, type, area of selection...). It shows only type tabs on the side for example 'recommended (2) '. See screen capture:
    http://www.mediafire.com/file/d2yzjmwwkz2/RVCap [16] .mpg

    I haven't hidden updates, or the system can find everything.

    Hello York,.

    Reset the component of windows update and check if the update of the view is always empty. It has Fix tool link below will help you with the same

    How to reset the Windows Update components: http://support.microsoft.com/kb/971058

    If the patch tool does not help, you can follow the procedure manually.

    Check the link below, which had a similar question: http://social.answers.microsoft.com/Forums/en-US/vistawu/thread/3b5b49e9-7875-4be7-8c27-41b5bc8426b5

    Thank you, and in what concerns:

    Samhrutha G S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • JavaScript to display the field date in the format below

    I'm a customer form who need the date to display in the format below

    As if he puts day 13/05/2015 then it should show that may 13, 2016 (Please note that there should be "th" after 13)

    19/07/2016 should show that July 19, 2016 (an' th' after only 19 should be here)

    Thanking you

    This way of listing of numbers is known as "Ordinal". There are many was to this script. What works for the web that JavaScript can easily work with few changes in Acrobat Forms. This type of date format is generally used in legal forms.

    You should be able to search the forums for "legal date" or "ordinal" and find the post.

    I found a JavaScript function that can take a number of entry and returns the number with the ordinal suffix. This allows you to create any number of date formats.

    This function is not limited to a few dates bat can be used to add the ordinal suffix to a number any.

    The function:

    function ordinal_suffix_of (I) I have

    {

    var j = i % 10, / / tens of rest

    k = i % 100, //100's remains

    cSuffix = "e"; results of default suffix

    If (j == 1 & k! = 11) {}

    No 11;

    cSuffix = "m";

    }

    If (j == 2 & k! = 12) {}

    No 12;

    cSuffix = "nd";

    }

    If (j == 3 & k! = 13) {}

    No 13;

    cSuffix = "rd";

    }

    return i + cSuffix;

    } / / end of function ordial_suffix;

    I put this code in the location of the script to document level and then call it as necessary in the various areas.

    I enter the date in a different area that would not print and then have the date formatting in another area. You know how to divide the date entered in the month, string date and year, parts and then rearrange them as needed.

    You can test the code using the Acrobat JavaScript console:

    function ordinal_suffix_of (i)
    {
    var j = i % 10, / / tens of rest
    k = i % 100, //100's remains
    cSuffix = "e"; results of default suffix
    If (j == 1 & k! = 11) {}
    No 11;
    cSuffix = "m";
    }
    If (j == 2 & k! = 12) {}
    No 12;
    cSuffix = "nd";
    }
    If (j == 3 & k! = 13) {}
    No 13;
    cSuffix = "rd";
    }
    return i + cSuffix;
    } / / end of function ordial_suffix;

    function MyDateFormat (cFormat, cDate)
    {
    Kai var = util.scand (cFormat, cDate);
    if(oDate == null)
    {app.alert ("invalid date provided", 1, 0);}
    }
    on the other
    {
    "Return util.printd ("mmmm", letter) +" "+ ordinal_suffix_of (oDate.getDate ()) + ', ' + util.printd ("yyyy", anyway);"
    }
    }

    var dateInput = "13/05/2015; value of date entered;
    var cFormattedDate = MyDateFormat ("d/mm/yyyy", dateInput); formatted string for the date;
    Console.println (cFormattedDate);
    dateInput = ' 23/05/2015;
    Console.println (MyDateFormat ("d/mm/yyyy", dateInput));
    dateInput = "19/07/2015;
    Console.println (MyDateFormat ("d/mm/yyyy", dateInput));
    dateInput = "09/07/2015;
    Console.println (MyDateFormat ("d/mm/yyyy", dateInput));

  • JavaScript to display the output if multiple check boxes are selected

    Hello

    My PDF form has a number of questions about this, some of which are multiselect.

    for example

    Identify the colors of our company logo (there are three)

    Blue

    Red

    Green

    Orange

    Yellow

    Purple

    If they choose the good ones (blue, red and yellow), the script should display a 'Correct' output, if they look for something else, it should show incorrect. I have worked out how to do it for a collection of radio button, but may not know of check boxes.

    Any help would be greatly appreciated.

    Concerning

    I don't know, but see if it works for you: http://acroscript.net/pdf/demos/Adobe_Forums_1993380.pdf

Maybe you are looking for