multiple dynamic selects using AJAX

The dynamic selects are populated via radio button selection. The first choice works fine but the second throws 'An illegal choice has been detected...' error. It does not matter which, of the two, is selected first. The form will, eventually, have five dynamic selections. I've modified and condensed the relevant code, which I've included below (sorry to post 100 lines of code).

Can anyone tell me why I'm getting the error and how to cure it? Thanks in advance.


<?php
function _wauco_construction_get_components_dropdown($key = '') {
$options = array(
t('Face') => array( 'one' => t('Facestock1'), 'two' => t('Facestock2'), 'three' => t('Facestock3'), 'four' => t('Facestock4')),
t('Liner') => array( 'one' => t('Liner1'), 'two' => t('Liner2'), 'three' => t('Liner3'), 'four' => t('Liner4')),
t('Adhesive') => array( 'one' => t('Adhesive1'), 'two' => t('Adhesive2'), 'three' => t('Adhesive3'), 'four' => t('Adhesive4')),
);
if (isset($options[$key])) {
return $options[$key];
}
else {
return array();
}
}

function wauco_construction_dropdown_callback_one($form, $form_state) {
return $form['component_one']['select'];
$form_state['rebuild'] = TRUE;
}

function wauco_construction_dropdown_callback_two($form, $form_state) {
return $form['component_two']['select'];
$form_state['rebuild'] = TRUE;
}

Views + flags + operation like "done" "not done" "started"

Hi, lately we created a nice views-table (combination of nodes + users + flags).
Result = good looking table with stuff that we need to follow up (users can flag content => need some follow up)

Now, we would like to have an option field in the first column (of the views-table) "done/not done /started"... so we can easily follow up the flagged content.

Does something like that exits... or can you point us in a specific direction (So we are sure we dont put to much time in writing a module)

Thank you !

I enabled Render Example. It trashed my site.

I had site that had the overhead admin toolbar showing and a number of pages on the navigation menu.

I enabled Render Example (only) from the examples module.

Now I can only see (what I take to be) the Render Example links in the navigation menu. The admin toolbar thingy has disappeared. Using the URLs of my formerly listed pages from history gave me the admin toolbar back and I disabled Render Example. But my front page is still in a heightened post-sexual state.

I was shocked. Should I have been?

add a tab to search menu

how add a tab to search menu ?
i need another one with node search and user search.

i tried search_menu_alter without results

Custom Sort Criteria in Views

I have a content type with latitude an longitude field in it.
I would like to make a view with a custom sort criteria like:((lat-x)^2+(lon-y)^2)
Where x and y are numeric parameters passed to the view, and lat,lon are numbers. Is it possible?

Comment approval

Hi. I am still learning my around Drupal, but enjoying the process. I have blogs activated, along with allowing members to leave comments to blog posts. However, I would really like the blog owner to be able to personally approve comments made to their blog. I can find the settings that allow me as admin to approve blog comments, and the setting to let registered users post comments and skip the approval process, but how can set this up so that the blog owner/node author can approve comments made to 'their' blog?

Thanks.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x