[Zope-dev] Javascript wizards wanted for Zope project

Jim Sanford jsanford@atinucleus.com
Tue, 16 Nov 1999 22:48:47 -0600


The following example works in IE 4 and 5. Our company has standardized on
IE so I have not yet tested this with Netscape but it should work there too.
This is a a variation on a line out of an active page.:

<input type=text name=address size=40 name=address maxlength=40
value=<dtml-var "_.string.strip(address)" null=''>
onChange="opener.document.ContactForm.address.value=this.value">

This updates a  field in the browser window that opened the window this code
is in.

Have also used nothing but javascipt in a child window to update fields in a
parent window. The child form on load updates all the fields in the window
that called it and then closes itself. This is handy when you have a complex
data entry form with a lot of javascript functions (money formatting,
autocalcs, ...)and a number of large select lists (some with 100 plus
items). Using this routine, when you save a change to the form, you don't
have to waste pipe space reloading the form, you just update the data.

 __________________________________________________________________

              Jim Sanford
      .       Database Engineer
     / \  /   Accelerated Technology, Inc.
    /   /     720 Oak Circle Drive East
   /  /  \    Mobile, AL 36609
  / /     \   Voice: 334-661-5770  fax: 334-661-5788
 /         \  E-Mail: jsanford@atinucleus.com
              Web: http://www.atinucleus.com

 Source Code, No Royalties, Any CPU...It just make sense !
 __________________________________________________________________

----- Original Message -----
From: Anthony Pfrunder <s341625@student.uq.edu.au>
To: <zope@zope.org>; <zope-dev@zope.org>
Sent: Tuesday, November 16, 1999 7:45 PM
Subject: [Zope-dev] Javascript wizards wanted for Zope project


> Hi,
>
> I'm working on the VisualZope project and have run into some problems with
> javascript.  Since it isn't my native language (python is) I was wondering
> if some javascript wizards are interested in getting their names in the
> credits.
>
> The problem is: how do I get a form to talk to an object in another frame?
> ie:
>
> <input value=".." ... onchange="mywidget.setAttribute('property',
> value-of-inputbox)>
>
> where mywidget is a javascript function defined in another (loaded) frame.
>
> Also, how can I "call" a html page without causing a reload:
>
> function jsZDOMsetAttribute(name, value){
>   call("getWidget/setAttribute?name=name&value=value")
> }
>
> For further information on this problem please see
> http://163.182.196.200/zwiki/VisualZope - jsZDOM reflecter part.
>
> Thanks in advance,
>
> Anthony Pfrunder
>
>
> _______________________________________________
> Zope-Dev maillist  -  Zope-Dev@zope.org
> http://lists.zope.org/mailman/listinfo/zope-dev
>            No cross posts or HTML encoding!
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope )
>
>