everytime the user selects a date from my datepicker the for some reason instead of staying focused on the are the date picker is in it scrolls to the top of the page.
Heres the function located at the bottom of my asp.net page under the
and also on postback my datepickers stop working. For example i have a dropdownlist that causes postback and if the user uses the drop downlist then the datepickers stop working
As you can see, the above checks to see if a task has an id > 0 (we're not creating a new one) if it does, it uses the date on the task, if not it defaults to today. I would expect the datepicker UI element to show up, but instead I get:
"Microsoft JScript runtime error: Object doesn't support this property or method" on the $("#dDueDate").datepicker();
It is probably a very simple mistake, so don't over-analyze. As I said, this is the first time I've dealt with MVC or JQuery so I'm lost as to where to start.
in a page of my asp.net mvc website jquery not worked. when i test the html source then i see the jquery script is not writtenonly one master page to load all jquery on every page .so where my jquery. when i debug my jquery then error found $ is not definedoff course it come because jquery not load
I have a JQuery select component and a javascript function to handle the stop event:
[code]....
The script works fine in firefox and chrome but not in IE7/8. It is normally supposed to send a string to the openid_identifier textbox once the google or yahoo select box is clicked.
and on change of this dropdownlist i check if the its text equal to a string i show the 2 tr as below
function ValidateCity() { if ($('#<%= citiesDropDownList.ClientID %> :selected').text() == identity_CityOther) { $('#<%= otherCityTR.ClientID %>').show(); $('#<%= areasTR.ClientID %>').show(); } var city = $('#<%= citiesDropDownList.ClientID %>').val(); return IsValid((city.length != 0), '#<%= cityDiv.ClientID %>', identity_CityRequired); }
.show() isn't work at all and i don't the reason .. can any lead me to get the problem?
FYI : I tried $('#<%= otherCityTR.ClientID %>').show('slow'); and also $('#<%= otherCityTR.ClientID %>').css('visibility', 'visible'); but it doesn't work also.
The problem is, the binding '<%= JOB_CODETextBox.ClientID %>' doesn't work, it returns the same binding expression after renderign instead of replace it with the actual client id!
I have a small problem, I have a page which 4 jQuery modal popups. everything works fine, all the popup comes up however when i click on the button inside the jQuery popup nothing happens. I cannot figure out why.
When Page_Load is running the first time, I set Image 1.jpg to the HTML control with sucess!When Page_Load is running the second time, the Image 2.jpg is Not set to the same HTML control?This even that it should though I use a MessageBox to se that the C# code is running that should set 2.jpg to the control
I have a little problem with my sliding panels, I have a Page with 2 sliding panels (right and left). These panels have a 'slide button' and you can reduce panels by clicking on it. I use cookies to record state of panel, so when you change page panels stay collapsed or extended. But it doesn't work very well, in fact the state is recorded for the page. If I change page, panel will extend (default position) but if I go back on the page it will disapear. Is it possible to ignore the path in the cookie and use a cookie for all website? Jquery code :
$('#rightfold').click(function () { if ($('.menudroite').is(':visible')) { $('.menudroite').hide("slide", { direction: "right" }, 400); $.cookie('rightfold', 'collapsed'); $('.triggerdroite').animate({ backgroundColor: "#B2C9D1" }, 1000); $('#rightfold').animate({ color: "#000000" }, 1000); } else { $('.menudroite').show("slide", { direction: "right" }, 400); $.cookie('rightfold', 'extended'); $('.triggerdroite').animate({ backgroundColor: "#6c7a7f" }, 1000); $('#rightfold').animate({ color: "#d9f4ff" }, 1000); } }); $('#leftfold').click(function () { if ($('.menugauche').is(':visible')) { $('.menugauche').hide("slide", { direction: "left" }, 400); $.cookie('leftfold', 'collapsed'); $('.triggergauche').animate({ backgroundColor: "#B2C9D1" }, 1000); $('#leftfold').animate({ color: "#000000" }, 1000); } else { $('.menugauche').show("slide", { direction: "left" }, 400); $.cookie('leftfold', 'extended'); $('.triggergauche').animate({ backgroundColor: "#6c7a7f" }, 1000); $('#leftfold').animate({ color: "#d9f4ff" }, 1000); } }); // COOKIES var leftfold = $.cookie('leftfold'); var rightfold = $.cookie('rightfold'); // Set the user's selection for the left column if (leftfold == 'collapsed') { $('.menugauche').css("display", "none"); }; // Set the user's selection for the right column if (rightfold == 'collapsed') { $('.menudroite').css("display", "none"); };
I am drawing a grid using HTML and each tr element has it's own id. I want to be able to remove a tr on a button click, but not have to redraw the whole grid to show that the row has been deleted. I can do this using .hide(), but the problem is that I need to call a function to stripe my rows after, and since the row is still considered there, the striping doesn't work properly.
I've added routes to my asp.net 4 website so that, for example the page: "~/Main/About/Careers.aspx" is mapped to the url: [URL] I'm using jquery to make an ajax call and it simply does not work after I've added the routing, I used the following code, and it remains stuck on the spinner image:
I'm trying to generate jquery vertical tabs using jquery template. I use this code :
[Code]....
Everything works greate on Firefox, Chrome, Opera and Safari but in IE this code doesn't work. When i looked on html source i saw that in IE instead on
[Code]....
I get
[Code]....
Because of this jqury vertical tabs doesn't work on IE.
I created a .NET user control to work as a DropdownCheckbox and added Jquery to give the sliding and hide effects. The code is as below:
[Code]....
This control works fine in a normal page, but once I put it inside an update panel it doesn't work. Is there a work around or simply I can't use JQuery inside update panel?
I've a dataentry screen where I've to give the users aprovision to enter date and for doing that I've used a DatePicker control. The problem is when I'm clicking on the next/prev button to change the month of the calender, the calender is not staying on the screen. So in order to select other month the user has to re click on the button. find below the stepwise description of the problem I'm facing.
1. I click on the calender icon and the calender popps up.
2. Now user tries to navigate months (i.e June to July or June to May) using Next/Prev button of the Calender Control.
3. When Navigating from current month to next/prev month I want the calender to be shown on the screen but actually on click of the Next/Prev button one postback is happening hence I'm loosing the calender from the screen as the calender is loaded again.
4. I'm getting the selected date using onselectedChange event handler.
5. The users will have to click the button again if he wants to navigate to another month.
Is there any way to keep the calender on the screen during the month got changed.
I have this date value fetch from a Controller but when I use jQuery Datepicker with validation, the output is not good.The validation is to check if the value is less than or greater than today's date. JQuery Datepicker works well.If I select a date two days from now using datepicker, the validation error won't occur. [:(]
I am new for Jquerry,I have a user control with a Jquerry calender control,but i am geting "Microsoft JScript runtime error: Object expected" this error when i m trying to add in .aspx page.