3 Replies - 2134 Views - Last Post: 29 April 2011 - 06:29 AM Rate Topic: -----

#1 Raywin  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 29-April 11

ColdFusion ajax search form ? or seach filter ?

Posted 29 April 2011 - 04:02 AM

Sorry i am very new to ColdFusion and English is not my first language, please forgive me if have any mistake.

I am looking for some technique like search form or form filter.
This is a reference .
It is a hotel finding website.

My question is here, how to use coldfusion to create this kind of searching form with ajax?
Please give me some idea or tips , i will appreciate with you assist !

I have just get some idea on ajax search form with text.
<form>
Search: <input type="text" name="search">
<input type="button" value="Search">
</form>

<cfdiv bind="url:movieresults.cfm?search={search}">
</cfdiv>



It is depend on the url.
How about other like checkbox , select?

Is This A Good Question/Topic? 0
  • +

Replies To: ColdFusion ajax search form ? or seach filter ?

#2 Craig328  Icon User is offline

  • I make this look good
  • member icon

Reputation: 1866
  • View blog
  • Posts: 3,389
  • Joined: 13-January 08

Re: ColdFusion ajax search form ? or seach filter ?

Posted 29 April 2011 - 05:51 AM

Raywin, welcome to D.I.C. and to the Coldfusion forum!

In response to your question, I'm not sure we can help you with that. Not because we wouldn't know how but because of your level of experience ("very new to ColdFusion") and what it is you're asking to do ("ajax search form with text").

In general terms, a search form in CF has the same basic concept as a search form in any other format: you have a form wherein you allow the user to supply search criteria and you have some collection of data to search against. So, you see the actual search form itself is only but a small part of searching. You need to construct the data object you will search against and you need to build the pieces to add to that collection (if necessary) and maintain it. Tossing in the Ajax interface will only complicate matters so I'd recommend you stick with a basic search HTML form and once you've mastered submitting a search, doing the search through your data collection and returning that collection to the user in the form of a useful results page...only then should you consider modifying it to run with an Ajax engine.

A good place to start for how to work with cfindex and cfsearch (Coldfusion's tags that create the data collection and to search against that collection) would be found here.

Walking before running, grasshopper. :) If you encounter any specific problems, feel free to come back here and we'll see what we can do for you. In the meantime, check out our ColdFusion resources thread. It has a great many links to common CF resources that all CF devs, beginners to experts, need/use to help get the job done.

Good luck!
Was This Post Helpful? 0
  • +
  • -

#3 Raywin  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 29-April 11

Re: ColdFusion ajax search form ? or seach filter ?

Posted 29 April 2011 - 06:15 AM

Thank for your advise Craig328.
You give me some idea!

I will try to work with it.
Sorry, I know my level should not to ask this kind of question, thank for your advise :)
Was This Post Helpful? 0
  • +
  • -

#4 Craig328  Icon User is offline

  • I make this look good
  • member icon

Reputation: 1866
  • View blog
  • Posts: 3,389
  • Joined: 13-January 08

Re: ColdFusion ajax search form ? or seach filter ?

Posted 29 April 2011 - 06:29 AM

Nah, there's no problem with asking. If you don't ask questions, you don't learn things.

But like it most things: start small and work your way up. :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1