Skip to Content
author's profile photo Former Member
Former Member

How to make invisible iView visible on a page after click of a link?

Hi,

I have three iViews on a page.Out of three one iView is invisible by default.

Now on the click of link on one of the iView I want to make invisible iView as Visible and shift focus on that iView and after performing some operations on that I want to again hide that iView.

How can i achieve this??

Is there any other better approach for acheiving above task??

Regards,

Vikas Khandpur

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Oct 08, 2005 at 07:23 AM

    Hi Vikas,

    You can use DIV and Isolated HTML container in an iView to achieve this.

    Required :

    1. iView to be hidden and displayed on link click.

    2. Another iView with a link, DIV tag and Isolated HTML container. Have the Isolated HTML container in a DIV tag and play with the property of the DIV tag on link click using Javascript.

    Hope that helps.

    Regards,

    John Peter.

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Vikas,

      You can have a link in the iView, and then capture the event to change the PCD properties of the page so that the third iView is displayed.

      You could then navigate to the page, let the user work on it, and provide a link to do the opposite.

      -


      To make an iView on a page, do something like the following:

      String pageID = "portal_content/myFolder/myRole/myPage";

      try {

      iCtx = new InitialContext(env);

      IPage myPage = (IPage)iCtx.lookup(pageID);

      Enumeration myIviews = myPage.getiViews();

      while (myIviews.hasMoreElements()) {

      Binding bind = (Binding) myIviews.nextElement();

      IiView myIview = (IiView) bind.getObject();

      myIview.putAttribute(IAttriView.ATTRIBUTE_AVAILABILITY,IAttriViewValues.AVAILABILITY_VALUE_AVAILABLE);

      myIview.save();

      }

      }

      -


      But why not just have iViews on their own pages, all under a folder, and just navigate between them? Why do you need the iViews to disappear?

      As far I know, there is no focus, that is, where you navigate to a page and set the focus on iView #2.

      Daniel

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.