Print Page | Close Window

passing RTE input to a hidden field

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Rich Text Editor (RTE)
Forum Description: Support forum for the Web Wiz Rich Text Editor (RTE).
URL: https://forums.webwiz.net/forum_posts.asp?TID=13866
Printed Date: 29 March 2026 at 2:48am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: passing RTE input to a hidden field
Posted By: masterwebstudio
Subject: passing RTE input to a hidden field
Date Posted: 17 February 2005 at 4:30pm
I know this may be a stupid question but I am trying to build a news editor similair to the one on here but useing RTE 3 So I put the shortnews and title and date on the first page then it is passed to the second page and placed in a hidden field awaiting submission the second page has another RTE to do long news. saying all that heres the problem.
 If I put text in the first RTE it works fine. but if I add a picture to the first page (shortnews) and call for it in the hidden field it cuts off after the img source=

Here is the code for the short news

short_news = request.Form("short_news")

 <input name="short_news" type="hidden" id="short_news" value="<%= short_news%>">

any ideas?



Replies:
Posted By: WebWiz-Bruce
Date Posted: 18 February 2005 at 5:47am
The simplest work around for this is to use a Session variable to store the short news peice, this would prevent the problem you mention.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: masterwebstudio
Date Posted: 18 February 2005 at 9:37am
Tryed that it didnt work. the one way that did work was to add another textarea at the top of the page and not give it a RTE (on the second page ) but hten it looks wierd because its diplaying code. kinda looks unprofessional guess i could make my non code writing friends feel good and put the words (you wrote this code) above that box. Im going to keep working on this I will get it if it kills me


Posted By: WebWiz-Bruce
Date Posted: 18 February 2005 at 10:00am
You could always use CSS to make the textarea not visable.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: masterwebstudio
Date Posted: 18 February 2005 at 11:48am
Thanks Borg!
Worked great for those who want to know how....heres how

 on the second page i put a text area inside of a table row
 then i attached a .class css file to it

the CSS

 .hiddenfield {
    height: 0px;
    width: 0px;
    display:none;
}


the form

 <td class="hiddenfield">        <table width="10%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><textarea name="short_news" cols="1" rows="1" wrap="OFF" id="short_news"><%=Session("short_news")%></textarea></td>
          </tr>
        </table></td>

 worked like a charm and easy to do


 thanks borg



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net