Using jQuery UI in a timeline trigger

I am successfully using jQuery in timeline triggers, but something is going wrong when I try to use jQuery UI.
I am loading jquery-ui-1.9.2.custom.js and jquery-ui-1.9.2.custom.css using yepnope in the creationComplete event for the stage object ("Symbol").  The same code that works in the "complete" function of the yepnope does not work in a timeline trigger.  The code is:
sym.$("main_st_classic").hide("blind", { direction: "horizontal" }, 2000);
So this is what it looks like bound to the default timeline:
      Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 0, function(sym, e) {
         // insert code here
         sym.$("main_st_classic").hide("blind", { direction: "horizontal" }, 2000);
BTW, in the picture below the display property is set to Always On, but I have tried it with On and experienced the same problem.
Any thoughts will be much appreciated.

Umpf, my fault. DDL statements execute implicit commit.
You need to execute your DDL statements in a separate transaction and not within the trigger transaction
Try this:
create or replace procedure create_user(p_username in varchar2, p_password in varchar2)
is
  pragma AUTONOMOUS_TRANSACTION;
begin
  execute immediate('CREATE USER '|| p_username ||
                    ' IDENTIFIED BY '|| password ||
                    ' DEFAULT TABLESPACE MAGICOP QUOTA UNLIMITED ON MAGICOP');
  execute immediate('GRANT APP_USERS TO '||p_username); 
  execute immediate('ALTER USER '||p_username ||' DEFAULT ROLE ALL');
end;
CREATE OR REPLACE TRIGGER NORDISKADMIN.BIU_LOGIN_JV
BEFORE UPDATE OR INSERT ON LOGIN_JV
FOR EACH ROW
DECLARE
BEGIN
  GETSTDTRIGGERINFO( inserting,'LOGIN_JV', :new.US_INSERT,:new.DT_INSERT,:new.US_MODIFY,:new.DT_MODIFY,:new.AI_LOGIN_JV);
  create_user(:new.CD_LOGIN_JV, :new.PW_LOGIN_JV );
END;

Similar Messages

  • Flash CC: use jQuery functions

    I want to use jquery functions into flash for html5 game I am building. What I tried to do is add the following lines, and then use simple jquery function, but it seems not loaded, because I get the error: $ is not defined
    My code, which is in the first frame of the main timeline, is:
    var head = document.getElementsByTagName('head')[0];
    var file = "http://code.jquery.com/jquery-1.11.0.min.js";
    var ref = document.getElementsByTagName('script')[0];
    var js = document.createElement('script');
    js.src = file;
    ref.parentNode.insertBefore(js, ref);
    console.log(head.outerHTML);
    console.log($(document).height());
    console.log($(document).height());
    The result I see in the console log, is the following:
    <head>
          <meta charset="UTF-8">
          <title>ggg</title>
          <script src="http://code.jquery.com/jquery-1.11.0.min.js"></script><script src="http://code.createjs.com/easeljs-0.7.1.min.js"></script>
         <script src="http://code.createjs.com/tweenjs-0.5.1.min.js"></script>
         <script src="http://code.createjs.com/movieclip-0.7.1.min.js"></script>
         <script src="ggg.js"></script>
         <script> var canvas, stage, exportRoot;
              function init()
                   canvas = document.getElementById("canvas");
                   exportRoot = new lib.ggg();
                   stage = new createjs.Stage(canvas);
                   stage.addChild(exportRoot); stage.update();
                   createjs.Ticker.setFPS(lib.properties.fps);
                   createjs.Ticker.addEventListener("tick", stage);
         </script> </head> ggg.js:163
    > Uncaught ReferenceError: $ is not defined
    What is wrong with that? and what I have to do so I can use jquery?
    TIA

    As shown in line 9 of the code above, I wrote: console.log ($ (document) .height ());
    I did not think, I needed to set the variable $, because jquery is already doing it. Is not it?
    If I try to write the line: <script src = "http://code.jquery.com/jquery-1.11.0.min.js"> </ script> within the <head> html file manually, then there is no problem and I get the height of the screen, even without defining the variable $.
    Which brings me to the conclusion that, although the line was written in the file, as you can see in the console log, but it still does not start ...
    The problem is, if I write the line in the html file manually, when I do publish .fla file, Flash CC erases the line and everything was written by hand. So I thought to write the above code from the first frame of the timeline.
    Is there a better way?
    And yet - why the above code tweaks error message?
    TIA

  • Is it possible to manipulate page viewer webpart using jquery on page?

    I have an aspx page onto which I have added a page viewer web part to display a powerpoint file. I wanted to hide or remove the close button because closing returns to the library in which the file lives, which is not the desired behavior.
    my first solution was to hide the close button using jquery using the following
    <html>
    <head>
    <script language="javascript">
    $(document).ready(function()
    alert("hello");
    $(".cui-topBar1").hide();
    </script>
    </head>
    </html>
    I am reasonably certain that this function is called before the page has rendered the page viewer web part, meaning that the html element of interest is not even on the page, which in turn would explain why the function does not do what I desire.
    is there a way to trigger this function after the web part is rendered? or, is there a way to intercept the close event or its redirection so that I can send the user to the desired page? Perhaps it is as simple as adding html to hide web part elements,
    but that has not worked either.
    the ideal solution is to manage page redirection on close or prevent powerpoint viewer closing.
    sharepoint 2013 sp1 enterprise farm, self hosted.

    Hi Tony,
    Thanks for sharing the information. Have a good day.
    Regards,
    Rebecca Tu
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Load another Edge project with a symbol timeline trigger

    I'm working on an E-book like project that basically every page is an Edge composition.
    I make a symbol within a turn-page animation that will play on click.
    And I have a timeline trigger in the symbol and I'm hoping there is a way to load another Edge project with that trigger.
    Is there a way to do so?
    Thanks.

    I put together a Composition that I think does what you're asking. it's not elegant, but it works.
    in the timeline of Symbol_1
    place stop() triggers at the start and end
    in the same triggers, set a Symbol variable that states whether the animation has finished i.e. sym.setVariable("isDone", "false");
    place a trigger on the rectangle to play() or playReverse() depending on an if() statement about the variable
    in the timeline of Symbol_3
    place stop() triggers at the start and end
    in the same triggers, set a Symbol variable that states whether the animation has finished i.e. sym.setVariable("isDone2", "false");
    place a trigger on the rectangle to:
    declare 2 new variables, which use sym.getVariable() to get isDone and isDone2 as above,
    play() or playReverse() depending on an if() else if() else if() statement about both variables
    I used the relative string to get the local variable and absolute string to get the variable from the other Symbol, i.e.
    var myVariable = sym.getComposition().getStage().getSymbol("Symbol_1").getVariable("isDone");
    var myVariable2 = sym.getVariable("isDone2");
    I can send you the entire code if that helps.

  • What are the implications of using jquery version 1.10.2 rather than the version (1.7.1) that Adobe

    What are the implications of using jquery version 1.10.2 rather than the version (1.7.1) that Adobe uses? Thanks
    Bob

    I am having trouble when my Edge Animate composition (banner ad) appears on a web page that uses jquery version 1.8.23. Some of the functionality of the host page no longer works. This occurs only when my composition is present & the functionality returns when another ad is displayed (either a Flash ad or a gif). It happens in Chrome Version 31.0.1650.63 m, Chrome Version 33.0.1738.0 canary & IE 11.
    I had edited my Edge Animate files to use the Adobe CDN option & to point to another server (mine) so only the html file was needed to be placed in the ad rotator & on the host's server. I now have edited them again to include the Google CDN locations for version jquery 1.10.2 (http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js). I am waiting for the host site to try this updated html file. When I visit just this new page & the old one that pointed to 1.7.1 for that matter, it works fine.
    Thank you for taking the time to read and answer my message.
    Bob

  • Setting row level field in table using jQuery

    Hi,
    I'm utilising the following to read and then set values in the same row within a report.
    Re: Referencing a row level field value in an Interactive Report using jquery
    Consider the following snippet
    // read information eg
    var row = $x_UpTill(this.triggeringElement, 'TR');
    var dateCompleted = $('input[name="f03"]', row)[0];
    console.log(dateCompleted.value);
    // write information eg
    var dateBooked = $('input[name="f02"]', row)[0];
    //dateBooked.value = 'xyz'; // sets to xyz, as expected
    dateBooked.value = return_date; // sets the actual code, not returning stringAll works as I'd expect except the last line. I have a js function returning a formatted string (Set Date With Javascript but in this case my field now contains the actual code definition, not the date string the function actually returns.
    I'm thinking I'm just misunderstanding a simple concept for JavaScript here?
    A simple workaround could be to create field P0_SYSDATE, calculated to TO_CHAR(SYSDATE,:F_DATE_FORMAT), then apply
    dateBooked.value = $v('P0_SYSDATE');but I'm trying to improve my understanding of javascript/jQuery...
    Cheers,
    Scott

    So are you saying that return_date is an actual javascript function that returns the formated string/date you want?
    If so, then I think you simply need parenthesis to run the function:
    dateBooked.value = return_date();Or... am I missing something here?
    Thanks
    -Jorge

  • Using live text in a lightbox trigger

    I am using live text in my lightbox trigger and in preview everything works great the first time around. However, after i've clicked on the lightbox trigger the first time, my text will no longer show up if I rollover the trigger again. I've tried the "hide all initially" option and that didn't work. Any suggestions??

    By "opening it in Acrobat" I mean opren the Adobe Acrobat application and then open the PDF file in it (File -> Open -> select your PDF)
    If you have the file open in Acrobat then follow the commands I offered in my first response to convert the PDF to a Word file.  YOu can then open the Word file in Word and do what you wish with the contents of it.

  • Using jquery to upload files

    Hi
    I have uploaded files before but not using jquery but now am trying to use jquery so that my files uploads without page refreshing.
    This is my Jquery code. and below is the html code. Can any one help me with the jquery code so that I can get the data to the php script that process
    the variables.
    JQUERY:
    <script type="text/javascript">
    $(document).ready(function() {
       $("#photoform").submit(function() {
                                var phototitle = $("phototitle").val();
                                var photogenre = $("photogenre").val();
                                var photodesc = $("photodesc").val();
                                var photofield = $("photofield").val();
        $.post("Uploadfix.php", { phototitle: phototitle,
         photogenre: photogenre, photodesc: photodesc, photofield: photofield}, function(data) {
         $("#allresult").html(data);
       return false;
    //-->
    </script>
    PHP CODE:
    $phototitle=addslashes(strip_tags($_POST['phototitle']));
    $photogenre=addslashes(strip_tags($_POST['photogenre']));
    $photodesc=addslashes(strip_tags($_POST['photodesc']));
    $photo=$_FILES["photofield"]["name"];
    $type=$_FILES["photofield"]["type"];
    $size=$_FILES["photofield"]["size"];
    $temp_name=$_FILES["photofield"]["tmp_name"];
    $error=$_FILES["photofield"]["error"];
    echo "$phototitle";
    echo "<br/>";
    echo "$photo";
    echo "<br/>";
    echo "$type";
    echo "<br/>";
    html:
    <form id="photoform" method="post" enctype="multipart/form-data" action=''>
    //id variables:
    </form>
    How can I read in the file from jquery to the php sucessfully. NO SUCESS YET!
    Thanks.

    Hi Gramps
    Thank for the reply. If I use form action like the code below it works but I can not do validation.
    <script type="text/javascript" >
    /* $(document).ready(function() {
                $("#photoform").submit(function(e)         {
                $("#allresult").html('');
                $("#allresult").html('<img src="PHOTOTEST/loader.gif" alt="Uploading...."/>');
                $("#photoform").ajaxForm({
                            target: '#allresult'
            }).submit();
    </script>
    HTML:
    <form id='photoform' enctype='multipart/form-data' method='post' action='process.php'>
    </form>
    PHP:
    $example=$_POST['INPUT'];
    if($example>5)
    echo "input greater than 5 sorry.";
    else
    //process data
    The problem is this is echoed in a new page which is process.php. Instead of on a div on the page that is submitting the form. I know this is
    because of the form action. how can I make the validation appear on a div on same page?
    cheers.

  • How to use jquery.hotkeys.js in ADF application

    Hello all,
    I am developing an ADF application where i am trying to use jquery.hotkeys.js file. I have created a folder js inside ViewController\Web Content\js and i have added jquery.hotkeys.js file inside that folder.
    Now i have created a jspx page and inside that i have 3 input text and 1 submit button now I am trying to use keyboard shortcuts say ALT+F8 to clear the form fields. Here is my full jspx form
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <f:view>
    <af:document id="d1">
    <af:form id="f1">
    <af:inputText label="First Name" id="it1" value="#{MyBean2.firstName}">
    <af:clientListener method="clearAll" type="keyDown"/>
    </af:inputText>
    <af:inputText label="Last Name" id="it2" value="#{MyBean2.lastName}">
    <af:clientListener method="clearAll" type="keyDown"/>
    </af:inputText>
    <af:inputText label="EmailID" id="it3" value="#{MyBean2.emailId}">
    <af:clientListener method="clearAll" type="keyDown"/>
    </af:inputText>
    <af:commandButton text="Submit" id="cb1"
    action="#{MyBean2.callSubmit}"
    binding="#{MyBean2.cb1}">
    <af:clientListener method="clearAll" type="keyDown"/>
    </af:commandButton>
    </af:form>
    <f:facet name="metaContainer">
    <af:resource type="javascript" source="/js/jquery.hotkeys.js"/>
    <af:resource type="javascript">
    function clearAll() {
    $("*").bind('keydown', 'Alt+F8', function (evt) {
    clearForm();
    evt.stopPropagation();
    return false;
    function clearForm() {
    alert('3');
    curElm = document.activeElement;
    var frm = $(curElm).closest('form');
    var frmname = ($(frm).attr('name'));
    document.forms[frmname].reset();
    document.getElementById('frmname::content').reset();
    document.getElementById('f1::content').reset();
    $("input:visible:enabled:first").focus();
    </af:resource>
    </f:facet>
    </af:document>
    </f:view>
    </jsp:root>
    But that is not working. Can anyone help?
    Thanks

    My requirement is the form should get cleared on pressing ALT + F8.
    Here is my updated jspx page:-
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <f:view>
    <af:document id="d1">
    <af:form id="f1">
    <af:inputText label="First Name" id="it1" value="#{MyBean2.firstName}">
    </af:inputText>
    <af:inputText label="Last Name" id="it2" value="#{MyBean2.lastName}">
    </af:inputText>
    <af:inputText label="EmailID" id="it3" value="#{MyBean2.emailId}">
    <af:clientListener method="clearAll" type="keyDown"/>
    </af:inputText>
    <af:commandButton text="Submit" id="cb1"
    action="#{MyBean2.callSubmit}"
    binding="#{MyBean2.cb1}">
    <af:clientListener method="clearAll" type="keyDown"/>
    </af:commandButton>
    </af:form>
    <f:facet name="metaContainer">
    <af:resource type="javascript" source="/js/jquery.hotkeys.js"/>
    <af:resource type="javascript" source="/js/jquery-1.4.4.min.js"/>
    <af:resource type="javascript">
    function clearAll() {
    jQuery('*').bind('keydown', 'Alt+F8', function (evt) {
    clearForm();
    evt.stopPropagation();
    return false;
    function clearForm() {
    curElm = document.activeElement;
    var frm = $(curElm).closest('form');
    var frmname = ($(frm).attr('name'));
    alert(frmname);
    document.forms[frmname].reset();
    $("input:visible:enabled:first").focus();
    </af:resource>
    </f:facet>
    </af:document>
    </f:view>
    </jsp:root>
    But still I am not able to get the desired functionality. Am i missing something here?
    Thanks

  • How to use Jquery Data Grid in HTML

    can anyone please tell me how to use JQuery Data grid in my HTML page with example.
    I have one HTML page i want the standard JQuery Data Grid with search and pagination functionality.

    Guys I have got the solution
    thanks a lot
    please refer this link for JQGrid
    http://www.codeproject.com/Articles/609442/Using-JqGrid-in-ASP-NET

  • Developer-Online New Tutorial Released: Create a Flickr gallery using jquery and JSON

    Create a Flickr gallery using jquery and JSON
    Hello everyone, In this tutorial I'll show how is simple to build your Flickr photo gallery using jQuery framework and JSON. We'll see how to setup thumbnail's numbers, convert your RSS Flickr in a JOSOn format and display theme. Thank You for your attention!
    Posted on:                                       2010-01-11 10:20:48
    Author: patrizio Quatrini
    Best Regards
    Waleed Barakat

    Heya,
    When I first read your post I originally thought you were posting a tutorial about whether a chosen username has already been resigtered or not on the signup page like this tutorial:
    http://DwFAQ.info/signup_demo.php
    Spry Check Username Availability
    Date Created: Sunday, July 5, 2009 2:29 PM
    Then after looking at the page you've linked to and trying to understand the objective of the tutorial I've noticed that you are talking about something like this:
    http://DwFAQ.info/home.php?id=7
    Spry Search
    Date Created: Sunday, March 1, 2009 8:51 PM
    It's pretty simple to do with the link I've referenced. Simply create your database with populated tables, use the mentioned script to convert the database data into xml syntax, then enter your dynamic database script as the location of the xmlDataSet in the spry page linked.
    View source on this page which shows the non-destructive filter in action to see how it's done! You can also spice it up a little for products, etc. by using this method. The key is to create a dynamic xml syntax from your database and then use the dynamic xml script location as your xmlDataSet in the search page.
    I have an example of the auto suggest search on my homepage http://DwFAQ.info
    On the top-left side of the page click on the link that says Search Tutorials to reveal the search form. Then start typing characters into the search box to see the entries instantly filter according to the characters that are typed. You can also filter further by clicking on the category checkboxes to filter by keywords AND category.
    You can view the source code on my homepage to see the location of the dynamic xml syntax referenced as the xmlDataSet location and how it was implemented into the site.

  • Rating a List Item using jquery with out using User profile service

    Hi,
    I dont have access to Central admin and i was not not able to enable USer profile service.
    can i rate a list item in Sharepoint 2010 using any jquery plugin
    i got the link
    http://blogs.msdn.com/b/carloshm/archive/2009/08/24/jquery-rating-in-sharepoint-lists.aspx
    But i am not able to find any plugin in it.
    Please advice.
    Thnaks,
    Pallavi

    Hi,
    According to your post, my understanding is that you wanted to rate a list item using JQuery in SharePoint 2010.
    The link you had posted above is for SharePoint 2007.
    You can refer to the following articles which about using the JQuery to call the rating service.
    http://blog.dennus.net/2011/08/09/using-spservices-and-jquery-to-include-social-rating-control-on-_layouts-page/
    https://www.habaneroconsulting.com/insights/Calling-the-Rating-Service-using-jQuery-in-SharePoint-2010-Part-1-of-2#.UxbQxvmSz6k
    You can also use the tool of the CodePlex to achieve it.
    http://sptoolbasket.codeplex.com/
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • How can i use jquery code in ExtendedRenderKitService?

    i'm try to using jquery like this way,but cause js error.
    so,can i use jqeury code in ExtendedRenderKitService? how?
    private String jsFunction() {
    StringBuilder sb = new StringBuilder();
    sb.append("$(document).ready(function(){");
    sb.append("var spans = $('span');");
    sb.append("alert(spans.length);");
    sb.append(" });");
    return sb.toString();
    public void searchTree(ActionEvent actionEvent) {
    favoriteTreeManager.searchTree(searchCriterium);
    FacesContext context = FacesContext.getCurrentInstance();
    ExtendedRenderKitService extRenderKitSrvc =
    Service.getRenderKitService(context, ExtendedRenderKitService.class);
    extRenderKitSrvc.addScript(context,
    jsFunction());
    }

    Hi,
    $('span') is invoked when the page renders if I remember correctly. Since using JavaScript from a managed bean invokes a function, the use of JQuery does not work. You can run a little test. If you get JQuery working from a URL browser typing javascript:... command ... then the same probably works from a managed bean
    Frank

  • Problem in call onpremise web service from o365 using jquery ajax

    I am trying
    to consume an onpremise web  service from the o365 site page using
    jquery ajax and it's giving me following error:<o:p></o:p>
     "Error:
    Operation aborted<o:p></o:p>
    Here is the
    code:<o:p></o:p>
     <o:p></o:p>
    jQuery.support.cors
    = true;<o:p></o:p>
              $.ajax<o:p></o:p>
    ({    <o:p></o:p>
    type: "POST",
                   <o:p></o:p>
     url: 'http://**************/WebService.asmx/CreateFolder',
                 <o:p></o:p>
    data: "{'PartId':'"+partnerid+"'}",
                  <o:p></o:p>
    contentType: "application/jsonp; charset=utf-8",
                  <o:p></o:p>
    dataType: "jsonp",
                 <o:p></o:p>
    username: "*****************",
                  <o:p></o:p>
    password: "******************",<o:p></o:p>
      success:
    function (msg) { $("#divResult").html("Success"); },
                <o:p></o:p>
       error:
    function (xhr, status, error){  console.log(error);
    console.log(status); }
              <o:p></o:p>
    });<o:p></o:p>
    Any
    help would be greatly appreciated.Thanks.<o:p></o:p>

    Where exactly you are trying to create folder
    This will work on both Office 365 and on prem
    http://www.c-sharpcorner.com/UploadFile/0e18a8/create-a-folder-in-document-library-in-sharepoint-2013-using/
    var context = SP.ClientContext.get_current();
    //gets the current context
    var web = context.get_web();
    //gets the web object
    var list = web.get_lists();
    //gets the collection of lists
    var targetList;
    var itemCreation;
    function createFolder() {
        targetList = list.getByTitle("MyDocumentLibrary");
        itemCreation =
    new SP.ListItemCreationInformation();
        itemCreation.set_underlyingObjectType(SP.FileSystemObjectType.folder);
        itemCreation.set_leafName("MyCustomFolder");
        var folderItem = targetList.addItem(itemCreation);
        folderItem.update();
        context.load(folderItem);
        context.executeQueryAsync(onFolderCreationSuccess, onFolderCreationFail);

  • Using JQuery In Apex

    I am using Apex 4.1
    I am trying to animate a list, so wanted to use JQuery
    So I edited my page and placed the following in Javascript box.
    $(function() {
            $("#MAIN").show("slide", { direction: "up" }, 500);
    }); I gave my list region the id MAIN.
    Unfortunately the animation does not work.
    I believe the Jquery file required to make this work is jQuery UI Effects, which I believe is loaded automatically in Apex 4
    or am I wrong
    Cheers
    Gus

    Gus C wrote:
    I have now placed the following in to my page template
    <script src="#IMAGE_PREFIX#libraries/jquery-ui/1.8.14/ui/minified/jquery.ui.effects.core.js" type="text/javascript"></script>
    <script src="#IMAGE_PREFIX#libraries/jquery-ui/1.8.14/ui/minified/jquery.ui.effects.slide.js" type="text/javascript"></script>Still nothing
    GusThe problem is in your paths that has file names spelled wrongly and also the point you are loading the files is before the *#HEAD#* tag, these files should be loaded after the *#HEAD#* tag because the actual jQuery file is loaded at that point by APEX
    You should load the files with these names
    <script src="#IMAGE_PREFIX#libraries/jquery-ui/1.8.14/ui/minified/jquery.effects.core.min.js" type="text/javascript"></script>
    <script src="#IMAGE_PREFIX#libraries/jquery-ui/1.8.14/ui/minified/jquery.effects.slide.min.js" type="text/javascript"></script>Check your app/page now
    Edited by: VC on Jun 21, 2012 9:22 AM

Maybe you are looking for