<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
  <title>aC forum: Embeding the Public Submit form into a static html page</title>
  <link>http://www.activecollab.com/forums/topic/4411/</link>
  <description>Recent posts on topic: Embeding the Public Submit form into a static html page</description>
  <dc:language>en-us</dc:language>
  <pubDate>Wed, 23 May 2012 20:20:30 CDT</pubDate>
  
  <item>
    <link>http://www.activecollab.com/forums/post/27212/#post27212</link>
    <guid>http://www.activecollab.com/forums/post/27212/#post27212</guid>
    <title>Post #15 by [user deleted]</title>
    <dc:creator>[user deleted]</dc:creator>
    <description><![CDATA[<p>I took the easy way out and lightboxed the ticket form ;).</p>]]></description>
    <pubDate>Thu, 29 Jul 2010 16:04:11 CDT</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/24700/#post24700</link>
    <guid>http://www.activecollab.com/forums/post/24700/#post24700</guid>
    <title>Post #14 by john</title>
    <dc:creator>john</dc:creator>
    <description><![CDATA[<p>So, I guess the easiest &quot;fix&quot; is for AC to expand the current public submit feature?<br />
<br />
I too would love to have e.g. one web form per project, not just one global form as it seems to be today.<br />
<br />
Or has there been any updates in the meantime?</p>]]></description>
    <pubDate>Mon, 25 Jan 2010 20:41:51 CST</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/19986/#post19986</link>
    <guid>http://www.activecollab.com/forums/post/19986/#post19986</guid>
    <title>Post #13 by Ilija Studen</title>
    <dc:creator>Ilija Studen</dc:creator>
    <description><![CDATA[<p><div class="postQuote"><blockquote><div class="quoteAuthor">Leon:</div>Is it possible to set attributes like 'priority' and 'category' using Incoming Mail?</blockquote></div><br />
<br />
Not at the moment, but we'll see what we can do about this in the future.<br />
<br />
<div class="postQuote"><blockquote><div class="quoteAuthor">Leon:</div>I would also like to know more about embedding a form using API to 'connect' with ac, if anyone's got time? It would be a good tutorial to see how it could all work!</blockquote></div><br />
<br />
This is an interesting idea - it would be both a nice introducing to activeCollab API and a useful tool. I'll see to find some time and write the tutorial. </p>]]></description>
    <pubDate>Mon, 11 May 2009 09:14:48 CDT</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/19973/#post19973</link>
    <guid>http://www.activecollab.com/forums/post/19973/#post19973</guid>
    <title>Post #12 by Leon P.</title>
    <dc:creator>Leon Poole</dc:creator>
    <description><![CDATA[<p>@mariuss - Thanks for the suggestion. I'd thought about using this method too - In the end this is what I've gone with. I've easily set up a form and have it emailed to the system to an address setup in Incoming Mail module, that is then transformed into a ticket. :)<br />
<br />
Is it possible to set attributes like 'priority' and 'category' using Incoming Mail?<br />
<br />
I would also like to know more about embedding a form using API to 'connect' with ac, if anyone's got time? It would be a good tutorial to see how it could all work!</p>]]></description>
    <pubDate>Sun, 10 May 2009 19:27:44 CDT</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/19932/#post19932</link>
    <guid>http://www.activecollab.com/forums/post/19932/#post19932</guid>
    <title>Post #11 by [user deleted]</title>
    <dc:creator>[user deleted]</dc:creator>
    <description><![CDATA[<p>Another option would to use &quot;Incoming Mail&quot; for this purpose.<br />
<br />
On this other site create a form that emails the submissions and send them to a special mailbox. Then configure acctiveCollab to watch that mailbox and create tickets from incoming messages.</p>]]></description>
    <pubDate>Fri, 08 May 2009 22:45:42 CDT</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/19915/#post19915</link>
    <guid>http://www.activecollab.com/forums/post/19915/#post19915</guid>
    <title>Post #10 by ntm</title>
    <dc:creator>ntm</dc:creator>
    <description><![CDATA[<p>You could use your form HTML and set the target to be an iframe (possibly hidden)<br />
<br />
&lt;iframe name=&quot;AC_Target&quot;&gt;&lt;/iframe.<br />
&lt;form target=&quot;AC_Target&quot;&gt;&lt;/form&gt;<br />
<br />
Then using the onSubmit event for &lt;form&gt; you display a success message. <br />
<br />
It will have issues if there is a problem since you wont see the real response from AC... but that's the risk you're taking by going in the custom html direction anyways =)</p>]]></description>
    <pubDate>Fri, 08 May 2009 14:20:00 CDT</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/19903/#post19903</link>
    <guid>http://www.activecollab.com/forums/post/19903/#post19903</guid>
    <title>Post #9 by Leon P.</title>
    <dc:creator>Leon Poole</dc:creator>
    <description><![CDATA[<p>Thanks Ilija - I've never worked with API's before so please bare with me on this learning cure.<br />
<br />
The thing I'm not understanding is how the API could work in a 'public submit' form without using Authentication?<br />
<br />
From what I understand, the user must be authenticated (logged in) to submit a ticket via API, however I do not want the user to be logged in at all (there will be many people submitting feedback via the form).</p>]]></description>
    <pubDate>Fri, 08 May 2009 04:52:06 CDT</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/19899/#post19899</link>
    <guid>http://www.activecollab.com/forums/post/19899/#post19899</guid>
    <title>Post #8 by Ilija Studen</title>
    <dc:creator>Ilija Studen</dc:creator>
    <description><![CDATA[<p>What is not good with your approach is that you are hacking the system into working the way it was not designed to work. This usually ends up with problems and it's not as reliable as it should be.<br />
<br />
If you wish to fully control the process - form, landing page, validation etc, you should use API instead of hacking public submit page:<br />
<br />
<a href="http://www.activecollab.com/docs/manuals/developers/api/tickets" target="_blank" rel="nofollow">http://www.activecollab.com/docs/manuals/developers/api/tickets</a><br />
</p>]]></description>
    <pubDate>Fri, 08 May 2009 04:28:23 CDT</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/19897/#post19897</link>
    <guid>http://www.activecollab.com/forums/post/19897/#post19897</guid>
    <title>Post #7 by Leon P.</title>
    <dc:creator>Leon Poole</dc:creator>
    <description><![CDATA[<p>Thanks Ilija,<br />
<br />
I've turned off CAPTCHA and I'm able to post a ticket via the form from a static page now (using action=&quot;http://mydomain.com/submit&quot; in the &lt;form&gt; tag). But it's not quite how I'd like it still. The user is taken to the 'successfully submitted ticket' page on my ac install after clicking 'submit', but I would like to keep them on the same page (also for handling form validation).<br />
<br />
I've done a search and played around with a few solutions but haven't had any success yet. I've gone with one from 9Lessons as it's the cleanest, and I'm feeling it's almost there but for some reason it's just not working:<br />
<br />
The head/javascript bit:<br />
<pre name="code" class="brush: php">
&lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3.0/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
$(function() {

$(&quot;.submit&quot;).click(function() {

    var name = $(&quot;#created_by_name&quot;).val();
	var email = $(&quot;#created_by_email&quot;).val();
	var subject = $(&quot;#name&quot;).val();
	var description = $(&quot;#body&quot;).val();
	var submitted = $(&quot;#submitted&quot;).val();
	
    var dataString = 'created_by_name='+ name + '&amp;created_by_email=' + email + '&amp;name=' + subject + '&amp;body=' + description + '&amp;submitted=' + submitted;
	

	if(name=='' || email=='' || subject=='' || description=='' || submitted=='')
	{
	$('.success').fadeOut(200).hide();

    $('.error').fadeOut(200).show();
	
	}
	
	else
	{
	$.ajax({
	type: &quot;POST&quot;,
    url: &quot;http://myactivecollabinstall.com/submit&quot;,
    data: dataString,
    success: function(){
	$('.success').fadeIn(200).show();
    $('.error').fadeOut(200).hide();
		
   }
});

	}
		
    return false;
	});

});
&lt;/script&gt;
</pre><br />
<br />
The HTML/form:<br />
<pre name="code" class="brush: php">
  &lt;form enctype=&quot;multipart/form-data&quot; method=&quot;post&quot; name=&quot;form&quot;&gt;
    &lt;div class=&quot;info&quot; style=&quot;padding-left:20px&quot;&gt;
      &lt;h2&gt;Submit to activecollab form&lt;/h2&gt;
    &lt;/div&gt;
    &lt;ul&gt;
      &lt;li id=&quot;foli1&quot;&gt;
        &lt;label class=&quot;desc&quot; for=&quot;created_by_name&quot;&gt;Name&lt;/label&gt;
        &lt;div&gt;
          &lt;input id=&quot;created_by_name&quot; name=&quot;ticket[created_by_name]&quot; type=&quot;text&quot; class=&quot;field text medium&quot; value=&quot;&quot; maxlength=&quot;255&quot; tabindex=&quot;1&quot; 						/&gt;
        &lt;/div&gt;
      &lt;/li&gt;
      &lt;li id=&quot;foli3&quot;&gt;
        &lt;label class=&quot;desc&quot; for=&quot;created_by_email&quot;&gt;Email&lt;/label&gt;
        &lt;div&gt;
          &lt;input id=&quot;created_by_email&quot; 	name=&quot;ticket[created_by_email]&quot; type=&quot;text&quot;	class=&quot;field text medium&quot; value=&quot;&quot; maxlength=&quot;255&quot; tabindex=&quot;3&quot; /&gt;
        &lt;/div&gt;
      &lt;/li&gt;
      &lt;li id=&quot;foli4&quot;&gt;
        &lt;label class=&quot;desc&quot; for=&quot;name&quot;&gt;Subject&lt;/label&gt;
        &lt;div&gt;
          &lt;input id=&quot;name&quot; name=&quot;ticket[name]&quot; type=&quot;text&quot; class=&quot;field text medium&quot; value=&quot;&quot; maxlength=&quot;255&quot; tabindex=&quot;4&quot; /&gt;
        &lt;/div&gt;
      &lt;/li&gt;
      &lt;li id=&quot;foli6&quot;&gt;
        &lt;label class=&quot;desc&quot; for=&quot;body&quot;&gt;Description&lt;/label&gt;
        &lt;div&gt;
          &lt;textarea id=&quot;body&quot; name=&quot;ticket[body]&quot; class=&quot;field text medium&quot; tabindex=&quot;5&quot;&gt;&lt;/textarea&gt;
        &lt;/div&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
    &lt;div class=&quot;buttons&quot;&gt;
      &lt;input type=&quot;hidden&quot; name=&quot;submitted&quot; value=&quot;submitted&quot; style=&quot;display: none&quot; /&gt;
      &lt;button type=&quot;submit&quot; accesskey=&quot;s&quot; value=&quot;Submit&quot; style=&quot;background:#0060a1; color:#FFFFFF; font-size:14px; border:1px solid #0060a1; margin-left:12px&quot; class=&quot;submit&quot;&gt;&lt;span&gt;Submit&lt;/span&gt;&lt;/button&gt;
      &lt;span class=&quot;error&quot; style=&quot;display:none&quot;&gt; Error&lt;/span&gt;
      &lt;span  class=&quot;success&quot; style=&quot;display:none&quot;&gt;Success! Ticket submitted.&lt;/span&gt;
    &lt;/div&gt;
  &lt;/form&gt;
</pre><br />
<br />
What am I doing wrong? <br />
<br />
*time for a coffee*<br />
<br />
Leon.</p>]]></description>
    <pubDate>Fri, 08 May 2009 04:13:37 CDT</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/19888/#post19888</link>
    <guid>http://www.activecollab.com/forums/post/19888/#post19888</guid>
    <title>Post #6 by Ilija Studen</title>
    <dc:creator>Ilija Studen</dc:creator>
    <description><![CDATA[<p>What you can do is to open form's source code and replicate the form on other page. Field names need to reman the same for system to work (don't forget hidden fields) and you should disable CAPTCHA protection. Form action should be the address of public submit form.<br />
<br />
Another option is to create a tool that submits tickets through the API. This way you can have even more control. Please check <a href="http://www.activecollab.com/docs/manuals/developers/api/tickets" target="_blank" rel="nofollow">this article</a> to learn how to work with tickets using activeCollab API.</p>]]></description>
    <pubDate>Thu, 07 May 2009 16:53:47 CDT</pubDate>
  </item>
</channel>
</rss>
