Showing questions tagged: اعرض كل الأسئلة
  • Locked
  • المُؤرشفة

Help... long running scripts have been crashing my browser for months now.

Long running scripts have been a constance daily occurrence every time I use my desktop computer since seems like forever. This is the latest one: chrome://calendar/conte… (read more)

Long running scripts have been a constance daily occurrence every time I use my desktop computer since seems like forever. This is the latest one: chrome://calendar/content/calendar-base-view.xml:198..... Not sure if they are all calendar scripts because I'm not always given any script info, just a non responding error message sometimes. I asked for help once before and tried what was suggested, as best I could, but I still have the aggravating problem just as often as ever. However, admittedly I'm not all that computer savy and am more of a user than I am a fixer. My browser is up-to-date and I also reloaded a new one recently. Add-ons are also disabled. Any help at all will be appreciated, thanks.

Asked by BJ 2 years ago

Last reply by BJ 1 year ago

  • حُلّت
  • المُؤرشفة

javascript void 0 error

Hi all, I have an error where i try to go to website this https://www.telstra.com.au/contact-us/plans-products/fixed-services#lp:2way when i click on chat now button, it… (read more)

Hi all,

I have an error where i try to go to website this https://www.telstra.com.au/contact-us/plans-products/fixed-services#lp:2way

when i click on chat now button, it does nothing. I have installed the latest firefox ver 76, whitelist this webstie, untick pop up block, install shockwave flash 32

even if i go directly to livechat link which that button suppose to go this: https://www.telstra.com.au/chatnow/landing?pageId=https%3a%2f%2flivechat.telstra.com%2fTCOM%3aCrowdsupport%3aConsumer

it still doesn't help because it simply show javascript void 0

anyone can help? thank you

Asked by ahupito1 1 year ago

Answered by cor-el 1 year ago

  • حُلّت
  • المُؤرشفة

javascript settimer broken FF 73.0

I have the following Javascript code which has been working for over 10 years and still works on Chrome, but does not work on FF 73.0 on Ubuntu Linux. ``` /**************… (read more)

I have the following Javascript code which has been working for over 10 years and still works on Chrome, but does not work on FF 73.0 on Ubuntu Linux.

```

/************************************************************************

*  timer														        *
*																		*
*  This timer is started whenever the user presses a key in the input	*
*  field and pops if 0.9 second passes without a new keystroke			*
************************************************************************/

var timer = null;

/************************************************************************

*  function onKeyDownName												*
*																		*
*  This method is called when a key is pressed in the Name field.		*
*  A timer is set so that when the user stops typing the selection		*
*  list is repopulated.												*
*																		*
*  Input:																*
*		event	if passed, event.keyCode identifies the key pressed		*
*				in older releases of Internet Explorer use window.event	*
************************************************************************/

function onKeyDownName(event) {

   if (timer)

clearTimeout(timer);

   timer	= setTimeout(update, 900);

} // function onKeyDownName

/************************************************************************

*  function update														*
*																		*
*  This method is called when the user stops typing to repopulate		*
*  the selection list based upon the current contents of the Name		*
*  field.  It is also the onchange method for the following fields:	*
*  'birthmin', 'birthmax', 'incMarried', 'includeParents',				*
*  'includeSpouse', and 'Sex', and it is called by the onchange		*
*  method for the field 'treeName'.									*
************************************************************************/

function update() {

   var	form	= document.nameForm;
   if (form)
   {		// form present

var url = "/FamilyTree/getIndivNamesXml.php"; ... code to complete url by appending values of elements from form // invoke script to obtain list of names for selection list HTTP.getXML(url, // see O'Reilly Javascript gotNames, noNames);

// clear out the old selection list while we are waiting var select = form.individ; select.options.length = 0;

// put a dummy entry at the top of the selection, otherwise // selecting the first name does not call onchange var name = '[choose an individual]'; var option = new Option(name, -1, false, false); option.innerHTML = '[choose an individual]'; select.appendChild(option);

   }		// form present
   else
       alert("nominalIndex.js:update: cannot find form");

} // function update ```


When I put alerts into nameOnKeyDown and update I see that nameOnKeyDown is called but update is never called.

You can see the above code in action at https://www.jamescobban.net/FamilyTree/nominalIndex.php?name=allenby,%20a&treename=&lang=en

This code has worked for over 10 years, and still is working today on Chrome, but the timer never pops on Firefox 73.0 on Ubuntu Linux 19.10.

Asked by jamescobban 1 year ago

Answered by Roland Tanglao 1 year ago