Welcome to WebmasterWorld Guest from 54.147.217.76

Forum Moderators: open

Message Too Old, No Replies

Googles Highlight Crashes Website

   
10:51 am on Apr 5, 2003 (gmt 0)

10+ Year Member



I recently installed the Google Toolbar, and when I go to my site and have the search Highlight button on it crashes my website. Why does this happen?
11:05 am on Apr 5, 2003 (gmt 0)

WebmasterWorld Senior Member rfgdxm1 is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Could you please be a little less vague and give more specifics? I'm all kinds of sure the Google Toolbar can't take out web servers. ;)
11:42 am on Apr 5, 2003 (gmt 0)

10+ Year Member



I was hoping I could get some possible reasons for it.

At the time of it happening I'm mouseovering a button which slides out. As it slides out it shows some text about the button.

The text is created in HTML on my index page, and JS in the rest, and Google crashes my site in all pages.

The mathematics for the eqation to bring the button out takes alot of processing. I found a problem when using the area map above moving objects. The area map mouseover would trigger over,out,over,out repeatedly as the object underneath moved. So I told it to spend 1ms on the equation to come out and 50ms on the equation to go in onMouseover, and 50ms to come out and 1ms to go in onMouseout. The whole equation controls up to 8 sliders.

Is Google working constantly in the background? There could be a problem there.

11:48 am on Apr 5, 2003 (gmt 0)

10+ Year Member



Markdidj,

If your menu is written in javascript, the code is running locally in your browser, not on the server.
When you said "crashing the website", you probably meant "crashing the browser", no?

Dan

[edited by: hetzeld at 11:49 am (utc) on April 5, 2003]

11:49 am on Apr 5, 2003 (gmt 0)

10+ Year Member



here's the equation;

posArray=new Array(105,105,105,105,105,105,105,105,105)
timerL=new Array; timerR=new Array
function moveleft(slnol) { if(menustate==1) {
bring4wrd(button[slnol]);
if (posArray[slnol]>15) { posArray[slnol]=posArray[slnol]-10;
wid=110-posArray[slnol]
document.getElementById("imgsl"+slnol).style.left=posArray[slnol];
document.getElementById("imgsl"+slnol).style.width=wid;
timerL[slnol]=setTimeout("moveleft("+slnol+")",2)}} }
function moveright(slnor) { if(menustate==1) {
if (posArray[slnor]<105) { posArray[slnor]=posArray[slnor]+10;
wid=110-posArray[slnor]
document.getElementById("imgsl"+slnor).style.left=posArray[slnor];
document.getElementById("imgsl"+slnor).style.width=wid;clearTimeout(timerL[slnor])
timerR[slnor]=setTimeout("moveright("+slnor+")",50)}}}

the trigger;
onMouseover(moveleft(buttonNumber))
onMouseout(moveright(buttonNumber))

11:51 am on Apr 5, 2003 (gmt 0)

10+ Year Member



Nah, I said crashing my site. I didn't say server or browser. My site stops when Googles Highlight is on.
Any Idea's?
11:58 am on Apr 5, 2003 (gmt 0)

WebmasterWorld Administrator brotherhood_of_lan is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



Crashing your site? The toolbar is part of your browser and only reads the source code that's delievered to the browser. AFAIK as soon as a page is requested from your server by a user-agent (like your browser) then your webservers role is done and dusted.

Just as a sidenote, on some valid XHTML and highlighting some terms, taking the highlighting up breaks the source code of some of my hyperlinks into 2 links instead of 1. 'course, I didn't write it that way, it's just the toolbar messing with my source to highlight it for visual aid.

mark, the words that you highlight, are they easily read in the source code? i.e. not javascript made or anything, just plain vanilla text ready for highlighting.

12:09 pm on Apr 5, 2003 (gmt 0)

10+ Year Member



yep. all HTML text is only relevent to the page.

The JS text is a small description of other pages, written in JS for two reasons,

I don't have to reapetedly write it in HTML for up to 8 pages,
If it was in all 8 pages it would be seen as common content.

? I haven't a clue why its not working. I installed it and went straight to my site. I was hoping to find someone that's had, or heard of, a similar problem.

12:18 pm on Apr 5, 2003 (gmt 0)

10+ Year Member



And it doesn't matter if the keyword is in the JS text being made visible.

Could it be that the highlight is trying to read the new text brought in by JS?

12:32 pm on Apr 5, 2003 (gmt 0)

WebmasterWorld Administrator brotherhood_of_lan is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



>>read the new text brought in by JS?

I've not seen a thread here about problems, though I was thinking along the same lines. If google can change the way my links highlight on IE after highlighting I assumed it was re-arranging the source code of the page to re-render it.

Just thought that the words you wanted to highlighted were minced inside that JS, though what you suggest sounds just as likely.

Safe to say it's not your website but your browser (or the toolbar for that matter).

12:45 pm on Apr 5, 2003 (gmt 0)

10+ Year Member



My first thought was the same, so I tested it and made sure I didn't trigger the link that had the keyword in it. And it had the same affect, crashing my browser.

It seems like Highlight is interupting the equation of my menu slider.

12:49 pm on Apr 5, 2003 (gmt 0)

WebmasterWorld Administrator brotherhood_of_lan is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



try stripping the javascript, highlight the terms and see what happens?
1:19 pm on Apr 5, 2003 (gmt 0)

10+ Year Member



Turn Javascript off? Or take it from the site? Can't take it from the site, it's the main navigation process. If I take it from the site it gets replaced by an iFrame menu, and a basic view of my site. This is how Google should see it.
1:33 pm on Apr 5, 2003 (gmt 0)

WebmasterWorld Administrator brotherhood_of_lan is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



Didn't mean to sacrifice it ;) Just to test to see if the browser crashes without the code.

If it does - at least you know that it's the fault of that bit of code and the toolbar.

Perhaps there's an alternative to your script that doesnt crash the browser but does the same job.

1:45 pm on Apr 5, 2003 (gmt 0)

10+ Year Member



Do you think it could just be the slider function then? when you rollover it it does show alot of activity (the curser changes frantically).

It shouldn't be about the JS content?

Thanks for your help guys.

1:51 pm on Apr 5, 2003 (gmt 0)



A mild observation. The senior members' postings to this thread seem a little curt: you're senior members on a newgroup ladies and gentlemen - not World leaders.

Your incredulity doesn't serve you well.

(p.s. I recall rdfx etc. when he was a mere postling...his site is all about drugs as I recall)

1:55 pm on Apr 5, 2003 (gmt 0)

WebmasterWorld Administrator brotherhood_of_lan is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



webmanager, don't know where that comes from.

All I said was try the page without the javascript and see what happens.

If a senior member is seen as a world leader for posting advice and trying to help out, i'm at a loss why i'm here with my political agenda ;)