on 11-21-2007 9:06 AM
hello,
I search in the forum to open a htm page from another when I click a button.
I have only one bsp with 2 pages with flow logic.
I found something like that :
from my "first_page.htm", I use a flag in OnInputprocessing : w_open_page = 'X'.
In the layout, I test my flag
if w_open_flag = 'X'
windows.open(('secondpage.htm', 'width=100, height=200');
endif.
But it doesn't work.
If I put in Oninput processing of my firstpage.htm : navigation->goto_page('secondpage.htm')
it works but I can't manage the size, the toolbar...
Can someone help me please ?
Thanks
Regards
Véronique
you can use the following code
<htmlb:button id = "DEFS"
text = "Button Text"
onClientClick = "javascript:window.open ('secondpage.htm', '_blank', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=800,height=550,left = 200,top = 100');" />
Raja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Raja,
Thanks a lot, it is exactly what I need, and it works. Great !!
Have a nice day.
Véronique
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Here in you your case, you will have to do a bit of mixing between ABAP and JavaScript...
What you can do is write a openWindow function as follows :
function openWindow()
{
<% IF w_open_flag = 'X' %>
windows.open(('secondpage.htm', 'width=100, height=200');
<%ENDIF.%>
}
Then in your button, you'll have to call openWindow using onClientClick...but this will only take the previous stored value of w_open_flag, before the server round-trip...
Hope this helps.
<b><i>Do reward each useful answer..!</i></b>
Thanks,
Tatvagna.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.