Search
Powered by SQLite FTS

Content

  • CGI script to edit csv file
    14 Dec 20090/calendar.js\"></script> <script type=\"text/javascript\" src=\"$::jsRoot/jscalendar-1.0/lang/calendar-de.js\"></script> <script type=\"text/javascript\" src=\"$::jsRoot/jscalendar-1.0/calendar-setup.js\"></script> " } } # Prüft ... require readprof; # http://wiki.tcl.tk/12647 M.Hoffmann fconfigure stdout -buffering full #------------------------------------------------------------------------------- # Wo befinden sich die JavaScripts? if {[file isdirectory [file join $::env(DOCUMENT_ROOT) js]]} { set jsRoot /js } else { set
  • Complex data structures
    19 Dec 2008sourceforge.net/], or tries ([http://www.nist.gov/dads/HTML/trie.html], [http://www.webreference.com/js/tips/000318.html], [http://www.cs.mcgill.ca/~cs251/OldCourses/1997/topic7/]), or PATRICIA tree ... structures. For an application of this, see [A little XML parser]. ''The nice thing about this wiki is that it is relatively simple to add more content. If the existing comparison seeems ... a little "ihash" package in [critlib] coded in C (and I have a minimal pure Tcl script for doing the same somewhere), which makes key-value lists (which I used to call
  • dict discussion
    25 Jul 2011evaluating the script, which means the script or its subprocedures can't access the "current value" of the dictionary as a whole if it has been "changed" earlier in the script. Also ... dictionary. ---- [NEM] ''12 Feb 2007'' Moved all this from the [dict] page in a fit of wiki gnoming. ---- '''LES''': Hmmm... How is this '''dict''' thing different from the current [array] thing? Why ... configuration state in a dictionary that initially looks like this { identity { lastname Smith firstname Joe email js@www.org } preferences { appearance { showtooltips 0 fontsize 16 } } } So this initial dictionary is "clean", meaning
  • DOS BAT magic
    01 May 2011in Wiki style ;-) The commands after that turn off the echoing of command input and possibly complete the filename with the .bat extension. But you still have to call this script with ... ve been excited about bat since my ibm pc jr mmm yeah good old bat files - JS ---- [KPV] The folklore idiom for this is below. Don't remember where I first saw
  • How did you discover TCL/TK
    22 Aug 2008was in heavy usage for scripting network router and other device logins. I found an old script that had a [while] statement in it - not documented in the Expect man page. So ... up where EIAS and solutions are 25 lines or less. Then I found [RS] on the wiki - that number is much smaller now. ;) ---- [wdb] (2006-05-27) Theoretically, I knew of it ... got to know it when starting the development of an application [http://wolf-dieter-busch.de/js/mte/en.htm], where the [GUI] was a must, and where [Tcl/Tk] provided better
  • MartinCleaver
    26 Nov 2011language. Other languages compile down to Javascript. https://github.com/jashkenas/coffee-script/wiki/List-of-languages-that-compile-to-JS [incr Tcl in Javascript] would have promise for giving Tcl relevance
  • Matthias Hoffmann - Tcl-Code-Snippets - tclhttpd and cgi-related - CGIFRAME
    11 Sep 2011am \ [clock format [clock seconds] -format {%d.%m.%Y um %H:%M:%S Uhr}] \ vom Script [info script], Version $::cgiframe_version</small>" if {[string equal $noEnd ""]} { puts [html::end] } } #------------------------------------------------------------------------------- proc abort {args ... v0.10 02.06.2005 - Color-Toggle # v0.11 08.07.2005 - Rückgabe von Textdateien (für Wiki) # v0.12 13.10.2005 - Rückkehren-Link auch ganz oben # v0.13 16.11.2005 ... goback ""]} { # Handling von Rückkehr nach Refreshs! append ::env(REQUEST_URI) & goback = [ncgi::encode $::goback] # besser mittels JS-Button siehe hamue_user.tcl (self.location) puts "<br><div align=\"right\"><a href=\"$::env
  • Playing CGI
    21 Jan 2012ready..." vwait forever ====== And here's a little "CGI" script I tested it with (save as time.tcl): # time.tcl - tiny CGI script. if ![info exists env(QUERY_STRING)] {set env(QUERY ... CGI support # namespace dmhttpd and more MimeTypes # I borrowed some code from jcw (from the nice wiki webserver) # and implemented url2procedure mappings as well # try something like /monitor?arg1=1&arg2=2 ... encoding iso8859-1 variable MimeTypes array set MimeTypes { {} "text/plain" .txt "text/plain" .css "text/css" .js "text/javascript" .htm "text/html;charset=$encoding" .html "text/html;charset=$encoding" .tml "text/html
  • Project Ideas for Google Summer of Code 2008
    11 Mar 2011you should apply [http://code.google.com/p/google-summer-of-code/wiki/AdviceforStudents], expectations of student participants [http://wiki.python.org/moin/SummerOfCode/Expectations], how to write a compelling application [http ... bytecode VM in JS and run Tcl bytecode in it. * Use [Jim] or [picol] as a starting point instead of full Tcl. Recode by hand or use C -> Java -> JS pathway via ... of this project would be to produce a rendering script which reads a Glade XML format file and renders it into Tk script instead. The Tcl/Tk community would thus get a
  • scriptaculous
    22 Apr 2008page set ::ajax text/html set head { <script src="/javascripts/prototype.js" type="text/javascript"></script> <script src="/javascripts/scriptaculous.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" href ... agnostic, it can be used to add Ajax functions to [tclhttpd]. Note that according to the wiki, it is already integrated in [OpenACS]. One of the main advantages of using a framework
  • Tcl and PalmOS on the desktop
    28 Nov 2008Updated: 07/2002 Contact: See the web site What: pperson Where: From the contact Decsription: Tcl script which searches the output of pilot-addresses (a program in pilot-link which generates text ... Contact also has an AddressBookDB to MH alias cnoversion program available. Updated: 12/1999 Contact: mailto:js@aq.org (Jay Sekora) What: pui Where: From the contact Description: PalmPilot UNIX interface, using ... announce-request@pilotmgr.corp.sun.com mailto:pilotmgr-request@pilotmgr.corp.sun.com ---- See also the wiki page for [Ideogramic], which produces a commercial product for PalmOS. ---- !!!!!! %|[Category Application] | [Category Package] | [Category
  • Tcl Editors
    28 Nov 2011more advanced mode-independent functionality as well). This library is called AlphaTcl and has its own Wiki at [http://alphatcl.sourceforge.net/wikit/]. Noteworthy features include: Very good TeX mode. Very good ... and much more. Updated: 01/2001 Contact: See SourceForge web page for details. ---- [aqtools], formerly called ''js tools'', A suite of applications along with reusable libraries used in these applications. Applications include ... alone so that you can use it in other applications. Also, mxedit.menus is a Tk script to put a veneer over Tk menus. Updated: 10/1998 Contact: mailto:welch@acm.org
  • Tcl in Javascript
    26 Nov 2011var script="$(\"" + selector + "\")." + fn + "(\"" + code + "\")"; //alert(script); eval(script).toString(); return "dom " + selector; }); So cool. Note: if you need to quote something in one of the args, best to use js's ... that URL appears no longer to work), the Tcl implementation (currently 0.4). * wiki-resident copy: [tcl.js], [tcl.js 0.4] * a demo with the official test suite is included in
  • Using JavaScript to update Dynamic Documents
    23 Oct 2007Backend Javascript Processor''' Run this script, run a browser and point it at the server (most likely http://localhost:12345). Type javascript to evaluate in the ''JS' box, set the var ''result ... am I allowed to update this? dude, protect your site. ''[FW]: The whole premise of the Wiki is that anyone can update anything. Malicious updates, when noticed, are corrected.'' OK, I really
  • Wibble implementation
    29 Nov 2011within # that script. Other events may be returned too, but only if they happened in # the same batch as an exception event. proc ::wibble::icc::catch {script} { tailcall try $script on 7 ... minimum. <<backrefs:Category Wibble>> ======none #!/usr/bin/env tclsh # Wibble - a pure-Tcl Web server. http://wiki.tcl.tk/23626 # Copyright 2011 Andy Goth. mailto/andrew.m.goth/at/gmail/dot/com ... root $root ::wibble::handle / indexfile root $root indexfile index.html ::wibble::handle / contenttype typetable { application/javascript ^js$ application/json ^json$ application/pdf ^pdf$ audio/mid ^(?:midi?|rmi)$ audio/mp4 ^m4a$ audio/mpeg
  • Wiki Announcements
    18 Jun 2010bind]|& &|23759| 8|[Wiki jumps the shark]|& &| 14| 7|[Formatting Rules]|& &| 3513| 7|[REpresentational State Transfer, REST]|& &| 4718| 7|[wiki-reaper]|& This table was generated with the following script: ====== package require Mk4tcl ... on this Wiki or not, but I think it's worth a try. However, I am thoroughly unimpressed with the current implementation. See [http://shjs.sourceforge.net/lang/sh_tcl.js] (derived