<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : sed_parse &amp; ajax</title>
		<link>https://www.cotonti.com</link>
		<description>Останні повідомлення в темі</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Mon, 13 Apr 2026 10:20:47 -0000</pubDate>

		<item>
			<title>urlkiller</title>
			<description><![CDATA[trying to build something like google wave <span style="text-decoration:underline">without </span>live typing <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/wink.gif" alt=";)" /><br /><br /><b>Added 18 hours 52 minutes later:</b><br /><br />@ez<br />
<br />
i got 2 versions of my page.<br />
the first one with cool jquery functions<br />
the second one only with text <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/wink.gif" alt=";)" /> for the IE users (i got under 4% IE users at my site)<br />
<br />
(and this isn't some client payed thing...)]]></description>
			<pubDate>Пт, 16 Кві 2010 23:22:13 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=5537&d=0#post24163]]></link>
		</item>
		<item>
			<title>ez</title>
			<description><![CDATA[IE sucks.. yeah... but a lot off users use it, so keep in mind my tip <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/smile.gif" alt=":)" /><br />
that one costed me several hours...<br />
<br />
<br />
You say the ajax works.... so you have got that part working...<br />
<br />
So just put the response back in a html element:<br />
<br />
<a href="http://api.jquery.com/load/" rel="nofollow">http://api.jquery.com/load/</a><br />
<br />
$('#Where').load('ajax/test.html', function() {<br />
  alert('Load was performed.');<br />
});<br />
<br />
=============<br />
OK (welcome to bug city)]]></description>
			<pubDate>Пт, 16 Кві 2010 23:18:06 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=5537&d=0#post24162]]></link>
		</item>
		<item>
			<title>urlkiller</title>
			<description><![CDATA[first. No i refuse using this &quot;browser&quot; ...<br />
second. i foun d this article yesterday but iam looking for some easy to convert example with only a few lines of code to get a general view for this technique...<br />
<br />
<strong>Added 12 minutes later:</strong><br />
<br />
doh! <strong>divId: 'ajaxDIV',</strong><br />
<br />
that little bugger there was part of the problem...<br />
yeah i know! read the fucking manual!]]></description>
			<pubDate>Пт, 16 Кві 2010 23:01:06 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=5537&d=0#post24161]]></link>
		</item>
		<item>
			<title>ez</title>
			<description><![CDATA[What is the response off you're agent...  (how does that look, Html, json...)<br />
<br />
If you are using IE : 1 BIG catch is caching..... !!!!<br />
Always do this: <br />
		// disable cache<br />
		$.ajaxSetup({ cache: false });<br />
<br />
it will make sure that IE does not cache youre response ! <br />
<br />
<br />
1 tip: For posting I am using the Forms plugin..... (a real gem)<br />
<a href="http://jquery.malsup.com/form/#ajaxSubmit" rel="nofollow">http://jquery.malsup.com/form/#ajaxSubmit</a><br />
<br />
Look at the callback to process your returned data<br />
<br />
Hope this helps]]></description>
			<pubDate>Пт, 16 Кві 2010 22:59:11 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=5537&d=0#post24160]]></link>
		</item>
		<item>
			<title>urlkiller</title>
			<description><![CDATA[hmm... iam doing it the wrong way, i guess!<br />
<br />
<br />
javascript:<br />
<pre class="code">
		$(document).ready(function()
    {
      
			$(&quot;#submiter&quot;).click(function(){
			
					 var message = $('#sendmessage').val();
				   ajaxSend({
					   url: 'plug.php?r=dashboard',
					   method: 'POST',
					   formId: 'myform'
				   })
      
      alert(message);
			$('#sendmessage').val('');
			return false;
			});
   	});

</pre>
<br />
html<br />
<pre class="code">
&lt;form method=&quot;post&quot; action=&quot;plug.php?r=dashboard&quot; name=&quot;myform&quot; id=&quot;myform&quot; class=&quot;ajax&quot; onsubmit=&quot;return false;&quot;&gt;
&lt;textarea class=&quot;minieditor&quot; name=&quot;sendmessage&quot; id=&quot;sendmessage&quot;&gt;&lt;/textarea&gt;
&lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;send&quot;&gt;
&lt;input type=&quot;hidden&quot; name=&quot;gid&quot; value=&quot;{WAVE_GID}&quot;&gt;
&lt;input type=&quot;hidden&quot; name=&quot;uid&quot; value=&quot;{WAVE_UID}&quot;&gt;
&lt;input type=&quot;hidden&quot; name=&quot;cid&quot; value=&quot;{WAVE_CID}&quot;&gt;

&lt;center&gt;&lt;input type=&quot;submit&quot; id=&quot;submiter&quot; value=&quot;test send&quot; style=&quot;padding:10px;font-size:18px;&quot;&gt;&lt;/center&gt;
&lt;/form&gt;
</pre>
<br />
*.ajax.php from my plugin<br />
<pre class="code">
defined('SED_CODE') or die('Wrong URL');


$text = sed_import('sendmessage', 'P', 'TXT');
sed_sendheaders();
echo sed_post_parse(sed_parse($text));
ob_end_flush();
</pre>
<br />
<br />
<br />
i simply dont get it to work. am i stupid or what?<br />
is there anyway where i can define the output div for the answer send back from the ajax.php part?<br />
<br />
<br />
(yes there are asome unused variables, iam just testing here so ignore them.)<br />
<br />
i simply want a form submit into a pre specified div box. the content should appear right after i pressed submit. any ideas?<br /><br /><b>Added 52 seconds later:</b><br /><br />the ajax part seems to work well, it just dont show up in my &quot;main&quot; page div]]></description>
			<pubDate>Пт, 16 Кві 2010 22:47:52 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=5537&d=0#post24158]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[Not really. Just call it like <a href="http://example.com/plug.php?r=your_plugin" rel="nofollow">http://example.com/plug.php?r=your_plugin</a> from your JavaScript code (be it Cotonti's, jQuery or whatsoever).]]></description>
			<pubDate>Пт, 16 Кві 2010 22:33:47 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=5537&d=0#post24156]]></link>
		</item>
		<item>
			<title>urlkiller</title>
			<description><![CDATA[ill try this now, thanks.<br /><br /><b>Added 6 minutes later:</b><br /><br />ok ill know stupid question i access the *.ajax.php file in my plugin via the other tutorial and javaS function?]]></description>
			<pubDate>Пт, 16 Кві 2010 22:16:33 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=5537&d=0#post24155]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[Yes, in the markitup plugin, there's <em>markitup.ajax.php</em>]]></description>
			<pubDate>Пт, 16 Кві 2010 22:11:49 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=5537&d=0#post24152]]></link>
		</item>
		<item>
			<title>urlkiller</title>
			<description><![CDATA[ok i figured that out too already.<br />
<br />
<a href="http://www.cotonti.com/docs/en/plugins/ajax_parts#c784">http://www.cotonti.com/docs/en/plugins/ajax_parts#c784</a><br />
<br />
is there somewhere like an example on this?]]></description>
			<pubDate>Пт, 16 Кві 2010 22:08:56 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=5537&d=0#post24151]]></link>
		</item>
		<item>
			<title>Kilandor</title>
			<description><![CDATA[You should use the hook for plugin &quot;ajax&quot; then you can use the url plug.php?r=plugcode to send your ajax queries to, this gives you full Cotonti functions. And it only outputs anything you echo out on your plugin hook.]]></description>
			<pubDate>Пт, 16 Кві 2010 22:06:28 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=5537&d=0#post24150]]></link>
		</item>
		<item>
			<title>urlkiller</title>
			<description><![CDATA[ill give this a try giving me the headaches the last 4 days ;(<br />
<br />
<strong>Added 33 seconds later:</strong><br />
<br />
currenty my includes look like this:<br />
<br />
<pre class="code">
include('../../../../../datas/config.php');
include('../../../../../plugins/dashboard/inc/extconnect.php');
include('../../../../../system/database.mysql.php');
include('../../../../../plugins/dashboard/inc/functions.php');
</pre>
<br />
and the script runs root level<br />
<br />
<strong>Added 50 seconds later:</strong><br />
<br />
exconnect and functions includes most of the system/functions.php because it was somehow interrupting each other... (already definded bla bla bla)<br />
<br />
<strong>Added 11 minutes later:</strong><br />
<br />
hmm seems that i got a major problem here.<br />
<br />
the problem is that i dont have my test.php included in the main system.<br />
i only include the system's functions, db connection, config and common so it wont work<br />
because all variables get definded somewhere in the core system.<br />
<br />
is there any secure workaround for something like this? or some alternative because the incldued ajax functions are a bit hard to understand without some working insert/edit/update sql sample for me...<br />
<br />
maybe you got something on your hdd for me to share? would help me a lot because i got the strange feeling that iam building a sql injection plugin here <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/wink.gif" alt=";)" /> <br />
<br />
i would need a detailed sample on how i <br />
<br />
1. add something to the database with ajax (only loading async.)<br />
2. edit &quot; <br />
3. update &quot;<br />
4. get everything parsed to the right #div<br />
<br />
5. how to implement this in a plugin (some sort of jquery db &lt;-&gt; chat)<br />
<br />
maybe you have some simple plugin with only a few lines of code where i can get the basics on how to implement this the cot way?]]></description>
			<pubDate>Пт, 16 Кві 2010 21:44:54 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=5537&d=0#post24148]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[Do you use and AJAX part of a plugin or have a root-level script? common.php is required for the parser to work (load all bbcodes), so I guess this is the problem. You can manually preload them with this:<br />
<div class="highlight"><pre class="php">sed_bbcode_load();</pre></div>]]></description>
			<pubDate>Пт, 16 Кві 2010 21:35:56 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=5537&d=0#post24147]]></link>
		</item>
		<item>
			<title>urlkiller</title>
			<description><![CDATA[hey folks,<br />
<br />
i got here a little problem. the implemented parses get me now some headache on when working with ajax contents.<br />
<br />
my problem: <br />
<br />
1. user submits a form (ajax jquery call) (works)<br />
2. php file insert everything in db and should echo the contents (works)<br />
3. content gets displayd (works)<br />
4. bold / opblique etc wont show correctly formated.<br />
<br />
it seems that the parses just dont work. so i thought it may wont work as a standalone ajax function because it need too much system variables the global includes in the function itself wont allow me to use this function in my NOT included ajax php file.<br />
<br />
anybody some solution for this kind of problem?]]></description>
			<pubDate>Пт, 16 Кві 2010 21:01:17 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=5537&d=0#post24145]]></link>
		</item>
	</channel>
</rss>