call jQuery in WebStageView

Hello

I've seen a few posts SIMILAR to this on this forum, but would like to see if anyone can help with my specific problem.

I am an Iphone/Pad app, and have a Flash file that results only in the constst of a WebStageView script below. Also packaged in the app is a site htm directory called /HYIM/ with subfolders HYIM, dinner, afternoon, a.

import flash.geom.Rectangle;

import flash.media.StageWebView;

import flash.filesystem.File;

import flash.utils.Timer;

import flash.events.TimerEvent;

Stop();

var webView:StageWebView = new StageWebView();

webView.stage = this.stage;

webView.viewPort = new Rectangle (0,0,stage.stageWidth,stage.stageHeight);

var fPath:String = new queue (new File("app:/HYIM/index.htm").nativePath) .url;

webView.loadURL (f);

This loads very well within the app and /HYIM/ is easily navigated, but in one of the pages, there is a jQuery AJAX call that does not resolve. Here is an example of the code in the htm file. The loading of the page, but this particular code that loads an external text file does not work. I suspect it's because of the relative URL, but cannot figure out how to run properly within the app.

text of dinner together using jQuery AJAX call

var url = ' dinner / / afternoon / / a "day +".txt ";

$("#dinner").load (url);

I tried the app: /' and 'file:///' and couldn't get it to load.

Any help would be greatly appreciated!

Thank you.

Thank you all. I discovered the stupid thing that I'm on.

In thethe jQuery script was called remotely.

I had to change the URL in a local copy, and then it worked fine.

Uggh

Tags: Adobe AIR

