Open Source & Stuff  
  |     Main Site     |      Forum     |     Contact     |
Ajax Linked Select boxes :  forum.Salix.gr forum.Salix.gr
Comments, questions, usage, bugs. 
Goto Thread: PreviousNext
Goto: Forum ListMessage ListNew TopicSearchLog In
messagewhen i select all dropdown menus,then doesnt come value in two input boxes
Posted by: khafanus (IP Logged)
Date: September 20, 2008 05:02AM

in example_8.php ver.5 : when i select all(4) dropdown menus ,then doesnt come value in two input boxes and under them!!!! for example i select type1-type13-type13-type13 then dont come data 21.1 , data 21.2 !!!! please help me , tanx of your usefull codes , with the best regards.

messageRe: when i select all dropdown menus,then doesnt come value in two input boxes
Posted by: panos (IP Logged)
Date: September 22, 2008 03:24AM

Goodmorning,

hope you had a nice weekend.

I would like to ask if you get any javascript errors in your browser?

if yes, please post them here.

wish you a nice week

Panos

messageRe: when i select all dropdown menus,then doesnt come value in two input boxes
Posted by: psmith288 (IP Logged)
Date: June 07, 2009 02:26AM

Hello!

I have the same problem as the above poster. I am currently using your older Linked Select Boxes script with no issues, but I saw that you had this new script that would populate textboxes and wanted to use this new functionality. So, here are the steps I have taken:
I downloaded your new script.
I installed your sample SQL code into my copy of MySQL.
I supplied the proper MySQL credentials for the scripts.

And then I tested it....
The Example8.php file loads, populates the select boxes and the debug section at the bottom of the page without issue, but when you select items in all four select boxes the page stays on "wait" for both textboxes and the div below. The example on your website works correctly in my browser (I do see your example showing "wait" momentarily before the correct data loads). I have no javascript errors on your site or my local server. I have tried to dissect your code, and see the section where the javascript causes the boxes to display "wait", but I am at a loss as to why the same code works correctly on your site, but not on my server.

I am running MAMP, which has PHP Version 5.2.6 and MySQL Version 5.0.41.

Thank you for any help you can give,

Patrick Smith

messageRe: when i select all dropdown menus,then doesnt come value in two input boxes
Posted by: panos (IP Logged)
Date: August 17, 2009 06:39AM

Hello,
first of all sorry for being "quite" for so long but family and job kept me away.
I downloaded the script my self today and tested.
Guys I am so embarrassed!!
I am so sorry for puting all in trouble!
In example_8.php says:

$sc_ajax_updater->set_updater_items('jerry','rec_id',1,array('fld1' => 'tag1', 'fld2' => 'tag2', 'fld3' => 'tag3'));

'jerry' is the name of the friend who droped the idea for this feature but is also the table name holding the data for the example!!
So please add the table and it works.

