Posted by VHfc on 03/09/06 10:54
Juan José GutiérrezPérez schreef:
> echo "<input type=\"hidden\" id=\"txt_var\" value=\"$txt\"/>";
> but i suppose a textarea is more aproppiate for what you want.
Yes, I want it in a textarea. My problem was so "obvious" I didn't see
the woods by all the trees. Actually this must be the Murphy of posting
since I found a workable solution in the mean time by the
XMLHttpRequest object. It works great!
http://www.sitemasters.be/?pagina=tutorials/tutorials&cat=3&id=433#object
(in Dutch but the code is self-explaining)
Your solution is even simpler. But the advantage of the XMLHttpRequest
object is that I can reuse it for different types of request just by
the *.php?requesttype parameter.
> that's supposing I understand your problem, because I'm not too sure I
> understood it
It was! Thanks for your reply.
@Drakazz: yes I'm quite aware of the character problem. I had it with
my cookie mechanism. I escape/unescape the string:
JS: result_dds = unescape(unescape(readMyCookie('comm_result_dds')));
PHP: stripslashes and rawurl
Thanx for your reply too!
VHfc
[Back to original message]
|