Similar Questions

  • WebService WCF call jQuery ajax

    Using jquery ajax I try to call the WCF Web service and I get the answer in IE but not in FF and Chrome.

    At the end of the service account that we have configured peace belov of the code

    The WCF Service Web.config


     
     
     
     
     
     

     

    My client Code:


        
           Call the Web Service from jQuery
          
           


       


    Calling Web Services with jQuery/AJAX
       


       
       


    I think I have it hunted. Given your current code, you specify:

    contentType: "application/json, charset = utf - 8"

     


    When the network is requested, we can see the following in Chrome Web Inspector (only including major lines):

    Request URL:http://sampleservice.azurewebsites.net/Service1.svc/GetData
    Request Method:OPTIONS
    Status Code:405 Method Not Allowed
    
    Request Headers
    Access-Control-Request-Method:GET
    
    Response Headers
    Access-Control-Allow-Methods:GET, POST
    Allow:GET
    

    So even though we are specifying a GET in the AJAX request, the request method (for some reason I'm not sure) is failing to OPTIONS, which is not a method allowed by the side server. Based on this KB here this seems to be related to MIME types:

    http://support.Microsoft.com/kb/216493

    So, I advanced and ran a test to make a change to contentType as follows:

    contentType: "text/plain charset = utf-8"

    With that, I saw the success of Chrome, and as in comparison to the network demand, we can see:

    Request URL:http://sampleservice.azurewebsites.net/Service1.svc/GetData
    Request Method:GET
    Status Code:200 OK
    
    Request Headers
    Accept:application/json, text/javascript, */*; q=0.01
    
    Response Headers
    Access-Control-Allow-Methods:GET, POST
    

    This time:

    • Access-Control - request method was not present in the request headers.
    • Allow: GET was not present in the response headers.

    However, our method of application is duly appearing as GET.

    What I think that it comes, it's a configuration server as to how certain MIME types are treated; However, I don't have the expertise to guide you on the application/json MIME type configuration to achieve the same success.

    That being said, with the type MIME text/plain , the success has been called and console.log (result) gave:

    MMAD APPS India Pvt. Ltd.
    

    For reference, my final index.html is as follows.

    
    
        
            Calling Web Service from jQuery
        
        
            

    Calling Web Services with jQuery/AJAX

    Would you be able to it give it a try in your browser and confirm the output of each Web Inspector tool?

  • What is bad dansMon jspx call Jquery alert

    Hello

    I include jQuery in my jspx, but I can't call alert

    <? XML version = "1.0" encoding = "UTF - 8"? >

    "< 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 = UTF - 8 "/ >

    < f: view >

    < af:document id = "d1" >

    "< af:resource type ="javascript"source ="https://code.jquery.com/jquery-1.10.2.min.js">."

    $(document) .one ("pageload", function () {}

    Alert ("event pageload fired!");

    });

    < / af:resource >

    < af:form id = "f1" > < / af:form >

    < / af:document >

    < / f: view >

    < / jsp:root >

    Thank you

    REDA

    As I already answered here How to call jspx servelte you need to separate your code to the two tags af:resource.

    Also, $(document) .one ("pageload") is discouraged then try something like:

    $(document).ready(function() {
        alert("document loaded!");
    }
    

    Dario

  • So congratulations. Your last update (19) beat Jquery selectors of dates on Web sites all over the world

    Millions of Web sites that do not call Jquery datepickers in fields of seizure with an attribute date no solitary work today for users who are viewing these sites with 19 FF. First jumps of Chrome date from the municipality and now Firefox. I guess that the rest of the browser will not want to be left for some great idea on the horizon which is the root cause of all this, but it's serious. MILLIONS of Web sites no longer work, and webmasters are scrambling to find solutions. All that was expected by all that you people of browser for entry with a date attribute fields, won't happen because you have forced people to call the dates by any other method selectors. This means that entry with a date attribute fields will disappear.

    Thanks a lot guys!

    For me at least, the question is now irrelevant. Apparently the built-in popup date picker that any serious web developers will not want, is here to stay.

    The only option now is to remove the type = "date" attribute of input fields where you want to call a date picker custom. Instead, you must define the field type = "text" and call the datePicker custom for fields with a specific class name.

  • With the new update my site now will not load.

    It loads with other browsers by not with Firefox on one of my two computers or with my android.

    My OS XP loading fine this am; but after that I updated my Firefox, it has stopped loading. Here is my site. http://weareisrael.org/

    Is it possible that the new version does not like the plugin called "jQuery Mega Menu Vertical?"

    Here is a screenshot of what I see on my XP and Win 7 computers. And my android looks the same too.
    https://DL.dropboxusercontent.com/u/4289827/screenshot%202015-05-15%2012.36.30.PNG

    Of course you would appreciate thoughts.

    Michael

    One more, then I'll stop: Some WordPress plugins include browser sniffing code that can adjust the output for different browsers. Recently, there was one that worked right up for Firefox 35 and caused problems in Firefox 36 (why can not my clients or I discovered my own site on FireFox?). Conversely, an update of the plugin sometimes things to go haywire. Therefore, it is interesting to try to disable WordPress plugins to see if that makes a difference.

  • Left click does not work in Hotmail or Yahoo

    I was running low disk space and my IT dept says: they removed some "temporary files". Everything they did watered IE so that she came back to v7 V8. They Redid the upgrade of IE and installed a bunch of updates to MS and updated Java, but I'm still having a problem in FF. Most of the sites are fine, but when I go to Yahoo or Hotmail email, left click does not work. I tried to uninstall/reinstall FF. I tried to launch FF in safe mode and reinstall some of the plugins I thought that might have effects. I still can't run. I used some of the tools web dev in FF, all I know is some of the errors that are reported on the loading of the page. On Hotmail, one is that a var called 'JQuery' is undefined, among others.

    Clear the cache and cookies from sites that cause problems.

    "Clear the Cache":

    • Tools > Options > advanced > network > storage (Cache) offline: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Tools > Options > privacy > Cookies: "show the Cookies".

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

  • It is Possible to "Break" a refreshing interactive report

    We have an interactive report for which we want to apply two filters of columns as required. We already understand how to examine active filters and determine if they are defined.

    What we need now is a mechanism by which if the user changes the filter criteria (for example by removing one of these mandatory filters), we can stop the refresh of the APEX and produce an error message. For example, such logic could be placed in the event before updating ?

    Does anyone have any ideas of how this could be done?

    -Joe

    I watched it for a bit, but I don't think that there is a same way by far just to deal with this. Ajax for IRs calls do not use calls jQuery.ajax (unhappy), but using a call to htmldb_Get.getAsync. An XmlHttpRequest object is created it but of course never exposed, not allowing only no interaction on this and is probably too entrenched in apex javascript to change. If it was using jQuery you might have tried to use the ajaxSetup, such as described in javascript - Ajax Abort request using jQuery - Stack Overflow or stop all active in jQuery - Stack Overflow ajax requests (and all the variants by seeking the abandonment of ajax).

    There is nothing you can do to tell the front discount event since the cancellation which is only to cancel forward discount event, not the update real.

    I think that simply the substitution of certain functions on the gReport object might serve you best. Keeping in mind it is better not tampered with and only is not supported etc etc - I assume that you know the drill now.

    There are a couple of candidates for this. "gReport.action" for example: you could simply block any action of ajax on the report before that happens: remove the filters, add filters, search, sweater - without having to worry about xmlhttprequests. I explored a few other roads, but honestly, they have become too complex for what it was.

    //first store the original _Get function. We can't lose this because we still need it.
    var old_Get = gReport._Get;
    
    //now override the existing function with our own implementation. Preserve the signature so that the params can
    //be passed on
    gReport._Get = function(p_widget_mod,p_widget_action,p_widget_action_mod,p_id,p_value,p_x05,p_x06,p_x07,p_x08,p_x09,p_x10){
      //lets do some arbitrary check in here
      if(p_widget_mod == "PULL"){
         //now nothing will happen when you want to pull the report
         return false;
      };
      //and dont forget to at least execute the original function !
      old_Get(p_widget_mod,p_widget_action,p_widget_action_mod,p_id,p_value,p_x05,p_x06,p_x07,p_x08,p_x09,p_x10);
    };
    

    Now when running

    gReport.pull()
    

    nothing will happen.

    You will need to modify it to meet your needs. If it is to take it too far for you then you can hit a brick wall though, I see no other option personally and to this day.

  • Adobe Musse Express!

    I have a huge problem. All websites that I made with Adobe Muse are infected with a virus. We believe that Muse Abode could be the real problem, because we have other sites with other programs without problems. We are sure that this can not result from our accommodation.

    There is nothing in the Muse who would put a file called jquery.js in a folder named 'index_htm_files' on your server.

    Most likely, your FTP credentials have been compromised, and a hacker has used to put malicious content on your site. Work with your hosting provider to clean up the site, to modify all references FTP site and re - download.

  • spreadsheet functionality

    Work in Apex 4.0


    My client has a great need to have features of spreadsheet in the APEX, mainly autofill drag-and-drop. They could be entered 7500 + dates, but this could be reduced to 400-500 maybe because of the repetition of the data across columns and rows with autofill. Yes, they can filter until they need in an interactive report, AutoFill, export, import, but I try to avoid this scenario due to other requirements. Is it possible to have a page of type excel embedded on an HTML map, which can be filled as a report and saved accordingly?

    I'd also like to other ideas.

    There's a jQuery plugin called jQuery.sheet you may be able to use... http://visop-dev.com/Project+jQuery.sheet

    Looks like you might be able to use this feature with reports tabular apex if you create a custom report template to match the sample HTML at the bottom of the demo page...
    http://visop-dev.com/lib/jQuery.sheet/jQuery.sheet.html

    Good luck!

  • FGL and broaden the question of the DIV.

    Hello

    I am trying to replace a tabular by DIVs presentation as the new site will FGL and tables don't fit that DIVs can. I hunted for some pure CSS code to achieve an effect, because a DIV will extend its content when the mouse is placed over the tag DIV automatically and even collapse when the mouse over to another DIV since it's 18 ebooks that I will host. The content of the div will be primarily text with a few links for each of the type eBook to download.

    What I'd like to do is the following:

    • A single column FGL DIV but with 18 lines, one for each book. (perhaps that should 36 lines because I would like to expand.)
    • I want the title of the book only to appear on the first line (maybe the text can wrap depending on the size of the screen).
    • When the div expands the rest of the text (full book description and download links) are displayed.
    • The display format even apply to all devices.

    As I do for a hobby, I don't know how to achieve this and I hope for some advice. I know it can be done with Javascript, but if a visitor has disabled javescript while it does not work.

    Any ideas on if it's feasible or not, if it is, a sample of code I can develop and learn lessons?

    Lee

    PROBLEM #1: Mouseovers don't work on touchscreen devices because they do not have a mouse.  Better, if use you triggers to OnClick events to show/hide content.

    In the following example, more + links are obtained with a small plugin but effective called jQuery Condense.

    http://ALT-Web.com/FluidGrid/Fluid2.html

    MORE buttons hide/divisions with jQuery right switches.

    http://jsfiddle.NET/NancyO/AP9Hm/

    Nancy O.

  • Replace the message "No Items Found" with Javascript

    On this page http://www.sedonamagoretreat.org/test in the second box "Program Dates" in the sidebar on the right, I'm trying to set up a script that I found to replace the "No items found" message with a custom html file.

    The javascript is here: http://www.sedonamagoretreat.org/js/no-items-found.js and here is the html file that is used to replace the message: http://www.sedonamagoretreat.org/prog-dates-alternate-content.

    I'm sure this is an easy fix and I'm just on something... suggestions to get this script working are welcome - thanks!

    Linda

    Well Yes, it's easy to fix.  You are the javascript file requires jQuery is working properly and in the HEAD of your page or the page template you load the '/js/no-items-found.js' before calling jQuery.  Just move this SCRIPT reference in your page or your page template to the bottom of line to make AFTER the dismissal of javascript jQuery.

    Once correct you this error, it seems that the script is a not can prepare to deal with multiple instances of your web applications list.

  • What is the JS/jQuery function should I call to sort a column in an IR?

    Hi guys,.

    Given that this no longer works in APEX 5.0: how you trigger sort column of the item page APEX interactive report?

    I'm looking for the function that is called when you press the button to sort on a column to place the call in a dynamic Action.

    What function is called and how when you press the button in the image below?

    Thank you

    Digital

    I don't know why you (or someone else) so go out of your way to disassemble the main features of the IR. Literally everything you have (or had) to do was to tell users how to use the controls that is given to them. What is the punishment by clicking on a column header to sort something out or use the format > dialogue sort? I don't understand. Here are the easy commands that work in singles. What you (or they) win by this control in duplicate?  Why is it important if he doesn't "Executive"? Does this mean that if something is or was bad, you should keep just bad? They shouldn't have to learn to work well with their tools?

    Look, I'm all in favour of offering more control over widgets (API and) such as IR and I have provided my share of hackery. I don't see much justification here.

    Then gReport using was quite clear and the markup was simpler, at apex 5, is more complex. The principle is much the same, a lastcolumnid is defined and a direction, then the sortorder is called in the _columnOrder. You cannot use _columnOrder unless you set lastColumnId on the widget and I wouldn't do that as I do not change the internal state. So I just use the call syntax used in turn. Your selection list will select the columns of ir apex for this (since you need the id)

    var irw = apex.jQuery("#myReport_ir").data("apex-interactiveReport"); -- retrieve widget instance
    -- trigger the action
    -- f01: column id. In apex 5 these are by default generated ids, f02: desc/asc
    irw._action("COLUMN_ORDER", {f01: irw.lastColumnId, f02: "DESC" });
    

    Do with what you want and use at your own risk. It is not supported and could very well break flat-out more down the line. Not to mention that you (or someone else) have to maintain it and still understand it later.

  • Best way to a jQuery AJAX with JSON format called in CFM file

    Instead of using cfhttp in my CFM file, I like to use jQuery AJAX in JSON to do the query. Should I simply put the JS script on the CFM page? Or, do all the work in a .js file and call this .js file in the CFM page for display and setting in the form? Or should I just use the .js file to make JSON calls and also targeting the IDS in the CFM file for display purposes?

    Thank you.

    The standard way to include a .js file.

    
    

    HTH,

    ^_^

  • How to call a javascript/jquery on a partial page of the report refresh.

    Hello

    I have a sort of obligation to highlight the search string in a column in report 3. I realized that using a jquery plugin. However, this works only on the loading/reloading page. If the following lines set target (paging), it does not. It seems, pagination makes only a partial page refresh thro an ajax call, and so the process of jquery for the highlight will not take place. How to follow the events of paging (navigation to the next set of lines) and call the same process of jquery?

    An example page is created the apex.oracle.com

    http://Apex.Oracle.com/pls/Apex/f?p=20956:21

    ID: demo
    password: natarajans

    If you enter a job as Manager or clerk and press ENTER, it is highlighted on the job column. However if you click on the next series of lines, the highest point does not take place.

    (apex version is 4.1).

    Thank you for your help in advance.

    Kind regards

    Nicolas.

    Hi Nicolas,.

    your IR region gives a model of region? It is an obligation to use dynamic measures on a region. You can use the DIV 'only' (or something similar) which is not a UI affect but creates a wrapper DIV around the IR.

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Try calling a WCF service hosted locally by a HTML Page customized using jquery. Error: 451: undefined

    Hello

    I created a WCF Service, customized and hosted locally by using application Console VS.

    I need to access the methods of the custom of a custom Page HTML application, using JQuery.

    I tested the WebService in Wcftestclient.exe and it works very well.

    Now, while trying to access it from the HTML Page (not no matter what Web Application), he runs into function() error of $. ajax()

    State of error: 451

    messageReason Error: Undefined

    Please share your suggesstions how approach when accessing the client HTML Page.

    Hello

    The question you posted would be better suited in the MSDN Forums; We recommend that you post your question in the MSDN Forums to get help:

    http://social.msdn.Microsoft.com/forums/en-us/WCF/threads

    Keep us updated on the status of the issue.

Maybe you are looking for

  • install the mavericks 10.9.5 in mini mac end of 2014

    Can I install the mavericks 10.9.5 on the Mac mini end of 2014? The Yosemite and El Capitan your very slow. I'm not sure about this.

  • I can't get some pages to load. How can I fix?

    I can not load some sites such as Twitter, Firefox Add-ons, etc. I think that it is a coding error as loads basic Imageless HTML pages. I checked to make sure that Java is enabled - it is. I have reset Firefox, uninstalled, deleted the cache and hist

  • the font size on the screen

    How to change the size of the characters displayed on the current screens of k high resolution 4 k and 5 - we become old and posted letters are too small for quik and easy playback and editing. And the zoom tool is too bulky to use - I want to see th

  • Tecra 5200 - nothing happens after pressing the power button

    When I press the 'power' of my Tecra 5200 kids button nothing happens, only the front panel power led lights, but laptop does not start - in fact, nothing happens. Earlier, I lived as a result of problems;-the internal HARD drive didn't work, so I pu

  • Impossible to create recovery USB Drive After Win 8.1 pass on Lenovo Twist

    After the upgrade to Win 8.1 and try to create the recovery usb disk, I get this error: "We cannot create a disc of reccovery on this PC. Some required files are missing. To trouble shoot startup of your PC problems, use your installation window or m