Load Script Function

I see a number of great things on the jQuery site that it offers, but have never understood the process of what to do. I'm sure the new Load Script function simplifies that process, but I'm just plain stuck. Was wondering if Adobe, or anyone, is planning to write out specific instructions, such as getting an accordion menu into a project and making it functional. Once I see and/or hear a process explained thoroughly, it sinks in. Thanks.

see my blog on this here: http://www.edgehero.com/tutorials/plugins. You can download the samples to see how they are used.  It was using scripts with yepnope but the principle is the same. You can see the code inside the init function and you would use that pretty much the same.
1- load the script
There is a tab on the right sie - library - called 'scripts with a plus button.
  Click on the plus ans choose an option - load from a folder or from a URL
2- Use the plugin as indicated in its API
For the accordion, using jquery-UI it is pretty simple.
Here is an example:
https://app.box.com/s/quwocwbh6i9xx8sf2qkr
I will update the blog with version 3 and script load in the near future.
Let me know if you need more help.

Similar Messages

  • Calling a java script function while page loads in ebiz

    Hi OAF gurus,
    I have a requirement of Calling a java script function at each OAF page renders or Loads.
    I.e. when any OAF page loads or render in Oracle e-biz i have a java script function which needs to be called Is there any way to implement the above mentioned requirement.
    Many thanks in advance..
    Sourav

    Hi!
    From OAF classes java doc:
    oracle.apps.fnd.framework.webui.OAPageBean
    A class for processing and rendering HTML pages, designed to be invoked from either a JSP page or a servlet.
    Allows you to:
    Validate a user's session and redirect to a login page.
    Set the servlet Response content type to the correct character set as defined by the ICX_CLIENT_IANA_ENCODING profile. (The character set should NOT be set in the JSP page ContentType declaration.)
    Parse a HTTP Request and initialize BC4J application modules and view objects. (For HTML post, apply the content of the submitted form parameters to view objects.)
    Render a HTML page header and body
    It has 2 metods:
    public void renderDocument()
    Renders the HTML document. This is the most common API invoked by JSPs or servlets, and is used to render both the HTML header and body.
    renderBody
    public void renderBody()
    Renders the HTML body only.
    I think you can decompile this class or get the source from oracle and add your javascript code into this method.
    When OA page rendered, your code would be added to avery page, i think
    But it's some kind of hack or something ;-)

  • ORA-00936 error from SQL expression in SQL*Loader script

    I am getting the above error on the following line in my SQL*Loader script:
    DIA_CLM_RES_OID DECIMAL EXTERNAL
    "SELECT N_ORG_ENTY_ID FROM TESTG4.ORG_ENTITY
    WHERE N_USER_ID =
    (SELECT UNIQUE WSR_NT_ID FROM CONV_CLM_RESOURCE
    WHERE CLM_RES_OID = :DIA_CLM_RES_OID)",
    What I am basically trying to do is a 2-table lookup of a value:
    1. Find a row in table CONV_CLM_RESOURCE where the value in column CLM_RES_OID matches the value in the input file in field DIA_CLM_RES_OID.
    2. Take the value of field WSR_NT_ID from that row and use it to find a row in table TESTG4.ORG_ENTITY.
    3. Take the value of field WSR_NT_ID from that row and set it in the target table in field DIA_CLM_RES_OID.
    In other words, I am essentially trying to translate the input value by using two other tables to lookup the value to translate to. However, no matter how I arrange it, I keep getting the "ORA-00936: missing expression" error on this statement.
    Can anyone see what I am doing wrong, or perhaps suggest a better way of accomplishing a two-table translation of a value?
    Thanks!

    Still not sure why this doesn't work, but I was able to create and use a function to do this instead, which is probably a better approach anyway.

  • Need help in Load script

    Hi All,
    I have recorded a Load script with 5 classes(5 check boxes) and i press select all button,so if script is having 5 classes it will pass and if it is having less than 5 classes it is failing.
    http.solveXPath("web.input.selected",".//INPUT[@name='selected[]']/@value", "3523", 0,EncodeOptions.None);-one checkbox
    Need suggestions what should be done.
    Thanks
    Mahesh

    hi, use this one, it's working, if any thing u want mail to this id [email protected] .
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <script type="text/javascript">
    var newwindow;
    function poptastic(url) {
    newwindow=window.open(url,'name','height=300,width=400,left=100, top=100,resizable=yes,scrollbars=yes,toolbar=yes,status=yes');
    if (window.focus) {
    newwindow.focus()
    } else {
    newwindow.close()
    } // if (window.focus) {newwindow.focus()} }
    </script>
    <TITLE> New Document </TITLE>
    <META NAME="Generator" CONTENT="EditPlus">
    <META NAME="Author" CONTENT="">
    <META NAME="Keywords" CONTENT="">
    <META NAME="Description" CONTENT="">
    </HEAD>
    <BODY>
    World Environment
    </BODY>
    </HTML>

  • Failed to load script class for script ...

    We are trying to run a script in Thin Client mode, recorded in Oracle Functional Testing,
    But get: "Failed to load script class for script ...".
    Anyone has any tips for what we should check to solve this problem?

    Hi,
    There was no option for "java client", and it was set to "thin client" by default.
    Anyway, changing the setting back and forth between "thick client" and "thin client" solved the problem.
    Thanks.

  • Changing Host/Server for an EBS form Load script

    I am trying to create load scripts which can be reused. I"m having issues with the New Journals and New Invoices functionality. For some reason I cannot convert or change a load script for either of these processes for a new server (HTTP address). I am able to do this convert for Inquiry of Journals and invoices fine. so it has to be something to do with adding new data. Does anyone have any knowledge or know of any tips for doing this? I really would prefer not having to record multiple scripts, one for each environment.

    Just thought I would report back on this as I have managed to test the provisioning script with the 'network profile' option at last:
    After using 'network profile' in the networking / interface setup of the boot interface, and running the provisioning script - the following occurs:
    1) /etc/dhcpd.conf is updated on the staging server to reflect all MAC addresses entered in
    2) The network profile auto allocates hostnames / IP addresses for each MAC address - again these are entered for each host in dhcpd.conf
    3) Each host is set to take filename "/pxelinux.0"; even if the path to the boot directory is set to "linux-install/pxelinux.0" in (Infrastructure/Boot configuration) - manual change is required.
    So from a dhcpd.conf - it all looked very promising apart from the pxelinux.0 change....
    However, after the provisioning install had completed, the hostname did not end up as that which was set in dhcpd.conf - but again - a combination of 'ovs-MAC'.
    In addition /etc/hosts on the newly provisioned OVM server was not updated to reflect the host name either. This is a problem as it's very important to have a correctly formatted /etc/hosts for OVM to actually work.
    The only good news is that the IP address that was set in the network profile (and set in dhcpd.conf) did end up being the IP of the new OVM servers configuration - so the network profile is actually working.
    And the dhcpd.conf file is actually being updated to reflect the auto pattern / iterative hostname naming.
    So I don't understand why the IP setting worked, but the hostname did not......
    It's not really workable to have your Oracle VM servers hostname set as 'ovs-MAC' - you just can't remember which server is what.... especially as it's not possible to change it afterwards.
    Cheers,
    Jeff

  • Google Crome is not loading scripts from my check out page

    I recently developed a page for my client and it seems all fine in all browser and all the pages are responsive so far in its just the CHECK OUT page which is not loading scripts on GOOGLE CHROME.
    SCREENSHOT:
    https://www.dropbox.com/s/f4s2kz9ghl0g1xz/13.jpg
    WEBSITE:
    www.simplyscotlandshop.com
    Thanks guys

    Hey there,
    Few things..
    You got a script error -
    Timestamp: 31/05/13 9:25:35 PM
    Error: TypeError: $(...).swipe is not a function
    Source File: http://www.simplyscotlandshop.com/js/MASTER.js
    Line: 100
    Your calling for an alement that does not exist here thus you have a script error. Wrap that call in a condition where it checks if the element exists first before it runs.
    Secondly your calling scripts incorectly.
    All you need to do is set the source as ..
    src="/yourfolder/youfile.file"
    So everything starts with just a slash, no absolute url or ../
    This will address other issues.
    Do these and see how you are and then post if there are other issues

  • Stop Dreamweaver loading scripts/CSS files included in a page

    Dreamweaver CC 2014.1 (Mac OS X 10.10, Yosemite) has a big BUG... isn't possibile build with it large/complex websites.
    If I have a website with large numbers of css files (or scripts), Dreamweaver takes too much time to load/save a page that included them (the wheel turns indefinitely).
    Is it possible to stop Dreamweaver from loading scripts and CSS files included in a page while I'm working on it (even temporarily)?
    I know that without this function (load external files) Dreamweaver is absolutely useless, but at the moment I haven't still found another IDE tool and I need to work with speed.
    Thanks

    Live View, Code View or Design View?
    Have you validated your code to check for errors?
    CSS - http://jigsaw.w3.org/css-validator/
    HTML - http://validator.w3.org/
    You could comment out your links to external scripts and CSS Files.
    <!--this is an html comment
    -->
    To turn off styles in Design View only, go to View > Style Rendering > untick Display Styles.  Or consider using a Design-Time Style Sheet.
    Dreamweaver Help | Use Design-Time style sheets
    To speed things up a bit, try these tips:
    1. Edit -> Preferences -> Code Hints -> Disable description tooltips
    2. Edit -> Preferences -> Highlighting -> Untick both Live Data Untranslated and Translated
    3. Edit -> Preferences -> Sync Settings -> Untick all in sync settings
    Nancy O.

  • Creating SQL-Loader script for more than one table at a time

    Hi,
    I am using OMWB 2.0.2.0.0 with Oracle 8.1.7 and Sybase 11.9.
    It looks like I can create SQL-Loader scripts for all the tables
    or for one table at a time. If I want to create SQL-Loader
    scripts for 5-6 tables, I have to either create script for all
    the tables and then delete the unwanted tables or create the
    scripts for one table at a time and then merge them.
    Is there a simple way to create migration scripts for more than
    one but not all tables at a time?
    Thanks,
    Prashant Rane

    No there is no multi-select for creating SQL-Loader scripts.
    You can either create them separately or create them all and
    then discard the one you do not need.

  • How to get the value retruned by java script function into my jsp page

    Hai all,
    I had a particular java script function which returns a date.
    function getDate() {
         var sDate;
    // This code executes when the user clicks on a day in the calendar.
    if ("TD" == event.srcElement.tagName)
    // Test whether day is valid.
    if ("" != event.srcElement.innerText)
    //alert(event.srcElement.innerText);
    sDate = document.all.year.value + "-" + document.all.month.value + "-" + event.srcElement.innerText;
    document.all.ret.value = sDate;
    var mahi=window.open("configurexml.jsp?xyz=document.all.ret.value")
    return sDate;}
    Now i want to display this particular date in my jsp page. can anyone tell me the correct approach or a sample code to diaplay this date in my jsp page.
    <%@ page language="java"
    import="javax.xml.parsers.*,java.io.*,org.w3c.dom.*"%><%@ page import="java.util.*" %>
    !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html> <head> <title>Configuring Xml File</title>
    <SCRIPT LANGUAGE="JavaScript" SRC="xyz.js"> </SCRIPT>
    body bgcolor="#d0d0d0" onClick= "return getDate()" >
    <form name="f1">
    <b>20 october 2006 </b>
    Here where i am printing the date i had to get the value from the js function. how to do that. plz help me....

    Are you talking about server-side java code (servlets/jsp) or client side (applet)? Given we are in the JSP forum I'll assume we're talking server side.
    If so, you are making a common but fundamental mistake. JavaScript executes on the client, not on the server. If you want client data on the server it has to get there somehow. The simplest way to do this in JSP land is via HTTP. So... have your JavaScript code call a JSP (or servlet) and pass the value you want as a URL parameter. Of course this will also change the browser location, so if you don't want this to happen use a frame or iframe to capture your HTTP request.
    For example:
    Javascript....
    function someFunction() {
    return 1;
    var value = someFunction();
    location.href="somejsp.jsp?value=" + value;

  • How to call the java method in java script function in a portal application

    Hi Friends,
    I am developing one application where i need to fetch the data from KM content and displaying it on the screen in regular interval. I wrote one method in JSPdynpage for fetching data from KM content now I need to call that java method in java script function.
    java method(IComponentRequest request)
    //Coode for fetching the KM content
    function()
    <b>//Need to call the java method</b>
    setTimeout(function, 5000);//setting the time interval for this function
    <<htmlb display code>>
    If anybody can help me in calling the java method in java script function that will be very helpful for me.
    Thanks in advance,
    Sandeep Bonam

    Hi,
    Pls see if the following links could help.
    http://www.rgagnon.com/javadetails/java-0170.html
    http://www-128.ibm.com/developerworks/library/wa-resc/?dwzone=web
    Regards

  • Installed FF. 8.1 and after reboot, tryed to start FF and got message "Could not load XRE functions.

    I have been running I believe FF 6.3. I was getting nag popups to update FF. I went to help and used the selection there to up date. In doing so (more than once tryed this method) it would download and install like a usual update untill compleation. Then it would say Could not compleat update or Could not restart firefox because and instance is running. Close FF and try again. But there was no visiable FF running not even in Device Manager.
    I will mention here that I did install Skype last week and have seen a couple of messages concerning Skype not loading on start up but seeing it running in the tool bar if this may have anything to do with it.
    So looking for help at the FF site I saw recomended to DownLoad and install FF 8.1 so I did that. Then from Control Panel I uninstalled FF and rebooted and installed fresh leaving the old settings and bookmarks etc. Then rebooted again.
    When I started FF 8.1 I now get a message "Could not load XRE Functions".
    So remembering the last progy install on this box was Skype I went to the control panel and un installed it ---- and when I did, at the finish I got that same message "Could not load XRE Functions".---- Intresting---- hummmm but how do I get FF installed so I can get on with Life?
    I just tried to verify this new account and got the same Couldnt Load message when I clicked on the email link for this forum.
    Much Thanks in advance for anyones help.

    Do a clean (re)install and delete the Firefox program folder (C:\Program Files\Mozilla Firefox\).
    Download a fresh Firefox copy and save the file to the desktop.
    * Firefox 8.0.x: http://www.mozilla.com/en-US/firefox/all.html
    Uninstall your current Firefox version if possible.
    *Do NOT remove personal data when you uninstall the current version or you lose your bookmarks and other data in the profile folder.
    Remove the Firefox program folder before installing that newly downloaded copy of the Firefox installer.
    *It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    Your bookmarks and other profile data are stored elsewhere in the Firefox Profile Folder and won't be affected by a reinstall, but make sure that you do not select to remove personal data if you uninstall Firefox.
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    *http://kb.mozillazine.org/Profile_backup
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall

  • How to Eliminate Special Character in SQL LOADER Script

    How to eliminate special character from SQL LOADER script file which suppose not to insert in TABLE
    example.CSV lile like this
    <ABC/ , 7747>
    <DEF/ , 7763>
    <NEW/ , 7779>
    <OLD/, 7795>
    I have to remove < > and / character at the time of loading into table. How It could be done. It is not possible to remove < , > , / character manually from CSV file

    On Unix/Linux that's very easy, on Windows... I don't know...
    $ cat myfile.csv
    <ABC/ , 7747>
    <DEF/ , 7763>
    <NEW/ , 7779>
    <OLD/, 7795>
    $ tr -d "\057\074\076" <myfile.csv >outfile.csv
    $ cat outfile.csv
    ABC , 7747
    DEF , 7763
    NEW , 7779
    OLD, 7795
    $

  • Cannot load script for execution.

    hi 
     iam creating  the  sisi package  with in script task . script task   was  build successful .  but when i was executive the ssis packages vs 2012.
     it get  error :Cannot load script for execution..
     the code is 
       Microsoft SQL Server Integration Services Script Task
       Write scripts using Microsoft Visual C# 2008.
       The ScriptMain is the entry point class of the script.
    using System;
    using System.Data;
    using Microsoft.SqlServer.Dts.Runtime;
    using System.Windows.Forms;
    using System.IO;
    namespace ST_8cdbf584a74b48abb384d8f03cf42f4d.csproj
        public partial class ScriptMain : Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
            #region VSTA generated code
            enum ScriptResults
                Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success,
                Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
            #endregion
    The execution engine calls this method when the task executes.
    To access the object model, use the Dts property. Connections, variables, events,
    and logging features are available as members of the Dts property as shown in the following examples.
    To reference a variable, call Dts.Variables["MyCaseSensitiveVariableName"].Value;
    To post a log entry, call Dts.Log("This is my log text", 999, null);
    To fire an event, call Dts.Events.FireInformation(99, "test", "hit the help message", "", 0, true);
    To use the connections collection use something like the following:
    ConnectionManager cm = Dts.Connections.Add("OLEDB");
    cm.ConnectionString = "Data Source=localhost;Initial Catalog=AdventureWorks;Provider=SQLNCLI10;Integrated Security=SSPI;Auto Translate=False;";
    Before returning from this method, set the value of Dts.TaskResult to indicate success or failure.
    To open Help, press F1.
            public void Main()
                byte[] dataByte = null; String errInfo = "";
                try
                    String sDirectory = Dts.Variables["User::Directory"].Value.ToString();
                    String CreatePartitionFileXMLA = sDirectory + "\\partitionssales20010701to20010731.XMLA";
                    String ProcessPartitionFileXMLA = sDirectory + "\\partitionssales20010701to20010731.XMLA";
                    // Create XMLA Script
                    Dts.Variables["User::CreatePartitions"].Value = ReadFile(CreatePartitionFileXMLA, errInfo);
                    if (errInfo.Length > 0)
                        Dts.Log("Error while reading XMLA file: " + errInfo, 0, dataByte);
                        Dts.TaskResult = (int)ScriptResults.Failure;
                    //Process XMLA Script
                    Dts.Variables["User::ProcessPartitions"].Value = ReadFile(ProcessPartitionFileXMLA, errInfo);
                    if (errInfo.Length > 0)
                        Dts.Log("Error while reading XMLA file: " + errInfo, 0, dataByte);
                        Dts.TaskResult = (int)ScriptResults.Failure;
                    Dts.TaskResult = (int)ScriptResults.Success;
                catch (Exception ex)
                    Dts.Log("Error Message: " + ex.Message, 0, dataByte);
                    Dts.TaskResult = (int)ScriptResults.Failure;
            public String ReadFile(String FilePath, String ErrInfo)
                String strContents;
                StreamReader sReader;
                try
                    sReader = File.OpenText(FilePath);
                    strContents = sReader.ReadToEnd();
                    sReader.Close();
                    return strContents;
                catch (Exception e)
                    MessageBox.Show(ErrInfo);
                    ErrInfo = e.Message;
                    return "";
     how to solve this issue
     pleasse help me..

    Hi sheshu0022,
    Based on my research, the issue can be occurred due to something get corrupted in the script task. To fix this issue, please copy the code in the task, then rebuild the script task with the same code to test again.
    The following similar thread is for your reference:
    http://stackoverflow.com/questions/15165760/ssis-script-task-fails-on-server-with-error-cannot-load-script-for-execution
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • How to call java script function from JSP ?

    how to call java script function from JSP ?

    i have function created by java script lets say x and i want to call this function from jsp scriplet tag which is at the same page ..thanks

Maybe you are looking for

  • Windows Components/remote desktop services/remote desktop session host/profile doesn't appear to be working on 2008R2 boxes

    I have two domains.   One is an account domain with a one way trust with the resource domain.   Resource domain trusts the account domain and has a number of 2008R2 servers running within.  I am experiencing severe logon delays due to these servers b

  • Html widget for "ibooks author"

    Hi, I there a possibility to create a contact form in html to add to the html widget of "ibooks author" with an Adobe product?

  • ITunes Store Not Recognizing Gift Card Credits

    I recently redeemed a gift card and now $25.00 is showing as available on my iTunes Store page. However, when I attempt to buy any 99-cent song, I get following message: "Your remaining credits are insufficient or inapplicable to this purchase. Your

  • IPod will select songs, but they will not play.

    i can navigate everywhere on my iPod and select songs, and when i do the play display screen comes up, but the song does not start playing. if i try to fast forward, the apple logo appears and brings me back to the main menu. I have no idea how to fi

  • Serialization Exception

    Hi All, I am developing webservice application using Dynamic Proxy client. I am using Weblogic8.1 as my application server. All my services are generated using servicegen and clientgen task of Ant. While using Dynamic Proxy client to invoke webservic