JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

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 November 5th, 2012, 09:20 AM
fabzster fabzster is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2007
Posts: 46 fabzster User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 h 14 m 24 sec
Reputation Power: 6
Chained Select Assistance

Hi

I managed to get the tutorial from the below link to work.
http://www.blueicestudios.com/chained-select-boxes-using-php-mysql-ajax/comment-page-11/#comment-34199

I would love to know how to edit this script so as to get the first dropdown to populate an already existing dropdown without the loader image and without the hiding of any dropdowns.

I would assume that only this section needs editing:

Javascript Code:
Original - Javascript Code
  1. $(document).ready(function() {
  2.     $('#wait_1').hide();
  3.     $('#drop_1').change(function() {
  4.         $('#wait_1').show();
  5.         $('#result_1').hide();
  6.         $.get("func.php", {
  7.             func: "drop_1", drop_var: $('#drop_1').val()
  8.         },
  9.         function(response) {
  10.             $('#result_1').fadeOut();
  11.             setTimeout("finishAjax('result_1', '"+escape(response)+"')", 400);
  12.         });
  13.         return false;
  14.     });
  15. });
  16.  
  17. function finishAjax(id, response) {
  18.     $('#wait_1').hide();
  19.     $('#'+id).html(unescape(response));
  20.     $('#'+id).fadeIn();
  21. }

Your assistance is greatly appreciated

Last edited by Winters : November 7th, 2012 at 02:41 AM. Reason: Added some formatting.

Reply With Quote
  #2  
Old November 5th, 2012, 10:01 AM
Winters Winters is offline
Super Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jul 2003
Posts: 3,871 Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 2 Weeks 1 Day 16 h 31 m 11 sec
Reputation Power: 2569
Moving to Javascript.
__________________
[PHP] | [Perl] | [Python] | [Java] != [JavaScript] | [XML] | [ANSI C] | [C++] | [LUA] | [MySQL] | [FirebirdSQL] | [PostgreSQL] | [HTML] | [XHTML] | [CSS]

W3Fools - A W3Schools Intervention.

Reply With Quote
  #3  
Old November 6th, 2012, 01:18 AM
fabzster fabzster is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2007
Posts: 46 fabzster User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 h 14 m 24 sec
Reputation Power: 6
Quote:
Originally Posted by Winters
Moving to Javascript.


Many Thanks, my apologies for posting in the incorrect section,

Reply With Quote
  #4  
Old November 7th, 2012, 02:09 AM
fabzster fabzster is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2007
Posts: 46 fabzster User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 h 14 m 24 sec
Reputation Power: 6
can any1 assist me with this?

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignJavaScript Development > Chained Select Assistance

Developer Shed Advertisers and Affiliates



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

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


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap