JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 21st, 2008, 01:15 PM
Chasebadkids Chasebadkids is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Posts: 72 Chasebadkids User rank is Corporal (100 - 500 Reputation Level)Chasebadkids User rank is Corporal (100 - 500 Reputation Level)Chasebadkids User rank is Corporal (100 - 500 Reputation Level)Chasebadkids User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 13 h 17 m 45 sec
Reputation Power: 5
Send a message via AIM to Chasebadkids
Combination of mysql / php / javascript.

SOLVED*
Comments on this post
vbrtrmn agrees: Good question, keep asking good questions and give back to the forum

Last edited by Chasebadkids : September 23rd, 2008 at 12:56 AM.

Reply With Quote
  #2  
Old September 22nd, 2008, 02:38 AM
Winters Winters is offline
Bad Coder
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jul 2003
Posts: 2,562 Winters User rank is General 4th Grade (Above 100000 Reputation Level)Winters User rank is General 4th Grade (Above 100000 Reputation Level)Winters User rank is General 4th Grade (Above 100000 Reputation Level)Winters User rank is General 4th Grade (Above 100000 Reputation Level)Winters User rank is General 4th Grade (Above 100000 Reputation Level)Winters User rank is General 4th Grade (Above 100000 Reputation Level)Winters User rank is General 4th Grade (Above 100000 Reputation Level)Winters User rank is General 4th Grade (Above 100000 Reputation Level)Winters User rank is General 4th Grade (Above 100000 Reputation Level)Winters User rank is General 4th Grade (Above 100000 Reputation Level)Winters User rank is General 4th Grade (Above 100000 Reputation Level)Winters User rank is General 4th Grade (Above 100000 Reputation Level)Winters User rank is General 4th Grade (Above 100000 Reputation Level)Winters User rank is General 4th Grade (Above 100000 Reputation Level)Winters User rank is General 4th Grade (Above 100000 Reputation Level)Winters User rank is General 4th Grade (Above 100000 Reputation Level) 
Time spent in forums: 3 Weeks 1 Day 4 h 39 m 50 sec
Reputation Power: 1236
Bandwidth friendly would be to not use AJAX. You could load every college into a javascript array but that is silly.
__________________
[PHP] | [Perl] | [Python] | [Java] | [Javascript] | [XML] | [ANSI C] | [C++] | [MySQL] | [FirebirdSQL] | [PostgreSQL] | [HTML] | [XHTML] | [CSS]

Reply With Quote
  #3  
Old September 22nd, 2008, 10:06 AM
Chasebadkids Chasebadkids is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Posts: 72 Chasebadkids User rank is Corporal (100 - 500 Reputation Level)Chasebadkids User rank is Corporal (100 - 500 Reputation Level)Chasebadkids User rank is Corporal (100 - 500 Reputation Level)Chasebadkids User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 13 h 17 m 45 sec
Reputation Power: 5
Send a message via AIM to Chasebadkids
really? ive heard using this jax would make the site run a lot faster, and just loading my test page with the ajax it loads super fast compared to the other page, plus its a lot more user friendly.

Reply With Quote
  #4  
Old September 22nd, 2008, 10:32 AM
vbrtrmn's Avatar
vbrtrmn vbrtrmn is offline
4:04 Time Not Found
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jan 2004
Location: Northern Virginia
Posts: 2,273 vbrtrmn User rank is Major (30000 - 40000 Reputation Level)vbrtrmn User rank is Major (30000 - 40000 Reputation Level)vbrtrmn User rank is Major (30000 - 40000 Reputation Level)vbrtrmn User rank is Major (30000 - 40000 Reputation Level)vbrtrmn User rank is Major (30000 - 40000 Reputation Level)vbrtrmn User rank is Major (30000 - 40000 Reputation Level)vbrtrmn User rank is Major (30000 - 40000 Reputation Level)vbrtrmn User rank is Major (30000 - 40000 Reputation Level)vbrtrmn User rank is Major (30000 - 40000 Reputation Level)vbrtrmn User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 22 h 10 m
Reputation Power: 333
Send a message via ICQ to vbrtrmn Send a message via AIM to vbrtrmn Send a message via MSN to vbrtrmn Send a message via Yahoo to vbrtrmn
Using AJAX should be fine, technically it would be more bandwidth friendly, since you'd only be loading a query from the DB, rather than reloading the page or loading every entry into an array to start.

Anyway, here's what I recommend..
  1. Start with a text input.
  2. Add the onkeyup event to the input.
  3. After the user has entered 2-3 characters, do an AJAX query.
  4. A PHP script gets the query and does a SELECT to the DB.
  5. PHP dumps the output from the SELECT to a JSON formatted string.
  6. Change the header of the PHP return to text/plain or text/javascript.
  7. Get the response back from PHP and parse it with javascript.
Read up on the json_encode() function.
__________________
I am so smart, I am so smart, S.M.R.T ... I mean S.M.A.R.T.

Stop Using Pop-Ups

Reply With Quote
  #5  
Old September 23rd, 2008, 03:20 PM
vbrtrmn's Avatar
vbrtrmn vbrtrmn is offline
4:04 Time Not Found
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jan 2004
Location: Northern Virginia
Posts: 2,273 vbrtrmn User rank is Major (30000 - 40000 Reputation Level)vbrtrmn User rank is Major (30000 - 40000 Reputation Level)vbrtrmn User rank is Major (30000 - 40000 Reputation Level)vbrtrmn User rank is Major (30000 - 40000 Reputation Level)vbrtrmn User rank is Major (30000 - 40000 Reputation Level)vbrtrmn User rank is Major (30000 - 40000 Reputation Level)vbrtrmn User rank is Major (30000 - 40000 Reputation Level)vbrtrmn User rank is Major (30000 - 40000 Reputation Level)vbrtrmn User rank is Major (30000 - 40000 Reputation Level)vbrtrmn User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 22 h 10 m
Reputation Power: 333
Send a message via ICQ to vbrtrmn Send a message via AIM to vbrtrmn Send a message via MSN to vbrtrmn Send a message via Yahoo to vbrtrmn
It is bad etiquette to delete the original post and not post a follow up. Your solution may have helped someone else.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignJavaScript Development > Combination of mysql / php / javascript.


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT