advanced search functionality - query builder for the end-user - javascript

I'd like to implement an "adavanced search" function into my website. It is a database application and therefore uses a mySQL database.
I was looking for a tool called query builder/ composer/ generator/ constructor ...
The user should be able to narrow down his/her search. I've done an internet search on my own for such tools and stumbled across many, but most of them are more like tools for programmers to support them writing SQL queries.
I stumbled across these two tools that do what I am looking for:
EasyQuery/ EasyQuery.js (e.g. http://advangle.com/)
RedQueryBuilder (http://redquerybuilder.appspot.com/)
Do you know more of them? I'd like to use PHP as programming language (Javascript in addition is okay). Open source and free is preferred.
Furthermore my data base structure (I only want to search one specific table) does not change dynamically over time.
Maybe you can also guide me to different keywords I have to look for to find other tools like those mentioned above.
Thanks,
Matthias
(PS: Please don't discuss security issues like SQL injections and so on.)

Yes, I dont know about redQuery Builder but know about EasyQuery. EasyQuery as name suggest is so easy to integrate. Its free also. It is available in .NET version , javascript version and PHP version. You just need to do some changes for database in its controller.

Related

Is it possible to edit and save website content to server, making the change viewable by everyone?

I have created a website for a third party, who have no experience in editing HTML. However, the third party wishes to be able to edit the content on the website without having to open the files and edit it this way, they wish to do it somewhat WYSIWYG (For example, hit an "edit" button for the content they wish to edit). Is this possible to achieve? It is not an internal website, it has user tracking (this should obviously only be available to admin users).
Is there a way of making contents of a div editable, then saving the change directly to the server, so the content gets updated publicly?
I am currently researching the topic, and although I have found some indications that the solution may be a PHP script, I have yet to find any definitive solutions or examples of similar functionality.
Yes you will need a backend language or framework to archive this. Where Javascript is used to interact with the page, the actual storage of information requires a database or similar technology.
Unfortunately which backend language or framework to choose really is the million dollar question. It largely depends on exactly what you are trying to accomplish, what your client or user is comfortable with, and how much experience you have programming.
PHP is fast and time tested backend language. Node is the new kid on the block, and it very popular also. Java and dotNet are on the way out. You can dig up a bunch more including Go, Python, Haskel, Etc.
You can use a languge listed above and start scripting away, but this can be time consuming and error prone. Most people use a framework to get started, and program using that framework's tools. The most popular PHP framework is WordPress, but it is designed for blogs and might not fit your use case. I use the framework Craft CMS which is very customizable. But the way you are phrasing the question a framework might be overkill. This is really up to you to decide after doing research into the available options and comparing them to what you wish to accomplish.
For the WYSIWYG, you might want to look into the following tools for the client to edit content:
https://imperavi.com/redactor/
https://ckeditor.com/
Hopefully this provides some direction, happy coding!

Javascript SPA Multilanguage and LocalStorage

I am developing a JavaScript SPA using DurandalJs and BreezeJs as main technologies in the client side. I would like to know what libraries I can use to do my application support different languages. I have been doing a little of searching and I have found that JED.js (http://slexaxton.github.com/Jed/) can be a good option for this task.
However I am not very sure, can somebody recommend nay library for this task, or give me some opinion about JED.js.
Also I would like to ask about some library for store information in the browser. Can somebody recommend me one? I have thought in amplify.js, it gives good functionality for doing request to the server and caching this information. But in my application I am using breezejs, so this part is not needed. I only need to store some data like the username and some little information.
Very thanks.
MY SOLUTION:
I have implemented my system using amplify.storage for storing information in the browser and i18next (http://i18next.com/) to make my application avaliable in different human-languages.
I am not much help on the first part of your question. I'm quite interested in the response myself!
I do have some thoughts on local storage. AmplifyJS is really three independent libraries. One of them, amplify.store, is dedicated to the local storage issue and is worth looking at. You might look at lawnchair. Finally, look at the Breeze DocCode sample for examples of storing full and partial entity caches in browser local storage; it's primitive but gives you hints.

English and Chinese Version of a Website

Is there a way (possibly using JavaScript) to change the language of a website from English to Chinese (for an example) using a link?
In case you're searching for an easy way to offer your site in various languages, I believe your best bet will be Google's Website Translator.
Take into account, however, that the translations will be just about as reliable as the regular Google Translate results, which -- as you might know -- still leave a bit to wish for. For more rigorous stuff, you will need to create a more technical solution.
Edit: Noticed your comment reply above. It really depends a lot on how your site is constructed. If it's dynamically generated with content stored in a database, you could have one column for each one of your translations; the code generating your page must then be informed about which version to use, which could be done in several ways: I'd personally advise to structure your solution with this 'argument' in the URL, something along the lines of your-site.com/lang/page-slug-here, but you could also set a session variable ('just clicking a link'), or go by the user's browser language settings as default, and so forth.

Query by form (ala Microsoft Access) but using jQuery

I have a database based website application, and I would like to allow users to be able to create their own custom queries, using a tool like microsoft access's query by form.
However,I want to provide this functionality over the web. I would like to provide my users with a similar frontend over the web - I'm guessing using jQuery etc. However, before I get started, I wanted to check if something (preferably open source) already exists - if none exists, then can someone (preferably who has done something similar), provide me with the guideline steps on how to do something like this?
I must point out that I am more concerned on how to reproduce the GUI look, feel and behaviour rather than getting data to/from the server (which I can easily do on my own).
So the question again is: If I have to build a similar looking screen with similar GUI functionality, what are the outline steps I need to carry out?, and will I require any other technologies other than those mentioned here?
Ideally ofcourse, I will not have to "roll my own" and instead something similar exists (if even in non-working state), that I can use/extend.
PS: I am running a LAMP stack, so a Microsoft solution is not an option.
I have been looking for something very similar as a front end to a MYSQL database - I have only really found the following open source example : http://ksistem.com/jquery/sqlbuilderdemo.htm

Best Open Source Spider for Site Coverage

I am interested in crawling a lot of websites. The most important consideration is that the spider is able to reach as much as the site as possible. One key feature that is lacking from most spiders is the ability to execute JavaScript. This is required in order to crawl ajax powered sites. I really like Open Source and I will need to modify the code for my project.
Currently I think that Solr, which is apart of Lucine is a very good solution.
http://lucene.apache.org/solr/features.html
Has anyone used Solr or Lucine? My biggest problem with Solr can not execute javascript, however its has a rich feature set and is scalability both of which makes Solr attractive.
Solr is not a crawler, but a search engine (searches over an index to return results).
That said, I really like heritrix for its flexibility. Most crawlers won't execute Javascript (but some, as Heritrix, will try to extract links from it) as that doesn't make much sense, even today. The thing is that Heritrix will allow you to plug in your own classes to do whatever you wish with the crawled data.
Try HTMLUnit. http://htmlunit.sourceforge.net/
Solr is a search engine built on the top of Lucene. It is not doing anything with crawling. Take a look at Apache Nutch. Cracking javascript might be a problem, as they are often inteded to lead the crawler to the dead-end.
watir might be useful for you.
With pages that create the dom based on javascript templating you'll really want full javascript execution in your spider. Take a look at https://github.com/mikeal/spider for Node JS.

Categories