Link to home
Start Free TrialLog in
Avatar of NicolasAllan
NicolasAllan

asked on

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>
Avatar of duz
duz
Flag of United Kingdom of Great Britain and Northern Ireland image

Nicolas -

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

- duz
Avatar of NicolasAllan
NicolasAllan

ASKER

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

ASKER CERTIFIED SOLUTION
Avatar of duz
duz
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
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