Call a html FLEX application, using parameters

Hi guys,.

I have this html code:

"< form ="getTracing"method ="POST"name action ="http://syyzas400/ShipmentInquiry/ShipmentDetails.html"> ".

QuickTrace

< input type is "text" name = "TrackNbr" size is "14" tabindex = "1" maxlength = "11" >

< br >

Carrier

< select name = "Carrier" tabindex = "2" style = "background-color: #D8E4FF;" color: black;

do-family: Arial; make-weight: bold; do-size: 9pt; width = 114 ">

< option > option 1

< option > option 2

< option > Option3

< / select >

As you can see, it has an input field ("TrackNbr") and a selection field (the ' carrier'), with three options... The user enters a number of follow-up.

in the first field and choose one of the three options in the second field and hits < enter >. Now, as you can see on the 'action' box, an element html (part of a FLEX application) is called. The problem is that ('TrackNbr' and 'Carrier') parameters are not passed, and I don't know how to do this.

This FLEX application accepts the parameters using the technique of URL fragments (because can be called from another FLEX application, too)

but of course it does not work with the form described above.

I read on the external Interface class, but everyone speaks to call ActionScript functions, not FLEX applications. Being a beginner in this area.

I don't know that I'm missing something, but what?

Any help would be much appreciated, as usual...

Florin

could try to use the GET method and parse the URL when loading the application

var path:String;

var URLpath:String = ExternalInterface.call("window.location.href.toString");
var PassedData:Array = URLpath.split("?");

var Parameteres:Array = PassedData[1].split("&");

Tags: Flex

