Jump to content

Recommended Posts

Posted

I moved script renders to the bottom of the layout page because drop down in reports is not working. 

scripts bottom lo unte maa teammate chese inko page lo submit button work avvatledhu .

  @Scripts.Render("~/bundles/modernizr")
    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/jqueryval")
    @Scripts.Render("~/Scripts")
    @RenderSection("scripts", required:=False)

naku chala isues vosthunnayi. any other way to get the fields in dropdown by keeping scripts at the top. 

            <script type="text/javascript">

            $('#reportType').change(function () {

               
                var selectedID = $(this).val();

                if (selectedID == -1) {
                    $('#partialPlaceHolder').hide();
                    return;
                }
              

                if (selectedID == 5) {
                    $.ajax({
                        type: "GET",
                        url: '@Url.Action("Search", "Maintenance")',
                        data: 'id=' + selectedID,
                        dataType: "html",
                        success: function (data) {
                            /* data is the pure html returned from action method, load it to your page */
                            $('#partialPlaceHolder').html(data);
                            /* little fade in effect */
                            $('#partialPlaceHolder').show();
                        }
                    });
                }
                else if (selectedID > 0) {
                    if (!$("#SearchReports").valid()) {

                        $('.error').remove();
                    }
                    $("#SearchReports").submit();

                }
              
            });
            </script>
 

Posted
1 minute ago, Duryodana said:

neku job lo sahayam sesinodiki salary lo sahayam sestava %$#$

sesedhanu.. naku paraksy lu , sapota lu leru.. andhuke aduguthanu.. naipunyulani ..

theliyani vallaki kuda thelusthadhi kadha elanti issues vocchinapudu 

Posted

rendering scripts ala ne unchi...

neku kavalsina fucntionality.. page load lo rasuko... 

$(document).ready(function(){

// your code

});

Posted
5 minutes ago, Biskot said:

rendering scripts ala ne unchi...

neku kavalsina fucntionality.. page load lo rasuko... 


$(document).ready(function(){

// your code

});

yes kaka. I tried. Document.ready lo rasthe menu options chupinsthundhi .but second time menu option change ayithe work avvatledhu

Posted
7 minutes ago, Crazy_Robert said:

yes kaka. I tried. Document.ready lo rasthe menu options chupinsthundhi .but second time menu option change ayithe work avvatledhu

try this

$(document).on('change','#reportType',function(){

//your code

});

Posted
4 minutes ago, Biskot said:

try this

$(document).on('change','#reportType',function(){

//your code

});

same issue

 

Posted
49 minutes ago, Biskot said:

try this

$(document).on('change','#reportType',function(){

//your code

});

'change' aa 'ready' aa

$( document ).on( 'ready', function () {

sCo_^Y

Posted
1 hour ago, Crazy_Robert said:

I moved script renders to the bottom of the layout page because drop down in reports is not working. 

scripts bottom lo unte maa teammate chese inko page lo submit button work avvatledhu .

  @Scripts.Render("~/bundles/modernizr")
    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/jqueryval")
    @Scripts.Render("~/Scripts")
    @RenderSection("scripts", required:=False)

naku chala isues vosthunnayi. any other way to get the fields in dropdown by keeping scripts at the top. 

            <script type="text/javascript">

            $('#reportType').change(function () {

               
                var selectedID = $(this).val();

                if (selectedID == -1) {
                    $('#partialPlaceHolder').hide();
                    return;
                }
              

                if (selectedID == 5) {
                    $.ajax({
                        type: "GET",
                        url: '@Url.Action("Search", "Maintenance")',
                        data: 'id=' + selectedID,
                        dataType: "html",
                        success: function (data) {
                            /* data is the pure html returned from action method, load it to your page */
                            $('#partialPlaceHolder').html(data);
                            /* little fade in effect */
                            $('#partialPlaceHolder').show();
                        }
                    });
                }
                else if (selectedID > 0) {
                    if (!$("#SearchReports").valid()) {

                        $('.error').remove();
                    }
                    $("#SearchReports").submit();

                }
              
            });
            </script>
 

dorikinda solution leda inthaki ch.thumb.gif.6d7eb62c38b6520a4bff3da3e56

Posted
52 minutes ago, Biskot said:

try this

$(document).on('change','#reportType',function(){

//your code

});

my bad ready kaadu anukunta

older versions lo .live ani undedi mari ippudu dani equivalent endo

Posted
4 minutes ago, alooparata said:

dorikinda solution leda inthaki ch.thumb.gif.6d7eb62c38b6520a4bff3da3e56

try chesthunna.. group projects tho idhe issues

Posted
Just now, Crazy_Robert said:

try chesthunna.. group projects tho idhe issues

usually chaala varaku jquery issues ki solutions easy ga dorukuthay online lo, stackoverflow choosinava ch.thumb.gif.6d7eb62c38b6520a4bff3da3e56

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...