A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Input Text Field Question....

  1. #1
    Junior Member
    Join Date
    May 2010
    Posts
    6

    Input Text Field Question....

    I have a frame that has input fields that get output to a php file and generate a contact email. Is there anyway that if someone visiting the site I'm creating starts to fill out these text fields and then navigates to another frame/page that when they return to the form the text that was entered would still appear. I've googled this and am having no luck....Thanks

  2. #2
    Flash/Flex Developer samac1068's Avatar
    Join Date
    Apr 2007
    Location
    Here, no there
    Posts
    1,813
    You want the information in the contact email to be stored if they navigate away from the page? Best bet would be to store the information on the user's local machine using shared objects, but you may have to deal with permissions. Anyway, give it a go here is a link to more information: http://www.permadi.com/tutorial/flas...ect/index.html
    Some people are like Slinkies, not really good for anything, but they bring a smile to your face when pushed down the stairs.

  3. #3
    Junior Member
    Join Date
    May 2010
    Posts
    6
    Its actually an order form to create a flower arrangement. You can select color, type of flowers, etc. There's quite a lot of input text boxes to fill in. Im afraid that someone might fill in half the form, then look at the photo galley of other flowers to get ideas, and then when they come back the form you will have to start over. Is there anyway that the text entered into the text fields could remain after going to another frame and then returning? Without storing on the user's local machine?

  4. #4
    Flash/Flex Developer samac1068's Avatar
    Join Date
    Apr 2007
    Location
    Here, no there
    Posts
    1,813
    I'm assuming that the entire site is NOT all in Flash. If it were you could simply store the user's information in an variable until they return to that form. The other possible options would be to pass the information to javascript for storage, store the data in a database, or again use shared objects in flash to store the information on the user's machine.
    Some people are like Slinkies, not really good for anything, but they bring a smile to your face when pushed down the stairs.

  5. #5
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,755
    it would depend on how you set up your movie/project. (but there may be ways around it if you are too far in to change things)


    1.) if you have everything on the _root timeline.. this may be too much of a pain.
    But you should nest 'everything' in a movieClip..

    myself, I open a new project.. first thing I do is make a new/empty movieClip..called _project (or whatever)..

    and I do all my work/code in that, as its my root movie/timeline.

    this allows me to move my whole project together as on unit is dimensions are wrong.. or other aspect/areas that are nested movieClips as well.

    this also allows me to put code in a 'parent' timeline that all components of my movie share.

    example:

    set-up:

    ----------------------------------root time line------------------------

    --------------------project mc-------------------

    ----content 1---- ----content 2---- ----content 3----

    I can save variables/data in the project timeline or even the _root timeline.. and no matter what frame of (page) my content movieClips.. (or even the project mc if you save on _root) is on.. I can access data saved on the _root timeline.

    that goes the same as if I navigated back to a certain frame or page in my content or project movieClips.

    make sense?

    all you need to do is save the data input into those fields when a user leaves that page.. and check for them when a user enters it.




    2.) if this is NOT how you plan your projects (nesting content/modular building..etc)
    then maybe you can save the data input into these fields by using a Shared Object (sorta like a cookie for Flash movies)..

    and again.. when the user clicks a button to leave the 'form'.. you save that data.. every time that user comes to that page..you check for the shared object on the users computer.


    edit:

    oops I see there are replies already.. I had a bunch of tabs open to 'answer/reply' to.. then got called to a meeting, then lunch.. LOL

    so not sure/sorry if same answers were given.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center