Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Text deletes

Posted on 2013-05-13
3
Medium Priority
?
173 Views
Last Modified: 2013-06-04
I have this asp classic code to fix, the problem is when i m using IE10 and then type some txt in the message box to send mail then as soon as i select for <b>,<i> etc, the text gets deleted now this function is ok with IE 9 I don't know why its acting weird with IE10.
Any suggestion,
0
Comment
Question by:skbhagat35
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 8

Expert Comment

by:Barry62
ID: 39162110
Post your code.
0
 

Author Comment

by:skbhagat35
ID: 39162197
This is the code for above question

<script language="JavaScript">
notext = true;
function displaymsg1(){
if (notext == true)
      {
            alert("You must click in the text area you wish to view first.")
            return;
      }
      // replace ExStream tags with HTML tags
      var input = currentitem.value.replace(/<bi>/gi, "<b><i>")
      var input2 = input.replace(/<bu>/gi, "<b><u>")
      var input3 = input2.replace(/<iu>/gi, "<u><i>")
      var input4 = input3.replace(/<biu>/gi, "<b><i><u>")
      var input5 = input4.replace(/<\/bi>/gi, "</i></b>")
      var input6 = input5.replace(/<\/bu>/gi, "</u></b>")
      var input7 = input6.replace(/<\/iu>/gi, "</u></i>")
      var input8 = input7.replace(/<\/biu>/gi, "</u></i></b>")
      var input9 = input8.replace(/\r/gi, "<br>")

      
      // Set up Page Colors & Table  
      var s1 = "<TITLE>View Your Text</TITLE><BODY BGCOLOR='ffffff'><BASEFONT SIZE=2 FACE=arial>"    
      var s2 = "<a href='javascript:self.close();'>Close</a><BR><BR>"
      popup = window.open("","GlobalHelp","height=400,width=500,resizable=yes, scrollbars=yes,dependent=yes,top=150,left=100")  
      popup.document.write(s1+s2+input9)  
      popup.document.close()
}
function MSelect(strType,strApp,StrMode,MsgSel)
{
      var strMsgID = document.form1.MType.value;
      //alert(strMsgID)      
      document.form1.action = "MessageDetail.asp?type="+strType+"&apply="+strApp+"&mode="+StrMode+"&MsgID="+strMsgID+"&MType="+strMsgID+"&Mflag="+"Yes"
      
      document.form1.submit()    
      //alert(strType + strApp + StrMode)
}  
</script>

Thanks,
0
 
LVL 8

Accepted Solution

by:
Barry62 earned 1000 total points
ID: 39162229
I am not running IE10, but in doing a bit of digging, it seems that some updates to IE10 have broken javascript.  

http://social.technet.microsoft.com/Forums/en-US/ieitprocurrentver/thread/d3867ae5-1d0d-4190-bad0-91e9afcff175/
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question