X
點擊此處開啟此網站的行動版。

技術支援討論區

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

已張貼

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 .
附加的畫面擷圖

由 nirav21189 於 修改

額外的系統細節

應用程式

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

更多資訊

FredMcD
  • Top 10 Contributor
4224 個解決方法 58931 個答案

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.

提出問題者

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 個解決方法 290 個答案

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.