Reply to Re: using IFrames ... and when there is an enter character...

Your name:

Reply:


Posted by Jim Michaels on 03/02/06 23:07

"GooderThanYou" <gooderthanyou@gmail.com> wrote in message
news:1140730747.423235.219050@z34g2000cwc.googlegroups.com...
>
> Dawsons wrote:
>> Do a str_replace on the </p> so that it replaces with \n or double \n...
>> then just hve the document strip <p> clean...
>>
>> as the other guy said, you need to make sure theres no return break
>> otherwise javascript gets arsey!
>>
>>
>> "GooderThanYou" <gooderthanyou@gmail.com> wrote in message
>> news:1139430359.412120.310780@z14g2000cwz.googlegroups.com...
>> >I have "<P>moo</P><P>moo</P>" stored in mysql...
>> >
>> > I pull that and get rid of the <P> and </P> characters perfectly fine
>> >
>> > Then I output the string in a text box and it says "moomoo"
>> >
>> > Now when I write it to a IFrame... it will not let me edit the iframe
>> > and nothing shows up either...
>> >
>> > If I write $test = "moomoo"; it will work, but it won't let me get rid
>> > of the html, nor does it like "\nmoo" which i'm going to need to use.
>> >
>> > There are no blank spaces either..... I don't know what the heck it is
>> > doing
>> >
>
> Actually neither way worked, Javascript does not mind <P> and also can
> do /n at least in IE
>
> I had this:
>
> <IFRAME width=600 HEIGHT=400 scrolling="yes" ID=statement ></IFRAME>
> echo "<script type="text/javascript" language="javascript">
> statement.document.designMode = "On";
> statement.document.write(" '.$currentInfo.' ");
> </script> "
>
> what I had to do was actually echo $currentInfo into a hidden text
> field then pull that out this way...
>
> <input name="statement" type = "hidden" id="statement" value = "<?
> echo $currentInfo ?>" >
> <IFRAME width=600 HEIGHT=400 scrolling="yes" ID=statement ></IFRAME>
> echo "<script type="text/javascript" language="javascript">
> statement.document.designMode = "On";
> if(formstat.statement.value != "")
> statement.document.write(formstat.statement.value);
> </script>

look at your quotes. they are not escaped. and the string doesn't end.

>
> For some reason, when I echoed the javascript code, even though it was
> exactly the same output (checked in text fields and such) it wasn't
> liking it.
>
> Works now though, thanks!
>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация