Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - passing RTE input to a hidden field
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum Lockedpassing RTE input to a hidden field

 Post Reply Post Reply
Author
masterwebstudio View Drop Down
Newbie
Newbie
Avatar

Joined: 22 November 2003
Location: United States
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote masterwebstudio Quote  Post ReplyReply Direct Link To This Post Topic: passing RTE input to a hidden field
    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?
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
masterwebstudio View Drop Down
Newbie
Newbie
Avatar

Joined: 22 November 2003
Location: United States
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote masterwebstudio Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 18 February 2005 at 10:00am
You could always use CSS to make the textarea not visable.
Back to Top
masterwebstudio View Drop Down
Newbie
Newbie
Avatar

Joined: 22 November 2003
Location: United States
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote masterwebstudio Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.