Groups | Blog | Home
all groups > flash data integration > january 2005 >

flash data integration : XML Based Form Submission


JustinRTPD
1/4/2005 10:00:51 PM
Hey everyone,

I am working on converting a html based search screen into a flash based
search. Simply because they look so much better and I love the Flex style
components.

I have the form designed and working all of the dropdoens are populated from a
XML file. What I need to do now is get the form to submit to my cfml page. I
need to pass the form values in the URL for some other scripts I run. Well I
know almost nothing about AS so this has been real tough. I have read a ton of
tutorials but none seem to point me in the right direction.

I am going to post 2 links. One to the flash based search and one to the HTML
based search. If you click submit on the HTML search you will see how I need to
pass the URL parameters. Thank you in advance for any help you can give.

Flash search:
http://www.rtpdesigns.net/rtpdidx/testing/flashsearch/flashSearch3.htm

HTML Search: http://www.rtpdesigns.net/rtpdidx/properties/searchproperties.cfm

Justin
morksinaanab
1/5/2005 1:19:36 PM
put some code on the search button like: on (click) { var url =
'http://yourserver/searchResults.cfm'; url += '?cityVar=' +
citydropdown.selectedItem.value; url += '&countyVar=' +
countydropdown.selectedItem.value; url += '&zipcodeVar=' +
zipcodetextbox.text; getURL(url,'','GET'); //for posting the data to your
current searchResults.cfm and getting the page it shows } hope this is any
help! trick is to manually create a string which represents the url, that you
would use in posting the form in the HTML file }
JustinRTPD
1/6/2005 2:35:21 AM
Hey morksinaanab,

Thanks very much for the reply. That helped out alot I am not able to get the
correct URL and pass the params, The problem I am having now is that all of the
values are marked as undefined. like searchResults.cfm?City=undefined Even the
text ones are marked as undefined when I enter something in them and submit the
form.

If you have any idea what could be causing this I would be very greatful.
Thanks very much for your help.

Justin
morksinaanab
1/6/2005 10:07:21 AM
could you send me the .fla so i can take a look at it, So I can take a look at
your instances, components and variables? I think for instance
citydropdown.selectedItem.value is not the proper way (it was an example).
morksinaanab
1/6/2005 10:07:23 AM
could you send me the .fla so i can take a look at it, So I can take a look at
your instances, components and variables? I think for instance
citydropdown.selectedItem.value is not the proper way (it was an example).
harrie@quince.nl
AddThis Social Bookmark Button