Ajax :: Dropdown Menu Pulling Info From MYSQL Database?
Jun 20, 2009
I need to create three dropdown boxes (box 1:colour, box 2: price, box 3:brand) and when the user presses "GO" they are returned with the correct information, pulled from corresponding fields in my MYSQL database.
For example, colour: silver, price £100-£200, brand:samsung...should return 5 items on the page. I do not need the dropdown boxes to populate depending on ther previous selection - they are static, so to speak. If possible, I would like the information to be retuned to my page without the URL changing, which leads me to think I will need to be ausing ajax....?
I am having no luck with my post form to mysql. It is only posting the first letter of the word/phrase for the text input fields to the mysql database. It is a photo and text post form. The photo and only first letter of text are posting to database. I am using Jqtouch, jquery, and phonegap.
This form retrieves results from a mysql database. It works fine but when I click submit it shows the result only for a second. When I hold down submit the result stays there. How do I get the result to stay on the screen after I hit submit? Even better how do I get it to spit out results without having to hit a submit button or press enter?
could someone please point me in the right direction for creating an AJAX page that displays "live" data from a mysql database? I need the page to update its self every time data changes in a mysql table.
I am looking for an Ajax combobox (drop down, not a text box) auto complete script. I searched for it on Google and only result which seems similar to what I am looking for, is dhtmlxCombo. And that one is too complicated for me. What I basicly need is:
When the client types on the drop down, the records appear from MySQL database and when the client chooses one and submits the form, I want the ID (not the text written) to be posted.
I have a form.On the form I have a drop down box that allows the user to select a data set to work with (A or B). The table loads just fine and all is right with the world. No problems there.What I need is for the user to be able to edit the data set and have those changes written directly back to the mySQL database. They also need the option of deleting a record entirely.I know how to do all the database queries, updates, etc. I just don't know how to write the ajax forms to accomplish this.
This way we can both input our transactions as we spend money and know at all times how much money is in the account. What do I need to study to be able to program this?
I am using Roshan's Ajax dropdown code for my two ajax dropdown menus. All is working fine, but when I want to use $_POST in the submitted form with FireFox, its not working...??? Its working fine in IE.
This code works to insert a MySQL record to a Database using AJAX. It works fine on IE, but it's not working on FF or Chrome. When I test it on FF/Chrome, i just get the text "Just a second..." and it doesn't advance from there.
I was wondering if it's possible to write a script that would check a MySQL database table every 5 seconds for the word "closed." If it finds the word in the table, then it would redirect somehow to another page. how to do it without using a meta refresh?
I have a js file located on domain A, and on domain B i have included the js file, i want to change some information within my js file depending on the url(pulled from a database). I already have pulled the url via some coding and I am wondering if I use Ajax on domain B will this actually pull the information or will it stop it because of cross domain security? If it will block it, how can I pull this off?
I'm trying to populate a triple dropdown menu based on Roshans code The first dropdown populates the second one fine but when I clidk on the second it populates itself instead of the one below! I thought at first it was a simple problem with the element ID its not and I can't figure it out.
Below i have attached my code. This code is working.....but i want some modification in that code such that when i select 'vegetable' or 'fruits', it should give list of that selected one in second list, BUT THAT list should be stored in mysql database.
In the below program , i have hard-coded that second list, but i want second list to be dynamic from database.
if I use the page without ajax it works, if I use the script jquery it works but doesn't insert the dates in the field, it send only white field. can't pass the variable POST beetween the ajax script and the php script.
Am looking to find the easiest way to populate an order form that customers can email through to us.
I have created a database with 2 fields, id and name.
I would like to be able to have a form on my page with 3 fields, id name and qty.
I want to link the id and name fields on my form to my database so that when a customer starts to type a product id or description it will show a list of available matches. underneath which once clicked will populate the mssing field.
So for example is i have 2 products id 998 green apples and 999 red apples.
Typing in 999 in the id field of the form would populate the name field with red apples and typing red apples in the name field would populate the id field with 99.
if someone didn't know which apples they wanted they could type apples in the name field and underneath it would show both red and green which when clicked will populate both fields.