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
1
vote
1 answer

Drupal 6 AHAH / AJAX Form Submission

I'm building a custom module in Drupal 6 which display a block with a form and some other elements like text and images. When it's submitted, using AHAH, some logic takes place in PHP and then the result is passed to JQuery which will update the…
Ward
  • 3,318
  • 3
  • 30
  • 50
1
vote
1 answer

Why won't Drupal AHAH forms work within a block?

I'm trying to get an AJAX-submitted (AHAH) form working to display in a block on the sidebar. For testing purposes, I'm using an example module called "Poof" from the Pro Drupal Development book:…
fredrover
  • 2,997
  • 2
  • 17
  • 24
0
votes
2 answers

How to stop node form validation after AHAH

I have using Drupal 6 and AHAH to customize my node form. For ahah I use this code: function mymodule_subtopic_type() { $output = ''; $form_state = array('storage' => null, 'submitted' => false, 'rebuild' => true); $form_build_id =…
user396716
0
votes
1 answer

disabling page reload on enter key-pressed on form textfield in drupal 6.x

I have a form containing one textfield only, and the expected behavior is that when user presses enter while in the text box the value of the text box should get submitted, but without re-page (refresh) load. I have tried various ways of setting…
vikramaditya234
  • 1,278
  • 2
  • 18
  • 37
0
votes
4 answers

'Http error 0' when loading dynamic form elements in drupal 6, when an upload field has a file selected

I have a custom form implemented in a custom module in drupal 6. The form contains an upload field, a textfield and a select dropdown. When the dropdown fires a change event, two textfields are loaded dynamically below the dropdown through drupal…
Capstone
  • 2,254
  • 2
  • 20
  • 39
0
votes
1 answer

drupal 6: using ahah for forms with markup types

function MyModule_menu() { $items['blah'] = array( 'title' = 'blah', 'page callback' => 'blah_page', 'type' => MENU_NORMAL_ITEM ); $items['clickPath'] = array( 'title' => 'A title', 'page callback' => 'clickPath_page', …
user785179
  • 919
  • 5
  • 14
  • 24
0
votes
1 answer

Concurrently filling in drupal forms on different computers mixes up form_state data of the different computers

I'm having a very difficult problem atm, one that I can not explain... at all. I really hope someone here may be able to shed some light on this predicament. On my website I have a self-developed module that displays some kind of registration form.…
Tom P.
  • 390
  • 3
  • 12
0
votes
1 answer

Jquery passing variables to objects problem

Here is my snippet of code: $('.content .form-submit').each(function(index) { var id = $(this).attr('id'); var selector = "#" + id; } The above variables come out just fine. They return ajax-comments-submit-398…
nigma3d
  • 73
  • 1
  • 4
0
votes
1 answer

Drupal form ahah element, problem with empty $_POST

I'm making a module for ubercart. It's nearly finished, but now I'm working on the admin page. I want the admin to be able to add options, like the poll module adds choices. The problem I have is that the admin form is generated through…
Toxid
  • 615
  • 10
  • 18
0
votes
1 answer

How do I update more than one container/element using AHAH in Drupal?

I'm creating a summary view of products and prices, along with the ability to update the prices for each product (each product has 5 prices for various user roles). I'm using AHAH to submit the specific product form, and have the form working great,…
HorusKol
  • 8,375
  • 10
  • 51
  • 92
0
votes
0 answers

Why is my AHAH textfield losing focus on keyup?

Code that is part of the form $form['search'] = array( '#type' => 'textfield', '#title' => 'Search', '#description' => 'Search by', '#ahah' => array( 'event' => 'keyup', 'path' =>…
AllisonC
  • 2,973
  • 4
  • 29
  • 46
0
votes
1 answer

Drupal AHAH forms empty data

I have a drupal website with a multi cck field (or how is it called? when you can "add another" field with ahah). The problem is, when I click add another, everything works fine, but if I wait 5 minutes or so, and I click again, all the ahah fields…
Nealv
  • 6,856
  • 8
  • 58
  • 89
0
votes
1 answer

Drupal module function theming with ahah

My main question is: Does the theme_hook() function gets called whenever the form gets rebuilt via ahah (ahah_helper) ? I'm trying to show a select box, with some filtering options, when the user changes it, the table below it changes too. I have…
hfingler
  • 1,931
  • 4
  • 29
  • 36
0
votes
1 answer

Drupal form autocompleted with data from a database by ahah, how to do it?

I'm trying to do it for hours now, and I just can't do it. What I want is: A radio or select drop-down with varying options (from the database). This part is ok, it's just a query and building the options. Then there are 3 text fields, each option…
hfingler
  • 1,931
  • 4
  • 29
  • 36
0
votes
2 answers

handling the display of choices in dependent select elements, in html

Firstly, I am sorry, i just can't seem to phrase my question well. Setup: I am using Drupal to build this location-based application. i have a form which allows the user to select his/her location. the form has 3 'dependent' select elements e.g.…
ultrajohn
  • 2,527
  • 4
  • 31
  • 56