Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Inline embed code doesn't work
i created a poll, and sent this poll to another site with webwidgets module. this poll views(no viewing problem), but when you vote, there is a error.
Method Not Allowed
Error 405
what is this?
how can i correct?
Comments
Comment #1
qwermans CreditAttribution: qwermans commented1.0 and 1.1
Comment #2
BenK CreditAttribution: BenK commentedThe inline embed style doesn't work for me either. Instead of the actual view that should be output, the following text is being output:
window.onload = function() { document.getElementById(widgetContext['widgetid']).innerHTML = "\x3cdiv class=\"view view-node-widget view-id-node_widget view-display-id-web_widgets_1 view-dom-id-1\"\x3e\n \x3cdiv class=\"views-admin-links views-hide\"\x3e\n \x3cul class=\"links\"\x3e\x3cli class=\"0 first\"\x3e\x3ca href=\"http://localhost/admin/build/views/edit/node_widget?destination=node%2F2...\" target=\"_top\"\x3eEdit\x3c/a\x3e\x3c/li\x3e\n\x3cli class=\"1\"\x3e\x3ca href=\"http://localhost/admin/build/views/export/node_widget\" target=\"_top\"\x3eExport\x3c/a\x3e\x3c/li\x3e\n\x3cli class=\"2 last\"\x3e\x3ca href=\"http://localhost/admin/build/views/clone/node_widget\" target=\"_top\"\x3eClone\x3c/a\x3e\x3c/li\x3e\n\x3c/ul\x3e \x3c/div\x3e\n \n \n \n \x3cdiv class=\"view-content\"\x3e\n \x3cdiv class=\"item-list\"\x3e\n \x3cul\x3e\n \x3cli class=\"views-row views-row-1 views-row-odd views-row-first views-row-last\"\x3e \n \x3cdiv class=\"views-field-title\"\x3e\n \x3cspan class=\"field-content\"\x3e\x3ca href=\"http://localhost/node/2\" target=\"_top\"\x3e\x3ch2\x3eStory #1\x3c/h2\x3e\x3c/a\x3e\x3c/span\x3e\n \x3c/div\x3e\n\x3c/li\x3e\n \x3c/ul\x3e\n\x3c/div\x3e \x3c/div\x3e\n \n \n \n \n \n \n\x3c/div\x3e "; };
Comment #3
BenK CreditAttribution: BenK commentedComment #4
Will White CreditAttribution: Will White commentedburakg91, thanks for the report. Forms are currently not supported by the inline style. The IFrame style supports forms.
BenK, when do you see that output? On the page that you are embedding in or at the widget path that you specified in the view? This javascript is used to power the widget, so it's normal to see it at the view path.
For example, if I configure the path of my widget view to be frontpage/widget and I navigate to that path with my browser, it is normal to see output like that. If you are seeing that output on the page that you're embedding into, there is an issue, which I have not been able to reproduce. Please provide more info. Thanks!
Comment #5
clemens.tolboomThis issue is "too long" in state "postponed (maintainer needs more info)"