MXML+HTML+Remote JavaScript

Hello All,
I have to build one AIR application that has mxml interface,
uses html pages and also have to use remote JavaScripts i.e.
JavaScript:url
When I apply security sandbox, other eval function works
(which is also restricted by sandbox same as javaScript url) but
JavaScript URL is not working :(
Scenario:
I have main.mxml file which is main content, inside mxml I am
using an mx:html, which is referring to index.html.
index.html has reference to( in iframe) sports.html which
contains link to remote javaScript.
Now the problem is sports.html gets loaded in index.html
(which is inside the main.mxml), but that remote javaScript doesn;t
work.
I am really stuck up here.
Is anyone has solution?
Thanks in advance

Hi,
Yes, this is part of the AIR security model. Take a look at
this
livedocs article.
You can load remote javascript in the non-application
sandbox. See
privileges
of content in non app sandbox and
scripting
between content in different sandboxes.

Similar Messages

  • Loading HTML with javascript from SDCard

    Hi - my first post so please be kind
    My handset is a BES connected 8100 running v4.2.1.66.
    I've only recently discovered how to load files from the local media card using the file:///SDCard/example.html semantics, but I'm very frustrated I cannot seem to load scripts embedded in these files, that will load and run normally when the file is retrieved using http.
    Is there some magic extension I need to give my files to enable processing of scripts from local files?  I've tried the obvious file extensions without luck (htm, html, wml, jsp, asp).
    It seems to me that for local files the handset is setting the MIME type from the extension alone, given the error you get when you load a file with an unknown extension - "The returned page had no content type, and therefore cannot be processed."
    Can anybody help me shed any light on this behavior and how to get around my lack of javascript on locally loaded files?
    Feel free to slap me if this is a know bug in the software I'm running, or has been answered 50 times.
    Many thanks; Andrew.

    Under which folder we can put the html and javascript files. I have installed balackberry sdk4.6(i.e;
    Research In Motion\BlackBerry JDE 4.6.1).
    Objective:To open and see a local html file  in blackberry browser.

  • Does Firefox 4 support remote Javascript debugger?

    I have used ChromeDevTools Eclipse plugin and V8 debugger protocol for remote Javascript debugging with Chrome browser.
    Does Firefox 4 support remote Javascript debugger?
    If then, is there a client tool like ChromeDevTools plugin?
    Thanks in advance.

    Symantec have made an update for their add-ons to work in Firefox 4, but they only listed them as compatible with Firefox 4.0, they need to update them to let them work in Firefox 4.0.1. For details see http://community.norton.com/t5/Norton-Internet-Security-Norton/Norton-product-compatibility-with-Firefox-Updates/m-p/443808

  • Use of HTML and Javascript within EP

    I have a newbie question:
    I have several HTMl documents with javascript embedded like e.g. various calculators we use on the current website.
    If I want to migrate these html sources to EP content, what can I best do than?
    I assume that all existing html and javascript renders as normal without too many development involved?
    Is there a good example how-To source which I can use to demonstrate this?
    many thanks for your help

    Hi,
    Well there are two options:
    <b>1) If you are interested to make the portal component and then use in Portal.
    2) If you want to use your earlier HTML document as it is inside the portal.</b>
    In case 1 you need to make the Portal objects and then make a portal project. You can use javascript in that as well.
    In case 2 you can directly make the URL iView of the HTML document and then view it from the portal. Well this is not a good way of using your javascript. Personally I suggest you to go for Portal Project.
    I hope this help you!!
    Regards
    Pravesh
    PS: Please consider reewarding points.

  • What HTML and JavaScript engine is used within Adobe AIR on the desktop?

    HTML and JavaScript within Adobe AIR are handled by the WebKit HTML/JavaScript engine.

    I've made a little headway with this. Within your initHandler just make a call to login:
    FacebookMobile.login(loginCallback, this.stage, [], webview);
    webview is a StageWebView instance with the viewPort defined. If I left it null, or didn't set the viewPort nothing happens...
    var webview:StageWebView = new StageWebView();
    webview.viewPort = new Rectangle(0,0,400,400);
    I'm now getting a login screen.

  • Can i publish HTML or JavaScript on my iWeb pages?

    I don't know how to embed html or javascript - i'm adding advertising affiliates (amazon, etc.) but i cannot post their code. i've had to past the gif logo and then create a link.

    Here is a thread in which I have listed the steps involved in adding external HTML to your iWeb pages. It's pretty straightforward and you can apply this technique to pretty much any kind of HTML that you would like to add...
    http://discussions.apple.com/click.jspa?searchID=-1&messageID=2446855
    Good luck! Let me know if you have any problems.

  • JSON from HTML embed Javascript to AS

    Hi,
    I know how to get JSON working if loading from external file
    by using LoadVars.
    But i don't know how to get JSON from the HTML embed
    Javascript and get to work in flash?
    I have tried different ways and search at google about
    related cases but nothing found yet.
    Can somebody help me?
    that's the code that i have used:

    Thanks for the suggestion.
    Well, as near as I can tell the "do javascript" will in no way, shape or form pass info back out to Applescript from Bridge, and I need to grab the long user name from system info there.
    To be honest, I was just trying to do a nice elegant dialog box with Bridge because Illustrator CS2 didn't know Script UI and I thought since everyone has CS3 Bridge on their machines already... But I've settled for 3 Applescript dialogs instead, so the fight is over.
    1.5 days tinkering with JS. 1.5 hours recoding in AS. Whee...

  • Can I package an app using just html and javascript and not flash ?

    Hi :
    Sorry for the question, but I'm a little confused. 
    I know I can use javascript with adobe air, I made some test and works great, but I'm not sure if my app will work in an iphone after I build the package.
    Thanks in advanced.

    No, that's not supported in this version of PFI.  From the Developer Guide: "You cannot write HTML- and JavaScript-based AIR applications for the mobile device profile."

  • Html pages with Flash embedded into mxml Html in Air?

    I am building an Air application in Flex 3.5 and am using the mxml HTML tag to load html pages. I am wondering how I can load swf files embedded in my html page? Is that possible?
    Thanks a lot for any help with this!

    You can access the OBIEE data via ODBC but only on Windows machines. If you install the client tools you will get the BI Server ODBC server which you can use to connect any Wep Application to OBIEE. If you want to integrate OBIEE within another site see this post, it might give an idea:
    Re: Sharepoint Integration through web parts

  • How best to store 10KB file with html and javascript

    Hello,
    I am using Oracle 11g and pl/sql.
    I want to store a 10KB of text into a table. The text has many html and javascript characters.
    What type of table column should be used for text of this size and type?
    What is the best or easiest way to get the text into the table on a regular basis?
    Should I read it from a file? Or, ideally, I would like to paste the text into a textbox in the same way it is done here when submitting questions to this forum.
    Any suggestions are greatly appreciated.

    CLOB

  • Passing parameters to Flash from HTML or JavaScript

    Hi. How do I pass paramaters to a Flash movie without using
    the "../name.swf?param=value" syntax. I have a Flash menu that
    jumps to a certain keyframe depending on the value specified inline
    with the .swf address, which corresponds to the page being viewed.
    The only problem is that, when another page is loaded, the menu
    flickers and reloads because it's not cached: the browser thinks
    it's another file when in fact it's just a different address
    telling it where to go in the movie to update the menu for the
    current page.
    Any ideas how to do this with either HTML or JavaScript? Help
    and suggestions are truly appreciated!

    The other method for doing this is using the Flashvars param.
    You can read about it in the LiveDocs here:
    http://livedocs.macromedia.com/flash/8/main/00001206.html
    Don't know if it will solve your problem, but it is the other
    of the two main ways of passing in variables.
    Good luck!

  • No HTML nor Javascript in wiki and forums...

    Hello,
    Particularly in BSP forums, I am not able to post messages that contain HTML and/or Javascript. I have got a security error I don't have with normal posts...
    It seems that the HTML and Javascript code parts are somehow interpreted, which results in an error. For example, one can write:
    document.getElementById(<id of button>).click();
    which is an invalid Javascript statement, but the same sentence with <id of button> replaced by a real Javascript character string raises an error...
    I also tried in the Wiki, but the same error occurs.
    Is there any way this can be avoided? Sometimes code samples are clearer than long explanations...
    Thanks and regards,
    Tanguy

    Hello,
    Particularly in BSP forums, I am not able to post messages that contain HTML and/or Javascript. I have got a security error I don't have with normal posts...
    It seems that the HTML and Javascript code parts are somehow interpreted, which results in an error. For example, one can write:
    document.getElementById(<id of button>).click();
    which is an invalid Javascript statement, but the same sentence with <id of button> replaced by a real Javascript character string raises an error...
    I also tried in the Wiki, but the same error occurs.
    Is there any way this can be avoided? Sometimes code samples are clearer than long explanations...
    Thanks and regards,
    Tanguy

  • Simple HTML and Javascript iView

    Hello,
    I am new to portal content development so please just point me in the right direction...
    I have a simple requirement to render some HTML and javascript in an iView for EP 6. I do not need to pull anything from a backend system etc so I think this is a pretty straight forward work.
    Any suggestions?

    Hi,
    There are two ways, you can achieve this:
    1. To create a AbstractPortalComponent and include your HTML as resource in responce.
    Check this example, where a JSP is included in responce you should put your HTML and also IResource type as IResource.STATIC_PAGE
    IResource staticResource = request.getResource(IResource.STATIC_PAGE , "html/checkres.html");
    http://help.sap.com/saphelp_nw70/helpdata/EN/49/4dae42cb9f0f31e10000000a1550b0/frameset.htm
    2. You can place your HTML and Javascripts in KM and use the KM Doc IView to show them.
    http://help.sap.com/saphelp_nw70/helpdata/EN/fc/cf14bcd42911d5994400508b6b8b11/frameset.htm
    If you want to have the flexibility to change the HTML quite often with out redeploying the par file then choose option 2.
    Regards,
    Praveen Gudapati

  • Call an applet in other page html with javascript

    Hi
    I found many exemples with javascript, to call applet method in the same html page, but never cross pages
    There is a way to call with javascript an applet in other window/page?
    Thanks

    By other WORKSPACE do you mean another location (as defined in dads.conf)?<br><br>Either way, you just have to make the url relative or just hard code the entire path. If location 1 is pls/htmldb and location 2 is pls/htmldb_two then all you need to do is:<br><br>
    owa_util.redirect_url( '/pls/htmldb_two/f?p=TLL:3:&SESSION.::::F119_TAB_CONDITION:1');<br>
    that is if I understood your question correctly...<br><br>
    chet<br>

  • How to manipulate static string / text in HTML through Javascript

    Hi,
    Sorry I know this is not the perfect place to ask about HTML. But I need help somehow.
    In simple i am creating a website in JSP and using Javascripts.
    The problem is I have a HTML form where the user have to enter Login Id and Password. If user enters correct data then he is taken o relevant page.
    But if the user enters data (say some invalid character, where it can be handled by Javascript), then it should give feedback as Incorrect Id and Password in that page only but not by alert() statement i.e a statement with red font should get visible.
    Eg: In Yahoo the user taken to new page if he enters Wrong Id and Password
    In Gmail , the feedback is given on that page only.
    I hope u all understand.
    Thanks.

    If the action attribute of your login form say login.html is set to a servet, and say your servlet is responsible for the validation of Login Id and password, then you could use a RequestDispatcher object in your servlet.
    Use ServletContext.getRequestDispatcher(java.lang.String) to obtain the RequestDispatcher object and then invoke include() method on it.
    So, if Login ID and password do not match, then any message, will be included in the same login form, login.html
    Use google to find more information.

Maybe you are looking for

  • About the top N condition in WAD web template

    Hi all experts, I'm facing a problem in my WAD web template. Hope you guys can give me a hand. In my web template, there is analysis item A and B. Table A are used to display top 3 customers(char) with highest purchase rate % (KF), I'm using top N co

  • The SharePoint Site more compatible so that the site get open smoothly on iPad IOS version 7.0.1?

    How to make the SharePoint portal compatible with iPAD. Please help me by considering  the following points, discovered in real time scenario, while doing R&D: The site opens using the IP address but on repeated testing done to open site, facing the

  • Viewing standard libraries while accessing a standard oracle form

    Hi all, i'm trying to open a standard Oracle receivables form and trying see the code in the standard libraries but I was not able to see it. Is there a way I can see the code.... Thanks in Advance, Satish

  • Urgent: Form customization

    Hi all, As we know that help key for a particular field shows an icon at tle "left" side of field. But we require it on "right" side. Any pointer can be helpful. This is really urgent. Please reply. Thanks in advance.

  • IOS 5 and the Cloud-Corporate Data(?)

    I was wondering if anyone had given thought about how organizations can deal with proprietary data being synced to the cloud with IOS 5.  As I understand it, any data on the device, including corporate email would be synced...we are pretty concerned