Large Javascript Block

Hi,
I'm developing a larger block of javascript for an apex page. The Problem is that I cannot save it in the "Regin Header"
of the page since the data is larger than 3K. There seems to be a limit there. I prefer to have the javascript code in a extra
file. I know i can upload it under "Shared Components > Static Files". But there is also this 3K Limit. If I want to do a change i have to upload it again.
An i think i have to delete it first and than upload it.
I tried to put the file in the /i/ folder and access it this way. But it is never found. The files in the same directory are found f.e. blank.gif
Is there a way to use an external editor to edit a javascript file that is used in an apex page.
I would like to use an editor that can do syntax highlightning.
Björn

Where is the Embedded PL/SQL Gateway getting all the static pictures from?The XMLDB repository. Details on how to access it here:
http://daust.blogspot.com/2006/03/where-are-images-of-application.html
The best practice is to access the repository through WebDAV as Dietmar explains, and to create your own folder(s) for custom scripts and images, rather than mixing stuff up with Oracle content in /i/ that may need to be overwritten during an upgrade.
(Please update your forum profile with a better handle than "user6573547".)

Similar Messages

  • Form not displayed when run- a large gray block

    I am trying to debug an existing form (which I know runs in our production enviroment). I need to debug to see what is happening to investigate the scope of a potential modification.
    My problem is that when I startup the OC4J container (no errors) and run the form from withing the Forms developer IDE, my browser launches (or attempts) and the form is nor displayed, only a 'large gray block' which I presume is the applet which should be launching my form.
    I tried to place message, in the form trigger, when-new-form-instance and when-form-navigate in order to identify if that code is been called, but I do not get the debug messages.
    I turned on edit->preferences->runtime->debug messages, and I get 1 debug alert 'please acknoledge message' when launched in my browser.
    Based on the fact that I am not getting any errors and I am getting one debug message, I presume that I need to somehow explicitly show/call the form or something similar?
    The form does have multiple canvases, which look like they are overlayed and controlled depeding on the form interaction. Does anyone have some idea to start helping me move forward with this?

    In order to run a form on your workstation using OC4J, you have to have a compatible JVM installed - typically Oracle's jInitiator, but it will work using the Microsoft JVM as well (although, not officially supported by Oracle anymore). It sounds like you have the default set to use the Microsoft JVM. If you hover your mouse over the "Gray Area" do you see the message: "Click to activate and use this Control." Have you tried to just click on the gray area to see what will happen?
    If you have installed Oracle jInitiator, did you modify the "formsweb.cfg" file to specify the Browser's JVM option?
    Hope this helps,
    Craig...

  • Source code organization: How to divide large JavaScript files into several smaller JavaScript files?

    Hello,
    some of my JavaScripts have become considerably large over time. What I would like to do is to split a single (large) JavaScript source file into several smaller source files plus an additional JavaScript file containing code or directives to recombine the split files.
    In other words, I would like to organize my JavaScript source code into re-usable modules.
    Although I searched the Acrobat JavaScript developer documentation and did a lot of Web searching, I still have no idea...
    whether the Acrobat JavaScript scripting environment itself does provide a code structuring mechanism
    how to properly organize large Acrobat JavaScripts in general.
    Any help would be greatly appreciated! Thanks a lot in advance!
    Sebastian

    Document-level scripts are not accessible to other documents/scripts, so they're not a good option.
    Folder-level scripts, on the other hand, are accessible to all other documents/scripts. So if you have a general function that creates a 3D annotation, for example, you can place it in a folder-level script and then call it from other scripts (you will probably need to provide it a handle for the document and properties of the annotation).
    One thing to be aware of, though, is that the folder-level scripts are loaded alphabetically, so don't put a reference in script aaa.js to something that loads in zzz.js, or you will get an error message when you open Acrobat. (this is not a problem if zzz.js is not called during the launch of Acrobat)

  • Javascript block through javascript.enabled false not working as expected in newer versions, any actual way?

    Since a few versions, around 24.0 or earlier, when you toggle javascript.enabled from true to false to block javascript, doesn't work after load a page.
    Further details:
    1.- load a page with javascript enabled
    2.- toggle javascript preference to block javascript (javascript.enabled from true to false)
    3.- if you interact with javascript elements = they still work
    This wasn't this way in earlier versions.
    You can check in the following page. You'll see that the only way to actually block javascript execution is to load the page with the preference javascript.enabled set to false (A.K.A. javascript blocked):
    http://www.geocities.ws/jothache/event_listener.html
    Note: to easy change javascript preferences, for those don't want to play with about:config you can use addons like QuickJava:
    https://addons.mozilla.org/en-US/firefox/addon/quickjava/
    I find that how it works now, in the latest versions, it is a VERY HUGE SECURITY ISSUE as javascript is never actually blocked when the preference is toggled and AJAX (httpXMLrequest through javascript) still works so the possibilities of lost of privacy inreases, as for example, mouse tracking and send it to the server, not only as the example scripts I posted above.
    The question is, is there anyway to really block javascript in the latests versions or should I report this as a bug?
    Regards.

    Hi guigs2,
    if there is no problem in open the bug ticket being a simple user I'll report by myself (if I haven't misunderstood you). (Confirm this and I'll do myself).
    About the AJAX problem, here we have a sample test that works after toggle the preference:
    http://www.w3schools.com/xml/xml_http.asp
    I know about noscript and I don't like it. I prefer to do manually (those measures and more). What bothered me is that even toggle the preference, what in the past did the job of stopping the execution of scripts, now doesn't. In about version 24 it was only happening to event listeners not being blocked (used nowadays for dynamic events assignments). Now is with every javascript code.
    About the tracking methods, I'm aware of HTTP tracking without any need of javascript. Even a simple "knock knock" on any kind of server leaves a trace.
    I was just pointing that this preference stopping doing its job (stopping scripts executions) has the worst sceneario in a security way with XMLHttpRequest calls.
    But one of the things that bothers me too, and it is not related to tracking, is that, in humble machines as mine, some javascript codes make drop whole performance and the preference toggle now does nothing, so the script keeps running without being able of doing anything and sometimes you don't have the option to load a page without javascript because you need some feature of that page that requires javascript what becomes "all or nothing".
    Regards.

  • How can i access and assign java xml Document variable in javascript block

    How can i access and assign org.w3c.dom.Document variable in javascript block
    I tried this xmlDoc = "<%=xmldoc%>";
    it is not working
    plz give me solution.
    thanx
    Vidya

    The solution would only work on MS IE browsers, as other browsers do not support an XML DOM.
    It can be done, but you would be stuck with using the Microsoft broswer. If that is acceptable, I have some example code, and a book recommendation.

  • Multi page report with large master block

    I am doing a long multi page report with master - detail block.
    Master block is about 60-100 lines long in form format and detail block is 0 to 300 lines in table format.
    I would like to repeat a few columns from master block on all subsequent pages.
    The current solution I have done uses a logical page of 4x1, but in this way i can not repeat selected columns on subsequent pages.
    Is there another way to handle large master block that extends more than one page.
    PB

    You can try this. Create another frame within your master repeating frame and put items there which you want to display on next pages. And set the property of this frame as All Pages.

  • Applet with JFilechooser called from a Javascript blocks paint messages

    Hi,
    I am trying to create an applet that can:
    1) be called from a Javascript
    2) displays a file selection dialog for multi-selecting files
    3) returns the selected filenames in a string to the JavaScript
    I am able to use doPrivileged to apply the necessary security context to launch a JFilechooser and return the filenames selected. However, When the JFilechooser dialog is visible and the user moves the dialog window around the HTML pages dose not receive any repaint messages. They seem to be blocked by the thread that launched the JFilechooser dialog and is probably blocking update events as the dialog is still visible.
    I know I need some type of a message pump so the child thread can inform the parent thread and the browser to repaint. However, I don't know how to do this.
    Please help.
    ------Applet Code Begin:-----
    import java.awt.Color;
    import java.awt.Graphics;
    import java.awt.AWTEvent;
    import java.awt.event.AWTEventListener.*;
    import java.awt.event.MouseMotionListener;
    import java.awt.event.MouseEvent;
    import java.io.File;
    import java.util.Locale;
    import java.util.MissingResourceException;
    import java.util.Properties;
    import java.util.ResourceBundle;
    import java.util.Vector;
    import javax.swing.JApplet;
    import javax.swing.JButton;
    import javax.swing.JComponent;
    import javax.swing.JFileChooser;
    import javax.swing.JOptionPane;
    public class SampleApplet extends JApplet
       boolean allowDirs=false;
       boolean allowFiles=true;
       boolean hidden=false;
       File lastUserDir=null;
       public void init()
        public void start()
        public void stop()
        public String selectFiles()
           String choosenFiles = null;
           choosenFiles = new String((String)java.security.AccessController.doPrivileged(
           new java.security.PrivilegedAction()
         public Object run()
            String choosenFiles=new String();
                 JFilechooser fc = new JFilechooser();
         fc.setFileSelectionMode(allowDirs ? (allowFiles ? JFileChooser.FILES_AND_DIRECTORIES
            : JFileChooser.DIRECTORIES_ONLY)
            : JFileChooser.FILES_ONLY);
         fc.setMultiSelectionEnabled(true);
                 int returnVal = fc.showOpenDialog(null);
                 if (returnVal == JFileChooser.APPROVE_OPTION)
                    choosenFiles = "The selected filesnames will be stuffed here";
              return choosenFiles; //return whatever you want
           return choosenFiles;   
    ------Applet Code End:-----
    ------Html Code Begin:-----
    <html>
    <applet id="SampleApplet" archive="SampleApplet.jar"; code="SampleApplet.class"; width="2" height="2" codebase=".">
    </applet>
    <head>
        <title>Untitled Page</title>
    <script language="javascript" type="text/javascript">
    function SelectFiles_onclick()
      var s = (document.applets[0].selectFiles());
      alert(s);
    </script>
    </head>
    <body>
        Click Test button to select files
        <input id="SelectFiles" type="button" value="Select Files" onclick="return SelectFiles_onclick()" />
    </body>
    </html>
    ------Html Code End:-----

    try this:
    first don't open the file dialog in the SelectFiles call. Start a new thread that does that. Then return from the SelectFiles call immediately. Now after the user selectes the files call back into the javascript by doing something like this:
    pass the list of files into this function, each on being a String in the params array
        public synchronized void sendDataToUI(Object[] params) {
            if (FuserState.hasQuit()) {
                return;
            String function = "getUpdates";
            if (logger.isLoggable(Level.FINE)) {
                logger.log(Level.FINE, "Calling Javascript function " + function);
            if (getJavaScriptWindow() == null) {
                logger.log(Level.SEVERE, "Member javascriptWindow is NULL, no call was made!");
                return;
            try {
                getJavaScriptWindow().call(function, params);
            catch (netscape.javascript.JSException x) {
                if (params == null) {
                    logger.log(Level.SEVERE, "p=NULL PARAM");
                } else {
                    logger.log(Level.SEVERE, "p=" + params[0]);
        protected JSObject getJavaScriptWindow() {
            javascriptWindow = JSObject.getWindow(this);
        }

  • JavaScript blocked or failed to load

    Hello,
    Sometime ago I suddenly realized that JavaScript was not working in my Firefox. I get a very explicit error message from Stack Overflow:
    "Stack Overflow requires external JavaScript from another domain, which is blocked or failed to load."
    Many other websites also do not work.
    I currently am running Windows 7 and on typing "java -version", I get the following output:
    java version "1.7.0_40"
    Java(TM) SE Runtime Environment (build 1.7.0_40-b43)
    Java HotSpot(TM) 64-Bit Server VM (build 24.0-b56, mixed mode)
    I know Java is installed and working because I can compile and run .java files from NetBeans.
    I am in a fix as I have spent many hours troubleshooting this problem but could not solve it. I am very hopeful for a solution here.
    Thanks

    Firefox has a single global setting for JavaScript: either it's enabled or it isn't. If JavaScript works on any site, then that setting should be fine. If you're not sure, you can check here:
    (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
    (2) In the search box above the list, type or paste '''java''' and pause while the list is filtered
    (3) If '''javascript.enabled''' is not set to its default value of true, double-click it to switch it back to true.
    Firefox does not have a user interface for applying site-specific scripting restrictions, but this can be done using extensions or using "capability" preferences. I don't see the best known script blockers on your extension list (NoScript, YesScript, Controle De Scripts) so I suggest checking for the hidden preferences first.
    Open your current Firefox settings (AKA Firefox profile) folder using
    Help > Troubleshooting Information > "Show Folder" button
    Scroll down to prefs.js and open it in a text editor (note: you can't save changes while Firefox is running, but you can exit Firefox if you find something you need to edit out)
    Search for '''capab''' (the beginning of the word capability). Do you find any preferences that contain capability and javascript and noAccess? If so, that may explain why scripts cannot run on some sites. Feel free to post those lines here for analysis.
    To test the extension possibility, could you try some of the problem sites in Firefox's Safe Mode? That's a standard diagnostic tool to bypass interference by extensions (and some custom settings). More info: [[Troubleshoot Firefox issues using Safe Mode]].
    You can restart Firefox in Safe Mode using
    Help > Restart with Add-ons Disabled
    In the dialog, click "Start in Safe Mode" (''not'' Reset)
    Any change?

  • While using Skype on my mac pro the screen freezes and splits in two and the left hand side shifts to the right and the right shifts to the left with a large black block down the centre, should I take it back to store as it is only a month old??

    I have only had my mac one month and it seems while I use Skype the screen freezes and I cant click on anything and everything on the right hand side of the screen shifts to the left and the left to the right with a back block down the centre and sometimes lines running down the screen over all. As it is almost brand new should I be going back to store to get this problem fixed??

    Yes.  You are still under warranty.  Why waste it?

  • What's the deal with large white blocks in exported jpegs

    I just exported my first job I ran through Aperture. Out of 736 files, 9 were flawed. When opened, the exported jpeg had a missing section of the photo, that was all white. The white block appeared in random spots but always on the edges. The problem didn't occur the second time around with the same 9 files/ this time processed in a batch of 9.
    I need to know how to export files reliably - in my workflow, I don't have time to double check file quality.
    Has anyone seen this issue? I've seen it with 1.1.1 and 1.1.2.
    I'm shooting with a 1ds mrkII.
    MacBookPro   Mac OS X (10.4.6)  

    i've seen this too, in other odd ways. it seems to affect the images that i've spotted (with the patch tool) and have other corrections/adjustment applied. its almost like the GPU gets too overloaded to accurately recreate all of the image mods. the image seems to be segmented into smaller rectangular sections that probably get loaded into the video card's memeory and the adjustments and corrections are applied on smaller, more managable sections. when the image is stitched back together something goes horribly wrong!
    the sections tend to be mis-matched with some completely black, some that have black spots where the patch tool was applied, other sections have what looks like a white overlay that's 50% opaque. sometimes even my thumbnails come up with the same results as these malformed exports. i've been able to shake them back to normalcy by toggling one of the corrections (spot/patch, highligh/shadow, etc). after the thumbnail updates properly, the export usually works fine.
    this is definitely a bug with aperture and i would report it as such. attach and send the image to the bug report if you can!
    scott
    ps: for what its worth, i'm usually shooting with my Nikon D200 these days.
    PowerMac G5 2.5GHz   Mac OS X (10.4.7)   MacBook Pro 2.0GHz

  • Larger text blocks

    Is there a way to have more than 2 lines of text appear on a single clip? I have a project that requires a bunch of text to appear on individual clips and as far as I can tell HD only allows 2 text lines to appear at once. Can anyone help me?

    rewl,
    The Music Video title allows for multiple lines. As long as you don't mind it left or right justified at the bottom of the picture.
    Scrolling Block will also allow multiple lines. As long as you don't mind the text to be scrolling.
    If those don't do it for you, you should take a look at third party plugins. Gee Three has one called Place Text. It's part of the Slick Volume 5.
    http://www.geethree.com/
    cf/x makes a plugin called Simple Caption that could work as well.
    http://www.imovieplugins.com/index.html
    Gee Three sells their plugins in sets while cf/x offers them á la carte.
    Matt

  • GetURL:javascript blocked when called from a frame action in flash?

    Hi,
    I'm wrapping a load of flash/html eLearning content into air
    packages - or at least I was!
    The content is really old - flash 6 - and part of how it
    works is once it has loaded, it calls a javascript function, via a
    frame action. Each eLearning module relies on this call getting
    made...
    Sadly, this javascript call is never received - and having
    done a test it is purely down to the call being from a frame rather
    than a button (or other user interaction).
    eg. a movie with 10 frames. frame 10 has this action:
    (remember this is flash 6!)
    stop();
    getURL("javascript:foo());
    foo is never called.
    But put a button in with:
    on(release){
    getURL("javascript:foo());
    that works fine. Same call, but via a button.
    So really the question is - with air (or even is it something
    in new flash security?) - is there some reason why a frame action
    cannot call javascript? And if so - is there a parameter that can
    be set (like allowScriptAccess type thing - although tried that!)
    that will allow it again? Basically with over 1000 different flash
    movies, I'm not really in a position to re-code (eg.
    ExternalInterface does work! But can't recode 1000 movies to use
    that!).
    I've searched and can't see anything saying specifically a
    frame action call to javascript will be ignored, but clearly it
    is...
    Any idea, anyone?
    Thanks.

    You are calling the script while the mouse button is still
    down-- a
    hijacking truck.
    While it still works in older/unpatched IE, Microsoft has
    disabled
    resizeBy/To and moveBy/To while the mouse button is down.
    Obviously, when
    you have to click the Alert dialog's OK button, the mouse is
    no longer down.
    You'll need to take a different approach.

  • Large White Blocks - not refreshing

    Hi All,
    Got a simple little problem.
    I have an application that pops up a number of windows, once I close them there is an unsightly white block left where they used to be. The worst culprite is the filedialog popup. How do I 'refresh' the underlying frame ?
    Along a similar line, I want to display some text just after the filedialog closes, a "Please Wait" message, but although System.out.println displays, the text in my frame does not.
    Any thoughts ?

    The snippet shows a popup being called, then the suggested code to refresh the frame that lay under the popup.
    what actually happens is: the popup appears, is clicked on to answer it, the popup closes, and the underlying frame now has a white block appeared on it, just under where the popup was.
    I am developing, and would like to keep an 'old' windows feel, so am trying not to use too much swing.
    The code for my frame contents is
    public XXXX(String title) {
         /* Display stuff */
              super(title);
              int frame_height = 500;
              int frame_width = 600;
              setSize(frame_width, frame_height);
              //setVisible(true);
              updateMenuBar();
              jla = new JLabel("Nothing Also");
              int rows = 20;
              int columns = 50;
              jta = new JTextArea("Nothing", rows, columns);
              jlb = new JLabel("Status");
              jsp = new JScrollPane(jta);
              //this.setLayout(new GridLayout());
              p1.setLayout(new GridBagLayout());
              GridBagConstraints gbc = new GridBagConstraints();
    // gbc for jta
              gbc.gridx = 0; // column 0
              gbc.gridy = 0; // row 0
              gbc.gridheight = 1;
              gbc.gridwidth = 1;
              gbc.weightx = 0;
              gbc.weighty = 0;
              gbc.anchor = GridBagConstraints.WEST;
              gbc.fill = GridBagConstraints.BOTH;
              gbc.insets = new Insets(0,0,10,0);
              gbc.ipadx = 0; // increase component width by ? pixels
              gbc.ipady = 0; // increase component height by ? pixels
              p1.add(jla,gbc);
    // gbc for jsp
              gbc.gridy = 1; // row 1
              gbc.insets = new Insets(0,0,0,0);
              p1.add(jsp,gbc);
    // gbc for jsp           
              gbc.gridy = 2; // row 2
              gbc.insets = new Insets(10,0,0,0);
              p1.add(jlb,gbc);
    // gbc for panel in this frame
              gbc.gridx = 0; // column 0
              gbc.gridy = 0; // row 0
              gbc.gridheight = 1;
              gbc.gridwidth = 1;
              gbc.weightx = 0;
              gbc.weighty = 0;
              gbc.anchor = GridBagConstraints.NORTH;
              gbc.fill = GridBagConstraints.NONE;
              gbc.insets = new Insets(0,0,0,0);
              gbc.ipadx = 0; // increase component width by ? pixels
              gbc.ipady = 0; // increase component height by ? pixels
              //this.add(p1,gbc);
              this.add(p1);
              //this.add("Center",p2);
              //this.add("South",p3);
              this.setVisible(true);

  • HDR PRO in tool image has a large white block through it and buttons are unresponsive. How do I fix this?

    When I open images in HDR Pro I am met with a washed out image with a big white block through the middle about a third of the size of the image.
    This disappears when I export the image, which would be fine, but the buttons and sliders are not working in the app.
    This means The tool is useless. Any fixes?
    Cheers

    The symptoms you describe sound like there is an application-modal popup message box covering over the main HDR tool area but for some reason the message box is not fully rendered and you can only see the background, not the message it contains.
    This could be a transient condition that would be remedied by rebooting, or it could be a video-driver incompatibility that might be resolved by updating your video drivers from the manufacturer’s website, or perhaps changing the Graphics Processor Settings in the Performance tab of Photoshop Preferences.  You can uncheck Use Graphics Processor and restart Photoshop and see if things are different.  If so, then turn it back on, but adjust the level of acceleration in the Advance Settings from Advanced to Basic or in between and also turn on and off the other settings in Advanced Settings area to see which ones make a difference.
    If none of these grpahics system changes make any different, perhaps change the amount of memory that is being used in the PS / Prefs / Performance area, adjust it both more and less from what it is currently set to.

  • Large Object Blocks

    Our company just upgraded to version 8 for our software platform. Developers are having a hard time with the LOB's. Is it possbile to use them in queries like: DECODE (document_clob, NULL, 'D', 'E') Storage. It's not working. Is there a work around for this?

    You will need to use the functions/procedures in the DBMS_LOB package.
    Refer your developer's to the 'Application Developer's Guide - Large Objects (LOBs)' manual. It has extensive documention on LOBs and plenty of examples.
    It will be on the Documentation CD-ROM and is also available (as is all of the Oracle documentation) via the 'Documentation' link at the left side of this page.
    null

Maybe you are looking for

  • Error while posting FB50

    Hi, While posting a journal entry as below i am getting error (soft error) "Do not Assign any objects in cost accounting to account 100001" Acct No   C/D     Amt        Cost Center 100001   credit   100.11 ;    5000001 (balance sheet account) 700499 

  • Drop default values

    HI All, I have problem in dropdownkey if I not select from the list how can get the default value. I have done the coding below ISimpleTypeModifiable myType =                wdThis.wdGetAPI().getContext().getModifiableTypeOf("RoleKey");           IMo

  • Re: [b]creation of 10th Database on single pc[/b]

    GREETINGS, I need to create about 30 database on a single PC win 2000 pro sp1?? I am using Oracle 8.0.4 on Win NT and when i go through the database assistant wizard I am able to create 9 data base successfully. When i create the 10 database the serv

  • Sales document flow

    hi sap hw can i write a logic to relate vbak,likp,mkpf,vttk,vbrk to view document flow for sales order. in display i need sales order number, delivery document,invoice doc,shipment doc, pgi doc. pls help in step by step of start of selection. \[remov

  • IMove '08 Import - Playback Issue

    I'm new to iMovie and MACs altogether. My problem is this: I'm pulling old video tapes into ElGato EyeTV250. I then export the video, (I've tried mp4, dv, H.264 and .mov formats). I then import the movie into iMovie '08 -- creating a New Event. I see