Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Pathing problems (IE related)?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedPathing problems (IE related)?

 Post Reply Post Reply
Author
CthulhuCHild View Drop Down
Newbie
Newbie


Joined: 29 June 2006
Location: Canada
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote CthulhuCHild Quote  Post ReplyReply Direct Link To This Post Topic: Pathing problems (IE related)?
    Posted: 30 June 2006 at 5:06pm
Saw this mentioned in another thread, but I'm wondering if I'm doing anything different. It DOES seem to work in mozilla. Anyway, whenever I paste an image with relative pathing, it converts it to absolute paths when it saves as html. I cannot stress how irritating this is :P
 
Mucking around with the setup file doesn't seem to do much (I thought that blnUseFullURLpath thing might help, it didn't).
 
Basically, am I utterly screwed, and have to use mozilla?
 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
 <TITLE>TDSB RTE Content Manager</TITLE>
 <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
 <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
</HEAD>
<%@ language="VBScript"%>

<%
'if Request.Form("pageToEdit")<>"" then
Response.Write("<Body OnLoad=""initialiseWebWizRTE();"">")
'else
'Response.Write("<Body>")
'end if


Dim oConn, oCmd, oRS, sql
Set oConn = Server.CreateObject("ADODB.Connection")
'oConn.Open 'username and password hidden
oConn.Open 'username and password hidden
Set oCmd = Server.CreateObject("ADODB.Command")
oCmd.ActiveConnection = oConn

Set oRS = Server.CreateObject("ADODB.Recordset")

if Request.Form("RTE")<>"" then
 dim content
 content=Request.Form("RTE")
 if content<>"" then 
  content=replace(content, "'", "|")
 end if
 sql="Select PageContents From Web_Pages Where PageName='" & Request.form("pageEdited") &"'"
 'Response.Write(sql&"<BR>")
 oRS.Open sql, oConn, 2, 2
 ors("pageContents")=content
 oRS.Update
end if

sql = "SELECT PageName FROM Web_Pages"
Set oRS = oConn.Execute(sql)

%>
 Please select a page to edit: <BR>
 <form method=post id=form1 name=form1>
 <select name="pageToEdit">
 <Option value="">Select a page to edit</Option>
<%
do until oRS.EOF
 Response.Write("<Option value="""&oRS("pageName")&""">"&oRS("PageName")&"</option>")
 oRS.MoveNext
loop
%>
</select>
<input type="submit" Name="Action" value="Edit &gt;&gt;">
</form>
 
<%
 
 
if Request.Form("pageToEdit")<>"" then
 
 sql = "SELECT PageContents FROM Web_Pages Where pageName='"&Request.Form("PageToEdit")&"'"
 Set oRS = oConn.Execute(sql)
 dim contents
 contents=orS("PageContents")
 if contents<>"" then  
  contents=replace(contents, "|", "'") 
 end if
 'ID tag name of the HTML form the textarea is within
 strFormName = "editPage"
 
 'ID tag name of HTML textarea being replaced
 strTextAreaName = "RTE"
 
 %>
 <!-- include the Web Wiz Rich Text Editor -->
 <!--#include file="RTE_editor_inc.asp" -->
 <Form method=post ID="editPage">
 <input name="pageEdited" type="hidden" value="<%Response.Write(Request.Form("pageToEdit"))%>">
 <textarea rows=30 cols=80 name="RTE" ID="RTE"><%Response.write(contents)%></textarea><BR>
 <input type="submit" Name="Action" value="Save &gt;&gt;">
 </Form>
 
 <% 

end if 

    
Set oRS = Nothing
if ucase(TypeName(dbConn)) = "CONNECTION" then
 oConn.Close
 Set oConn = Nothing
end if

 

%>

</body>

 
 
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: 02 July 2006 at 2:06pm
The Web Wiz RTE uses the browsers own built in RTE API.

It is the browsers own built in RTE API that write the HTML code, in IE this HTML code it writes is not very good and often IE will re-write the HTML including links.

The only solution is hope that IE get's it's act together and builds a better RTE API for IE 7, either that or use Mozilla which has a much better standards compliant RTE API.
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.