|
| Web News |
France to offer tax credits on video games France is to offer tax credits to encourage local companies to develop video games, the Ministry of Culture said on Thursday. Parliament has approved a measure that will offer tax credits to producers of video games "with a cultural dimension" to finance 20 percent of a...
'Le Web' Plays New Role in France Race One French presidential contender wants you to chuckle at his expense with a Web site that shows a virtual version of the usually straight-laced candidate disco-dancing. Supporters of his Socialist opponent have set up a spacious virtual office in a popular online game....
Has the Music Industry Warmed to Fee... Remember the "global music license"? The fee that would free us to copy digital music with few restraints? It's baaaack. A year ago, the music industry was in near hysteria over the French government's proposal to...
France's Avanquest Software makes U.S. acquisition French software developer and publisher Avanquest Software (AVQ.PA: Quote, Profile, Research) has bought Nova Development Corp for $48 million in cash and shares, to boost its reach in the United States and consumer software. Avanquest said the earnings...
EU: France Telecom broke antitrust rules France Telecom kept competitors out of the high-speed Internet market illegally by charging artificially low prices, Europe's second-highest court ruled Tuesday, upholding a 2003 European Commission decision. The Court of First Instance upheld a 10.35 million euro ($13.37 million)...
|
 | |
|
02.02.07 Form Post In Spry By
Raymond Camden
Last week or so I blogged about doing form postings with Spry.
I was asked to provide a bit more documentation so I thought I'd show a slightly more detailed example.
First lets start with a very simple form:
This form has two simple text fields named one and two. I want to use Spry to send the values of these two fields to the server. First lets add a simple button:
Now I need to grab the values I want to post. Normally with a submit button you don't have to worry about this. The browser simply sends all the form fields. In this case though I have to specify the fields manually. First I'll grab the value of the form field, one, using the Spry/Prototype $() shortcut:
Cost Effective Website and Network Monitoring IPCheck Server Monitor - Free Download |
|
The form post data must be sent like a query string: foo1=value1&foo2=value2. Again, I have to do this by hand:
So the last thing we do is run the Spry code that will handle the form post. I talked about this more in the last post so I won't spend a lot of time on it.
The first argument defines the type of request (GET or POST). The second argument is the URL value I defined earlier. The third argument defines if the call is asynchronous or not. The fourth argument defines a function to run with the result of the HTTP call.
Lastly there is a structure of arguments that define the request. Again I have to thank Keith for figuring this out.
Continue reading this article.
About the Author: Raymond Camden, ray@camdenfamily.com
http://ray.camdenfamily.com
Raymond Camden is Vice President of Technology for roundpeg, Inc. A long
time ColdFusion user, Raymond has worked on numerous ColdFusion books
and is the creator of many of the most popular ColdFusion community web
sites. He is an Adobe Community Expert, user group manager, and the
proud father of three little bundles of joy.
|
|