Hi Gerald,
Thanks for your quick reply..
the one which you suggested looks not suitable for me.
 
I am  using myfaces1.1 and tomhawk1.1
 
in one scenario. i want implement window.popup() should act like window.showModalDialog()
 
so for that I am disabling all components in Parent window.
 
i am giving a simple code snippet here
 

<

div id="topMenu" style ="position:absolute; top:7px; left:7px; z-index=10;">

<t:jscookMenu layout="#{messages['layout']}" theme="#{messages['theme']}">

<t:navigationMenuItems value="#{myBean.menu}" />

</t:jscookMenu>

</

div>
 
 
function openWindow()
{

var prodWindow = window.open("faces/DetailPopUp.jsf", "DetailPopUp",

"menubar=no, status=no, toolbar=no, resizable=yes, width=802, height=200, innerWidth=824, innerHeight=200, location=no");

var ret = disableAll();
}

 

function disableAll()
{
 var form = document.forms["_myform"];
 if ( form )
  form.disabled = true;

 var topmenu = document.getElementById("topMenu");
 if ( topmenu )
  topmenu.disabled = true;

// generated ID : id0_menu

 var menu = document.getElementById("id0_menu");    
 if ( menu )
  menu.disabled = true;
 
 
if I use model dialog boxes...
i am facing a problem. i need to submit the form in the popup window. and capture the output in the same popup .. but when i submit the popup, the result screen coming in a new window.
 
so please help me out.
 
 
Thanks,
-Sesh

 
On 9/11/06, Gerald Müllan <[EMAIL PROTECTED]> wrote:
Hi,

what is about another approach where using a dialog. While the dialog
is the front window
(like a pop up) the back-window is frozen.

Have a look at current svn-head in sandbox environment. The
modalDialog component comes with this approach.

If it`s not that kind of stuff you are searching for, let`s have a
look at your written js code.

Just post it here,

cheers,

Gerald

On 9/11/06, Seshireddy G <[EMAIL PROTECTED]> wrote:
>
>
> HI,
> I am facing a problem.
> I want to disable t:jscookMenu links...
>
> the scenario is like this.
>
> I have a page with  t:jscookMenu  . on click of a button on this page i am
> opening a popup window using window.popup()
> then i want to disable complete parent window.
> i wrote a _javascript_ to disable but it is not working. when i click on any
> menu click it is working.
>
> so please tell me how to disable  menu links
>
>
> 2) the other way we can do is using Model window popups.. but i am unable to
> submit the popup window.
>
>
> when i submit the popup it should close and come back to parent after
> completing the backend operation.
>
> Can any one suggest me how to use model window popups in JSF application.CC
>
>
> --
>
> -Sesh


--
Gerald Müllan
Schelleingasse 2/11
1040 Vienna, Austria
0043 699 11772506
[EMAIL PROTECTED]



--

-Sesh

Reply via email to