473,385 Members | 1,769 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

js search box for dynamic contents

I want to know that in below code, can i create a search something like my attached image.

Expand|Select|Wrap|Line Numbers
  1.         onClick: function () {
  2.             $.ajax({
  3.                 type: 'POST',
  4.                 url: 'data.php',
  5.                 dataType: 'json',
  6.                 success: function (data) {
  7.  
  8.  
  9.  
  10.                     var res = [];
  11.                     for (var i in data) {
  12.                         var rows = data[i];
  13.  
  14.  
  15.                              res.push({ 
  16.                              event_name: rows[0],
  17.                              date: rows[1],
  18.                              venue:rows[2]
  19.  
  20.  
  21.                              });
  22.  
  23.                      }
  24.                     viewModel.dSource(res);
  25.                 }
  26.             });
  27.         }
  28.     };
Attached Images
File Type: jpg search.jpg (23.5 KB, 96 views)
Sep 15 '13 #1
0 1266

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Derek Mortimer | last post by:
This is my first attempt to join a user group. I run an iMac and have recently upgraded to OSX, OfficeX, after years of problems. I am having difficulties with Find, or maybe do not understand its...
1
by: stewart | last post by:
I'm writing an app that requires a 3-level optionMenu display. Basically I'm showing the contents of a 3-dimensional matrix. You choose the first level in the first optionMenu, the 2nd level in...
2
by: Frederic Jolliton | last post by:
Hi, My problem is rather complex. I will try to explain it clearly (I hope !) Sorry for my poor english. I'm tracking change of state for entities (something than can be monitored.) The...
2
by: Mong | last post by:
Hi, I've developed an ASP.net application for an intranet site. Users will be identified using Windows authentication and they will belong to one of two roles, Admin or Users. The application...
0
by: | last post by:
Hi, I am just progamming using asp.net, and I want create a usercontrol to display some dynamic(from database) contents. Is this possible? Is there any sample code ? Thanks in advance! ...
2
by: jitu78 | last post by:
Hi All, I am having problem with Pixel fonts in Flash. When I am using pixel fonts for dynamic contents, textual data is looking blurry. They are showing right with static content. That’s...
4
by: Dameon | last post by:
Hi All, I have a process where I'd like to search the contents of a file(in a dir) for all occurences (or the count of) of a given string. My goal is to focus more on performance, as some of the...
2
by: ipy2006 | last post by:
How can I filter a dynamically created table with some search criteria. Are there any examples any where for this. Here is what I am looking for, Table Column A Column B Column C a1 ...
14
by: Gilles Ganault | last post by:
Hi One of the ways to raise performance for PHP apps is to separate static contents from dynamic contents, so that the former can be compiled once into cache. Can someone give me a simple...
8
by: dasrasmikant | last post by:
Hello everybody, I have seen in a lots of website the dynamic contents with HTML pages. So could someone suggest me how is it possible?? Thanks in advance.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.