Dojo's dijit.Editor not editable in Adobe AIR application?

Maybe someone has some idea what I'm doing wrong here. I'm writing an AIR application and I'm trying to embed a dijit.Editor on my page - I've tried both with a simple:

<div dojoType="dijit.Editor"></div>

And doing it programmaticly:

<div id="editor"></div> ... // in the onLoad function var editorwidget = new dijit.Editor({height: '400px'}, 'editor'); editorwidget.startup();

But neither seem to work right. In both cases I see both the toolbar and an appropriately sized IFRAME, but the IFRAME doesn't seem to be loading its content. I've tried forcibly seeing the src param and calling

editorwidget.iframe.contentWindow.location.reload(true);

but all to no effect - Editor.onLoad() never gets called.

I tried manually calling

editorwidget.iframe._loadFunc(editorwidget.iframe.contentWindow);

And that seems to trigger some things to happen - however what it seems to trigger is the disabling of the Editor widget altogether.

I'm sure I'm missing something dumb, but I'm at a loss for what it could be that I'm missing.

Has anyone else used dijit.Editor in an Adobe AIR application (I'm using the latest 2.0 runtime/2.0 RC SDK).

-------------Problems Reply------------

As near as I can tell the problem seems to be that the IFRAME which gets added to the page with an 'src=javascript:...' violates the security sandbox policy in Adobe AIR. I tried setting the src= what it would eventually be if the javascript got executed, but that just doesn't seem to help either. Not sure why that won't work.

Category:javascript Views:0 Time:2010-06-23

Related post

  • What tools do I need to write Adobe AIR applications? 2010-05-09

    I cannot afford the Creative Suite or Flex Builder but I would like to develop a commercial Flex/ActionScript AIR application. Is this a viable goal and are there robust tools out there that don't cost a small fortune? Have others done this? What am

  • HTML-based Adobe Air Application for Playbook - Cannot read property of "SQLConnection" of undefined 2011-03-29

    I'm having some real problems getting a HTML-based Adobe Air application to run correctly. I've been developing it in Aptana, and executing it through there is working a treat - no errors whatsoever. The problem occurs when I try to run the same file

  • Can Adobe AIR applications achieve SSO authentication against Active Directory? 2009-01-31

    I don't know much about AIR apps, but I like what I'm seeing so far. So now, I'm wondering if this type of app would make sense in the intranet at work. Before I invest time and effort into ramping up on AIR development, I would like to know: is it p

  • Is there way to find when self signed certificate will expire for Adobe Air application? 2009-03-09

    I have to release my Adobe Air application but the build process was "setup" by a different developer. (He made a self signed cert and wrote a batch file to call adt for packaging the application). Adobe mentions that such self signed certificates ar

  • How Adobe AIR application can find out what URL it was downloaded from? 2009-03-14

    We have an Adobe AIR application which could be possibly downloaded from multiple domains. And when it's run, it should connect back to the site it was downloaded from to get data to show to the user. So far we have a separate application build for e

  • Decompiling Adobe AIR applications 2009-04-02

    Are there tools for decompiling Adobe AIR applications? I want to check how do they work on the apps I have made. --------------Solutions------------- Here is what you are looking for ;) http://www.sothink.com/product/flashdecompiler/index.htm Packag

  • Hide Javascript/CSS in Adobe AIR application deliverable 2009-06-11

    I've created an Adobe Air application that, when installed, will distribute the Javascript and CSS in the same readable format it was built with. This doesn't surprise me, but I was hoping that there would be some option that would have Air automatic

  • How to display XML data (extracted from PHP) in an Adobe Air Application? 2009-07-14

    I would like to create a small Adobe Air application which would extract XML data from my site and display it in my Adobe air application. I have the xml part setup, when i run the xml file, it displays the results in the browser. Now what i need is

  • Options for playing YouTube video in Adobe AIR application 2009-07-17

    I'm trying to get YouTube content into a Flex 3 AIR application and have tried a number of options using TubeLoc, wrapper as3 classes which all seem to not work. Most recently, I've been trying the method I found at http://www.blackcj.com/blog/tag/yo

  • Integrate 3rd Party Flash Component into an Adobe Air Application? 2009-07-28

    I'm fairly proficient with HTML/Javascript/CSS. It's my understanding that I can write an Adobe Air application using just those technologies. Let's assume I want to convert one of my webapps to an Adobe Air application, but this web app uses a 3rd p

  • Play local video with an HTML/Javascript based Adobe Air application 2009-08-11

    I'm trying to add some video playback (that will be used for a tutorial) to my Adobe Air application. I'm not a Flex or Flash developer and my application is HTML/Javascript based, so I'm having trouble with some of the video solutions I've been able

  • what are adobe air applications available for web developers? 2009-09-07

    What are free/paid adobe air applications available for Project collaboration and management Wireframe issue tracer testing color ..... ..... etc --------------Solutions------------- not sure if you're just asking for examples of air apps for web dev

  • How to work out a small Adobe AIR Application? 2009-09-23

    I would like to know how is it possible, or what knowledge do I need to acquire to create a small Adobe AIR application, probably like a employee directory search that will search and show a list of employee names, from a application based on php/mys

  • Safari displaying the binary code instead of downloading Adobe air application 2009-11-23

    I'm using Adobe Air 1.5 with Safari 4.0.3 on Mac OS Snow Leopard. When the browser attempts to download the Air file, binary code is displayed in the browser instead of downloading the Air application. Firefox has no problems downloading this Air app

  • Embedding fonts into Adobe AIR application 2010-02-09

    Here's another issue with HTML-based Adobe Air application I am developing at the moment. The question is whether I can embed custom font into my application. If it is possible, then, how do I do this? I have my custom font file in app:/fonts directo

  • Adobe AIR application as a http server? 2010-04-11

    Is there any way to use an Adobe AIR application as a local http server? i.e. Adobe AIR application listening to http://localhost:8020 and I'm able to use a browser to access the application? If I can, is it true or pseudo multithreading? Is there an

  • Is it possible to bypass the cross-domain.xml requirement for an Adobe AIR application built with Flex? 2010-04-23

    Is it possible for an Adobe AIR application to connect to a remove webservice that does not expose a cross-domain.xml file? If so, how do you configure the security sandbox within Air to allow this? I have attempted a socket connection and received t

  • Adobe AIR applications slow response after idle time 2010-05-04

    I spent hundreds of ours developing an Adobe AIR Application with Flex 4.0 and now I thought I should have finished, but after letting the application run for more than a few hours the UI-responsiveness begins to lack... What I do: My application use

  • Possible to embed an Adobe Air application on a website? 2010-05-10

    I have an Adobe Air application that I'd like to embed on a website, is there anyway at all of doing this? I currently have it as a downloadable file, but it is part of my brief that it be embeddable. Thanks

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.119 (s). 11 q(s)