Hirendra Sisodiya

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 35 total)
  • Author
    Posts
  • in reply to: Set video on my website home page #5219

    Hello,

    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.

    in reply to: How to retrieve 3rd Max salary from a table in sql server? #5151

    Simple 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.

    in reply to: How to display an Image in Canvas ? #5147

    You 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.

    in reply to: Ambiguous match found #5146

    You 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

    If 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");

    in reply to: Parse vs TryParse vs ConvertTo in C# #5065

    In 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

    I think you have the same value of all options. So why selected index event is not working properly.

    in reply to: For loop for the all rows in the html table #4934

    You 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 } }

    in reply to: Regx for the currency up two decimal point in JavaScript #4933

    you 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;
    }
    in reply to: how to jquery Show and hide div on the button click #4925

    You 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" );
    });
    in reply to: Show the currency sign before total field in JavaScript #4923

    You 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.

    in reply to: How to Make selected second tab in jQuery Accordian widget #4805

    There 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

    in reply to: Disabled attribute of drop-down list is not working with IPAD #4644

    ‘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

    in reply to: how to get checkbox value in gridview in javascript #4625

    You 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]

    in reply to: how to get checkbox value in gridview in javascript #4624

    You 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.

Viewing 15 posts - 1 through 15 (of 35 total)