3lions
06-08-2004, 12:00 PM
I am having a very odd problem with using IFrames as a wysiwyg editor
I am using the editor to enter information into a db and also edit the information in the db.
The inputting works fine and any links i add work correctly. However if i then go to edit the data when i put the info through the editor the second time it breaks the link by adding a bit at the beginning of the HREF (example below)
If the link was href="http://www.bbc.co.uk" when it is edited and saved it becomes
href='http://intranet/test/"http://www.bbc.co.uk"'
(with the beginning bit being the root of the page)
This is really annoying as this happens even when the link is not touched second time around.
Any Ideas??
(posting here aswell as im not sure if its the Javascript or the ASP what is casing the prob)
I am using the editor to enter information into a db and also edit the information in the db.
The inputting works fine and any links i add work correctly. However if i then go to edit the data when i put the info through the editor the second time it breaks the link by adding a bit at the beginning of the HREF (example below)
If the link was href="http://www.bbc.co.uk" when it is edited and saved it becomes
href='http://intranet/test/"http://www.bbc.co.uk"'
(with the beginning bit being the root of the page)
This is really annoying as this happens even when the link is not touched second time around.
Any Ideas??
(posting here aswell as im not sure if its the Javascript or the ASP what is casing the prob)