Help Desk Software & Beyond
May 17, 2012, 05:55:11 AM *
Welcome, Guest. Please login or register.
To post messages you need to register. We apologize for inconvenience, but this is to prevent spam.
Registration is instant (no email verification) and we do not ask for any personal information.

Login with username, password and session length
News: Welcome to Help Desk Software forum!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Page cannot be displayed errors due to JS settimeout method of update  (Read 506 times)
arvin
Sr. Member
****

Karma: 10
Posts: 400


Yeah thats right !


View Profile
« on: September 02, 2011, 11:07:02 AM »

Hello,

Recently, I have been dealing with "page cannot displayed errors" while using ttx and have been working with my service provide to resolve the issue.  Our service providing is stating the following....

Quote
This site is using JS settimeout method of update, and reload all page with HTML request.

function setrefreshrate(tmout) {
if (htimeout != null) {
clearTimeout(htimeout);
htimeout = null;
}
if (tmout > 0) {
htimeout = setTimeout(update, tmout * 1000);
}
}

This method needs 100% quality of connection, if there will just one 0.5 sec disconnect during connection - page will fault.

I recommend to update refreshing part, using ajax methods or provide tcptraceroute log for determine issue.


The above mention code resides in the helpdesk.html template at line 23.

Are there any recommendations/modifications available for this piece of code that will help?

Thank you in advance

Arvin 
Logged
Sparky
Moderator
Hero Member
*****

Karma: 83
Posts: 2,228


stop pushing all those buttons


View Profile
« Reply #1 on: September 02, 2011, 11:15:02 AM »

I've been toying with rewriting the entire front-end of TTX using jQuery and updated graphics including using ajax modal dialogs to replace all the pop-up windows.  All this to enhance the users' experience and modernize the client-side HTML, CSS & JS.

That said, I wouldn't necessarily mess with something that's not broken.

Remind your service provider that thousands of people use TTX and you (Arvin) are the very first one to report such an issue in this Support Forum.

If you still want to pursue it from the TTX side, then present it to Alex at his Helpdesk to see what he thinks.
Logged

Did you update the paths in ttxcfg.cgi after moving TTX to your new location?   Undecided
To those seeking help.... please report back when you figure it out.  Cheesy
Alex
Administrator
Hero Member
*****

Karma: 22
Posts: 605



View Profile WWW
« Reply #2 on: September 02, 2011, 11:29:26 AM »

JavaScript settimeout() fails due to connection quality??? I used to believe that settimeout() does not require internet connection at all.   Just grab any sample here

http://www.w3schools.com/js/js_timing.asp

create a local html page (or a page on your server), load the page in your browser, disconnect your computer from network and watch the page to continue operate as prescribed.

I assume your provider referred to update function referred by settimeout(), but keep in mind that the code instructs your browser to access a web page the same way it does when you submit a Search button, which uses the same algorithm and TCP/IP stack that easily survives mild to severe network problems.

Logged

Follow me on: LinkedIn
Sparky
Moderator
Hero Member
*****

Karma: 83
Posts: 2,228


stop pushing all those buttons


View Profile
« Reply #3 on: September 02, 2011, 11:34:53 AM »

JavaScript settimeout() fails due to connection quality??? I used to believe that settimeout() does not require internet connection at all.

Yes, of course, that too.  JavaScript is "client-side" code... no network required.
Logged

Did you update the paths in ttxcfg.cgi after moving TTX to your new location?   Undecided
To those seeking help.... please report back when you figure it out.  Cheesy
arvin
Sr. Member
****

Karma: 10
Posts: 400


Yeah thats right !


View Profile
« Reply #4 on: September 02, 2011, 03:15:47 PM »

Wow !

Thank you for the replies guys ! .... in all honesty ... I don't think its TTX coding issue ...I think its service provider issue.  The reason I say that is ...

1 - we've been ttx for 3 yrs now and its been flawless  Grin
2 - every time we have had an issue in the past ...its been the SP's fault  Roll Eyes

Its funny that the issue this were resolved by a a mysterious fix applied by the SP ....

At the end of the day ... Screw the SP! and I still love TTX!

Cheers everyone! and thank you again

Arvin
Logged
Sparky
Moderator
Hero Member
*****

Karma: 83
Posts: 2,228


stop pushing all those buttons


View Profile
« Reply #5 on: September 02, 2011, 03:33:52 PM »

Screw the SP!

Check your PM Inbox then.   Wink
Logged

Did you update the paths in ttxcfg.cgi after moving TTX to your new location?   Undecided
To those seeking help.... please report back when you figure it out.  Cheesy
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1 RC3 | SMF © 2001-2006, Lewis Media Valid XHTML 1.0! Valid CSS!
Page created in 0.025 seconds with 18 queries.