Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Add element to image tag output
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedAdd element to image tag output

 Post Reply Post Reply
Author
ASProokie View Drop Down
Newbie
Newbie


Joined: 24 November 2003
Location: United States
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote ASProokie Quote  Post ReplyReply Direct Link To This Post Topic: Add element to image tag output
    Posted: 14 June 2007 at 5:58pm
I would like to add class="entryImage" to the output of the images when I add them.  Where and what can I add to the RTE structure to make this happen?

Put another way: when I add an image, the outputted code is this:

<img src="http://www.imageurl.com" border="">

I would like it to look like this:

<img class="entryImage" src="http://www.imageurl.com" border="">

Help?
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: 14 June 2007 at 6:06pm
The only way this would be possible is to write some ASP code in the page that process the form input, so that it detects links and places the required class within that link.
Back to Top
ASProokie View Drop Down
Newbie
Newbie


Joined: 24 November 2003
Location: United States
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote ASProokie Quote  Post ReplyReply Direct Link To This Post Posted: 14 June 2007 at 6:12pm
Thanks boRg -

Do you know which one is the page that processes the form input?
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: 14 June 2007 at 6:16pm
The RTE doesn't do any form processing.

You need to create your own web application with standard forms and also process those forms, you tehn apply the RTE to your forms textarea to turn it into a Rich Text HTMLarea.

How you processes the forms submitted data is completely up to you.
Back to Top
ASProokie View Drop Down
Newbie
Newbie


Joined: 24 November 2003
Location: United States
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote ASProokie Quote  Post ReplyReply Direct Link To This Post Posted: 14 June 2007 at 6:44pm
Ah - I see. I looked at the code on popupimage.asp and got the impression that RTE made some sort of alteration to the code, but I see now that that is just for the pop-up window.

So I guess there's two things, I could do:

1. write some "replace" code that takes "<img" and turns it into "<img class="entryImage"

or

2. I didn't think of this before, but I could just switch to HTML veiw in RTE and type in the code myself before I submit the form.

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.