Ajax form - how to update progress bar?

Hi,

I have been trying for hours, but i cant figure out how to update the message and percentage for the status bar in an ajaxified form.

Anyone can point me to a working example that uses the #ajax['progress']['url'] or #ajax['progress']['interval'] properties?

I declare the ajaxified button like this in my module:

$form['synchronisation']['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Import cursus data'),
    '#submit' => array(), ,
    '#weight' => 10,
   	'#ajax' => array(
  		'callback' => 'mymodule_admin_settings_submit',
  	         'wrapper'  => 'progress',
  		'progress' => array('type' => 'bar', 'message' => 'TestMessage',),  
   	 ),
  );

This shows a progress bar and the message. But as the callback function runs, i would like to send new messages and update the progress. I also tried adding url to the progress-array and declared a MENU_CALLBACK path to a function that returned a message. But this leads to AJAX-errors.

I cannot find any code example where the progress bar is updated... Just a link with such an example would probably save me!

From the documentation at the API Reference

#ajax['progress']

Blocks do not show up after upgrade

The block module keeps failing while updating it and here is the error message:

Failed: PDOException: SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes: ALTER TABLE {block} CHANGE `weight` `weight` INT NOT NULL DEFAULT 0 COMMENT 'Block weight within region.', ADD INDEX `list` (`theme`, `status`, `region`, `weight`, `module`); Array ( ) in db_change_field() (line 2984 of /var/www/html/includes/database/database.inc).

I am upgrading it exactly as recommended in the upgrading manual.

What am I doing wrong?

Looking for Drupal developers in Istanbul

Merhaba everybody.

We are a German Drupal agency and we are planning to open a branch in Istanbul (March 2012).
For this reason we are looking for 3-4 Drupal developers with different focuses.

The office will most likely be located in Bebek/Arnavutköy.

If you...
- speak English
- love PHP & Drupal
- like to work in an international team
...we would be very happy if you could get in touch with us by sending an email to: support(at)yoozoo.de

Looking forward to hearing from you,
Jochen Heine

how to get some value out of a field

is there a way to get a specific value out of a content by using PHP? for example: getting the first content/picture url of an upload field?

thanks!

adding multiple images to a single page?

hi all - totally new to the drupal world.

my end goal is to allow my team to create a "walk-through" type page, with multiple screenshots on said page. they should be able to add text above (or below) each screenshot explaining what to do.

basically this: http://www.tributemedia.com/education/tutorials/drupal_6_basic_menu_mana...

SA-CONTRIB-2012-008 - Video Filter - Cross Site Scripting

  • Advisory ID: DRUPAL-SA-CONTRIB-2012-008
  • Project: Video Filter (third-party module)
  • Version: 6.x, 7.x
  • Date: 2012-JANUARY-11
  • Security risk: Less critical
  • Exploitable from: Remote
  • Vulnerability: Cross Site Scripting

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x