Issue with Ajax Update(ProjectWonder)
Issue with Ajax Update(ProjectWonder)
- Subject: Issue with Ajax Update(ProjectWonder)
- From: Raghavender <email@hidden>
- Date: Fri, 11 Dec 2009 21:35:44 +0530
Hi,
I am working on WebObjects application, using AjaxUpdateContainers (ProjectWonder). I am trying to set a value from webobjects to a _javascript_ variable and based on that condition I am trying to update the framesets. But always the WebObjects value is returning false eventhough it is true when I print it in the Java. It seems webobjects element is not refreshing when an Ajax submit is performed, and eventhough the function is in AjaxUpdate area.
Following is the code snippet that gives the picture of the scenario explained. Any help would be appreciated.
-----------------------------HTML code----------------------------- function showPassageFrame() { var a="<WEBOBJECT NAME=ShowPassage></WEBOBJECT>"; if(a=='true'){ parent.PassageFrameset.rows="40%,*"; }else { parent.PassageFrameset.rows="0,*"; } } -----------------------------WOD code------------------------------ ShowPassage: WOString { value = showPassage; } -----------------------------Java code----------------------------- public String showPassage(){
if(currentItem.passageExists()) return "true"; else return "false"; } --------------------------------------------------------------------
Regards, Raghavender. |
_______________________________________________
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