Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #30545
| Newsgroups | comp.lang.javascript |
|---|---|
| Date | 2016-05-25 16:50 -0700 |
| References | <7ebd3760-9d9f-426a-a59a-c3e2f1024f40@googlegroups.com> <306b086a-28f6-4b70-a3c5-ddee949816e0@googlegroups.com> <86992b77-b9f8-4662-a0dd-e7aadfce8b39@googlegroups.com> <490fd6da-25cf-4aaf-8961-bc37adb628b7@googlegroups.com> |
| Message-ID | <456626ea-3400-49bc-9581-eec0d7073e0d@googlegroups.com> (permalink) |
| Subject | Re: Nofollow javascript |
| From | "Michael Haufe (TNO)" <tno@thenewobjective.com> |
On Wednesday, May 25, 2016 at 6:44:28 PM UTC-5, Michael Haufe (TNO) wrote:
> On Wednesday, May 25, 2016 at 12:36:52 PM UTC-5, Andre Trevas wrote:
>
> > Can i create one rule in robots.txt? Because i have more than 20000 urls.
>
> Look at some examples syntax and you should be able to figure out what you're looking for:
>
> <https://en.wikipedia.org/wiki/Robots_exclusion_standard#Examples>
>
> > What do you suggest? How can i move it to a separate file? The code have php and javascript functions, and it is dynamically generated( it will be different from each realty).
>
> I suspect your entire JavaScript file doesn't need to be generated. Just some variables
If that is the case, then simple generate those variable elsewhere. For example:
<script type="text/javascript" src="myFile.js" data-var1='<?php echo "foo"; ?>'></script>
Then inside myFile.js
(function(){
"use strict"
var currentScript = document.scripts[document.scripts.length - 1],
foo = currentScript.getAttribute("data-var1");
...
})()
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Nofollow javascript Andre Trevas <andretrevas@gmail.com> - 2016-05-24 23:11 -0700
Re: Nofollow javascript "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-05-25 09:23 +0200
Re: Nofollow javascript Andre Trevas <andretrevas@gmail.com> - 2016-05-25 10:32 -0700
Re: Nofollow javascript "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-05-25 21:08 +0200
Re: Nofollow javascript Andre Trevas <andretrevas@gmail.com> - 2016-05-25 15:09 -0700
Re: Nofollow javascript "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-05-26 00:39 +0200
Re: Nofollow javascript Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-05-27 18:27 +0200
Re: Nofollow javascript "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-05-28 11:48 +0200
Re: Nofollow javascript "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-05-25 06:10 -0700
Re: Nofollow javascript Andre Trevas <andretrevas@gmail.com> - 2016-05-25 10:36 -0700
Re: Nofollow javascript "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-05-25 16:44 -0700
Re: Nofollow javascript "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-05-25 16:50 -0700
Re: Nofollow javascript "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-05-26 12:55 +0200
Re: Nofollow javascript "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-05-26 05:14 -0700
Re: Nofollow javascript "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-05-26 14:20 +0200
Re: Nofollow javascript "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-05-26 05:55 -0700
Re: Nofollow javascript Andre Trevas <andretrevas@gmail.com> - 2016-06-09 08:29 -0700
csiph-web