Issue with webform pagebreak field
leon85321 - December 29, 2008 - 23:14
| Project: | Ajax |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | brendoncrawford |
| Status: | active |
Description
Hello,
Whenever I create a pagebreak field with with webform, after click next page, it asks me to download a file which i do not know what it is.
I have attached an image.
The file name 5 is the form ID is what I have found.
Thank you,
Leon
| Attachment | Size |
|---|---|
| bug-report.JPG | 19.07 KB |

#1
leon85321,
Thanks for your feedback. I will have a look this weekend.
#2
leon85321,
I believe this may be fixed now in 6.x-1.x-dev. Please wait up to 12 hours for 6.x-1.x-dev to update. Let me know if this fixes the issue.
Thanks,
Brendon
#3
Hello Brendon,
Thank you for your fix.
The newest dev version did not work for me yet.
I have tried using both firefox 3 and IE7.
In firefox 3, after click Next page, it gave me a page contains this line.
{ "status": true, "updaters": [ ], "debug": [ ], "messages_error": [ ], "messages_status": [ ], "messages_warning": [ ], "redirect": null, "preview": null }
In IE7, it still asks me to download an attachment shown in the attached screenshot and the file contains the same data as in the firefox 3.
Thank you for your support. :)
Leon
#4
Leon,
Can you install the Live HTTP Headers extension for Firefox3 and post the HTTP response headers? This will help me to better resolve this problem.
Thanks,
Brendon
#5
#6
Helo Brendon,
I have tried it and it does work with English values only for some reason.
In my case, I am sending value in UTF-8 Chinese characters.
Here is the header information, but the values are in chinese though.
Hope this helps,
Thank you for your work :)
Leon
#7
Leon,
Thanks for posting that information. I will look into this further.
#8
#9
Leon,
Does this ONLY happen with Webforms?
#10
#11
Hi Brandon,
I will need to make some more test.
I am currently only working to webform so yes it happens only on webform for now.
I have also noticed that it does work if I created a new form after the patch.
But all previous created webforms did not work.
I will need to do some more tests and let you know the result :)
Thank you,
Leon
#12
Leon,
Try clearing the cache and see if it works with newer nodes. Let me know..
Thanks.
#13
Closing this. If the problem still occurs, please re-open.
#14
This problem still exists.... I'm using latest dev with IE8/FF3/Chrome. I enable the UI, check the form's checkbox, and the page still gets that message:
{ "status": true, "updaters": [ ], "debug": [ ], "messages_error": [ ], "messages_status": [ ], "messages_warning": [ ], "redirect": null, "preview": null }
when I try to page through the form.
#15
Confirmed pegleglax's issue on my install, too. Here's my (duplicate) ticket with more info if that helps: http://drupal.org/node/472120
#16
Me too. But on my own multi-page form built using a module and FAPI
ajax-6.x-1.x-dev AND ajax-6.x-1.14
#17
Looking in ajax.module I see this is created by function ajax_out
function ajax_out($data) {$buffer_len = ob_get_length();
if ($buffer_len !== FALSE && $buffer_len > 0) {
ob_clean();
}
header('HTTP/1.1 200 OK', TRUE);
if (!array_key_exists('HTTP_X_REQUESTED_WITH', $_SERVER) &&
$_SERVER['HTTP_X_REQUESTED_WITH'] !== 'XMLHttpRequest') {
drupal_set_header('Content-Type: text/html; Charset=UTF-8');
print "<textarea>";
print drupal_to_js($data);
print "</textarea>\n";
}
else {
drupal_set_header('Content-Type: text/javascript; Charset=UTF-8');
print drupal_to_js($data);
}
exit;
}
What does this mean my form is missing?
#18
Changed module version this refers to.
#19
I can confirm this.. I have a form built via the FAPI that needs to be submitted multiple times... I have an auction site and multiple bids need to be submitted via the same form...
The first time I click, the form goes fine and submits the bid. I run an AJAX call to drupal_get_form after every 5 seconds to refresh the form.
When I submit a second time, the message I get is...
{ "status": true, "updaters": [ ], "debug": [ ], "messages_error": [ ], "messages_status": [ ], "messages_warning": [ ], "redirect": null, "preview": null, "form_id": "kool_auction_bid_table_form", "options": { "enabled": true } }
Could this be because of this issue... http://drupal.org/node/63730 ?