[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

JQuery Internet explorer not working..

Posted on 2010-03-30
2
Medium Priority
?
726 Views
Last Modified: 2013-12-08
Hi Experts,

I have a spark/asp.net mvc 1/Jquery site and my jquery widgets are working in all browsers but IE. I am using IE 8 and it is missing all the text box drag dialogs, buttons not running all scripts etc.

Here are some snippets of what is working and what is not working:

H
ere is an example of a method not working:

<input type="button" value="Nu" onclick="SetDateTimeNow();"/>
<input id="RecordDate" name="RecordDate" type="text" />
<input id="RecordTime" name="RecordTime" type="text" value="" />
.....
    function SetDateTimeNow() {
        $("input#RecordTime").attr("Value", GetCurrentTime());
        $("input#RecordDate").attr("Value", GetCurrentDate());
    }

    function GetCurrentDate() {
        var currentDate = null;
        currentDate = "30/03/2010";
        return currentDate;
    }
 
    function GetCurrentTime() {
        var currentTime = null;
        currentTime = "11:04";
        return currentTime;
    }
 


here is an example of a method that is working;

<input type="button" value="Clear" onclick="ClearInputFields();"/>
.....


function ClearInputFields() {
        $("input#RecordTime").attr("Value", "");
        $("input#RecordDate").attr("Value", "");
        ....
    }

Open in new window

0
Comment
Question by:critto
  • 2
2 Comments
 

Author Comment

by:critto
ID: 29074279
In addition... the method is firing through in IE developer window, it's just not assigning the text value to the input box which is what i need to happen on a click. the clear function clears the value though.
0
 

Accepted Solution

by:
critto earned 0 total points
ID: 29074723
Never mind.... I found the problem:

$("input#RecordTime").val(GetCurrentTime());


I found it here:

http://stackoverflow.com/questions/295095/how-do-i-set-a-textboxs-value-using-an-anchor-with-jquery
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Question has a verified solution.

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

This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
Each password manager has its own problems in dealing with certain websites and their login methods. In Part 1, I review the Top 5 Password Managers that I've found to be the best. In Part 2 we'll look at which ones co-exist together and why it'…
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses
Course of the Month11 days, 11 hours left to enroll

640 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