From bobm at dottedi.biz Thu Aug 9 08:23:19 2012
From: bobm at dottedi.biz (Bob Meetin)
Date: Thu, 09 Aug 2012 07:23:19 -0600
Subject: [thelist] javascript / document.write / include javascript
Message-ID: <5023B9C7.90402@dottedi.biz>
Is there a way to include a javascript document, i.e. javascript.js, within a page if you are using javascript to define some matching criteria?
");
}
If I do it as above it outputs document.write, script type=, etc, rather than including the .js file.
Bob
From simonmacdonald at uk2.net Thu Aug 9 09:26:44 2012
From: simonmacdonald at uk2.net (Simon MacDonald)
Date: Thu, 9 Aug 2012 15:26:44 +0100
Subject: [thelist] javascript / document.write / include javascript
In-Reply-To: <5023B9C7.90402@dottedi.biz>
References: <5023B9C7.90402@dottedi.biz>
Message-ID: <030a01cd763b$01dcd490$05967db0$@net>
Bob,
you could use jquery to read the javascript file contents and then output
the file code surrounded by script tags - I think that is what you are
trying to do?
See:
http://stackoverflow.com/questions/6269159/read-from-textfile-on-server-usin
g-jquery this just shows the read
there may be another better way but this springs to mind first off ;)
Shout again if you need further clarification
Simon
-----Original Message-----
From: thelist-bounces at lists.evolt.org
[mailto:thelist-bounces at lists.evolt.org] On Behalf Of Bob Meetin
Sent: 09 August 2012 14:23
To: thelist at lists.evolt.org
Subject: [thelist] javascript / document.write / include javascript
Is there a way to include a javascript document, i.e. javascript.js, within
a page if you are using javascript to define some matching criteria?
");
}
If I do it as above it outputs document.write, script type=, etc, rather
than including the .js file.
Bob
--
* * Please support the community that supports you. * *
http://evolt.org/help_support_evolt/
For unsubscribe and other options, including the Tip Harvester and archives
of thelist go to: http://lists.evolt.org Workers of the Web, evolt !
From gozz at gozz.com Thu Aug 9 11:03:33 2012
From: gozz at gozz.com (erik mattheis)
Date: Thu, 9 Aug 2012 11:03:33 -0500
Subject: [thelist] javascript / document.write / include javascript
In-Reply-To: <5023B9C7.90402@dottedi.biz>
References: <5023B9C7.90402@dottedi.biz>
Message-ID:
On Thu, Aug 9, 2012 at 8:23 AM, Bob Meetin wrote:
> Is there a way to include a javascript document, i.e. javascript.js,
> within a page if you are using javascript to define some matching criteria?
>
> "**);
> }
>
>
> If I do it as above it outputs document.write, script type=, etc, rather
> than including the .js file.
>
> Bob
> --
>
> * * Please support the community that supports you. * *
> http://evolt.org/help_support_**evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
--
Erik Mattheis
http://www.flickr.com/gelk
From bobm at dottedi.biz Thu Aug 9 11:18:01 2012
From: bobm at dottedi.biz (Bob Meetin)
Date: Thu, 09 Aug 2012 10:18:01 -0600
Subject: [thelist] javascript / document.write / include javascript
In-Reply-To:
References: <5023B9C7.90402@dottedi.biz>
Message-ID: <5023E2B9.3070406@dottedi.biz>
Thanks Brian and everyone,
I googled first to get some background, but yes this worked as:
document.write("<\/SCR"+"ipt>");
-Bob
On 08/09/2012 07:33 AM, Brian Cummiskey wrote:
> Hey Bob,
> you'll need to split the keyword, ie,
>
> document.write("
> you've probably seen this 100 times before and never realized why :)
>
> On Thu, Aug 9, 2012 at 9:23 AM, Bob Meetin wrote:
>> Is there a way to include a javascript document, i.e. javascript.js, within
>> a page if you are using javascript to define some matching criteria?
>>
>> ");
>> }
>>
>>
>> If I do it as above it outputs document.write, script type=, etc, rather
>> than including the .js file.
>>
>> Bob
>> --
From gozz at gozz.com Thu Aug 9 11:28:15 2012
From: gozz at gozz.com (erik mattheis)
Date: Thu, 9 Aug 2012 11:28:15 -0500
Subject: [thelist] javascript / document.write / include javascript
In-Reply-To: <5023E2B9.3070406@dottedi.biz>
References: <5023B9C7.90402@dottedi.biz>
<5023E2B9.3070406@dottedi.biz>
Message-ID:
That way it will be sure to work in IE4!
On Thu, Aug 9, 2012 at 11:18 AM, Bob Meetin wrote:
> Thanks Brian and everyone,
>
> I googled first to get some background, but yes this worked as:
>
> document.write("<\/SCR"+"ipt>");
>
> -Bob
>
>
> On 08/09/2012 07:33 AM, Brian Cummiskey wrote:
>
>> Hey Bob,
>> you'll need to split the keyword, ie,
>>
>> document.write(">
>> you've probably seen this 100 times before and never realized why :)
>>
>>
>> On Thu, Aug 9, 2012 at 9:23 AM, Bob Meetin wrote:
>>
>>> Is there a way to include a javascript document, i.e. javascript.js,
>>> within
>>> a page if you are using javascript to define some matching criteria?
>>>
>>> "**);
>>> }
>>>
>>>
>>> If I do it as above it outputs document.write, script type=, etc, rather
>>> than including the .js file.
>>>
>>> Bob
>>> --
>>>
>> --
>
> * * Please support the community that supports you. * *
> http://evolt.org/help_support_**evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
>
--
Erik Mattheis
http://www.flickr.com/gelk
From mickyhulse.lists at gmail.com Thu Aug 9 12:03:42 2012
From: mickyhulse.lists at gmail.com (Micky Hulse)
Date: Thu, 9 Aug 2012 10:03:42 -0700
Subject: [thelist] javascript / document.write / include javascript
In-Reply-To:
References: <5023B9C7.90402@dottedi.biz>
<5023E2B9.3070406@dottedi.biz>
Message-ID:
If you don't have any control over the external file, then this:
... works like a charm. :)
From renoirb at gmail.com Thu Aug 9 17:40:04 2012
From: renoirb at gmail.com (Renoir Boulanger)
Date: Thu, 9 Aug 2012 18:40:04 -0400
Subject: [thelist] javascript / document.write / include javascript
In-Reply-To:
References: <5023B9C7.90402@dottedi.biz>
<5023E2B9.3070406@dottedi.biz>
Message-ID:
Yes this exists.
And I'm surprised nobody mentionned the current trend about this.
Short answer: Have a look at Modernizr and most notably it's Modernizr.load() method. Validating if tere is canvas support in the browser for example. It takes care of loading js libraries that fills gap. We call that a "Polyfill".
Also.
Have a look on the html5boilerplate comments and it's author Paul Irish work.
He did very instructive and accessible tutorials on "what I learned while reading jQuery source" to cite only this one among his boilerplate talks.
Your most specific question about loading on conditions is a perogative in the realm of using HTML5 nowadays to do what we call "progressive enhancement".
Hope I said some buzzwords that will help you in your search about the new best practices.
Have a look on my http://delicious.com/inexisdotnet/html5+very-usefull feed
--
Renoir Boulanger
http://renoirboulanger.com/
(envoy? de mon t?l?phone)
From david at gigawatt.com Sun Aug 12 21:58:44 2012
From: david at gigawatt.com (David Kaufman)
Date: Sun, 12 Aug 2012 22:58:44 -0400
Subject: [thelist] Site Review Request
In-Reply-To: <8DA568FE03A81E44BB1D46766A732B0007B14482@G6W2480.americas.hpqcorp.net>
References: <8DA568FE03A81E44BB1D46766A732B0007B14482@G6W2480.americas.hpqcorp.net>
Message-ID: <50286D64.4010104@gigawatt.com>
Hi Ron,
On 8/3/2012 1:52 PM, Luther, Ron wrote:
> Hi Gang,
>
> Got a good friend looking to drop out the rat race to pursue her own career in photography. She is finally at a point where she is looking for feedback and suggestions to improve her website.
>
> I will be sure to pass along any good ideas.
>
> The site is here:
> http://ashcroftphotoart.com/
>
> Big Thanks!
> RonL.
I think the site is close to perfect, and her photography skills make
the website irrelevant. The html could be filled with 1996-style blink
tags and animated under-construction gifs and I'd still want her to come
spend a day with my family and take pictures of us with our kids.
Course, we're in Pennsylvania so this part:
For areas greater than 15 miles of Lakeway, TX,
please add $30 for each additional 15 miles
means she'd charge us an extra $3,400 "to account for travel time" :-)
But seriously, the pictures are so good, and the web so world-wide, my
suggestion is to add some language there on that "your investment" page
to indicate that she would also nonchalantly travel to Fiji if that was
the "somewhere unique that speaks to your family lifestyle". She'd
just need to quote her per-diem rate and specify that her expenses
(transportation, accommodations, food, and some etceteras) are to be
paid by the client ...and way in advance!
You never know, right? IMO she's definitely that good. Austin isn't
the only place where kids grow up too fast! Rich people in Dubai have
cute kids too... :-)
-dave
From neuro at well.com Sun Aug 12 22:03:01 2012
From: neuro at well.com (William Anderson)
Date: Mon, 13 Aug 2012 04:03:01 +0100
Subject: [thelist] Site Review Request
In-Reply-To: <8DA568FE03A81E44BB1D46766A732B0007B14482@G6W2480.americas.hpqcorp.net>
References: <8DA568FE03A81E44BB1D46766A732B0007B14482@G6W2480.americas.hpqcorp.net>
Message-ID:
On Fri, Aug 3, 2012 at 6:52 PM, Luther, Ron wrote:
> Hi Gang,
>
> Got a good friend looking to drop out the rat race to pursue her own career in photography. She is finally at a point where she is looking for feedback and suggestions to improve her website.
The 'about me' page is a GIF, not text?
-n
From david at gigawatt.com Sun Aug 12 22:19:43 2012
From: david at gigawatt.com (David Kaufman)
Date: Sun, 12 Aug 2012 23:19:43 -0400
Subject: [thelist] Site Review Request
In-Reply-To: <50286D64.4010104@gigawatt.com>
References: <8DA568FE03A81E44BB1D46766A732B0007B14482@G6W2480.americas.hpqcorp.net>
<50286D64.4010104@gigawatt.com>
Message-ID: <5028724F.2060107@gigawatt.com>
Oh, wait I was gushing so hard on the kid pix I forgot this was a site
review not a business consultation!
1. As William mentioned: the text on the about us page is an image?!?
Someone with some web dev skills (combined with some pre-calculus
skills) can surely fire out the widths and margins of each text line's
div necessary to pull off that big text - in - a - circle trick without
resorting to text as an image!
And 2: Never. Ever. Put up a "coming soon" page. Take the blog off
the top nav until you actually have some content in it. Or better yet,
write some content for it! Okay, not surprised if someone so gifted at
photography has terminal writer's block when it comes to writing... in
which case... I bet she could hire spinhead to peel off some verbiage
from the social marketing area of his cerebral cortex fill that puppy up
with juicy bits of blog fodder for the parental/expectant photographic
customer!
And 3. I felt confuzzled and lost by the "clients" link taking me off to
another white site that looked enough like this one that I hardly
noticed I'd left, but that lacked the consistent top navigation
necessary to find my way back.
-dave
On 8/12/2012 10:58 PM, David Kaufman wrote:
> Hi Ron,
>
> On 8/3/2012 1:52 PM, Luther, Ron wrote:
>> Hi Gang,
>>
>> Got a good friend looking to drop out the rat race to pursue her own
>> career in photography. She is finally at a point where she is looking
>> for feedback and suggestions to improve her website.
>>
>> I will be sure to pass along any good ideas.
>>
>> The site is here:
>> http://ashcroftphotoart.com/
>>
>> Big Thanks!
>> RonL.
>
> I think the site is close to perfect, and her photography skills make
> the website irrelevant. The html could be filled with 1996-style blink
> tags and animated under-construction gifs and I'd still want her to come
> spend a day with my family and take pictures of us with our kids.
>
> Course, we're in Pennsylvania so this part:
>
> For areas greater than 15 miles of Lakeway, TX,
> please add $30 for each additional 15 miles
>
> means she'd charge us an extra $3,400 "to account for travel time" :-)
>
> But seriously, the pictures are so good, and the web so world-wide, my
> suggestion is to add some language there on that "your investment" page
> to indicate that she would also nonchalantly travel to Fiji if that was
> the "somewhere unique that speaks to your family lifestyle". She'd
> just need to quote her per-diem rate and specify that her expenses
> (transportation, accommodations, food, and some etceteras) are to be
> paid by the client ...and way in advance!
>
> You never know, right? IMO she's definitely that good. Austin isn't
> the only place where kids grow up too fast! Rich people in Dubai have
> cute kids too... :-)
>
> -dave
>
>
>