Announcement

Collapse
No announcement yet.

Opera Issue and Solution (Maybe)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Opera Issue and Solution (Maybe)

    I've recently began using the Opera browser and quickly found a problem with the recipe display page (as mentioned in an older thread). I get multiple +/- and bullet images, sometimes continually appearing (about 2 a second until I close the page). Obviously this makes viewing the recipes a little more challenging...

    The issue seems to be that the makeTrees() function is being called multiple times on the Opera browser. I would guess that this article would explain it as being something related to the addevent() function, although I haven't explored this further.

    As for a quick solution, just making sure that makeTrees() only runs once a session seems to be enough in some quick tests, eg:
    Code:
    var OnlyRunOnce = 0;
    
    function makeTrees () {
    	if (OnlyRunOnce > 0) {
    		return;
    	}
    	OnlyRunOnce = 1;
    ...
    I did this all pretty quick so I'd do a few more tests before deciding the best way of fixing it that doesn't break anything.
    Reorx Holybeard, 75th Dwarven Cleric of Brell (Tunare), Lord of Unrest, Bane of the Undead, Drinker of Ale...
    Dougann Redhammer, 75th Dwarven Rogue (Tunare)

  • #2
    This is a Ngreth or maybe a Kyros thing - going to make sure they see it.
    Retiree of EQ Traders...
    Venerable Heyokah Verdandi Snowblood
    Barbarian Prophet & Hierophant of Cabilis
    Journeyman Artisan & Blessed of Brell
    EQ Players Profile ~ Magelo Profile


    Smith Dandi wipes her sooty hands on her apron and smiles at you.

    Comment


    • #3
      I'll try to remember to play with this on the weekend. I need to download Opera and figure out its debugging features, though, so I can see what's going on.
      Sir KyrosKrane Sylvanblade
      Master Artisan (300 + GM Trophy in all) of Luclin (Veeshan)
      Master Fisherman (200) and possibly Drunk (2xx + 20%), not sober enough to tell!
      Lightbringer, Redeemer, and Valiant servant of Erollisi Marr

      Comment


      • #4
        Any update on this

        Hiya,

        just saw this post and wondered if there was an update on this? Because it still happens .

        -Al

        Comment


        • #5
          Aha, so that explains why I have Opera installed on my browser! I knew I installed it for something to do with EQTC, but for the life of me, I couldn't remember what.

          I'm going to be busy this weekend, but time permitting, I'll look into it in the next week or two.
          Sir KyrosKrane Sylvanblade
          Master Artisan (300 + GM Trophy in all) of Luclin (Veeshan)
          Master Fisherman (200) and possibly Drunk (2xx + 20%), not sober enough to tell!
          Lightbringer, Redeemer, and Valiant servant of Erollisi Marr

          Comment


          • #6
            Originally posted by Reorx View Post
            I've recently began using the Opera browser and quickly found a problem with the recipe display page (as mentioned in an older thread). I get multiple +/- and bullet images, sometimes continually appearing (about 2 a second until I close the page). Obviously this makes viewing the recipes a little more challenging...

            The issue seems to be that the makeTrees() function is being called multiple times on the Opera browser. I would guess that this article would explain it as being something related to the addevent() function, although I haven't explored this further.

            As for a quick solution, just making sure that makeTrees() only runs once a session seems to be enough in some quick tests, eg:
            Code:
            var OnlyRunOnce = 0;
            
            function makeTrees () {
            	if (OnlyRunOnce > 0) {
            		return;
            	}
            	OnlyRunOnce = 1;
            ...
            I did this all pretty quick so I'd do a few more tests before deciding the best way of fixing it that doesn't break anything.
            Does Java have global variables like that? I frankly forget...
            Ngreth Thergn

            Ngreth nice Ogre. Ngreth not eat you. Well.... Ngreth not eat you if you still wiggle!
            Grandmaster Smith 250
            Master Tailor 200
            Ogres not dumb - we not lose entire city to froggies

            Comment


            • #7
              Originally posted by Ngreth Thergn View Post
              Does Java have global variables like that? I frankly forget...
              Short answer, yes, you can have class variables, which are visible within the scope of the class. Somewhat longer answer: no, not across multiple classes, but you can fake that with static variables or Properties or singletons.
              Last edited by Doremi; 10-01-2007, 11:10 AM.
              Muse Doremi Fasolatido, 99.4% retired
              Magelo || AllaKhazam

              Comment

              Working...
              X