Working with no application sandbox

Hi,
I have an online website with some features.
I need to develop air based desktop application by accessing
some features of my online application.
I wenth through the available tutorials and came across non
application sandbox feature.
I installed Air SDK.
I created a directory structure as follows
airdesktop
css
js
remote
images
application.xml
home.html
The css folder contains styles and images contains images and
js folder contains js files.
The remote folder contains
one.html,2.html,3.html
Home.html contains iframe
<html>
<head>
<titleDesktop</title>
<link href="css/styles.css" type="text/css"
rel="stylesheet" />
<script src="js/AIRAliases.js"
type="text/javascript"></script>
<script src="js/AIRIntrospector.js"
type="text/javascript"></script>
<script src="js/AIRSourceViewer.js" type="text/javascript"
></script>
<script src="js/prototype.js" type="text/javascript"
></script>
<script type="text/javascript">
var bridgeInterface = {};
bridgeInterface.testProperty = "Bridge engaged";
bridgeInterface.isLoggedIn = false;
function setupBridge(){
document.getElementById("sandbox").contentWindow.parentSandboxBridge=bridgeInterface;
bridgeInterface.navigate=function(){
var url = "app:/remote/one.html";
</script>
</head>
<body>
<iframe id="sandbox"
src="one.html"
documentRoot="app:/remote"
sandboxRoot="
http://xyz.com"
ondominitialize="setupBridge()" width="100%" height="100%"
allowCrossDomaininXHR="true">
</iframe>
</body>
</html>
So home.html contains iframe whose src is one.html.
one.html contains login related files. And in the onLoad of
one.html i have to check whether user is logged in by checking
parentSandbox variable isLoggedIn if loggedin i have to redirect to
two.html if not display login screen(one.html).
If one.html displayed and user enters email id and password i
have to submit to my online application which is in PHP and
validate the user and get the return if success then set isLoggedIn
to true and redirect to two.html.
two.html contains link to three.html and three.html contains
link to say 4.html basically all are different forms when submitted
i have to submit through ajax and get the result.
I have some confusion here.
Instead of using one.html, two.html,three.html,... can i
directly access my online application pages using the iframe if yes
how to my online application is in php.
If i use the above said directory structure how to implement
the functionality like if user is logged in how to redirect
i can use window.document.location.href='....' but what is
the url for the is it of type app:/.... or else
Did anybody worked on this kinda application please guide me
through this.
your help will be greatly appreciated
Thanks

quote:
Instead of using one.html, two.html,three.html,... can i
directly access my online application pages using the iframe if yes
how to my online application is in php.
You can directly access the online application -- if the user
is online, of course. The pages are sent by the server as HTML (you
couldn't, of course, load the php source into the iFrame). One
issue with your setup for this is that by setting the sandboxRoot
attribute to the root of your website, you can't actually access
the website. Instead of sandboxRoot="
http://xyz.com" use sandboxRoot="
http://xyz.com/air/" (or some
other dummy folder name). Otherwise AIR will look for all URLs from
xyz.com in your application's "remote" directory.
quote:
If i use the above said directory structure how to implement
the functionality like if user is logged in how to redirect
i can use window.document.location.href='....' but what is
the url for the is it of type app:/.... or else
Use "
http://xyz.com/air/2.html"
(assuming you added air to the sandboxRoot path). The part of the
url matching the sandboxRoot attribute is replaced with the string
in the documentRoot attribute.

Similar Messages

  • FaceTime HD Camera (Display) not working with most applications

    The Thunderbolt 27" LED Cinema displays built in camera is not working with most applications. The camera does not work with FaceTime, iChat, Skype and Google Talk. FaceTime says "There is no connected camera", even though there is. Weird thing is it DOES work at http://www.testmycam.com. I can't get it to work with any other flash based apps, just testmycam.com.
    My MacBook Pro 17" (late 2011) built in camera works perfectly with everything.
    Things I've already tried:
    - Shutdown
    - Restart
    - disconnect/reconnect
    - removing power from display
    lame, lame, lame. $1k monitor, flippin' webcam doesn't work.

    I think I have found the problem. I decided to go page by page through the forums and found this argument when running a Java program through the console:
    -Dsun.java2d.noddraw=true
    So it would be like:
    java -Dsun.java2d.noddraw=true SwingSet2
    That works flawlessly, so it has to do with direct draw (So it's either DirectX or my video card drivers which are up to date).

  • [svn:fx-trunk] 5019: ASDoc updates to indicate that some Halo containers do not work with the Spark equiv (ControlBar does not work with Spark Panel/ AppControlBar does not work with Spark Application), and indicate that Canvas, Box, Tile, Panel have Spa

    Revision: 5019
    Author: [email protected]
    Date: 2009-02-19 13:17:21 -0800 (Thu, 19 Feb 2009)
    Log Message:
    ASDoc updates to indicate that some Halo containers do not work with the Spark equiv (ControlBar does not work with Spark Panel/AppControlBar does not work with Spark Application), and indicate that Canvas, Box, Tile, Panel have Spark equivs
    QE Notes: None
    Doc Notes: None
    Bugs: -
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Accordion.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ApplicationControlBar.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Box.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Canvas.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ControlBar.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/HBox.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Panel.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/TabNavigator.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Tile.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/VBox.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ViewStack.as

    Hi DST
    This is a great effort and gesture. thank you on behalf of all the newbies.
    PJ

  • Cookies (working with another application)

    Hello,
    I am currently working on a project. I finished everything in the project but there are many requests to bypass the login page. Currently users log on to a facutly site which then gives them the link to my application. The password for the faculty site and my own differ. They are requesting that the login page can be avoided when opening the application from the faculty site.
    I read a similar thread at Re: How to co-work with another application with Cookie or something
    So, the faculty page would authenticate. My application uses the same database, but should work well as is. There is no transfering of information between applications. Basically all my application needs to do is log the user in automatically.
    I believe this is done via cookies. I've tried some OWA_COOKIE procedures, but I think I am doing it all wrong. It is an area that I've never covered.
    Any help would be great. Thanks
    -Tim

    On a further note,
    I used the same logic as in the thread Re: How to co-work with another application with Cookie or something
    On page 150 I set the cookie using:
    begin
    owa_util.mime_header('text/html', FALSE);
    owa_cookie.send(
    expires => sysdate+10,
    name=>'TEST',
    value=>lower('testing'));
    wwv_flow.g_unrecoverable_error := true;
    owa_util.redirect_url('f?p=&APP_ID.:200:&SESSION.');
    exception when others then null;
    end;
    Then on page 200 I read it using:
    declare
    v varchar2(255) := null;
    c owa_cookie.cookie;
    begin
    c := owa_cookie.get('srprt');
    :TEXTFIELD1 := '';
    :TEXTFIELD1 := c.vals(1);
    exception when others then null;
    end;
    this works. So what I would like to do now is read in a cookie from the other site. Is this at all possible?

  • After updating my Iphone 4 on iOS7, my microphone stopped working when someone is calling me(or when I call someone). But the mic works with other applications like Skype... Any ideas ? Thanks.

    After updating my Iphone 4 on iOS7, my microphone stopped working when someone is calling me(or when I call someone). But the mic works with other applications like Skype...
    Any ideas ? Thanks.

    Hi Anis289,
    Welcome to the Support Communities!
    As a first step, I would suggest restarting and/or resetting the iPhone:
    iOS: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/HT1430
    Here are some additional troubleshooting steps for sound on your iPhone:
    iPhone: Can't hear through the receiver or speakers
    http://support.apple.com/kb/TS1630
    Cheers,
    - Judy

  • My camera works with the photobooth and with skype but does not work with online applications such as "lolcam from facebook" or "faceonthehole" application. Please help

    My camera works with the photobooth and with skype but does not work with other applications like the "lolcam" from facebook or the " faceonthe hole" application. Can anyone help?

    There was a issue with school computers being used to spy on kids in their bedrooms, Mac's were involved.
    So Apple most likely tightened the API's to only select, trustworthy companies as not to abuse the web cam access priviledge.
    If you want to use a web cam with these other programs and services, you'll likely have to buy a third party USB one, so you can manually disconnect it.
    There isn't a way to physcially disconnect the built in web cam on Mac's without busting open the machine.

  • Attempting to work with documents and sandbox

    I am working on a document organizer and I am trying to integrate such features into the sandbox model. However I have run into a snag - the app cannot access ~/Documents or if a user has dropbox ~/Dropbox. From the list of entitlements it does not appear there is any way for me to scan these directories regularly to allow the user to view them. If a user adds the files using the File interface, it requires many steps and is not seamless. For now there is the temporary entitlement to access and write files and directories relative to the users home. However I do not imagine this will last for long. So I am not really sure how to proceed. Has anyone else had a similar situation, how did you get around this liitation?

    Does anyone know how to fix this?
    Upgrade to Aperture 3
    Seriously Aperture 2 has been marginal ever since Lion came out. People have been able to get it to limp along but there have been major issues. That is has worked at all till now is somewhat amazing.
    If you continue to try and work with Aperture 2 in Mavericks make sure you have good working backups of your libraries. There is a chance that using 2 with Mavericks will corrupt your libraries.

  • Working with remote application

    Hello everyone ! I installed the remote app on my iPad 2 to work with Apple TV3.
    And the application does not recognize the apple TV3. But the application detects the iTunes on my
    computer.
    What should I do to app detects the apple tv?
    Thank you very much

    No, you can't automatically suspend the App. My suggestion would be to navigate the user to a specific page in your App when the connection is lost. There you'd place a button that would allow them to try and reconnect to the server. If the reconnection
    succeeds you'd simply return them to the Startpage of your App. If it doesn't you simply stay on the reconnection page, e.g. "connection interrupted - please check your connection and try again". If the user does not want to try again they can simply
    leave the App via the Home/Back Buttons (in case of the Back Buttons you'd likely want to clear the Backstack first).

  • Why the iPad internal speakers not working with some applications and key sound?

    My iPad1 ' internal speakers not fully functioning. It is working with music and video, YouTube , but not working with applications such as games.
    Also with key pad sound .
    Please help me in this regard.

    If you lose sounds for keyboard clicks, games or other apps, email notifications and other notifications, system sounds may have been muted.
    System sounds can be muted and controlled two different ways. The screen lock rotation can be controlled in the same manner as well.
    Settings>General>Use Side Switch to: Mute System sounds. If this option is selected, the switch on the side of the iPad above the volume rocker will mute system sounds.
    If you choose Lock Screen Rotation, then the switch locks the screen. If the screen is locked, you will see a lock icon in the upper right corner next to the battery indicator gauge.
    If you have the side switch set to lock screen rotation then the system sound control is in the task bar. Double tap the home button and in the task bar at the bottom, swipe all the way to the right. The speaker icon is all the way to the left. Tap on it and system sounds will return.
    If you have the side switch set to mute system sounds, then the screen lock rotation can be accessed via the task bar in the same manner as described above.
    This support article from Apple explains how the side switch works.
    http://support.apple.com/kb/HT4085

  • Working with multiple applications open

    I was wondering if having multiple applications open has a negative effect on the speed of my RAM. Someone told me that it's actually a good thing to have more than one open at a time in OS X. Could that be true?
    I'm interested because I only have 256 MB and I use Photoshop CS (a real memory hog) a lot for manipulating big images. I'm also online pretty much all the time.
    Thank you.
    Allan

    Yeah, I think I see those beach balls in my sleep! Thanks Littleshoulders for the link. It's really helpful. I think I'll buy that ebook when I can. The other link on my previous post that led somewhere on this site helped a lot, too. The more I learn, the better.
    So I guess that's a fallacy that it's good to have many apps open at a time, especially Photoshop and the huge images I work with. You know, I'm sure I read that in a book about using OS X. I don't see how there would be a benefit to have multiple apps open.
    I think RAM will be my next purchase, followed, of course, by a newer, more powerful Mac.

  • Can captivate work with windows application automate tools

    Hi,
    I am assigned a task to create demos of some web
    applications, I do not want to run the application then click and
    input manually and am willing to use some windows automate tools to
    record my action first, then capture the screen while doing
    automation playback.
    I've recorded some actions with rational robot, but the
    playback is freezed while Captivate is recording. If I stop
    Captivate recording, the automation continues flawlessly.
    So my question is whether captivate can work with windows
    automation tools, if rational robot is not the choice, can anyone
    give me some suggestions?
    Thanks very much!

    Hi, Larry,
    Rational robot is a general-purpose test automation tool (
    http://www.ibm.com/software/awdtools/tester/robot/index.html).
    It can be used to record user input (mouse clicks, keystrokes,
    etc.) and automatically plays back scripts that emulate user
    actions interacting with the GUI of applications under test.
    There are many other applications doing the same work,
    including this one which is written by myself :-) (
    http://swat.sourceforge.net).
    Using Captivate with automation tools is an ideal way to
    create application demos because the automation scripts can be
    easily created. stored and edited. Once I created an automation
    script, It can be played as many times as I want.
    My purpose is to create demos in the following steps:
    1) record user actions interacting with the GUI by an
    automation tool;
    2) edit automation scripts manually to modify something (ie.
    time interval between some actions)
    3) start captivate recording;
    4) use the automation tool to play back automation scripts
    and record the screen by Captivate
    5) edit the demo with Captivate
    6) finish
    But it seems that Captivate is incompatible with all of the
    automation tools I've tested (not only Captivate, Turbodemo,
    TechSmith Camtasia Studio are also incompatible). The automation
    playback is freezed while Captivate is recording. If I stop
    Captivate recording, the playback continues flawlessly.
    I guess it's something related to windows events processing.
    As you can figure out, the automation tools need to capture all the
    windows events generated by target applications, it looks like
    Captivate also captures some windows events of the target
    application and it prevents automation tools from receiving those
    events, so the automation playback is freezed.
    Thanks for you reply and I am looking forward for soon
    hearing from you.

  • Does jsf components in wsad works with any application server ?

    I 'm working with wsad 5.1.2 and using JSFcomponents and testing on the WAS test.
    then i will deploy on jboss AS.
    are the custum wsad componenets depoyable on any AS ?
    thanx a lot

    i used a jsf with data caching on which i put a data grid (a wsad component)
    can you help me to solve the error ?
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: javax.servlet.jsp.JspException: com/ibm/etools/wdo/datagraph/DataGraph
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:821)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
         org.apache.jsp.dataGrid_jsp._jspService(dataGrid_jsp.java:103)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         com.ibm.faces.context.MultipartExternalContextImpl.dispatch(MultipartExternalContextImpl.java:320)
         com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:142)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
    root cause
    java.lang.NoClassDefFoundError: com/ibm/etools/wdo/datagraph/DataGraph
         com.ibm.odcb.jrender.emitters.WDO4JSEmitter$Transformer.<init>(WDO4JSEmitter.java:116)
         com.ibm.odcb.jrender.emitters.WDO4JSEmitter.Init(WDO4JSEmitter.java:214)
         com.ibm.faces.bf.renderkit.ClientDataRenderer.encodeEnd(ClientDataRenderer.java:76)
         javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:712)
         javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:604)
         javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:527)
         com.ibm.faces.bf.taglib.ClientDataTag.doEndTag(ClientDataTag.java:101)
         org.apache.jsp.dataGrid_jsp._jspx_meth_odc_clientData_0(dataGrid_jsp.java:185)
         org.apache.jsp.dataGrid_jsp._jspx_meth_hx_scriptCollector_0(dataGrid_jsp.java:157)
         org.apache.jsp.dataGrid_jsp._jspx_meth_f_view_0(dataGrid_jsp.java:128)
         org.apache.jsp.dataGrid_jsp._jspService(dataGrid_jsp.java:94)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         com.ibm.faces.context.MultipartExternalContextImpl.dispatch(MultipartExternalContextImpl.java:320)
         com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:142)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)

  • 3.2.3;Swing app.; Cannot work with two applications at the same time.

    Hi guys,
    I bring this problem here may somebody experienced that.
    I developed two client side applications(applets) with JDev3.2.3.
    Locate them on Apache/Tomcat. There is also a
    Index.html file with two links, so when user clicks on
    each link the associated application will downloaded
    on his/her PC and ready to work. (In index.html I used
    JavaScript function window.open(&#8230;) to load the applications)
    Now please see this scenario:
    1-I ran/loaded both application in two separate
    browsers(IE5.5). And tried to work with them(minimized
    one and work with another). Soon I faced unexpected
    frizzing/locking or very slow running on both
    applications.
    2-Then closed/killed one of them(killed IE). Then
    re-executed same application again. The application
    loaded with the last activated screen . Seems it never
    killed and it was still alive.
    3- The only way to successfully working is one by one.
    Means execute & work with one, then kill that, and
    then execute and work with another. Which is not expected
    in the Windows enviroment.
    To Debug:
    When both applications were running(each on it&#8217;s own
    IE), I opened the Task Manager and saw there was only
    one IEXPLORER.EXE was running, also there was only one
    Java VM (a little bird icon) on right-bottom of the
    screen.
    I believe this causes the problem. Seems they both
    running in the same session. Since I opened two
    applications in two IE I was expected to see two
    IEXPLORER.EXE with two JVM. Am I right? Do you think
    so?
    Any way, Now I am seeking to find the solution. My
    primary mind says probably I should not use
    window.open(..) in index.html to load the
    applications.
    Would appreciate any command on this.

    Same thing with me! My microphone doesn't even register in anything but ventrilo!
    It's dri'ves me NUTS! I bought the card (xfi fatalty) for a really good price, but I almost regret even looking into the soundcard because of this bug. I know Vista is a new operating system..but I figure'd this kind of update should have been noticed MUCH earlier..
    Please creative, can you fix this?
    On another note..is there a sound quality difference between using an x-fi in vista vs xp?
    *not meaning to thread jack*
    finally..
    you should probably close the other thread.. You made two, you know.

  • How work with Large Applications in JHeadStart?

    work environment:
    JDeveloper 11.1.1.2.0
    11.1.1.2.37 jheadstart
    Hello, my problem is:
    I have a database of over a hundred tables, I worked with jheadstart into a single application in JDeveloper with a model project and a project ViewController, but now I want to add developers to the same system. So I do not know what I should do to divide the work on my team.
    I started by dividing the database schema in submodels, but up there.
    I need some suggestions, some methodology to do this. It is worth mentioning that we will use a custom menu, custom skin and custom security.
    I do not know what to do, if divided into several projects: Model and ViewController, or split applications of JDeveloper, or if I need a versioning system.
    If there is any link that I provided where there is much information about it, would greatly appreciate.
    Help please.
    Thanks.

    Rosario,
    You should definitely use a versions system, SubVersion is a good choice.
    For more info on how to build large applications with ADF, I recommend to sign up for the ADF Methodology group: http://groups.google.com/group/adf-methodology/?pli=1
    There are lots of interesting discussions, for example this thread:
    http://groups.google.com/group/adf-methodology/browse_thread/thread/bd0a6ec3255d8a7a/3936e0289485ded3?lnk=gst&q=ADF+library+large+applications#3936e0289485ded3
    For info on how to use multiple projects / ADF Libraries with JHeadstart, see this thread:
    Re: JHS11: Splitting Application Definition files in more workspaces/projec
    Steven Davelaar,
    JHeadstart Team.

  • Browser back button not working with ADF Application integrated with SSO

    I have integrated an adf application with Oracle SSO Authentication. Application is running fine.
    Though, while navigating between pages, using browser back button , it is not redirecting the url properly
    Should Redirect it to : http://<hostname>:<port>/<contex-root>/<servlet>/<id>
    Presently Redirecting it to :http://<hostname>:<port>/<contex-root>
    As, directory browsing is not allowed, there is Error 403--Forbidden .
    Can anybody tell what changes needs to be made to make browser back button work.

    In some of the documentation I have read, they have mentioned that using the back button in a browser doesn't work too well with any JSF type of application (not just ADF and Jdeveloper apps).
    http://docs.oracle.com/cd/E15051_01/web.1111/b31974/web_form.htm#CFHHJGJH
    Instead, they suggest using buttons on the form.
    There is a video on using navigation between forms that may be of value: http://www.youtube.com/watch?v=bsPtmRID5XI&feature=plcp
    Stuart
    Edited by: Stuart Fleming on Sep 11, 2012 5:30 AM

Maybe you are looking for