Hi, I know this is a CF list, but who uses CF without Javascript? ;-)
Here is the problem: I have an online HTML editor which works pretty well, except that any relative href addresses are transformed into absolute addresses, ie : href="mypage.htm" becomes href="http://mySite/directoryOfTheTextEditor/mypage.htm" Apparently, setting the innerHTML is the source of the problem. The code below illustrates the problem: <SCRIPT> function setHTML() { var div = document.getElementById("testDiv"); div.innerHTML = '<A href="test.htm">Test href</A>' alert(div.innerHTML) } </SCRIPT> <INPUT NAME="test" TYPE="button" SIZE="10" VALUE="test" onClick="setHTML()"> <DIV id="testDiv">test</DIV> When someone clicks on the button, <A href="test.htm"> is inserted into the innerHTML of the div, however, the alert then shows <A href="http://localhost/test/test.htm"> This problem is with IE 6, with FireFox the address is unchanged; under IE 7, I don't know. Does someone know some way I could get IE to mind its own business? I'm able to manage my addresses myself ;-) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion MX7 and Flex 2 Build sales & marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284030 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

