X
Tap here to go to the mobile version of the site.

Support Forum

my symfony website when i open in firfox textbox typing not proper working how to fix this issue?

Posted

Hello,

My website : js-dev.carpediemqm-dev.fr login with : xyz@gmail.com pass: aaa

after login in it will redirect to jobarea, in top menu you find profile click on that menu and try to enter any thing in text box .

Hello, My website : js-dev.carpediemqm-dev.fr login with : xyz@gmail.com pass: aaa after login in it will redirect to jobarea, in top menu you find profile click on that menu and try to enter any thing in text box .
Attached screenshots

Modified by nirav21189

Additional System Details

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.1; rv:57.0) Gecko/20100101 Firefox/57.0

More Information

FredMcD
  • Top 10 Contributor
4246 solutions 59404 answers

I tried your link and I got;

The owner of js-dev.carpediemqm-dev.fr has configured their website improperly.

I tried your link and I got; The owner of js-dev.carpediemqm-dev.fr has configured their website improperly.

Question owner

FredMcD said

I tried your link and I got; The owner of js-dev.carpediemqm-dev.fr has configured their website improperly.

This site is working perfectly https://js-dev.carpediemqm-dev.fr/ if it ask for advance mode do it and login by given login detail. Thanks

''FredMcD [[#answer-1046440|said]]'' <blockquote> I tried your link and I got; The owner of js-dev.carpediemqm-dev.fr has configured their website improperly. </blockquote> This site is working perfectly https://js-dev.carpediemqm-dev.fr/ if it ask for advance mode do it and login by given login detail. Thanks
user1929 72 solutions 290 answers

Hi,

When I type in the text box you mentioned, I can enter characters, but the page sometimes freezes for long periods of time. Is that what you're seeing?

The reason the page is freezing is because of this code:

    (function activityLog() {   
        var url = '/en/en-check-inactive-loggedin-user'
        var userid =79
        $.ajax({
            url: url,
            type: 'POST',
            async:false,
            data: {userid: userid},
            success: function (data) {
                obj = JSON.parse(data);
                if (obj.success == true) {
                    $('#online_status').html('');
                    $('#user_offline').addClass('active');
                    $('#user_online').removeClass('active');
                }
                if (obj.success == false) {
                   
                }
            },
            complete: function () {
                setTimeout(activityLog, 1000);
            }
        });
    })();

Every one second, you're calling the activityLog() function, which sends an AJAX request to your server. The problem is that you have "async: false" set, which will make the request synchronous. This means that the page will completely freeze from the time you call this function to whenever your server returns a response, which can be several seconds long (and this isn't a Firefox issue, you can see the same thing in other browsers). To fix this, you would need to make the request asynchronous, so that the request can happen in the background without freezing the page.

BTW, I left your site open for a couple of minutes, and noticed that your site is sending several requests a second to your server for as long as your page is open, which I'm guessing isn't the intended behavior and which wil make your server pretty slow. You might want to look into reducing the frequency of some of these calls.

Hi, When I type in the text box you mentioned, I can enter characters, but the page sometimes freezes for long periods of time. Is that what you're seeing? The reason the page is freezing is because of this code: <pre> (function activityLog() { var url = '/en/en-check-inactive-loggedin-user' var userid =79 $.ajax({ url: url, type: 'POST', async:false, data: {userid: userid}, success: function (data) { obj = JSON.parse(data); if (obj.success == true) { $('#online_status').html('<i class="material-icons">&#xE5C9;</i>'); $('#user_offline').addClass('active'); $('#user_online').removeClass('active'); } if (obj.success == false) { } }, complete: function () { setTimeout(activityLog, 1000); } }); })(); </pre> Every one second, you're calling the activityLog() function, which sends an AJAX request to your server. The problem is that you have "async: false" set, which will make the request synchronous. This means that the page will completely freeze from the time you call this function to whenever your server returns a response, which can be several seconds long (and this isn't a Firefox issue, you can see the same thing in other browsers). To fix this, you would need to make the request asynchronous, so that the request can happen in the background without freezing the page. BTW, I left your site open for a couple of minutes, and noticed that your site is sending several requests a second to your server for as long as your page is open, which I'm guessing isn't the intended behavior and which wil make your server pretty slow. You might want to look into reducing the frequency of some of these calls.