This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Example of how to pass arrays back and forth in Ajax

I just need a simple example of how to pass an array of strings to and from a php page using AJAX. Anyone wanna chime in?

CCK Dates and Radio Button Options

When will the CCK include a date type field for Drupal 4.7? I really need to be able to have a date field as a type when I create my new content types.

Is it also possible to configure the date (or any field) to have a default value? Sort of pre-populated?

If I use a radio button for a text field, where do I specify the number of options, and the values for those options?

I am fairly new to CCK, having only used Flexinode in the past, so I apoligize if these are easy and silly questions.

URL Links from Views output

Can anyone help me with the views module? I have a list of fields at http://www.saturatecolorado.com/associations and I would like the website field to be hyperlinked to that field.

I am using CCK with the webfields module added.

I also have the imput format for URLfiler installed, but it does not look like the input types affect the fields listing.

Any help is welcome.

Need help with contributing staticHTML module...before I give up

I have been trying to publish the staticHTML module to Drupal.org for over a week. So far nothing has happened and all problems remain. I have tried everything avalable in the handbooks without result. Here's a list

Module error, can't login on my drupal website.

Hello,

I was trying to develop a new block with a dropdown menu based on categories.

I've created a new block (php code type) with this content:

<?php
//Default Value for Select
$t_description[] = 'List by State';
//Get Taxonomy Terms in Vocab State
$result = db_query("SELECT term_data.description, term_data.tid FROM term_data WHERE term_data.vid=1 ORDER BY description");
//Populate array with descriptions and links. The key of the array will be our URL.
while ($term = db_fetch_object($result)) {
  $t_description['http://www.americanpublicradio.com/gov/views/'.$term->description] = $term->description;
}
//Build the select list using Drupal's 'form_select' function.
$category_select = form_select('', 'category', '', $t_description, $description = NULL, 'on Change="top.location.href=document.getElementById(\'edit-category\').options[document.getElementById(\'edit-category\').selectedIndex].value"', $multiple = FALSE, $required = FALSE);
//Give our subsequent form a name we can grab with the Javascript
$form_attributes[description] = 'state_jump';
//Build our form with Drupal's 'form' function.
return form($category_select, $method = 'get', '', $form_attributes);
?>

Now when I try to log into my page I only can see the following error message:

Fatal error: Call to undefined function: form_select() in /home/meloinve/public_html/includes/common.inc(1150) : eval()'d code on line 11

call a node with 2 "url"

Hi. I have this problem: I have two node type that are the same but not for the category. One is under "tips" category and the another one is under "faq" category. Is there a way to create only one modules that can manage both (tips and category node) ? A function to call where I can choose which is the correct category to show or a function that "create" the correct form, it is for me the best solutions.

Tnx in advance.

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions