?
Solved

Javascript text recognised by Google ?

Posted on 2005-04-03
5
Medium Priority
?
292 Views
Last Modified: 2010-04-27
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
Comment
Question by:NicolasAllan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 24

Expert Comment

by:duz
ID: 13693595
Nicolas -

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

- duz
0
 

Author Comment

by:NicolasAllan
ID: 13693774
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
 
LVL 24

Accepted Solution

by:
duz earned 2000 total points
ID: 13695335
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
 

Author Comment

by:NicolasAllan
ID: 13695449
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
 

Author Comment

by:NicolasAllan
ID: 13695469
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
There is a massive demand for content on the web right now, and it doesn't look like it's going to stop any time soon. But, if you are running a business blog, it's not just enough to offer your audience lots of content. It needs to be high-quality…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question