<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Support Forum - Topic: Avia Feedback Box unable to POST anything but a text field.</title>
		<link>http://www.kriesi.at/support/topic/avia-feedback-box-unable-to-post-anything-but-a-text-field</link>
		<description>Support Forum - Topic: Avia Feedback Box unable to POST anything but a text field.</description>
		<language>en-US</language>
		<pubDate>Thu, 23 May 2013 16:40:52 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.kriesi.at/support/search.php</link>
		</textInput>
		<atom:link href="http://www.kriesi.at/support/rss/topic/avia-feedback-box-unable-to-post-anything-but-a-text-field" rel="self" type="application/rss+xml" />

		<item>
			<title>Dude on "Avia Feedback Box unable to POST anything but a text field."</title>
			<link>http://www.kriesi.at/support/topic/avia-feedback-box-unable-to-post-anything-but-a-text-field#post-21147</link>
			<pubDate>Thu, 16 Jun 2011 15:07:45 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">21147@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Glad that you found a solution. I'll report it to Kriesi - everyone can profit from it :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>scottishlegend27 on "Avia Feedback Box unable to POST anything but a text field."</title>
			<link>http://www.kriesi.at/support/topic/avia-feedback-box-unable-to-post-anything-but-a-text-field#post-21087</link>
			<pubDate>Wed, 15 Jun 2011 16:05:55 +0000</pubDate>
			<dc:creator>scottishlegend27</dc:creator>
			<guid isPermaLink="false">21087@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Solution: In feedbackbox.js search for &#34;input[type=text]:visible, textarea&#34; and replace it with &#34;input[type=text]:visible, textarea, select, input[type=radio]&#34;&#60;/p&#62;
&#60;p&#62;This allows submitting select drop downs and radio buttons&#60;/p&#62;
&#60;p&#62;My code looks as follows for each 3 lines:&#60;br /&#62;
elements = $('input[type=text]:visible, textarea, select, input[type=radio]',parent),&#60;br /&#62;
newFeedbackForm.find('input[type=text]:visible, textarea, select, input[type=radio]').val('');&#60;br /&#62;
commentParent.find('input[type=text]:visible, textarea, select, input[type=radio]').val('');
&#60;/p&#62;</description>
		</item>
		<item>
			<title>scottishlegend27 on "Avia Feedback Box unable to POST anything but a text field."</title>
			<link>http://www.kriesi.at/support/topic/avia-feedback-box-unable-to-post-anything-but-a-text-field#post-21086</link>
			<pubDate>Wed, 15 Jun 2011 15:48:24 +0000</pubDate>
			<dc:creator>scottishlegend27</dc:creator>
			<guid isPermaLink="false">21086@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;With that post you might have given me the answer though. Here is feedbackbox.js:&#60;br /&#62;
parent = button.parents('.avia_feedback_inner_form'),&#60;br /&#62;
commentParent = button.parents('.avia_feedback_entry_content'),&#60;br /&#62;
commentCounter = $('.avia_feedback_comment span', commentParent),&#60;br /&#62;
elements = $('input[type=text]:visible, textarea',parent),&#60;br /&#62;
id = $('.avia_send_by_js',parent).val(),&#60;br /&#62;
datacheck = container.methods.checkData(elements),&#60;br /&#62;
datastring = &#34;ajax=true&#38;amp;action=&#34;+event.data.context+&#34;&#38;amp;id=&#34;+id;&#60;/p&#62;
&#60;p&#62;look at the 4th line.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>scottishlegend27 on "Avia Feedback Box unable to POST anything but a text field."</title>
			<link>http://www.kriesi.at/support/topic/avia-feedback-box-unable-to-post-anything-but-a-text-field#post-21085</link>
			<pubDate>Wed, 15 Jun 2011 15:46:21 +0000</pubDate>
			<dc:creator>scottishlegend27</dc:creator>
			<guid isPermaLink="false">21085@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;I should also note that if I make it a text input it works flawlessly.&#60;/p&#62;
