Text input as variable in a URL

I want to create a simple flash document with a text input
field, and a button that will go to a URL. The trick is that the
text input field needs to replace an element in the URL for
personlaization purposes. I got the field, and I got the button.
What is the method for getting it into the URL.

I think you should be able to do something like, I use it for
loading variables from a URL a lot and im pretty sure will work the
same using getURL
something like this, just change the variables to yours
getURL("
http://www.test.com/cgi-bin/scripts.pl/flash/search?name="
+ input_name_text.text + "&category=" + category + "&type="
+ category);
Whatever is in those variables will be inserted into the
URL.

Similar Messages

  • Text input variable

    How do i make a text input element have a variable ?.....I
    don't mean instance name ....i mean variable!

    I'd say you just don't do it that way, but to give more
    advice I'd need more info on what and why ...
    There should be a lot of solutions to your problen once it's
    nature is clearer.

  • Text Input: How To Perform Procedure on Console Input Without Variables

    Problem Defined:
    Need to analyze text input on console to ensure it meets conditional statements before assigning to a variable.
    I can't find a method to take scanner input from the console without first assigning it to a variable. I don't want to assign it to a variable unless it meets a certain condition.
    This is for a class assignment and I must use the console for input--no dialog boxes.
    This is what I want to do:
    Read Input; Hold In Memory; Test if Null; Test if Length is 14 Digits; Assign to Acct if All Conditions Are Met
    If Null, tell the user he needs to actually enter input or q to quit. Exit after five failures.
    If input is not equal to 14 digits, inform user. Offer escape with q. Exit after five failures.
    I only know how to assign a value to a variable from the various methods that take input. How do I take input and store it in memory to analyze without assigning it to a variable?
    I have this and the code is probably not correct. I'm a rank newbie. I've written several programs, but they're all basic, mostly using only the methods I learned in class and what I pulled out of books. My prof doesn't even intend on going over if, for and while! She's happy with us just copying verbatim and editing one or two lines so the source isn't exactly what she wrote on the board. I'm trying to learn how to do things that I know are useful, like making sure input is in the proper format, asking questions like what did people use before scanner just gets me blank responses with a quizzical look, but no answer.
    new Scanner = console scanner (system.in);
    String Acct
    Acct = console.next();
    if Acct == null . You entered nothing. Try again or press q to exit.");
    return to Line 1 //No idea how to do this.
    if Acct == 'q'
    Close Program
    if length.Acct = 14 ( Acct = Acct )
    else System.out.print("Your account number is 14 digits. You didn't enter 14 digits. Try again. Or press q to quit.")
    goto Acct = console.next
    Also, if you need to read an address from the console entered on one line, what methods can you use to pull one word at a time and then position them onto multiple lines?
    Enter Address: 123 Main Street Apt 321 Port View, FL 32547
    123 Main Street
    Apartment 121
    Port View FL
    32547
    Any help putting this together would be greatly appreciated. Thanks in advance.
    Alec

    805228 wrote:
    How do I take input and store it in memory to analyze without assigning it to a variable?Where do you think variables are stored? In memory. So no, you're not gonna be able to do anything to the value before you assign it to a variable. Then you can do any checks you need and
    possibly assign it to another variable (or more likely, ask the user for valid input if the checks don't pass).
    You can use loops and other constructs to keep asking for user input until valid values are provided.
    if Acct == null . You entered nothing. Try again or press q to exit.");
    return to Line 1 //No idea how to do this.Read up on while loops.
    Also, if you need to read an address from the console entered on one line, what methods can you use to pull one word at a time and then position them onto multiple lines?
    Enter Address: 123 Main Street Apt 321 Port View, FL 32547
    123 Main Street
    Apartment 121
    Port View FL
    32547Well that depends. How do you know that the street is "123 Main Street" and not "123 Main Street Apartment" or "123 Main Street Apartment 121".
    You can get the whole String from the user and then split the String into smaller Strings _if_ you can answer the question on the previous line.

  • Specified url text input type of form in DW CS5

    If I wanted to dilspay a text input type form on the site's last page, Will the url link function during my table data display? I'm assuming it will be hoverable and active as a link if the text input type form used to submit the link to the database is set up properly? The text input type form creates a record that is automatically saved on a database that I can then use to check for display errors. What other type of url links work with text input type forms in DW.

    If I wanted to dilspay a text input type form on the site's last page, Will the url link function during my table data display?
    I don't understand what you are asking.  Can you say more about this url link function, and the text input type form?

  • Text variables for non-input ready variables

    I have a query with a structure in the Rows section.  The row structure contains three selections for different time periods.  Two of the time periods are based on non-input ready variables for Calendar Month.  The user will enter a calendar month and the other two selections will be based on the month that was inputted.  Since the time periods are dynamic, I need the text in the rows to reflect the appropriate Cal. Month value.  I have tried using a customer exit to define text variables but they are not working.  My text variables are called "CMON_TXT_D01" and "CMON_TXT_D02".  If the user selects 'Dec. 2010', the report would look like this
    Dec. 2010  => user inputs this value
    &CMON_TXT_D01&  => customer exit calculates -1 month back from inputted value
    &CMON_TXT_D01&  => customer exit calculates -2 month back from inputted value
    I need it to look like this if the inputted value was 'Dec. 2010'
    Dec. 2010
    Nov. 2010
    Oct. 2010
    I can get the text variable based on the input-ready variable to work but the two selections that are based on the non-input ready variables are not working.  Does anyone know how to get the text variables to work for the non-inpjut ready variables?
    Thanks.

    Hi,
    I would do it this way;
    1) Create a Row Structure
    2) Create Row Selection for Dec 2010 by restricting Cal. Mth. by the User Input Var
    3) Create Row Selection for Nov 2010 by restricting Cal. Mth. by the User Input Var with a Var Offset of -1
    4) Create Row Selection for Oct 2010 by restricting Cal. Mth. by the User Input Var with a Var Offset of -2
    5) Create a Text Var whose processing is by Replacement Path & choose Variable with the User Input Var under Replacement Path options
    6) Edit the Description of each of the 3 Row Selections to contain the Text Var in (5)
    7) The Text Var should automatically reflect the User Input selection & the offsets defined on the same in the Row Selection Captions
    --Priya

  • Conditional for a text input box NOT being null? Sorry for asking so many questions!

    Okay, here's the situation. I'm creating a simulation of a form on which there are several text input boxes, 7 of which are mandatory fields. I know I can use a conditional to check whether the box has nothing in it by creating a null variable with no value and doing "if [box variable] is equal to [null variable] then", but the problem is that the validation captions I need to show need to be shown in order, that is to say that the caption for entering a value for the first box will always be shown if that box is null regardless of the contents of other boxes, the second will be shown if that one is null and the first one isn't etc.
    When I was investigating this I noticed a post by Lilybiri saying that comparison with a null variable doesn't work for "not equal to" so I'm having a hard time figuring out how to show the captions based on priority. For example, to show the second caption I need to not only check whether the second box variable is null, but also whether the first one isn't.
    It gets pretty crazy further along the line where I get to the 7th mandatory field and need to check whether the first, second, third, fourth, fifth and sixth boxes are NOT null and whether the 7th one IS. Help!
    I did come up with one potential solution to this prior to posting: if I set a different advanced action for each input box losing focus which checks whether the variable is null and if so sets a "flag" variable to 0, and in the else set it to 1, I imagine I can then replace the "not equal to" with a check to that flag variable being equal to 1 (which means there is text in the box). I think this will work but I thought I'd check to see if there's an easier way first.

    No it DOESN'T require everything to be on one slide.  It just has to LOOK as if that's what it is.
    I would suggest that it doesn't really matter how many Captivate slides are involved in the final solution, as long as it works the same way (or as close as possible) to the original software that you are simulating.  Your users don't frankly know or care how you achieved the simulation.  I guarantee they won't be thinking of you or Captivate.
    In my experience, you can make creating elearning a lot more difficult than it needs to be in Captivate by trying to rebuild the app, rather than just simulating how it works. For example, thinking that if everything happened on one web page or screen in the app then it must also happen on a single slide in Captivate.  The fact of the matter is IT DOESN'T need to work this way.  And in some cases it might even be impossible to reproduce in Captivate this way.
    So the quickest path to a solution is often to use multiple slides, which has the advantage of allowing you to "fix" certain things on screen (e.g. the contents of fields already visited) by using READ ONLY variable output in transparent captions, focusing only on one element of the interface that the user can interact with on that slide.  It doesn't necessarily prevent you from moving back and forth between elements, just as you can in the original app.  But it is far easier to create and maintain.
    I'm not saying you wouldn't be able to pull this off on one slide in Captivate, but it is going to require a LOT of variables and Advanced Actions to build and debug.  So the term Rapid Elearning becomes something of a misnomer if it takes you a long time to complete one slide.

  • Text input box for displaying notes

    How can I use a text input box so delegates can write notes in which then appear on other pages as they work through the course.
    Ken

    It seems you would be able to do this with user variables, in which you store the content retrieved from the Text Entry Box. Later on (other slides) you can use this content by adding it to a Text Caption. Beware: I'm not sure about the amount of characters that can be stored.

  • Text input popup

    I am writing a simple RSS reader app in Flex (for AIR).
    I have a "change feed" button in my app. I want this to
    launch a popup with text input, to take the URL as a string and
    return it to my main app. This seems like something that should be
    incredibly, and I'm missing something. Any help would be
    apreciated.

    You can create such a popup with a TitleWindow and
    PopupManager:
    ------------ MyPopup.mxml ----------------
    <?xml version="1.0"?>
    <mx:TitleWindow xmlns:mx="
    http://www.adobe.com/2006/mxml">
    <mx:Script>
    <![CDATA[
    import mx.managers.PopUpManager;
    ]]>
    </mx:Script>
    <mx:TextInput width="200" />
    <mx:Button label="Done"
    click="PopUpManager.removePopUp(this);"/>
    </mx:TitleWindow>
    --------------------- Test.mxml ----------------------
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml">
    <mx:Script>
    <![CDATA[
    import mx.managers.PopUpManager;
    import mx.core.IFlexDisplayObject;
    import components.MyPopup;
    private function showMyPopup():void {
    var helpWindow:IFlexDisplayObject =
    PopUpManager.createPopUp(this, MyPopup, false);
    ]]>
    </mx:Script>
    <mx:Button click="showMyPopup();" label="Show My
    Popup"/>
    </mx:Application>

  • Using text input to change content of gallery

    Hello,
    I have an application where I'm using multiple excel tables as my data. Each table has the same columns; The only difference is the data in each one. 
    I have a screen "GalleryScreen" where I have a Gallery (aGallery) that displays information from a single table (Ex: Table1). aGallery's data is set to Table1.
    I now want to allow users to select which table they want to use in the gallery via text input; The user would select a table name via a dropdown menu, and the correct table would be displayed in the GalleryScreen.
    However, I'm unable to pass text to the Gallery, since Gallery is expecting a collection; How do I get the application to use the text as a variable?
    Leo

    It cannot be done directly in Siena right now.   As a workaround, you can use If statements:
    Create a Table that has the names of each table you want to choose between.   Name that column TName.
    Save and import table into Siena.
    Set the Galleries Data to: MyVal
    (there will be red lines indicating an error, that's OK, we'll fix that shortly.)
    Create a Drop Down called DropDown1.
    Set the DropDowns Items to the Table you just imported.
    Set the DropDowns OnChange to:
    If(Dropdown1!Selected!Name = "aGallery", UpdateContext({MyValue: aGallery}),
    If(Dropdown1!Selected!Name = "bGallery", UpdateContext({MyValue: bGallery}),
    If(Dropdown1!Selected!Name = "cGallery", UpdateContext({MyValue: cGallery}))))
    You can change the text in quotes to be whatever you want the user to see, as long as you also change it in the table that contains all the table names.   It does not need to actually n=match the Table Name Siena sees.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This is beneficial to other community members reading the thread.
    -Bruton

  • BPEL Invoke: Input Header Variable

    Is there a simple way to replicate the Input Header Variable that is part of JDeveloper 10g for BPEL Invoke activity?
    Doing some work with 11g TP3 to work with salesforce.com and need to include a Session ID in the header of the massage sent to invoke a salesforce web service.
    I made the change by manually pasting 'bpelx:inputHeaderVariable="headerRequest"' into the BPEL XML source document for the Invoke activity.
    I'd also be interested in a way to more easily set the EndpointReference of the Partner Link than first importing ws-addressing.xsd schema document into the BPEL Project in order to next create an EndpointReference Element type variable, then copying an XML Fragment to the EndpointReference variable before finally setting the Web Service URL at runtime?
    Thanks,
    Mark

    I started with the example code included with SOA Suite 10g.
    All of the steps from that example, except the Input Header Variable, could be done the same way in both 10g & 11g.
    To make things work, I had to manually paste the code noted in my initial post to BPEL XML source document.
    I'm hoping TP4 or other future release will have the ability to include the header variable in the visual design tool.
    I'm also hoping TP4, which I haven't used yet, or future release of the BPEL desginer in JDev 11g will come up with a simpler way to dynamically set the address of a partner link invoke.

  • Background application for handwriting text input

    Hi,
    Is it possible to have a background application running or through any other way so that my application can provide a handwriting input mode wherever iPhone takes text input through keyboard?
    All the best,
    Saad

    Hi Saad -
    Legal, non-system iPhone apps can't run in the background, and no such app would have permission to read another app's input even if it could run in the background. There are some forms of communication between apps, such as registered URL's and PUSH notification, but since only one app can run at a time, there's no communication option that's close to what you're looking for. I think your idea would require the kind of tight integration used in assistive technology such as screen readers. Given the kind of security users expect from the iPhone, such a feature would need to be part of the system.
    I think the library you described in your other post is most likely the best way to distribute your software. However you might also consider providing a web service. You might think of the web as the primary means of inter process communication for iPhone apps. A web service might allow developers to buy your technology on a pay-as-you-go basis instead of buying the rights to the library. Maybe that could work if you decode static info. Of course if you need a log of the touch events, you'd probably need so much processing in the client that a library would be much better... Just thinking out loud in the unlikely case any of my thoughts are useful to you. Obviously I know nothing about handwriting recognition, and I've wandered off topic. The short answer to your original question is no.
    \- Ray

  • Text for Exit Variable Values

    Hi
    We are populating the variable with the exit function module and I am using this variable as an user restriction of values. When my user opens the input box to select the values of this variable, there not able to see the attributes that are there for that characteristic as well as description of the master data values. The only thing that they are seeing is the key values that are populated by the exit. Can you please let me know what is the reason for this behavior and we are using web excel interface and using BW 3.5 version
    Thanks,
    Raj.

    Hi Guys
    I have solved this. I had to select the Planning level in the variable component to populate the text in the variable of type exit.
    Thanks,
    Raj.

  • User input formula variable with greater than/less than operators for KFG

    Hello all,
    I have used a formula in my query that is a difference of two key figures .For e.g:
    Difference = tax from system A  -  tax from system B.
    Now when the users run the report they should be prompted for the 'Difference' threshold for seeing the report say where difference is greater 100 or equal to 10 and so on.Currrently I have created a formula variable with 'user input' and created a 'condition' to display 'Difference' greater than the user entered value.
    However,it is required to have various selection options for setting the threshold of difference.For e.g User should be able to set say 'equal to'/'greater than/less than/not equal to operator for 'difference' in the initial selection screen of the report.
    With the current user-input formula variable I am not getting these 'greater than' etc operators.Any ideas on how to achieve this?

    Ya know, that's all well and good ... BUT ... WHAT IF you do want to sort text type columns with Greater Than and Less Than operatiors??
    SQL does it just Fine ... so WHY does APEX have the limit??? This is an Oracle BUG ... it SHOULD NOT limit the operators ... I realize "they" may be trying to be helpful with proper constraints to field searches ... but ... if SQL can do it, then ... no need for a limit.
    EG ...
    Show the records where
    the "Begin_Year-Wk" data is less than or equal to "2009-09" AND
    the "End_Year-Wk" data is greater than or equal to "2009-04"
    ... to give everything that was running in that 5 week period whether or not it starts within that time frame
    I can run this query perfectly fine via SQL ... but not in APEX ... unless I reconvert a lot of strings back to numbers, and for sorting / formatting / explain-to-user purposes, I really don't want them to be numbers.
    So ... there's gotta be a hidden tweak for operators somewhere ...

  • Error while running a query-Input for variable 'Posting Period is invalid

    Hi All,
    NOTE: This error is only cropping up when I input 12 in the posting period variable selection. If I put in any other value from 1-11 I am not getting any errors. Any ideas why this might be happening?
    I am getting the following error when I try and run a query - "Input for variable 'Posting Period (Single entry, mandatory)' is invalid" - On further clicking on this error the message displayed is as follows -
    Diagnosis
    Variable Posting Period (Single Value Entry, Mandatory) is used as a lower limit (X) and an upper limit () in an interval selection. This limit has the value #.
    System Response
    Procedure
    Enter a different value for variable Posting Period (Single Value Entry, Mandatory). If the value of the other limit is determined by another variable, you can change its value also.
    Procedure for System Administration

    OK.
    Well, if the variable is not used in any interval selection, then I would say "something happened to it".
    I would make a copy of the query and run it to check if I get the same problem with period 12.
       -> If not, something is wrong in the original query (you can proceed as below, if changes to original are permitted).
    If so, then try removing the variable completely from the query and hardcode restriction to 12.
       -> If problem still persists, I would have to do some thinking.
    If problem is gone, then add the variable again. Check.
       -> If problem is back, then the variable "is sick". Only quick thing to do, is to build an identical variable and use that one.
    If problem also happens with the new variable, then it's time to share this experience with someone else and consider raising an OSS.
    Good luck!
    Jacob
    P.S: what fisc year variant are you using?
    Edited by: Jacob Jansen on Jan 25, 2010 8:36 PM

  • Text input options missing

    Hi,
    After running some updates yesterday, the "show text input options" is no longer available in the options. Neither can I select suretype when writing a message. Would appreciate some help.
    Thanks
    Solved!
    Go to Solution.

    Had to re-boot after removing an application and everything back to normal! What bugs me is that my service provider tech never brought up a re-boot but rather wanted me to delete all my data and start all over!

Maybe you are looking for