Open new window fron XHTML

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Open new window fron XHTML

Vinith Gowda1
How can we open new window from xhtml other than using javascript right now I am using js to open the window wherein i have to give application context name for opening.

I am working in Liferay and orbeon portlets

current code

var s= window.open ('/orbeon/mint-services/new-mail-interaction' ,  '_blank','toolbar=no,menubar=no,width=850,height=675,resizable=0,status=0,scrollbars=1');
       

Thanks in advance,
Vinith gowda.
Reply | Threaded
Open this post in threaded view
|

Re: Open new window fron XHTML

Markku Laine
> How can we open new window from xhtml other than using javascript  

> right now I
> am using js to open the window wherein i have to give application  
> context
> name for opening.
>
> I am working in Liferay and orbeon portlets
>
> current code
>
> var s= window.open ('/orbeon/mint-services/new-mail-interaction' ,
> '_blank
> ','toolbar
> =
> no
> ,menubar=no,width=850,height=675,resizable=0,status=0,scrollbars=1');
Try using the xforms:load Element: http://www.w3.org/TR/xforms11/#action-load

For example, <xforms:load resource="/orbeon/mint-services/new-mail-
interaction" show="new" />

Regards


-Markku


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Open new window fron XHTML

Vinith Gowda1
Thanks alot,
Reply | Threaded
Open this post in threaded view
|

Re: Open new window fron XHTML

Vinith Gowda1
In reply to this post by Markku Laine
Hi,

Earlier I was also setting some parameters for opening new window

var s = window.open('/orbeon/mint-services/open-interaction?openinteraction='+interactionid+'&openinteractiontype='+interactiontype+'&actorname='+remoteuserid+'&language='+language, '_blank','status=0,toolbar=no,menubar=no,width=850,height=675,resizable=0,scrollbars=1');

How can I achieve it in this approach
       
 <xforms:load resource="/orbeon/mint-services/new-mail-
interaction" show="new" />

Thanks in advance,
Vinith.


Markku Laine wrote
> How can we open new window from xhtml other than using javascript  
> right now I
> am using js to open the window wherein i have to give application  
> context
> name for opening.
>
> I am working in Liferay and orbeon portlets
>
> current code
>
> var s= window.open ('/orbeon/mint-services/new-mail-interaction' ,
> '_blank
> ','toolbar
> =
> no
> ,menubar=no,width=850,height=675,resizable=0,status=0,scrollbars=1');

Try using the xforms:load Element: http://www.w3.org/TR/xforms11/#action-load

For example, <xforms:load resource="/orbeon/mint-services/new-mail-
interaction" show="new" />

Regards


-Markku


--
You receive this message as a subscriber of the ops-users@ow2.org mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
For general help: mailto:sympa@ow2.org?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Open new window fron XHTML

Vinith Gowda1
In reply to this post by Vinith Gowda1
Solution to open new window with parameters

Use

<xforms:action ev:event="DOMActivate">
                 
                <xforms:setvalue ref="instance(vinith-instance')/vinith">VINITH</xforms:setvalue>
                  <xforms:load resource="/path/?openinteractiontype=Email&amp;conversationid=12&amp;uNmae={instance(vinith-instance')/vinith}" show="new" /> 
                </xforms:action> 

Thanks for all the help

Thread ENDS

VinithGowda wrote
How can we open new window from xhtml other than using javascript right now I am using js to open the window wherein i have to give application context name for opening.

I am working in Liferay and orbeon portlets

current code

var s= window.open ('/orbeon/mint-services/new-mail-interaction' ,  '_blank','toolbar=no,menubar=no,width=850,height=675,resizable=0,status=0,scrollbars=1');
       

Thanks in advance,
Vinith gowda.