Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Clicking Back Button Kills Image Links
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedClicking Back Button Kills Image Links

 Post Reply Post Reply
Author
dotson View Drop Down
Newbie
Newbie


Joined: 22 March 2005
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote dotson Quote  Post ReplyReply Direct Link To This Post Topic: Clicking Back Button Kills Image Links
    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?
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: 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.
Back to Top
dotson View Drop Down
Newbie
Newbie


Joined: 22 March 2005
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote dotson Quote  Post ReplyReply Direct Link To This Post 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?
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: 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.
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.