Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

JavaScript Works in IE but not in Firefox

Avatar of smaguire
smaguireFlag for Canada asked on
Web BrowsersScripting LanguagesJScript
6 Comments1 Solution662 ViewsLast Modified:
hi all, the java script code below is being called from an internal ASP.NET application, it works fine in IE but not in Firefox, it crashes without a specific error. Any idea?
thanks
Private Sub LstTask_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LstTask.SelectedIndexChanged

            Dim script As String

            script = "<script language='javascript'>"
            script += Environment.NewLine
            script += "window.opener.document.forms[0]." + Request.QueryString("src").ToString() + ".value = '"
            script += LstTask.SelectedItem.Value.ToString.Replace(Chr(13), "' + String.fromCharCode(13) + '")
            script += "';"
            script += Environment.NewLine
            'We have to replace the chr(13) with a return code that javascript understands
            script += "window.opener.document.forms[0]." + Request.QueryString("srcID").ToString() + ".value = '"
            script += lstProjectSubId.Items(LstTask.SelectedIndex).Value.ToString
            script += "';"
            script += Environment.NewLine
            script += "self.close()"
            script += Environment.NewLine
            script += "</" + "script>"
            'RegisterClientScriptBlock("return_value", script)
            ClientScript.RegisterClientScriptBlock(script.GetType, "return_value", script)

        End Sub
ASKER CERTIFIED SOLUTION
Avatar of smaguire
smaguireFlag of Canada image

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Commented:
This problem has been solved!
Unlock 1 Answer and 6 Comments.
See Answers