Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #30563

Re: Nofollow javascript

Newsgroups comp.lang.javascript
Date 2016-05-26 05:14 -0700
References (1 earlier) <306b086a-28f6-4b70-a3c5-ddee949816e0@googlegroups.com> <86992b77-b9f8-4662-a0dd-e7aadfce8b39@googlegroups.com> <490fd6da-25cf-4aaf-8961-bc37adb628b7@googlegroups.com> <456626ea-3400-49bc-9581-eec0d7073e0d@googlegroups.com> <XnsA6148379B5DBBeejj99@194.109.6.166>
Message-ID <88bb2729-99bb-452c-8bc7-7455a4e9d417@googlegroups.com> (permalink)
Subject Re: Nofollow javascript
From "Michael Haufe (TNO)" <tno@thenewobjective.com>

Show all headers | View raw


On Thursday, May 26, 2016 at 5:56:14 AM UTC-5, Evertjan. wrote:
> "Michael Haufe (TNO)" wrote on 26 May 2016 in
> comp.lang.javascript: 
> 
> >> I suspect your entire JavaScript file doesn't need to be generated.
> >> Just some variables 
> > 
> > If that is the case, 
> 
> But is it?

If/When the OP replies, we'll know.

> > then simple generate those variable elsewhere. For
> > example: 
> > 
> > <script type="text/javascript" src="myFile.js" data-var1='<?php echo
> > "foo"; ?>'></script> 
> 
> Why not:
> 
> <script type="text/javascript" src="myJsFile.php"></script> 
> 
> and then inside that myJsFile.php file:
> 
> var fooVar = '<?php echo "foo"; ?>';

I prefer not to interleave client and server code (Loose Coupling principle). 

> Do you realy think Google will extract urls from a js-variable?

Google will execute JavaScript

Back to comp.lang.javascript | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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