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


Groups > comp.lang.python > #29756

Re: How to apply the user's HTML environment in a Python programme?

From Dennis Lee Bieber <wlfraed@ix.netcom.com>
Subject Re: How to apply the user's HTML environment in a Python programme?
Date 2012-09-22 11:18 -0400
Organization > Bestiaria Support Staff <
References (1 earlier) <mailman.1006.1348233763.27098.python-list@python.org> <b6b4f390-1f33-452d-9d78-5681f4557d96@googlegroups.com> <CADwdpyZ1Px8=m3JO18acvRf0YOB5TffQY_p15bu4rmb8D-hpeA@mail.gmail.com> <mailman.1033.1348258203.27098.python-list@python.org> <6c7b7ada-1bc7-4eff-abba-301c6c3f2258@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.1082.1348327100.27098.python-list@python.org> (permalink)

Show all headers | View raw


On Sat, 22 Sep 2012 04:38:08 -0700 (PDT), BobAalsma
<overhaalsgang_24_bob@me.com> declaimed the following in
gmane.comp.python.general:

> 
> Wulfraed, yes, as with David's proposal: this sounds good, but I wouldn't know the first thing about Javascript... 
> I'm also concerned that both solutions would seem to imply distributing software (or "software") to the clients systems.
> Hmm.
>

	Unless your clients are running some ancient text-only browser, they
already have the Javascript interpreter running. We aren't talking about
downloading a Java program that then runs as a process on the client's
machine. If your client's ever visit (since I have it up at the moment)
the Amazon forum pages, they are already running Javascript pages.

	Here's the start of the page source as an example (don't ask me what
it does):

<html>
<head>
<script type="text/javascript">/* <![CDATA[ */var ue_t0=ue_t0||+new
Date();/* ]]> */</script>
<script type='text/javascript'>/* <![CDATA[ */
var ue_wl_jserr = 1,
ue_csm = window;
(function(a){a.ue_err={ec:0,pec:0,ts:0,erl:[],mxe:50,startTimer:function(){a.ue_err.ts++;setInterval(function(){a.ue&&(a.ue_err.pec<a.ue_err.ec)&&a.uex("at");a.ue_err.pec=a.ue_err.ec},10000)}};a.ueLogError=(function(){function
b(c,e,d){if(a.ue_err.ec>a.ue_err.mxe){return}a.ue_err.ec++;a.ue.log({m:c,f:e,l:d,s:""},"jserr");return
false}if(a.ue_wl_jserr){window.onerror=b}return
function(c){if(a.ue_err.ec>a.ue_err.mxe){return}a.ue_err.ec++;a.ue_err.erl.push(c)}})()})(ue_csm);

/* ]]> */</script>
-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
        wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/

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


Thread

How to apply the user's HTML environment in a Python programme? BobAalsma <overhaalsgang_24_bob@me.com> - 2012-09-21 05:57 -0700
  Re: How to apply the user's HTML environment in a Python programme? Joel Goldstick <joel.goldstick@gmail.com> - 2012-09-21 09:22 -0400
    Re: How to apply the user's HTML environment in a Python programme? BobAalsma <overhaalsgang_24_bob@me.com> - 2012-09-21 06:31 -0700
      Re: How to apply the user's HTML environment in a Python programme? Jerry Hill <malaclypse2@gmail.com> - 2012-09-21 09:36 -0400
        Re: How to apply the user's HTML environment in a Python programme? BobAalsma <overhaalsgang_24_bob@me.com> - 2012-09-21 06:58 -0700
        Re: How to apply the user's HTML environment in a Python programme? Joel Goldstick <joel.goldstick@gmail.com> - 2012-09-21 10:15 -0400
          Re: How to apply the user's HTML environment in a Python programme? BobAalsma <overhaalsgang_24_bob@me.com> - 2012-10-01 07:19 -0700
            Re: How to apply the user's HTML environment in a Python programme? Ramchandra Apte <maniandram01@gmail.com> - 2012-10-02 09:17 -0700
        Re: How to apply the user's HTML environment in a Python programme? Peter Otten <__peter__@web.de> - 2012-09-21 16:33 +0200
      Re: How to apply the user's HTML environment in a Python programme? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-09-21 16:09 -0400
        Re: How to apply the user's HTML environment in a Python programme? BobAalsma <overhaalsgang_24_bob@me.com> - 2012-09-22 04:38 -0700
          Re: How to apply the user's HTML environment in a Python programme? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-09-22 11:18 -0400
        Re: How to apply the user's HTML environment in a Python programme? BobAalsma <overhaalsgang_24_bob@me.com> - 2012-09-22 04:38 -0700
    Re: How to apply the user's HTML environment in a Python programme? BobAalsma <overhaalsgang_24_bob@me.com> - 2012-09-21 06:31 -0700
  Re: How to apply the user's HTML environment in a Python programme? David Smith <davids@invtools.com> - 2012-09-21 11:28 -0400
    Re: How to apply the user's HTML environment in a Python programme? BobAalsma <overhaalsgang_24_bob@me.com> - 2012-09-22 04:34 -0700
    Re: How to apply the user's HTML environment in a Python programme? BobAalsma <overhaalsgang_24_bob@me.com> - 2012-09-22 04:34 -0700
  Re: How to apply the user's HTML environment in a Python programme? Thomas Jollans <t@jollybox.de> - 2012-09-22 14:01 +0200

csiph-web