From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from resqmta-ch2-04v.sys.comcast.net (resqmta-ch2-04v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:36]) by hurricane.the-brannons.com (Postfix) with ESMTPS id 3535721DE01 for ; Sat, 5 Dec 2015 06:38:13 -0800 (PST) Received: from resomta-ch2-03v.sys.comcast.net ([69.252.207.99]) by resqmta-ch2-04v.sys.comcast.net with comcast id pqfL1r00629Cfhx01qfmJu; Sat, 05 Dec 2015 14:39:46 +0000 Received: from eklhad ([IPv6:2601:405:4001:e487:21e:4fff:fec2:a0f1]) by resomta-ch2-03v.sys.comcast.net with comcast id pqfm1r0092MDcd701qfmXs; Sat, 05 Dec 2015 14:39:46 +0000 To: edbrowse-dev@lists.the-brannons.com From: Karl Dahlke Reply-to: Karl Dahlke References: <87vb8gra8x.fsf@mushroom.localdomain> User-Agent: edbrowse/3.5.4.2+ Date: Sat, 05 Dec 2015 09:39:46 -0500 Message-ID: <20151105093946.eklhad@comcast.net> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1449326386; bh=18+okKYic87KpNUUDyPoXEwXb2yNapBodA8mqaRRRs8=; h=Received:Received:To:From:Reply-to:Subject:Date:Message-ID: Mime-Version:Content-Type; b=ZQBdJA5g5JujSenW6VNnS+OuWSMPnwsT/32PoA7tnGmKgYMwkul6buEz6fXBFIg2J mC0q4Tgcj+4VpUtPLENabmif2xDp42X75iV5zYattYx1PB2PB3iWWc5kyXtqpDULZx bxCIQN0udUZmjhwyC4zPSO8642dd6bC28UruGg/U5DPdPeI6kiOhSYm/o4boMT3LJH gBajNAdmv1pKICRr71mrqNv75QA3CJrTD1wtReMLNM5G7nNmuKsce++CU3n7LpwBox pskv46r/tkyadqIIatRaDRsR4tSEkwM+i3gxsqZvGwnYiHBH/VByVr3vv8OqCiBuXA xJs1EkgPPsVGQ== Subject: [Edbrowse-dev] javascript() in timer side effects X-BeenThere: edbrowse-dev@lists.the-brannons.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Edbrowse Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Dec 2015 14:38:13 -0000 > timer line 1: ReferenceError: javascript is not defined It looks like I laid a foundation, to compile the function if it is a string, or simply set the function member if it is already a function, and put it under TimerObject.onclick, so I could then call TimerObject.onclick to run the code, no matter how it got set up, but then I never actually called that onclick function. Never took the last step. I was trying to compile every time or something, so now with this small fix all three cases work for me: "increment()" // compile this string increment // named function increment_in_var // var set to function Karl Dahlke