Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Block code
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedBlock code

 Post Reply Post Reply
Author
simoza View Drop Down
Groupie
Groupie
Avatar

Joined: 18 November 2004
Status: Offline
Points: 54
Post Options Post Options   Thanks (0) Thanks(0)   Quote simoza Quote  Post ReplyReply Direct Link To This Post Topic: Block code
    Posted: 09 March 2005 at 5:23pm
Hy All, is it possible to add in RTE the possibilty for insert a block Code adding an icon?
 
So when the message is insered inn the database, a part of it can is between tag code like this:
text text text
text
 
 
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post Posted: 09 March 2005 at 5:25pm
because those are specialised features you would have to MOD that into the RTE,

the RTE is a basic appllication so it can run under lots of different situations without to many modifications.,

so as said you would have to MOD that into the application.. take a look at the forum code to  see how the feature is used within the forum.

Back to Top
simoza View Drop Down
Groupie
Groupie
Avatar

Joined: 18 November 2004
Status: Offline
Points: 54
Post Options Post Options   Thanks (0) Thanks(0)   Quote simoza Quote  Post ReplyReply Direct Link To This Post Posted: 09 March 2005 at 6:22pm
OK I hope to realyze the MOD, then post here the code modification and wait for your permission and validationWink
Thanks
Back to Top
simoza View Drop Down
Groupie
Groupie
Avatar

Joined: 18 November 2004
Status: Offline
Points: 54
Post Options Post Options   Thanks (0) Thanks(0)   Quote simoza Quote  Post ReplyReply Direct Link To This Post Posted: 10 March 2005 at 10:34am
I try to understand the scrypt code for icons command.
But I don't know Scrypt language and I have some problems.
I would only that, when i click on an icon, in the textarea appeare the [code][/code] text.
So inside i can write the code.
 
If it possible and I have just write some parts of text, when i select with mouse the text, and click the icon, before and after the text appeare
text text text
.
 
Can you help me?
Back to Top
simoza View Drop Down
Groupie
Groupie
Avatar

Joined: 18 November 2004
Status: Offline
Points: 54
Post Options Post Options   Thanks (0) Thanks(0)   Quote simoza Quote  Post ReplyReply Direct Link To This Post Posted: 22 March 2005 at 6:33pm
Well, I've done a code like this:
<script language="javascript">
  function TagCode() {
 var testo="Text_Text";
if (document.form1.textarea1.value =="")
      document.form1.textarea1.value=testo;  
     else
      document.form1.textarea1.value+="\n"+testo;
  }
</script>
</head>
<body>
<form name="form1">
<textarea name="textarea1" cols="40" rows="10">
</textarea>
<a href="#" onclick="TagCode();">click here</a>
When I try this it goes correctly.
Now I have add an icon in RTE_toolbar_inc in this way:
If blnCode Then
 Response.Write(vbCrLf & " document.writeln('<img src=""" & strRTEImagePath & "toolbar_separator.gif"" align=""absmiddle"">")
 Response.Write("<img src=""" & strRTEImagePath & "icon_code.gif"" align=""absmiddle"" border=""0"" onClick=""TagCode();"" title=""" & strTxtCode & """ class=""WebWizRTEbutton"" onmouseover=""overIcon(this)"" onmouseout=""outIcon(this)"">")
 Response.Write("');")
End If
Now in which way I must insert, in RTE_javascript.asp my java code to work correctly?


Edited by simoza - 22 March 2005 at 7:21pm
Back to Top
simoza View Drop Down
Groupie
Groupie
Avatar

Joined: 18 November 2004
Status: Offline
Points: 54
Post Options Post Options   Thanks (0) Thanks(0)   Quote simoza Quote  Post ReplyReply Direct Link To This Post Posted: 28 September 2005 at 9:40am
up?Dead
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.