473,378 Members | 1,354 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

making popups spider-friendly

I need some rather technical spidering advice, and I'm hoping that this
is a good place to find it (and my apologies if this isn't). My site
contains pages of images, where each image includes a map that
generates a popup. You can see an example here:

http://album.dweeb.org/pages/1980_1.html

Click on a stamp, and javascript invokes a popup. All of that works
just fine. Here's what doesn't work well. Stamps have an official
Scott catalog number, and collectors who Google for specific stamps
will do so by catalog number. I've included ALT and TITLE tags with
the relevant information for each popup, and the META information for
the page also includes all of the cat #'s for the stamps on the page,
but Google apparently ignores all of that. I'd like to find a way to
add something to each page so that the page isn't changed visually, but
Google and other engines will point to the page whenever someone
searches for the catalog number of a stamp on that page. So in the
sample page above, someone typing in "1804 Benjamin Banneker" should
find that page. Right now, Googling "site:album.dweeb.org 1804"
doesn't return the above page at all, and it should, because it's the
most relevant answer for my site. In fact, Google Images doesn't find
my popups at all, because Google can't spider through the javascript to
find the image files.

So, is there a way to do this? I don't mind ditching javascript if
there is an equivalent non-javascript way of generating minimal popups,
particularly if it's a more spider-friendly way. Any constructive
advice would be welcome.

Jim

Jul 24 '05 #1
3 2402
Tim
On 12 May 2005 18:43:33 -0700,
gr******@dweeb.org posted:
I need some rather technical spidering advice, and I'm hoping that this
is a good place to find it (and my apologies if this isn't). My site
contains pages of images, where each image includes a map that
generates a popup. You can see an example here:

http://album.dweeb.org/pages/1980_1.html

Click on a stamp, and javascript invokes a popup. All of that works
just fine. Here's what doesn't work well. Stamps have an official
Scott catalog number, and collectors who Google for specific stamps
will do so by catalog number. I've included ALT and TITLE tags with
the relevant information for each popup, and the META information for
the page also includes all of the cat #'s for the stamps on the page,
but Google apparently ignores all of that.
Many do. Many care about the following, more than anything else, with
varying degrees of importance:

The page <title> element contents.
Heading element contents.
The contents inside <a> elements </a> leading to a resource.
The page contents in general.

See: <http://www.google.com/webmasters/>

If you cannot work out a nice way to include all of the information that
you need on the page with the content (e.g. page titles and headings next
to the relevant content) for artistic reasons, then the next best approach
might be an index page with the information that points to it. Which also
helps people, as well as robots. That index page will be databased, and
relevant searches will use the links your index page points to, rather than
the index page itself.
Right now, Googling "site:album.dweeb.org 1804"
doesn't return the above page at all, and it should, because it's the
most relevant answer for my site. In fact, Google Images doesn't find
my popups at all, because Google can't spider through the javascript to
find the image files.
Two problems with that:

Firstly few search engines, if any, parse JavaScript, and few probably ever
will.

Secondly, indexing numbers doesn't seem too brilliant with some search
engines.
So, is there a way to do this? I don't mind ditching javascript if
there is an equivalent non-javascript way of generating minimal popups,
particularly if it's a more spider-friendly way. Any constructive
advice would be welcome.


There's more user-friendly ways of doing things, than JavaScript pop-ups
(it's not just search-engine unfriendly). There's a plethora of sites
explaining what a problem JavaScript can be to all and sundry.

--
If you insist on e-mailing me, use the reply-to address (it's real but
temporary). But please reply to the group, like you're supposed to.

This message was sent without a virus, please delete some files yourself.
Jul 24 '05 #2
gr******@dweeb.org wrote:
http://album.dweeb.org/pages/1980_1.html

Click on a stamp, and javascript invokes a popup. All of that works
just fine. Here's what doesn't work well. Stamps have an official
Scott catalog number, and collectors who Google for specific stamps
will do so by catalog number. I've included ALT and TITLE tags with
the relevant information for each popup, and the META information for
the page also includes all of the cat #'s for the stamps on the page,
but Google apparently ignores all of that.


OK, this is what you have to do:

Replace href="javascript:void(0)" with the location of the image you're
linking to (e.g., href="../images//Singles/1803.jpg")

Replace the alt text with something meaningful (e.g., change alt="1803.jpg"
into alt="U.S. #1803: Performing Arts - W.C. Fields"). This tells Google
what the image is about.

Change your onclick event handler so that it returns a value of false. And
get rid of the "javascript:" bit at the beginning. It doesn't belong there.
For example, change onclick="javascript:popImage('x.jpg', 'blah',161,244)"
into onclick="popImage('x.jpg', 'blah',161,244); return false;" (Note: when
you return a value of false, the onclick event is cancelled. That stops the
browser following the href="" link).

Add <META http-equiv="Content-Script-Type" content="text/javascript"> to the
HEAD section of your HTML pages.

You should be able to do all of this with a few search-and-replace
operations in a text editor.

I hope this helps.

Phil

--
phil [dot] ronan @ virgin [dot] net
http://vzone.virgin.net/phil.ronan/
Jul 24 '05 #3
>OK, this is what you have to do:

[steps deleted]
You should be able to do all of this with a few search-and-replace
operations in a text editor.


Phil, I created a test page, did what you suggested, verified that it
functions as desired, and verified (W3C) that it still validates as
clean XHTML 1.1. So assuming Google and others eventually do the
right thing, your solution does everything that I want without
creating any new problems. Thanks much - you truly are a god among
men. BTW, the entire site is built from scratch from a perl script
and a massive config file, so updating all 650+ pages just meant
tweaking the perl and re-running the script, so at least *that* part
was easy.

Jim

Jul 24 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Auction software | last post by:
Free download full version , all products http://netauction8.url4life.com/ Groupawy --------------- Google Groups Email spider. The first email spider for google groups. Millions of valid...
3
by: Thomas Lindgaard | last post by:
Hello I'm a newcomer to the world of Python trying to write a web spider. I downloaded the skeleton from http://starship.python.net/crew/aahz/OSCON2001/ThreadPoolSpider.py Some of the...
52
by: Harlan Messinger | last post by:
Can you help me figure out what to do about popups? Sometimes we develop web applications where popups make very good sense for precisely the same reasons they make sense in traditional...
2
by: Tom Szabo | last post by:
Hi, >>IE in Windows XP Service Pack 2 has a popup blocker that blocks unsolicited >>popups >>IE (other than Windows XP Service Pack 2) also has many add-ons (Google toolbar, >>Yahoo! toolbar,...
1
by: Aaron | last post by:
I wish for this area to be encode so a spider/bot can not capture/scrape anything useful from the webpage(s). Only someone that renders and loads the page can see what text is there. Here is the...
0
by: Auction software | last post by:
Free download full version , all products from Mewsoft dot com http://netauction8.url4life.com/ Groupawy --------------- Google Groups Email spider. The first email spider for google groups....
3
by: Tony Lance | last post by:
Big Bertha Thing spider Cosmic Ray Series Possible Real World System Constructs http://web.onetel.com/~tonylance/spider.html Access page JPG 11K Image Astrophysics net ring Access site...
13
by: shotokan99 | last post by:
i have this code that when the user click it will delete the record: echo' <td bgcolor="'.$color.'" width="40"><font face="Verdana" size="1"> <a...
2
by: =?Utf-8?B?Q2hhcnRz?= | last post by:
I have been writing C# programs to spider yellow page to get list of restaurant name, address to the database. When I encounter button or hyperlink, I don’t know how to use the program to click...
1
by: Moe Sisko | last post by:
Using : ASP.NET 2.0, IE 7. This is a strange problem with popups not working in IE to remote sites, even though popups are allowed in IE. To reproduce, create web site with two pages,...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.