Programming Tools
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingProgramming Tools

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old November 21st, 2002, 03:48 PM
stan stan is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Posts: 12 stan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
[javascript]is it possible to store a multilines text in a var ?

hello everyone,

i'm using the wysiwyg editor in my php forum, and i'd like to konw how to store a multi-lines text in a js var, or how to populate the iframe with an multi-lines text, because the solution that was gived only works with single line txts

thx

bye

Reply With Quote
  #2  
Old November 21st, 2002, 06:21 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
when you insert the value into the editor you have to use php to remove all instances of \r and \n (replace with blanks) for the editor to work.

Reply With Quote
  #3  
Old November 23rd, 2002, 04:08 AM
stan stan is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Posts: 12 stan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
in fact, it is not that the problem(i think):

this an exemple:
PHP Code:
<?php
$txt 
'textttttttttttttttttttttttttttttttttttttttttttttt  tt
           hahahahahha'
;
?>
<script type="text/javascript">
var content = '<?=$txt?>';
//function adcontent to populate the editor
</script>


and that doesn't work

Reply With Quote
  #4  
Old November 23rd, 2002, 08:25 AM
stan stan is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Posts: 12 stan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
in fact you were right
thx

Reply With Quote
  #5  
Old November 26th, 2002, 07:48 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
I usually am (*wishes*)

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingProgramming Tools > [javascript]is it possible to store a multilines text in a var ?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

SlickEdit




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway