• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WO Ajax Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WO Ajax Question


  • Subject: Re: WO Ajax Question
  • From: Fabian Peters <email@hidden>
  • Date: Tue, 8 Aug 2006 00:18:25 +0200

Hi Jerry,

You can still use a WOConditional to make the content visible and
invisible.  Just wrap the conditional with an AjaxUpdateContainer and
change your WOHyperlink to an AjaxUpdateLink (with an action method
that changes the WOConditional's boolean).  I'd make it work without
ajax first, and then add the ajax parts.

John

As John said... Or, if you want to load the content when the main page loads, you could use a tiny bit of JavaScript. Suppose you put the area to be shown (and hidden?) in a


<div id="showAndHideThis" style="display: none;">Your content here.<div>

Then you can use something like

<a href="#showAndHideThis" onClick="Element.toggle ('showAndHideThis');">Click to show the hidden content</a>

The Element.toggle function is part of prototype, which will already be included if you use an AjaxUpdateContainer on the page. You can of course still use an update container within the div.

cheers

Fabian

On 8/7/06, Jerry W. Walker <email@hidden> wrote:
I'm trying to use Ajax to make an updatable area of the page appear
and disappear (similar to content in a WOConditional, but without
page refresh).

I've checked out the Project Wonder libraries and have installed the
Ajax and the ERExtensions Frameworks to satisfy a client's request
for Ajax interaction with his web site.

The components are very well integrated, thanks Project Wonder guys!

However, in the short time I've been experimenting with them, I'm
unable to see how to use them to satisfy this specific request from
my client.

On the GoogleMail page ( http://mail.google.com/mail/ ), for those
who use GoogleMail, a user can click on a "filters" link to define
new mail filters. When doing so, a new area opens up on the page
between the page heading and the mail listing to allow the user to
define a new filter. This area is created with Ajax, since there is
no page refresh.

I originally presumed that I would be able to create a comparable
capability using the Ajax Updates component, but to do so, would
require that I be able to dynamically reset its size from a line to
an area, or dynamically make it visible and invisible and I see no
way to do either.

If anyone using the WO Ajax support framework knows how to do this, I
would appreciate any help.

Thank,
Jerry

--
__ Jerry W. Walker,
    WebObjects Developer/Instructor for High Performance Industrial
Strength Internet Enabled Systems

     email@hidden
     203 278-4085        office



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com


This email sent to email@hidden

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40e-lumo.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >WO Ajax Question (From: "Jerry W. Walker" <email@hidden>)
 >Re: WO Ajax Question (From: "John Huss" <email@hidden>)

  • Prev by Date: Re: WO Ajax Question
  • Next by Date: WWDC & XCode 3
  • Previous by thread: Re: WO Ajax Question
  • Next by thread: Missing NSBundle Class in wojavaclient.jar, Howto consume a web service from a java client application
  • Index(es):
    • Date
    • Thread