Questions tagged [ahah]

AHAH is a very simple technique for dynamically updating web pages using JavaScript.

AHAHA (Asynchronous HTML and HTTP) is a very simple technique for dynamically updating web pages using JavaScript. It involves using XMLHTTPRequest to retrieve (X)HTML fragments which are then inserted directly into the web page, whence they can be styled using CSS. (more information on Microformats website -- http://microformats.org/wiki/rest/ahah)

38 questions
4
votes
1 answer

ahah in drupal not working at all

For some reason the ahah functionality stopped working after a theme upgrade. I tried the simplest examples of ahah and it doesn't work. I also downloaded ahah-helper module, and even the example there doesn't work. I copied exactly every code…
Moshe Shaham
  • 15,448
  • 22
  • 74
  • 114
4
votes
1 answer

Drupal AHAH, Dynamic form expansion

Form $form['animal'] = array( '#type' => 'select', '#title' => t('Animal'), '#options' => load_animals(), '#ahah' => array( 'event' => 'change', 'path' => 'path/to/ajax/service', 'method' => 'replace', …
Shoaib Nawaz
  • 2,302
  • 4
  • 29
  • 38
4
votes
1 answer

drupal 6 module programming semantic error

I should write a simple module (Not use WebForms) that make a form for get data. But my the elements of my form didn't show. I use the drupal 6.0 doc but i don't know what is wrong! this is the link of my source code. I get the error msg: warning:…
Good man
  • 396
  • 4
  • 12
3
votes
1 answer

bootstrapping AHAH without full page load

I've written some modal box functionality that loads HTML into the DOM as snippets. This includes AHAH-enabled forms. I've got as far as pulling out the AHAH settings, and can re-initialize: jQuery.extend( Drupal.settings, response.setting ); I can…
Tim Whitlock
  • 1,111
  • 9
  • 17
2
votes
0 answers

AHAH "append" method does not render the form element as expected

I'm trying to add a row of form elements to my form using AHAH. My form is displayed in a table and therefore I need to add my form elements as a row. I use the following code for my "Add More" button: $form['addmore'] = array( '#type' =>…
Mukesh Agarwal
  • 204
  • 1
  • 2
  • 7
2
votes
2 answers

dynamically adding text boxes in drupal form api

I want to have a add more button on clicking which i can add dynamically, textboxes in a drupal form api.. can someone help on this? Thanks in advance
2
votes
0 answers

How can I get autocomplete to display in a table?

I have a simple form with a textbox to search and I want it to work similar to autocomplete. As the user types, I want it to return results to a table. Currently, I have $form['search'] = array( '#type' => 'textfield', '#title' =>…
AllisonC
  • 2,973
  • 4
  • 29
  • 46
2
votes
1 answer

How do I get Drupal to add AHAH behaviour to a form element that is returned via AHAH?

So here's what I'm trying to do: 1. I create and render the following form element: $form['rb_download_' . $doc_id] = array( '#type' => 'submit', '#name' => 'doc_' . $doc_id, '#prefix' => "
", …
dkinzer
  • 32,179
  • 12
  • 66
  • 85
2
votes
2 answers

Any alternate of drupal_json for non-JSON output

In an AJAX call back in drupal it is normally recommended to use drupal_json() to send data to client. This function converts the raw data into JSON along with HTML encoding. I want to send the HTML data without encoding to client. for this I am…
Shoaib Nawaz
  • 2,302
  • 4
  • 29
  • 38
2
votes
3 answers

AJAX vs AHAH Is there a performance advantage?

My concern is performance, is there a reason to to send the client XML instead of valid HTML? Like most things, I am sure it is application dependent. My specific situation is where there is substantial content being inserted into the web page that…
Icode4food
  • 8,504
  • 16
  • 61
  • 93
1
vote
1 answer

Load part of a webpage with AJAX - no JQuery

I know that there is a JQuery way of doing this but that's not what I need right now. I have the following javascript that pulls a page content into a div, however I don't want the whole page, just the content of a DIV from that page: function…
elbatron
  • 675
  • 3
  • 16
  • 30
1
vote
1 answer

Drupal ahah returns (An HTTP error 404 occurred) but path is working on browser and with jquery ajax

i have created a form to arrange some names in orders by drag n drop. IN this form user can add dynamic form element by add more button as we do in cck. my code is working find on localhost and i can add form element dynamic and it is getting…
faaiq
  • 11
  • 1
1
vote
1 answer

How to dynamically populate fields in node form from fields of a referenced node in Drupal 6

For a project, I have a Drupal 6 site with custom contents. The first one is the content of type A, with textfields a1, a2, ... The second one is the content of type B, with various fields b1, b2, ... and a arbitrary number of node references to…
Tom
  • 1,144
  • 1
  • 11
  • 23
1
vote
2 answers

AHAH Javascript callback

Can we specify a Javascript function to be called after the AJAX request from a Drupal AHAH form is completed?
1
vote
1 answer

Javascript Not Executing In Dynamically Loading Content (AHAH)

I'm dynamically loading content into a div when the user clicks a link using this code: function ahah(url, target) { document.getElementById(target).innerHTML = 'Opening form...'; if (window.XMLHttpRequest) { req = new XMLHttpRequest(); }…
Robimp
  • 704
  • 6
  • 13
  • 29
1
2 3