• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 299
  • Last Modified:

Javascript text recognised by Google ?

I have a database which produces an HTML catalogue at http://www.bregerac-and-beyond.com/listings

A dbase field may be empty or contain text so we use the following Javascript code to decide whether to show the text or skip if empty. I call it a Show / NoShow field.

QUESTION: Will this be recognised and indexed by Google ?
Thanks friend
Nicolas
________________________________

<script type="text/javascript">
<!--
if ('Beautiful XV11 and XV111 chateau and buildings on 24 HA of superb mature parkland with far-reach southerly views over the gently rolling hills of the Lot et Garonne (47) <br>\n<br>\nOnly 45 mins from Bordeaux International Airport and good access to the Toulouse/Bordeaux autoroute.') { document.write('<br><b>Situation:</b> Beautiful XV11 and XV111 chateau and buildings on 24 HA of superb mature parkland with far-reach southerly views over the gently rolling hills of the Lot et Garonne (47) <br>\n<br>\nOnly 45 mins from Bordeaux International Airport and good access to the Toulouse/Bordeaux autoroute.<br>'); }
-->
</script>
0
NicolasAllan
Asked:
NicolasAllan
  • 3
  • 2
1 Solution
 
duzCommented:
Nicolas -

What search engines 'see' is the 'View Source' page in your browser, so if you can see it so can they :)

- duz
0
 
NicolasAllanAuthor Commented:
Hello again Duz,
Working Sunday, too, I see.

I am confused.
We are talking the same page as yesterday = See http://www.bregerac-and-beyond.com/listings
A 100+ property listing for search engines which the dbase automatically produces and rewrites anew when any change occurs = add, amend, etc).  It is for search engines not for people.

Google visits the page but only stores the header text for each property (100+).
cache@Google you guided me to shows this page as a full page with photos and an almost empty text only page with 100+ properties shown with minimal text - I assume this text only page is what Google indexes.

Now the dBase people pointed out that the missing text is JavaScript produced and that it may be that Google cannot index text embedded in a Javascript. Yes, I can View Source all HTML code in my browser but my question remains - can Google make sense of, and index, the text in the JavaScript code embedded in the HTML page ?

I have 30+ long established dbase websites throughout Europe (some with 1000 properties, some in other languages) so I want to understand why Google ignores this page.

Regards
Nick

0
 
duzCommented:
Nicolas -

Ah! Sorry I misunderstood.

Google will not 'index' the text as you will see with the following experiment.  Search for the text string "2km from a lively medieval village and an excellent restaurant" (include the quotation marks).

You will see one hit on this page www.agencelunion.com/catalog_lo.html where the text is not embedded in JS. However the text is also on this page http://www.agencelunion.com/rm/listings/ but it is embedded in JS and not indexed.

<script type="text/javascript">
<!--
if ('In a delightful traditional hamlet within less than 2km from a lively medieval village and an excellent restaurant by the nearby river Aveyron. <br>\n<br>\n14km from the market town of St. Antonin, 20km from historic Cordes and 70 minutes drive to Toulouse International Airport. ') { document.write('<br><b>Location:</b> In a delightful traditional hamlet within less than 2km from a lively medieval village and an excellent restaurant by the nearby river Aveyron. <br>\n<br>\n14km from the market town of St. Antonin, 20km from historic Cordes and 70 minutes drive to Toulouse International Airport. <br>'); }
-->
</script>

Just to be clear, Google will read the text and it will count towards it's page size but it will not be indexed.

>Working Sunday, too, I see.

There is a Sunday concession - I get to work only 12 of the 24hrs :)

- duz
0
 
NicolasAllanAuthor Commented:
Hi Duz,
An update re the series of actions I am taking re the solution to the problem.

1. Apply your valuable advice to reduce text = delete two fields per property = 60% reduction in text.
2. Apply your valuable advice re wider marketing = already added France, Aquitaine etc to the page.
Already done, onsite, and submitted.
Pause and await the next Google visit to see what effect that has.

If Google still ignores...
3. Change Javascript IF statement re text to "Just show the dbase field" (for one field).
Await next Google visit and see if that field is shown and indexed.

If Google still ignores ...
... make next change and test - until Google cache shows it accepts the page.
Then apply the lessons to 30 dbase websites !

Thanks for the advice and help.
Nick
0
 
NicolasAllanAuthor Commented:
Hi Duz,
I missed this invaluable test, comment and advice before I emailed my "These are the stages I apply" email.

Now I understand and know what to do and my query is resolved.
Many many thanks.

Regards
Nick
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now