Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - New Button problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedNew Button problem

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

Joined: 28 February 2010
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote remusmania Quote  Post ReplyReply Direct Link To This Post Topic: New Button problem
    Posted: 28 February 2010 at 9:45pm
when i press the button, want to write for example [download] or [demo] in the textarea.


added :

includes/RTE_toolbar_inc.asp
 line: 172

%>
document.writeln('<img src="<% = strRTEImagePath %>toolbar_separator.gif" align="absmiddle"><img class="WebWizRTEbutton" width="20" height="20" onmouseover="overIcon(this)" onmouseout="outIcon(this)" src="<% = strRTEImagePath %>my_icon.gif" align="absmiddle" onclick="FormatText(\'myLink\');">')
<%

and icon
appeared on the tool bar.


added :

RTE_javascript.asp
line: 320

%>
    else if (command == "myLink") {   
       
insertLink = prompt("Adress", "http://");           
        if ((insertLink != null) && (insertLink != "")) {
            editor.contentWindow.focus()
            editor.contentWindow.document.body.innerText = editor.contentWindow.document.body.innerText + '[DEMO]' + insertLink + '[/DEMO]';
            editor.contentWindow.focus();
        }   
    }
<%

When i enter a link , Write in the textarea : [DEMO] http://mysite.com [/DEMO] but do not...


Back to Top
remusmania View Drop Down
Newbie
Newbie
Avatar

Joined: 28 February 2010
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote remusmania Quote  Post ReplyReply Direct Link To This Post Posted: 28 February 2010 at 10:23pm
works in IE but not working Firefox why ? How can we fix this problem?
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: 01 March 2010 at 2:37pm
Looks like you are coding for IE.

IE uses it's own horrible buggy code. Other browser uses standards compliant code, which means that if it doesn't work in Firefox it won't work in Chrome, Safari, or Opera either.

What you will probably need to do is write one lot of code for IE and a different lot of code for all the other browsers.
Back to Top
remusmania View Drop Down
Newbie
Newbie
Avatar

Joined: 28 February 2010
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote remusmania Quote  Post ReplyReply Direct Link To This Post Posted: 01 March 2010 at 2:46pm
fixed problem :) "innerText" change  "textContent"
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.