Skip to main content

Posts

Showing posts with the label drupal-7

Javascript function not getting called in Drupal 7 which used to run proper in Drupal 6

I am in the process of migrating my Drupal 6 site to Drupal 7. As a result i am facing some issues with the code. The calling of javascript laced with jquery etc is different in Drupal 7 is what i have read. This is the image of the page i had in Drupal 6. On change of the dropdown box, the table above it gets populated with projects belonging to that status. This works fine in Drupal 6. But in Drupal 7 i see this javascript error. This is the form element for the Dropdown in my php file. <? php $form['status_list'] = array( '#type' => 'select', '#title' => t('Freeway Project Statuses'), '#options' => array( 0 => t('-Select Status-'), 1 => t('Draft'), 2 => t('NotSpecified'), 3 => t('Quote'), 4 => t('Forecasted'), 5 => t('InEvaluation'), 6 => t('Cancelled'), 7 => t('Booked'), 8 => t('InProduction'), 9 =&g