Print Page | Close Window

Clicking Back Button Kills Image Links

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Rich Text Editor (RTE)
Forum Description: Support forum for the Web Wiz Rich Text Editor (RTE).
URL: https://forums.webwiz.net/forum_posts.asp?TID=14993
Printed Date: 29 March 2026 at 12:33pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Clicking Back Button Kills Image Links
Posted By: dotson
Subject: Clicking Back Button Kills Image Links
Date Posted: 09 May 2005 at 1:42pm
Hello:
 
I have an application where users are generating form letters, you know, like mail merge.  The first page contains the RTE.  When the user submits the form, it goes to a second page, where the data they submitted is formatted and included in the body of a letter.  They can then print the letter out, and it looks like a custom-typed letter.
 
Anyway, I have been having problems with the image upload feature and maintaining links.  I tried enabling the full path option, which I am not sure if it helped.
 
1) Does the application require its files to be in folder called "RTE" as the installation files indicate?
 
2) In this application that I created, after the user submits the form, and they are looking over the form letter before they print it, if something is wrong, they press the "back" button to go back to the form.  This works fine with the RTE, unless there is a photo.  If there is a photo, it resets the entire form.  I tried creating a form submit loop, where a button was available to "go back".  The "Go back" button simply submitted the data back to the form, which was then plugged into the form fields as default values.  When I tried this, I lost the links to the images because of the quotation marks being passed.
 
Any suggestions to making the "back" button work right?



Replies:
Posted By: WebWiz-Bruce
Date Posted: 10 May 2005 at 5:05am
The first thing I should do is let you know that the RTE usises the built in RTE features of the browser, this means that IE works different to Firefox.

While the creators of Firefox have written there browser to create very clean HTML in RTE mode, Microsoft, like the rest of their software that produces HTML, creates awful HTML in IE that also has a bad habit of re-witting the HTML and also changing links.

I find with images it's best to keep the upload folder as a sub folder of the RTE files, this seems to keep the links intact. Also place the RTE files in the same folder as the files you are intergrating it in.

To answer your second question, the best way I have found to get the submitted database back into the RTE is to use session variables that when you click a link to go to the RTE that it is used to pre fill the textarea.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: dotson
Date Posted: 10 May 2005 at 2:01pm

I have kept the upload folder just the same as when installed, and the form page is in the same directory as the RTE files.

I am not using a database.  With that in mind, is it still a good idea to use session variables?  Instead of using the POST method to put the data back?


Posted By: WebWiz-Bruce
Date Posted: 10 May 2005 at 2:40pm
If the post method isn't working on your back method, then the session method does get around this problem. I have had to use this method a number of times in different applications.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net