|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Does google include...
Hello everyone,
I've tried searching for this on google, maybe I'm just not using the right words... but maybe someone here can help? :] I am trying to find out if google includes/indexes HTML written into the page using javascript's writeIn function. For example, here is the code I would use to embed my HTML: Code:
<script type="text/javascript" src="[URL to a PHP file off site which generates the javascript.]"> </script> And here is what the included URL.php's output would look like: Code:
document.writeln('[HTML goes here.]')
Basically the idea is I can update the PHP file dynamically off site and the HTML is automatically updated on all sites using the <script> code. If google does not include/index this sort of thing, is there some alternative using javascript? Or am I forced to use an <iframe></iframe> or PHP's file_get_contents()? Please let me know if I've made anything unclear. Thanks in advance! Regards, linarator |
|
#2
|
||||
|
||||
|
Google does not read javascript especially if it is in an external file.
|
|
#3
|
|||
|
|||
|
Quote:
Okay dokay. Thank you, good sir. |
|
#4
|
|||
|
|||
|
Actually,
Would the embedded content with an <embed> tag be included in googles indexing directly? Would it even bother to go and crawl the <embed>ed URL? What about the <object> tag? Thanks for the help, really appreciate it! Have a good one, linarator |
|
#5
|
||||
|
||||
|
I don't believe that it will.
If it wasn't for the returned value being Javascript, I'd say you should use a server-side language to include it. Unfortunately because it's Javascript that's being returned, it won't ever be seen. |
![]() |
| Viewing: Dev Shed Forums > Web Design > Search Engine Optimization > Does google include... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|