Ajax in Ajax callback subquery

Hello! a form which is processed by ajax, need this form to add a new ajax subquery, process, and return the results. There are opinions on this issue?

<?php
// $Id$

/**
*Implementation of hook_menu().
*/
function test_module_menu() {
$items = array();
$items['test_module_page'] = array(
'title' => t('test_module_page'),
'page callback' => 'test_module_module_page',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);

return $items;
}

/**
* Page callback for test_module_module_page
*/
function test_module_module_page(){
$fc_form = drupal_get_form('fc_form');
return render($fc_form);
}

/**
* Form for page
*/
function fc_form($form, $form_state) {

$form['#prefix'] = '

';
$form['#suffix'] = '

';

$form['submit'] = array(
'#type' => 'submit',
'#value' => 'submit ajax',
'#ajax' => array(
'callback' => 'preview_form_ajax',
'wrapper' => 'fc-form-ajax-wrapper',
),
);

return $form;
}

function subquery_ajax_example_form_callback($form, $form_state) {
$form['subquery']['ajax_form']['result'] = array(
'#markup' => t('This is some form delivered via subquery AJAX'),
);
return $form;

}

/**
* Ajax callback for FC FORM
*/

D7 Views table CSS

Hi all,

I want my table rows to have a border-bottom and margin (ie gap between each row).

In Views / table settings I created the class 'newv'

My CSS, which shows up ok in firebug =

.newv {
border-bottom: 4px solid red !important;
margin-bottom: 20px !important;
padding: 20px;
}

The border works fine but the margin seems to be ignored.

Add content: cannot select content type

Hi to everybody;
I have a little problem,
On my drupal website I created content types called:
Association
News
Article
Meeting

Login form theming

I want to make customize login form in Drupal 7 theme with custom labels for username and password and also custom submit button but i don't know how to customize it.
Please explain me in detail how can i do it?

HTML img tag directory problem

Hi,

I'm working on the 'about us' page on my website, and the page is not able to call up some .jpg files.
I'm using < i m g s r c = "example.jpg" / > on the page to display the pictures.
Where would I need to save the pictures so Drupal is able to call them up locally?

Any help is appreciated.

Generate pages with the same format

Hi !

As a beginner, I would like to know if what I say is right.
I have several videos that I would put on my Drupal website.
Each video would be on a page, always with the same information :
- video
- director
- musics used
- ...

How can I use Drupal to generate these pages ? Here is what I think, tell me if it's wrong :
- I create a new type of content, like "video"
- I inform the various fields, as "video url", "director", "musics used", etc.
And after that ? Do I have to use Views ?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x