FLEX & AJAX Functionality

I want to develop AJAX type popups in a Flex app so that when
you roll your mouse over a key word or icon, an AJAX type window
will popup with data about the word or image. How do you create
that utilizing the FLEX-AJAX bridge or the Flex popup class? Thank
you.

toolTip?
Tracy

Similar Messages

  • Not supported: Air + Ajax + (flex-ajax-bridge) + LCDS

    I'm building an application Air (Flex + extjs) and offline synchronization with LCDS. For sure I need the flex-ajax-bridge.
    But the experiments failed on Air runtime container, when ajax tried to communicate with server end data services.
    And I checked the source code of flex bridge file (FDMSBridge.as):
    import bridge.FABridge;
    import flash.display.DisplayObject;
    import flash.display.MovieClip;
    import flash.events.Event;
    import flash.external.ExternalInterface;
    import mx.core.mx_internal;
    use namespace object_proxy;
    [Frame(extraClass="FakeFlexInit")]
    public class FDMSBridge extends FDMSBase
    private var gateway:FABridge;
    public function FDMSBridge()
    super();
    if (ExternalInterface.available == false)
    return;
    ExternalInterface.addCallback("createObject", createObject);
    private function createObject(className:String, cArgs:Array):Object
    From the source code, we can tell the bridge rely heavily on the flash.external interface; AND look at this link -
    http://livedocs.adobe.com/labs/air/1/aslr/flash/external/ExternalInterface.html
    where it says -
    Note: Adobe AIR currently does not support the ExternalInterface class.
    which leads to the conclusion that:
    Air + Ajax(HTML) + LCDS solution is not supported by AIR currently.
    The ExternalInterface class environment:
    Browser Operating System Operating System
    Internet Explorer 5.0 and later Windows
    Netscape 8.0 and later Windows MacOS
    Mozilla 1.7.5 and later Windows MacOS
    Firefox 1.0 and later Windows MacOS
    Safari 1.3 and later MacOS
    Can anyone tell me what's the version of AIR built-in browser (squirralfish)? or, will AIR support FDMSBridge soon?
    Thanks!

    I agree, it would be nice to have gzip encoding support in
    AIR's browser component. But, I looked at what my AIR app sends
    when it requests a web page, and it's not claiming to the remote
    server that it can support gzip. If the server is sending the
    content gzipped anyway, it's almost certainly broken. Web servers
    aren't supposed to dictate encodings. Clients say what they're
    capable of receiving, and servers send the data in that format if
    they're capable of sending any of the requested formats.
    I see only one exception in the spec.
    Section
    14.3 says the server is allowed to send what it likes if the
    client doesn't say what it wants (true for AIR) and it cannot
    support the default, which is to say, sending the raw data as it is
    on disk. So, is that the case? Can this server really not send raw
    data, to anyone, ever? If so, it's violating the spirit of the web,
    to the point that I'd say it's broken, even if the spec does allow
    it. And if the server really is capable of sending the raw data,
    it's
    really broken for insisting on sending it compressed when
    the client hasn't told it that it can handle it; this would
    actually be against the spec, not just against the spirit of the
    spec.
    It would seem a more sensible use of your time to fix the
    server than to go and learn another technology just to work around
    its brokenness.

  • Ajax functionality works in embedded OC4J, but not on iAS 10.1.2

    Hi,
    For a customer, we made an ADF application using JDeveloper 10.1.2. Using instructions from http://www.oracle.com/technology/pub/articles/vohra-ajax.html we coded a servlet, to find a description from a code the user entered in the application, and show this on the webpage without page refresh (the application uses JSP and Struts). This works fine in the embedded oc4j server JDeveloper provides, and also works fine on the Standalone OC4J server. However, when the application is deployed to the iAS from the customer, everything works fine, except the ajax functionality, the description fields simply are not shown.
    Does anyone have a clue what could be the problem? We also runned the application on the iAS server itself, and this gives the same error (no ajax functionality).
    Thanks in advance,
    Remco

    Hi dvohra,
    Thanks for your reply. I'm afraid I overlooked something, which is the reason of the ajax functionality not working. The Servlet that made the Ajax functionality used a datasource, and the same was in the Embedded OC4J Preferences. The ADF Business Components part was changed to use the datasource declared on the iAS. The Servlet however was not...
    So, all works now.

  • Examples for using the Flex-Ajax-Bridge

    All samples that ship with BlazeDS use pure Flex on the
    client-side; what I would like to
    have are samples that show the Flex-Ajax-Bridge in action;
    using BlazeDS/LCDS as the data
    exchange engine; and then use this engine's capabilities to
    do Ajax stuff on the
    client-side; I have found one example where Ajax delivered
    data is pumped into Flex using
    the Flex-Ajax-Bridge; but not the other way round ...
    Another question: Can I use the Flex-Ajax-Bridge shipped with
    BlazeDS with the standalone
    LCDS and the CF8 integrated LCDS, too ? Or are there
    different versions of the
    Flex-Ajax-Bridge available ?

    - get an instance of weblogic.management.MBeanHome for the WLS server from
    JNDI, using weblogic.management.MBeanHome.JNDI_NAME+"."+"yourServerName"
    - get MBeanServer from MBeanHome
    To register your mbeans...
    - invoke registerMBean() on MBeanServer as in javax.management.MBeanServer
    - Note that the objectname which is passed to registerMBean() should be an
    instance of weblogic.management.WebLogicObjectName
    To get values from weblogic mbeans.....
    - use various getters in weblogic.management.MBeanHome
    pls see relevant javadocs for details
    Michael Guillory <[email protected]> wrote in message
    news:3a5e155b$[email protected]..
    I would like to revisit Peter's question from 1/2/2001. I need to be ableto
    access the
    Mbeans from the Administration Server, please let me know where I can find
    some
    information.
    Thank you
    Mike

  • Post data into Ajax function for Item type plugin

    Please advise how to post data into Ajax function for item type plugin
    Edited by: Casufi on Jan 16, 2013 7:44 AM

    Casufi wrote:
    Casufi wrote:
    Please advise how to post data into Ajax function for item type plugin
    Edited by: Casufi on Jan 16, 2013 7:44 AMI used the following code
    var get = new htmldb_Get(null, html_GetElement(''pFlowId'').value, ''NATIVE='||apex_plugin.get_ajax_identifier||''', $v(''pFlowStepId''));
    get.addParam(''x01'', node.data.key);
    gReturn = get.get();You should use this published true ajax API instaed. apex.server.process( pAjaxIdentifier, pData, pOptions )

  • Flex Ajax bridge - flash player detection

    Does anyone know of a Flex HTML wrapper template which
    handles the express install (with history) user experiences in a
    manner which is compatible with the lifecycle of the Flex/Ajax
    bridge? Assuming JavaScript is enabled, the express install process
    creates the embed DOM node for the SWF dynamically; however, the
    FABridge scripts assume that the embed node(s) exist within the
    DOM; the the initialisation of the FABridge queries the DOM for
    ‘bridge’ instances (i.e. embed tags with the relevant
    flash vars). If the embed node is not present, the
    FABridge.instances object is not initialised correctly. This causes
    two problems: firstly, attempting to register an initialisation
    callback in the FABridge will fail, since the bridge instance is
    not known. Secondly, the ExternalInterface call from the Flash
    component to signify that it has successfully initialised does not
    have an endpoint to communicate with, meaning that the client side
    lifecycle cannot be instantiated.
    If anyone has come across a useful strategy to approach this
    problem, I'd be hugely grateful for any pointers.
    Thanks, Greg

    The html wrapper code generated by Flex Builder does this
    automatically if you have Project, Flex compiler, use Express
    Install checked.
    Tracy

  • Flex-Ajax Bridge general availability

    We have an Ajax application; we have new requirements to
    display graphs that update dynamically every couple of seconds, we
    found Flex and Flex-Ajax Bridge very helpful.
    But I believe the Flex-Ajax Bridge has not been completely
    tested and it is only in a pre-alpha stage.
    What is the roadmap for Flex-Ajax Bridge? When will it be
    fully tested/supported?

    Hi,
    this needs clarification:
    FABridge:
    http://livedocs.adobe.com/flex/3/html/help.html?content=ajaxbridge_1.html
    is *client* side library - it allows ActionScript engine communication with JavaScript engine (two-way) to enrich client side epxerience.
    The Flex/Struts is client/server integration and yes, there are existing solution I think (note: I'm not web-tier coder), see:
    http://www.adobe.com/devnet/flex/articles/flex_struts.html
    http://code.google.com/p/fxstruts/
    above seems quite dated - but it at least shows possibilities I think.
    regards,
    Peter

  • Adobe Flex & AJAX bridge & ExtJS

    I have similar problem as the follow post: anyone has solution?
    http://forums.adobe.com/message/2568496

    Problem solved!!!
    The cause was Ext panel moving around Flex <object> when rendering itself during init phase in JavaScript. That caused Flex Ajax Bridge to lose its connectivity with the object. Changed object creation into lazy one (after eveything was moved around) and works ok.

  • Are there release notes for the new Flex Ajax Bridge?

    Are there release notes for the new Flex Ajax Bridge?

    Hello,
    You can find the release notes
    here
    . The wiki page has been updated as well to point to the release
    notes document, in the Where can I find out more section.
    Thanks for noticing they were missing,
    Cristian

  • Does Logic Express has the flex time function?

    Does the latest Logic Express has the flex time function which can either stretch or shrink the sound wave? I know Logic Pro 9 has that. I am struggling with buying either studio or express
    thank you

    It does. Express and Studio have the same engine... except that Studio seems to be maintained better these days...
    My (worthless) opinion right now, given the two recent releases of Studio with nothing released for Express is if you have the extra money, go with Studio.

  • Dreamweaver CS3 Ajax functionality

    The advertising for Dreamweaver CS3 on the Adobe site
    mentions Spry and Ajax, but it's not exactly clear how Ajax is
    integrated. For example, if you use the Spry tabbed user interface
    is it simple to load the tab content 'on the fly' via Ajax, or will
    adding Spry Ajax functionality require additional hand
    coding?

    it will add it at the click of a button; however I then hand
    edit the css and style it how I want. Very easy and their code is
    commented very nicely

  • Is there an easy way to run an Ajax function from input type=file to test the file name in DB?

    I've had the <input type="file">  ... <cffile ...> thing going for a few years now. 
    There is a database where the uploaded file names are stored once the files are uploaded to the server.  It sees things in terms of problems and stores uploaded file name accordingly with the ProbID prepended onto the file name; e.g., MyPicture.jpg would end up in the designated directory and databawe as P416_MyPicture.jpg.  This allows user to store pictures with the same name in different problems without a conflict.  There has been an issue with certain characters (e.g., spaces, +, #, etc.) causing problems when they are in file names so we have come up with a way using the <cffile ... rename> to replace these chars with _.  This means that MyPic+.jpg would end up being P416_MyPic_.jpg. 
         This is where the problem appears.  If someone were to upload MyPic+.jpg after someone else uploaded MyPic_.jpg in the same problem, then the + file would overwrite the _ file before the system knew they had a problem.  And there is now way to restore the original file without going to the system backup and doing so – which is a whole other story … especially, if the person doesn’t tell anyone.
         The logical solution would be to be able to test the new final file name (the name after making the substitutions mentioned above) against the existing files in the database before you went from the page where the <input type=file> control to the associated _action.cfm page where the <cffile> object is located.  Given that this seems to be the province of Ajax, this would seem like a natural use of the really interesting technology.  I have can determine the file name from the onChange action on the <input type=File> so that this would be the place for Ajax to come to the rescue by looking up the final file name and then letting the user know whether the resultant name is a unique within the database or not.  If so, I'll just enable the Add button which sets right next to the <input > control and let them upload it.  If not, I'll put up an error message telling them that this file already exists in the system.
         This would be the perfect solution.  It would let me do some Ajax stuff like I've wanted to do for the past year, but never have had the time to do because this is the project that won't go away.  This is, in fact, the last thing of any consequence that remains to do on this 2-1/2 year nightmare – be careful what you wish for.  If I can get this done this week, then maybe I can finally take a weekend off … maybe it will finally come to an end.
         Which finally leads to my question:  I'm looking for some tips on how to get this thing going since I can barely spell Ajax.  I've got a book and looked at some stuff online about CF and Ajax, but a good example or two or three would be worth a day's worth of poking around on the web and in my books.
         Thanks in advance for any suggestions, ideas, help, whatever.
    Len

    Adam,
         Thank you for your suggestion, but, after spending the night working with Ben Forta's CF8, vol 2, Chap 34, working with <cfajaxproxy>, I was able to do exactly what I wanted and it appears, after some testing, to work exactly as I had envisoned it should. 
         I am now calling a JavaScript function (testFileName) from the onChage event on the <input type="file"> or Browse button, which calls my proxy.cfc that contains the server side of the equation.  This funciton testFileName (I've run out of cleaver function/file names).  The query contained therein hits the database to see if the passed in parameters can pull up an existing file.  If they do, the particulars (file name, data attahced, etc.) are returned to the JavaScipt procedure that puts up the error notice.  The user can then chose to either overwrite the file or quit.  Quiting leaves the your on the Attachment PopUp where he/she started with nothing being uploaded. 
         Thanks again for your suggestion.  I appreciate your taking the time to do so.
    Len

  • In Flex application functionality is working sometimes and not working sometimes..

    Hi,
    Please help me on this..
    In my flex application some functionality is working some times and not working sometimes..
    In my project i have 5 sections with 5 separate screens..Each screen is of one diffeent module.
    After logining into the application:
      I will go to one screen..First time every functionality is working in that screen..
    Ex:: I have a screen with datagrid.From that user will select one job name from datagrid click on next button..
    Based the job name the user selected i have to display some information in next screen and customer names.customer names is a combo box..
    below is the code:::
                   public function populateAllOEMCustomers(event:ResultEvent):void
              1)     var object_CustomerList:CustomerList = event.result as CustomerList; //Assigining result object values to Object reference variable.
              2)    var allOEMCustomersCollection:ArrayCollection = new ArrayCollection(); //Declaration ArrayColliction referance variable.
             3)       var i:int=0;
             4)      var customerComboLabel:Label = new Label();
              5)      for (i = 0;i < object_CustomerList.arryCollCustName.length; i++)
                        var strCustName:String = object_CustomerList.arryCollCustName.getItemAt(i).toString();
                        var strCustId:String = object_CustomerList.arryCollCustId.getItemAt(i).toString();
                        customerComboLabel = new Label(); //Dynamic declaration of label.
                        customerComboLabel.name = strCustName; //Assinging the customer name to the Label name field.
                        customerComboLabel.text = strCustId; //Assingning the customer id to the Label text field.
                        allOEMCustomersCollection.addItem(customerComboLabel); //Adding Lable into the ArrayCollection referace variable.                                       
                    //customerComboID.selectedItem = "--";   
                    OEMCustomersComboID.dataProvider = allOEMCustomersCollection;
                    OEMCustomersComboID.selectedItem = -1;
    This functionality is working fine when i visit to this screen first time..If you go back to another screen and come back to this same screen and click on next button this time customer names combo box has no customer details..I am getting Nullpointer Exception and it is showing the line number 5( i have given the number for code given above..)
    If i change the first line of the code to below code:: every time the above functionality is working fine.Not getting any error msg..
      var object_CustomerList:Object= event.result ;
    If i  type cast it to specific class(CustomerList) ,functionality is not working ..getting null pointer exception..If i type cast it to Object everything is working fine..In my code wherever i have typecasted it to specific class functionality is not working(gettingNullpointerExcepion).
    Please help me on this..I am not getting what could be the reason..
    I am using::Flex 3,Flash player 10.1
    Thanks in advance..
    Regards,
    Satya

    Hi Satya,
    This sometimes as in your case might not work as the way you have specified the RemoteClass attribute in your AS class. As somtimes there may be a case as before it is mapped to a server side you are returned the data and so that you may not get the data as your Custom class but as normal Object type.
    So in order to avoid this you can map the server side class to AS classes in the PreInitialize handler itself as shown below:
    Specify the preinitializeHandler in your main application and write the below function.This way also you can map AS classes with the server side. So that you will not have any problem referring your application as AS class types.
    You can use the same line for registering all the classes. By using this you can remove all the  [RemoteClass] attributes on all AS classes and include it at single place.
    preinitialize="onPreinitialize()"
    private function onPreinitialize():void
      registerClassAlias("com.expeditor.ScriptAdmin.Objects.CustomerList", CustomerList);
    Here in the above line of code the string in quotes refer to the namespace of the Server side class and the latter is your AS class. Also dont forget to import the namespace of the corresponding AS class in the file.
    Try this and let me know..
    Thanks,
    Bhasker

  • Flex sharing functions between mxml functions

    Problem is that I want to run a function from a different
    mxml file.
    Possible something stupid, but if somone can put me on the
    way...
    The solution is the use of
    parentDocument.
    mxml that calls the function:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    width="400" height="300">
    <mx:Form>
    <mx:FormItem label="Search" direction="horizontal">
    <mx:TextInput id="search" change="
    parentDocument.filterDemo()" />
    <mx:Button label="Clear Search" click="
    parentDocument.clearSearch()" />
    </mx:FormItem>
    </mx:Form>
    <mx:DataGrid dataProvider="{dataList}" width="400"
    height="400">
    <mx:columns>
    <mx:DataGridColumn headerText="Name" dataField="name"
    />
    <mx:DataGridColumn headerText="City" dataField="city"
    />
    </mx:columns>
    </mx:DataGrid>
    </mx:Canvas>
    page that stores the function:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="vertical" xmlns:comp="components.*"
    creationComplete="initData()">
    <mx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    [Bindable]
    private var dataList:ArrayCollection ;
    private function initData():void{
    dataList= new ArrayCollection([
    {name:"Kennedy Memorial Hospitals/UMC Stratford",
    city:"Stratford"},
    {name:"Kennedy Memorial Hospitals/UMC Washington Twp",
    city:"Turnersville"},
    {name:"Kessler Memorial Hospital", city:"Hammonton"},
    {name:"Saint Clares Hospital/Sussex", city:"Sussex"},
    public function filterDemo():void{
    dataList.filterFunction = searchDemo;
    dataList.refresh();
    private function searchDemo(item:Object):Boolean{
    var isMatch:Boolean = false
    var tevergelijken:String =
    weergave.search.text.toLowerCase();
    if(item.name.toLowerCase().search(tevergelijken) != -1){
    isMatch = true
    return isMatch;
    private function clearSearch():void{
    dataList.filterFunction = null;
    dataList.refresh();
    comp:weergave.search.text = '';
    ]]>
    </mx:Script>
    <mx:ViewStack id="bookPages" resizeToContent="true"
    x="118" y="185">
    <comp:weergave height="50%" width="50%" label="Weergave"
    id="weergave" />
    </mx:ViewStack>
    </mx:Application>

    If index is the main application, then it can be accessed via
    FlexGlobals.topLevelApplication in Flex 4.

  • Is The Flex/Ajax Bridge Possible in a Pure Actionsript Project??

    Is it possible to create a Actionscript/Ajax Bridge in a pure
    AS project? Meaning - AJAX Bridge not using MXML.

    PUSH...

Maybe you are looking for

  • Custom report - Filtering multiple cities?

    Hi Guys, I am trying to create a custom report for a list of cities (Not all Cities in the database, only a selection). FILTER BY FIELDS One cannot have London on the first line (Filter 1) and New York on the second (Filter 2) - it results in an erro

  • How to download Flex SDK 4.5 ?

    Hi, I am having trouble to download The Open Source Flex SDK 4.5 zip file from http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4.5 The file is only 13.2MB instead of 63MB, and when I try to open it, the archive appears to be damaged. I

  • BlazeDS and JBoss

    Hi All, I have this BlazeDS problem I need help with.... I need to get Flex application to "talk to" java on the back-end. For that to work, as you know, I need BlazeDS and, among many, JBoss application server. I was wondering if someone knows how t

  • Monitor wake up issues

    I am having inconsistent monitor wake up issues.  If the CPU is on and past the bios boot and THEN I turn on the monitor all works properly.  However, the monitor will NOT come out of power save / hibernation mode.  I have tried different monitors wi

  • Urgent: Barcode does not rotate

    Hi, I've created a sapscript formular with logo and barcode. This works fine. Afterwards  I've tried to rotate the barcode because the label printer prints in a different direction. I changed the alignment of my barcode created with the new barcode t