CREATE TABLE IF NOT EXISTS `jerry` (
  `rec_id` int(10) unsigned NOT NULL auto_increment,
  `fld1` varchar(45) NOT NULL default '',
  `fld2` varchar(45) NOT NULL default '',
  `fld3` varchar(45) NOT NULL default '',
  `fld4` varchar(45) NOT NULL default '',
  `fld5` varchar(45) NOT NULL default '',
  PRIMARY KEY  (`rec_id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=39 ;

INSERT INTO `jerry` (`rec_id`, `fld1`, `fld2`, `fld3`, `fld4`, `fld5`) VALUES
(1, 'data 1.1', 'data 1.2', 'data 1.3', 'data 1.4', 'data 1.5'),
(2, 'data 2.1', 'data 2.2', 'data 2.3', 'data 2.4', 'data 2.5'),
(3, 'data 3.1', 'data 3.2', 'data 3.3', 'data 3.4', 'data 3.5'),
(4, 'data 4.1', 'data 4.2', 'data 4.3', 'data 4.4', 'data 4.5'),
(5, 'data 5.1', 'data 5.2', 'data 5.3', 'data 5.4', 'data 5.5'),
(6, 'data 6.1', 'data 6.2', 'data 6.3', 'data 6.4', 'data 6.5'),
(7, 'data 7.1', 'data 7.2', 'data 7.3', 'data 7.4', 'data 7.5'),
(8, 'data 8.1', 'data 8.2', 'data 8.3', 'data 8.4', 'data 8.5'),
(9, 'data 9.1', 'data 9.2', 'data 9.3', 'data 9.4', 'data 9.5'),
(10, 'data 12.1', 'data 12.2', 'data 12.3', 'data 12.4', 'data 12.5'),
(11, 'data 13.1', 'data 13.2', 'data 13.3', 'data 13.4', 'data 13.5'),
(12, 'data 14.1', 'data 14.2', 'data 14.3', 'data 14.4', 'data 14.5'),
(13, 'data 21.1', 'data 21.2', 'data 21.3', 'data 21.4', 'data 21.5'),
(14, 'data 22.1', 'data 22.2', 'data 22.3', 'data 22.4', 'data 22.5'),
(15, 'data 23.1', 'data 23.2', 'data 23.3', 'data 23.4', 'data 23.5'),
(16, 'data 31.1', 'data 31.2', 'data 31.3', 'data 31.4', 'data 31.5'),
(17, 'data 32.1', 'data 32.2', 'data 32.3', 'data 32.4', 'data 32.5'),
(18, 'data 33.1', 'data 33.2', 'data 33.3', 'data 33.4', 'data 33.5'),
(19, 'data 34.1', 'data 34.2', 'data 34.3', 'data 34.4', 'data 34.5'),
(20, 'data 35.1', 'data 35.2', 'data 35.3', 'data 35.4', 'data 35.5'),
(21, 'data 3.1', 'data 3.2', 'data 3.3', 'data 3.4', 'data 3.5'),
(22, 'data 4.1', 'data 4.2', 'data 4.3', 'data 4.4', 'data 4.5'),
(23, 'data 5.1', 'data 5.2', 'data 5.3', 'data 5.4', 'data 5.5'),
(24, 'data 6.1', 'data 6.2', 'data 6.3', 'data 6.4', 'data 6.5'),
(25, 'data 7.1', 'data 7.2', 'data 7.3', 'data 7.4', 'data 7.5'),
(26, 'data 8.1', 'data 8.2', 'data 8.3', 'data 8.4', 'data 8.5'),
(27, 'data 9.1', 'data 9.2', 'data 9.3', 'data 9.4', 'data 9.5'),
(28, 'data 12.1', 'data 12.2', 'data 12.3', 'data 12.4', 'data 12.5'),
(29, 'data 13.1', 'data 13.2', 'data 13.3', 'data 13.4', 'data 13.5'),
(30, 'data 14.1', 'data 14.2', 'data 14.3', 'data 14.4', 'data 14.5'),
(31, 'data 21.1', 'data 21.2', 'data 21.3', 'data 21.4', 'data 21.5'),
(32, 'data 22.1', 'data 22.2', 'data 22.3', 'data 22.4', 'data 22.5'),
(33, 'data 23.1', 'data 23.2', 'data 23.3', 'data 23.4', 'data 23.5'),
(34, 'data 31.1', 'data 31.2', 'data 31.3', 'data 31.4', 'data 31.5'),
(35, 'data 32.1', 'data 32.2', 'data 32.3', 'data 32.4', 'data 32.5'),
(36, 'data 33.1', 'data 33.2', 'data 33.3', 'data 33.4', 'data 33.5'),
(37, 'data 34.1', 'data 34.2', 'data 34.3', 'data 34.4', 'data 34.5'),
(38, 'data 35.1', 'data 35.2', 'data 35.3', 'data 35.4', 'data 35.5');

messageRe: when i select all dropdown menus,then doesnt come value in two input boxes
Posted by: psmith288 (IP Logged)
Date: August 17, 2009 04:11PM

Hello,
I added the 'jerry' table, which after you explained why we needed to add it, it makes a lot of sense. After successfully adding the 'jerry' table to the existing database, the box still displays 'wait' and does nothing else. Like I stated before, the original select box codes still works correctly, it is only my textbox that is not updating. My local copy does not update the textbox like your example_8.php does online. Have you by chance made modifications to the prototype.js file or the sc_class.php file that are not reflected in your downloadable versions? When I compare the source code of your example_8.php to my local version, they are identical. That is why I think it must be one of the javascript or php files that is different.

Thanks,

Patrick Smith



Sorry, only registered users may post in this forum.

All Rights Reserved 2006 Salix.gr  |  Design by Ades Design |  Hosting by e-emporio |  forum.Salix.gr powered by Phorum