Forum Replies Created
- AuthorPosts
Hirendra Sisodiya
KeymasterHello,
Full-screen playback is not currently part of the HTML5 specification. However most of the popular browser support full-screen playback.
I would suggest you to use gif version if video is small.
November 19, 2015 at 12:18 pm in reply to: How to retrieve 3rd Max salary from a table in sql server? #5151Hirendra Sisodiya
KeymasterSimple use sql query like as:
SELECT TOP 1 Empsalary FROM ( SELECT DISTINCT TOP 3 Empsalary FROM tblemployee ORDER BY Empsalary DESC) a ORDER BY Empsalary
You can get nth highest number or salary from the above query.
Hirendra Sisodiya
KeymasterYou should look into browser’s console and fix the issue if any error is present there related to canvas or img object. Check your image source path.
Good Luck.
Hirendra Sisodiya
KeymasterYou can easily find the ambiguous match on the affected .aspx page by ‘Check Accessibility’ option (Just right click on that .aspx page). Dialog model box will open, check all options and click ok button. You can find warning or error with the exact element name which is raising ambiguous match error.
Thanks
September 2, 2014 at 9:59 am in reply to: Switch all jquery ui date pickers to normal html input on button click #5070Hirendra Sisodiya
KeymasterIf you have several date time pickers then you need to use the class selectors to remove data time picker functionality to all input controls.
$(".txtDate").datepicker("destroy");
Hirendra Sisodiya
KeymasterIn the below I am explaining you in the context of integer.
Suppose you have the string ‘i’ and you use the Int32.Parse method converts the string ‘i’ then the following results will be:
When i is a null reference, it will throw ArgumentNullException.
If i is other than integer value, it will throw FormatException.
When i represents a number less than MinValue or greater than MaxValue, it will throw OverflowException.And now I use the Convert.ToInt32 method then the following results will be:
When ‘i’ is a null reference, it will return 0 rather than throw ArgumentNullException.
If ‘i’ is other than integer value, it will throw FormatException.
When ‘i’ represents a number less than MinValue or greater than MaxValue, it will throw OverflowException.When I use the TryParse method then the results will be:
When ‘i’ is a null reference, it will return 0 rather than throw ArgumentNullException.
If ‘i’ is other than an integer value, the out variable will have 0 rather than FormatException.
When ‘i’ represents a number less than MinValue or greater than MaxValue, the out variable will have 0 rather than OverflowException.thanks
April 30, 2014 at 9:26 am in reply to: OnSelectedIndexChanged event is not firing of the asp.net dropdown list #4966Hirendra Sisodiya
KeymasterI think you have the same value of all options. So why selected index event is not working properly.
Hirendra Sisodiya
KeymasterYou can use the following code:
var rows = $(“#tblLoop”)[0].find(‘tr’);
if ($(rows).length != 0) {
for (var j = 0; j < $(rows).length; j++) { // do somthing } }April 15, 2014 at 12:59 pm in reply to: Regx for the currency up two decimal point in JavaScript #4933Hirendra Sisodiya
Keymasteryou can validate the input string as decimal up to two numbers like:
function j_is_Currency(s) { var pat = /^[$]?\d{1,10}([.]\d{2})?$/; if (s.length > 0) { var matchArr = s.match(pat); if(matchArr==null) return false; } return true; }
Hirendra Sisodiya
KeymasterYou can use fadeToggle() jquery method to show and hide the div with fade effect.
$('#panel1,#panel2').hide(); $('#btn1').click(function(){ $('#panel1').fadeToggle( "slow", "linear" ); }); $('#btn2').click(function(){ $('#panel2').fadeToggle( "slow", "linear" ); });
April 14, 2014 at 12:11 pm in reply to: Show the currency sign before total field in JavaScript #4923Hirendra Sisodiya
KeymasterYou can use this just after assigning the total to the field:
document.getElementById("btnTotal").innerHTML = formatCurrency(document.getElementById("btnTotal").innerHTML.replace('$', ''));
hope it will help.
February 24, 2014 at 12:15 pm in reply to: How to Make selected second tab in jQuery Accordian widget #4805Hirendra Sisodiya
KeymasterThere is a option to set the active index of the tabs. Change you accordian method as:
$("#accordion").accordion({ autoHeight: false, event: "mousedown", active: 1 });
Remember that the ‘active’ is zero index based option
November 20, 2013 at 8:57 am in reply to: Disabled attribute of drop-down list is not working with IPAD #4644Hirendra Sisodiya
Keymaster‘disabled’ attribute does not work on the safari ipad.
But i have a possible solution however i am not confirm about its correctness but you can try:
Suppose you have the four option as you mentions in your query and user can able to select only first option rest of all will be disabled.
in the below example i am not using the disabled attribute. i am just using the .change event of the dropdown.
[code title=”html”]
[/code]let me know if it is not working
thanks
Hirendra Sisodiya
KeymasterYou can also use the for loop over the rows of the grid.
[code title=”JavaScript”]var grid = document.getElementById(“<%= grdRecord.ClientID %>“);
if (grid.rows.length > 0) {for (i = 1; i < grid.rows.length; i++) {var inputs = grid.rows[i].getElementsByTagName('input'); if (inputs[0].checked = true) {// Write your logic here } }[/code]
Hirendra Sisodiya
KeymasterYou can use the jquery like the following:
[code title=””] var $checkedCheckBoxes = $(‘#GridView1’).find(“input:checkbox:checked”);[/code]however you need to clarify more your question.
- AuthorPosts