Similar Questions

  • SWF in Flex Application using

    I have a problem on sovereign wealth funds used by the Flex application.

    Code: mx:SWFLoader source = "SWF/360.swf" scaleContent = "false" width = "200" height = "100" / > "

    360.swf, document, document width: 200 height: 100.
    However, the movieClips in 360swf use about 400 * 200 steps.

    Problem: the 360.gr swf file is always displayed in full size(400*200) of SWFLoader, so that it can be displayed by flash player well(200*100).

    How the Flex application allows the document width and height to display SWFs?

    Appreciate any help.

    Maybe you can try to define maintainAspectRatio = false... Although I don't know if it will work,

    -george

  • FLEX application using AS closing

    I use the following code to close the current application using Action Script and JavaScript:

    var urlString:String = ' javascript:window.opener = auto; Self.Close; » ;

    var request: URLRequest = new URLRequest (urlString);

    navigateToURL (request, "_self");

    Then I got the message: SecurityError: Error #2121: security sandbox violation: navigateToURL

    Is there a way to solve the problem or should I use another way to close the application currently As

    Kind regards

    See Nativeapplication.exit())

  • Display the form guide in a flex application using the remote object

    I am using livecycle workbench 8.2 and flex 3.0.  Now I'm making the form of livecycle workbech guide.  I use the provided process: samples-forms-> render form Guide 1.0.  and use the SimpleMortgageLoan-formGuide(this has all 3 files: swc, xdp and xsd) for trial.

    I am able to get the PDF and html using process and sample pdf are the option to provide. But I have error when using rendered form guide to get the livecycle form guide (I use that as a starting point:http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/help/wwhelp/wwhimpl /common/html/wwhelp.htm?context=sdkHelp & file = 000261.html):

    Here is the error I get

    Webpage error details

    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6; .NET CLR 1.1.4322; .NET CLR 2.0.50727)

    Timestamp: Monday, April 27, 2009 21:24:28 UTC

    Message: Object EXPECTED

    Online: 103

    Char: 1

    Code: 0

    URI: http://serverHost/DocumentManager/docm1240857760906/eab56933d7dfefb501ad6549129d 40 d 2? type = dGV4dC9odG1sOyBjaGFyc2V0PWlzby04ODU5LTE =

    Any idea?

    Thank you.

    The target url must be the address of the server that you want to retrieve information. For example http://localhost: 8080.

    Jasmine

  • Flex Application Interaction with load Flash SWF

    Hi all

    First of all, the context:

    I'm creating a Flex application with a component that displays several SWF loaded dynamically, one at a time (a bit like a kiosk). These loaded SWF files is created in the Flash IDE, Flex No. They will not be created by us (we will provide a .fla but model it is), so I am loading them in a separate SecurityDomain.

    My Questions:

    1. I want the application to be able to call methods inside the loaded SWF file. To do this, I would just call Security.allowDomain ("flex application domain") in the boot process for the loaded SWF file?

    2. I want the SWF loaded to throw events that are taken by the application. Can I achieve this through the SWFLoader.swfBridge (http://www.adobe.com/livedocs/flex/3/langref/mx/controls/SWFLoader.html#swfBridge) property?

    3. I'm defining an interface for methods inside the loaded SWF file. But I don't want to leave the implementation up to the customer. Instead, I want to provide another SWF that contains the implementation of the interface and have a constraint that the customer includes it in their SWF file. I'm not very familiar with the Flash programming environment, how would that work so that the SWF interface implementation exposes his methods so as to be accessible to the Flex? Is it possible to sign the SWF file so that the Flex application knows that it is dealing with the original, not a parody? How would the Flex code pass in arguments, since it is through SecurityDomain limit - is there marshaling involved (for example if I want to pass in a dictionary or some kind of object graph)?

    4. The Flex application can load hundreds of these small other sovereign wealth funds during his life. How can ensure me that it is not continue to use more memory? I intend using SWFLoader.unloadAndStop () and erase all references to the Flex object that refers to it. Is this enough? Will be the AppDomain for the loaded SWF file to tear down automatically so that the class definitions are no longer in memory?

    Thank you

    Knockaert

    3 sounds good, but that's all theory.

    I think that there are other ways to package code to Flash other than "components".  I think that there are some libraries of data/network, but I don't know how they are packed these days.

    4. in theory, it will try to match fields that match and ignore those that do not fit as well.  With the help of readObject/writeObject should work, but you should be able to call the IExternalizable APIs directly.

    Alex Harui

    Flex SDK Developer

    Adobe Systems Inc..

    Blog: http://blogs.adobe.com/aharui

  • Recover data from the flex application

    Hello

    We use html data in Flex via Flashvars, I want to use the HTML flex application data, how can I do?

    I know we use javascript for it functions, but I need an example.

    Kindly help.
    Mandeep

    You can see this FB 2.0.1 topic help (or via LiveDocs on the web):
    Access Flex from JavaScript

    -------------------------- MXML ---------------------------


    http://www.Adobe.com/2006/mxml"creationComplete =" initApp () ">"

    flash.external import. *;

    public function initApp (): void {}
    ExternalInterface.addCallback("IsStatic",IsStatic) ("myFlexFunction", myFunc);
    }

    public void myFunc(s:String):void {}
    S = L1.text;
    }

    ------------------------------- HTML ----------------------------

    wrapper/AddCallbackWrapper.html

    AddCallback Wrapper


    Enter a new title:






    http://download.Macromedia.com/pub/Shockwave/cabs/Flash/Swflash.cab#version=9, 0,0,0' height = "200" width = "400" >


    http://www.Macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' height = 100% "width = 100% ' flashVars =" / > "

  • Pass parameters to flex applications

    Hello

    My question is: is it possible to pass parameters to an application flex like for example. in PHP, where it is made with the _GET and _POST arrays? For example, I want to open a simple Flex application in a new window and send this application a few key-value pairs, so that it would be possible to access it in the application.

    Thanks in advance, RP.

    Use the flashvars in the HTML wrapper file:

    http://flexdevtips.blogspot.com/2009/04/flashvars-passing-parameters-into.html

  • How to pass parameters to a Flex application?

    I'm new to Flex programming, and I need to pass to a server
    parameter generated at my test Flex application below. Can someone show
    me a MINIMUM of HTML page size that can pass the "myname" parameter to
    my Flex application?

    Thanks in advance,

    Beard

    <? XML version = "1.0" encoding = "utf-8"? >
    " < = xmlns:mx mx:Application ' http://www.Adobe.com/2006/MXML "creationComplete ="initVars ()">
    < mx:Script > <! [CDATA]
    [Bindable]
    public var myName:String;
    private function initVars (): void {}
    myName = Application.application.parameters.myName;
    }
    []] > < / mx:Script >
    < text mx:Label = "name:"{myname}"" / >
    < / mx:Application >

    Hello

    This docs page contains different version (more short long, static and generated) on how to pass arguments to the application through vars:

    http://livedocs.Adobe.com/Flex/3/HTML/Help.HTML?content=passingarguments_3.html

    (you simply set variable in the object that hosts your flash animation in a page, see doc linked for more details)

    Kind regards

    Peter

  • Best practices for integrating flex application in html

    Hello guys

    I don't know what the best practice is to embed the flex application. We couldn't use the html code in flex builder. You guys edit html of other tools files to integrate the swf file when the application is completed or when there are other ways to do it. Thanks for the reply.

    Hi Jerry,

    Why you couldn't use the html generated code in flex builder. In the html wrapper file generated in FlexBuilder you have SWF embed code directly, as well as javascript Flash Player detection code... If your users do not have the FlashPlayer installed or if they not have the latest version of Flash Player installed, then the application invite users to install the latest Flash player plugin...

    What is the problem that you have obtained the help of the html wrapper file generated in FlexBuilder.

    Thank you

    Jean Claude Chari

  • Flash call the flex application method

    In a flex application, I use the SWFLoader for loading a flash, the code:

    <? XML version = "1.0" encoding = "utf-8"? >
    "< mx:Application xmlns:mx ="http://www.adobe.com/2006/mxml"fontSize ="12">"
    < mx:Script >
    <! [CDATA]
    Import mx.controls.Alert;

    public function testResult (): void {}
    Alert.Show ("Hello World");
    }
    []] >
    < / mx:Script >
    < mx:SWFLoader id = 'flash' source="flash/test3.swf"/ >
    < / mx:Application >

    There is a button in the flash(flash/test3.swf) shipped,

    When I click on this button, how to call the method testResult to the flex application? Thank you!

    In your Action Script (flash/test3.swf) to make one:

    Import mx.core.Application;

    and then in your button:

    Kind regards

    SAM

  • Using Weblogic to deploy the Simple Flex application

    Hello


    I'm deploying a Flex application is simple in a weblogic8.1 server, so that I can use it locally.

    Can someone please guide me where and how to deploy my flex application.

    I'm pretty new to this can any body provide me with a guide or walk up the wise step for me.

    More on what is the url that I need to give in the browser to access the flex app that I deploy on the Weblogic Server.


    (Currently I use IIS - simply copy the .swf file and wrapper html page in to the C:\Inetpub\wwwroot and giving http://localhost/test.html )

    in the browser to access)-how to do this using Weblogic 8.1


    Thank you

    Nash

    Hi Nash,

    I used WebLogic a lot (even if most v9 rather than 8). The main square is in the same location as your JSP files, so in your contenuWeb instead of the src folder. However, you can have structured the JSP pages themselves into folders (I always do on big plans for roughly in line with the menu chocies), in which case I would put the compiled Flex SWC with the JSP in which it is incorporated. In principle it can be elsewhere for example (all files swc collected in one place), but I personally find it easier to keep the page and insert set.

    When WebLogic then deploys the structure of folders to WebContentremains the same, but the src files treated differently to support navigation controller/struts.

    If you update the swc without changing the WebLogic Server part, then you can simply drop the swc altered in the correct location on your server... as long as you can find, because it is usually buried a lot of deep layers folder. But the WebLogic administration console must indicate where the server is looking for the files, and then you can track that down on your hard drive.

    Hope that helps,

    Richard

  • Error using the ColdFusion/Flex Application Wizard

    I'm looking forward to use the CRUD from the CF/Flex Application Wizard features. After 4 hours of trying to find the problem, however, maybe someone else can help. The wizard is able to locate and work with a SQL Server 2005 data source and create the application. When I run it however, I have the following error:

    (mx.rpc::Fault) #0
    errorID = 0
    faultCode = "Client.Error.MessageSend".
    faultDetail = "error Channel.Connect.Failed NetConnection.Call.Failed: HTTP: status 405.
    faultString = "send failed".
    message = "faultCode: Client.Error.MessageSend".
    faultString = "send failed".
    faultDetail = "error Channel.Connect.Failed NetConnection.Call.Failed: HTTP: status 405.
    name = "Error".
    rootCause = (Object) #1
    Code = "NetConnection.Call.Failed".
    Description = "HTTP: status 405.
    Details = "" http://localhost/flex2gateway " "
    Level = "error".

    1 flex Integration is enabled on my 7.0.2 Server
    2. it looks like a mapping problem

    Someone, help please?
    Christian Briggs

    It was after all the configuration file. Thanks for your help.

    The problem: was always set to false. Thank you!

  • Page HTML in a Flex Application

    Hello!

    is it possible to insert a HTML page into a flex application?
    I don't know where to look on the HTML (Adobe AIR) component and how to use it...


    Nicolas 'beginners '.

    Here is a link for you to start with:

    http://www.codeapollo.com/showthread.php?p=3367

    Enjoy =)

  • Convert HTML/javascript AIR app AIR flex application?

    Hi all

    I have already built an AIR with HTML/javascript application I want to monetize.

    I would use the O2app e-Commerce Framework, which supports only this time created Flex AIR apps.

    My question: is there a simple way to "convert" an AIR of HTML/javascript app in Flex 3? I don't want to rebuild from scratch in Flex 3 application if I have to. :)

    Thank you

    Al

    Thank you very much for this information.

    Initially, I asked the question because, at the time, I thought that AIR Flex applications could be protected against copying, but it seems that they too can not be protected against copying (the exe file is created AFTER the installation).

    Thanks again,
    Al

  • 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

  • Make the new Transparent Tab Page

    I'm new to Firefox. I was wondering if there is a way for us to make the new page tab transparent so I can see the topic I have put. What is the point of themes if you do not see the hole thing. Please, is there a way! I love your message (if you can

  • With Satellite A30 power problems

    Hello Over the last four years, I have been using a Satellite A30 with XP Pro... had no problems whats so ever until that last months... I started to notice the battery life becomes lower before (prob because of the decrease in battery life) but also

  • Switching the boot partition? Satellite Pro 4270

    I have inherited a SP4270 and I would like to partition the hard drive, formatting of a portion as NTFS and the other in the form of FAT, and using NTFS for installation of Windows and the FAT for a Linux installation. Since the BIOS doesn't have the

  • Satellite Pro A200SE-1F9 starts showing blue screen

    Hello I recently bought a Satellite Pro A200SE 1F9 (2.00 Ghz, 2 GB RAM, professional running Vista), after 4 months he began to launch Blue error screen. I tried not to upgrade or fix a new material. I had a Linux Fedora 7 (dual boot), as I was getti

  • BoxPlot bug?

    Hi guys,. When I was looking for an example on how to draw a boxplot in LabVIEW, I found these two examples: https://decibel.NI.com/content/docs/doc-4929 http://www.NI.com/white-paper/3047/en At first glance the example in the boxplot.llb library box