CGI-Ajax

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN


0.681 | bpederse | 2005-12-12 15:22:32

  fixed the $script regular expression to work on windows;

0.682 | bcthomas | 2006-01-09 09:41

	switched from encodeURIComponent to encodeURI

	fixed getVal to have better error checking, plus more inuitive code.
	also, use can now use name= (but getVal still looks for id= first)
	to send in the html element name. all code changes in javascript
	getVal();  This fix should alleviate mistakes where your HTML
	elements don't have an "id" defined, but do have a "name" defined.

	Rewrote docs in several areas.  Removed gratuitous acks in javascript
	code.

	Added documentation about returning multiple arguments from perl to a
	javascript function.

0.683 | bpederse | 2006-01-20 13:27:43

  Add scripts to show the use of JSON objects.
	Fixed radio and multiple-select (slight error);
	Cleaned up fnsplit.

	version to 0.683

0.684 | bpederse | 2006-01-28

	added pjx_loading.pl script.

	added function formDump() which returns an array of all form element
	names/ids in the page and sends them to the function:

	onclick=jsFunc(formDump(),['out'])

	add pjx_formDump.pl to the scripts directory documneting use.
	also changed getVal so that if you send in a function, it will
	return the result of the function, not hte function itself.

	also added $() and an alias to getVal() to follow prototype.js
	but, might be a bad idea since even in the HERE delimiters '>>'
	you have to escape the '$'..

0.69 (105) | bcthomas | 2006-02-16

	fixed typo in pjx_chained.pl
	Updated MANIFEST/Changes for release 0.684

  Added support for spans

  Added callback methods in javascript: pjx.prototype.pjxInitialized
  and pjx.prototype.pjxCompleted These methods are called before
  and after, respectively, any xmlhttp request.  It was much
  more responsive this way rather than providing a hook into each
  readyState, especially since there is not uniform support for
  the various readyStates in the common browsers.

  Changed the pjx_loading.pl script to use the above callbacks, and
  documented it.

  Switched from prototype to javascript object notation.  This is
  cosmetic, and only changes the way the code looks, not the way it
  functions.

  Added the ability to change the encoding that CGI::Ajax uses on input
  elements.  The default is encodeURIComponent, but this can be set to
  encode, etc., like so...

  $pjx->js_encode_function('escape'); 

  ...where 'escape' can be any of ('escape','encodeURI','encodeURIComponent')
  or a programmer-defined javascript function.

  altered MANIFEST to add two new scripts
    scripts/pjx_change_encoding.pl
    scripts/pjx_change_headers.pl

  Rearranged Class::Accessor initialization.


  Fixed select problem mentioned on forums, and changed pjx_formDump.pl as a
  test for that fix.

  updated to 0.69

0.691 (113) | bpederse | 2006-02-19

	fixed decode-ing
	if encoding is 'encode*' , decoding is decode*
	if encoding is escape, decoding is unescape



0.692 (116) | bpederse | 2006-03-08

	Wrapped a rogue debugging comment in an appropriate debugging check.

	changed pjx_nobuild to use 'pjxdebugrequest' instead of old
	'__pjxrequest'

	version to 0.692

0.693 (118) | bpederse | 2006-03-16

  - javascript is now inserted at beggining of header, not before
  - the eval in the javascript is gone. replaced by apply.
  - using that apply "this" in a callback will now refer to the
     javascript object. so this.url will give the url of the AJAX request.

0.694 (119) | bcthomas | 2006-03-18

	Added pjx_dynselect.pl to scripts in the dist.  This example
	demonstrates the same thing as the pjx_combo.pl example, but it uses a
	simple database to get values, instead of the calling script (as in
	pjx_combo.pl).

	fixed all the additional scripts that were missing '<form>' tags.



( run in 1.537 second using v1.01-cache-2.11-cpan-5a3173703d6 )