&#60;p&#62;The avia_send_by_js class is in a hidden field in the form as by default:&#60;br /&#62;
$feedbackHTML .= &#34;			&#38;lt;input type='hidden' value='&#34;.$post_id.&#34;' name='avia_&#34;.$context.&#34;_post_id' class='avia_send_by_js' /&#38;gt;&#34;;&#60;/p&#62;
&#60;p&#62;I copied the code from the other fields, they do not have this class&#60;br /&#62;
$feedbackHTML .= &#34;			&#38;lt;p&#38;gt;&#34;;&#60;br /&#62;
				$feedbackHTML .= &#34;			&#38;lt;label for='avia_&#34;.$context.&#34;_name'&#38;gt;Your Name&#38;lt;/label&#38;gt;&#34;;&#60;br /&#62;
				$feedbackHTML .= &#34;			&#38;lt;input type='text' value='' class='avia_text_input' name='avia_&#34;.$context.&#34;_name' id='avia_&#34;.$context.&#34;_name' /&#38;gt;&#34;;&#60;br /&#62;
				$feedbackHTML .= &#34;			&#38;lt;/p&#38;gt;&#34;;&#60;/p&#62;
&#60;p&#62;				$feedbackHTML .= &#34;			&#38;lt;p&#38;gt;&#34;;&#60;br /&#62;
				$feedbackHTML .= &#34;			&#38;lt;label for='avia_&#34;.$context.&#34;_mail'&#38;gt;Your E-Mail (won't be displayed)&#38;lt;/label&#38;gt;&#34;;&#60;br /&#62;
				$feedbackHTML .= &#34;			&#38;lt;input type='text' value='' class='avia_text_input' name='avia_&#34;.$context.&#34;_mail' id='avia_&#34;.$context.&#34;_mail' /&#38;gt;&#34;;&#60;br /&#62;
				$feedbackHTML .= &#34;			&#38;lt;/p&#38;gt;&#34;;&#60;br /&#62;
$feedbackHTML .= &#34;			&#38;lt;p&#38;gt;&#34;;&#60;br /&#62;
				$feedbackHTML .= &#34;			&#38;lt;label for='avia_&#34;.$context.&#34;_titel'&#38;gt;Subject&#38;lt;/label&#38;gt;&#34;;&#60;br /&#62;
				$feedbackHTML .= &#34;			&#38;lt;input type='text' value='' class='avia_text_input' name='avia_&#34;.$context.&#34;_titel' id='avia_&#34;.$context.&#34;_titel' /&#38;gt;&#34;;&#60;br /&#62;
				$feedbackHTML .= &#34;			&#38;lt;/p&#38;gt;&#34;;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Avia Feedback Box unable to POST anything but a text field."</title>
			<link>http://www.kriesi.at/support/topic/avia-feedback-box-unable-to-post-anything-but-a-text-field#post-21057</link>
			<pubDate>Wed, 15 Jun 2011 04:57:26 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">21057@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey,&#60;br /&#62;
did you add the class &#34;avia_send_by_js&#34; to your form elements? Following code in aviafeedback js file indicates that the class is required to get the values for the ajax function.&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;var button = $(this),
						parent = button.parents(&#38;#39;.avia_feedback_inner_form&#38;#39;),
						commentParent = button.parents(&#38;#39;.avia_feedback_entry_content&#38;#39;),
						commentCounter = $(&#38;#39;.avia_feedback_comment span&#38;#39;, commentParent),
						elements = $(&#38;#39;input[type=text]:visible, textarea&#38;#39;,parent),
						id = $(&#38;#39;.avia_send_by_js&#38;#39;,parent).val(),
						datacheck = container.methods.checkData(elements),
						datastring = &#38;quot;ajax=true&#38;amp;action=&#38;quot;+event.data.context+&#38;quot;&#38;amp;id=&#38;quot;+id;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>scottishlegend27 on "Avia Feedback Box unable to POST anything but a text field."</title>
			<link>http://www.kriesi.at/support/topic/avia-feedback-box-unable-to-post-anything-but-a-text-field#post-21027</link>
			<pubDate>Tue, 14 Jun 2011 15:59:48 +0000</pubDate>
			<dc:creator>scottishlegend27</dc:creator>
			<guid isPermaLink="false">21027@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;When adding a new entry I've been unable to get custom UI elements to submit their value. I added a dropdown (Select) box and also radio buttons, but the values are not being submitted. I've tested this elsewhere and the values work, but somehow they are not being submitted with Avia. The $_POST value is null.&#60;/p&#62;
&#60;p&#62;You can see an example of the fields I'd like to submit here: &#60;a href=&#34;http://marklenser.com/test.php&#34; rel=&#34;nofollow&#34;&#62;http://marklenser.com/test.php&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Any suggestions?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
