on 10-17-2006 6:35 PM
Hi,
I have a BSP application in which I need to show up certain information in a small popup screen on user click on a button.
How to create a BSP page with certain dimensions (like in ABAP - window starting at x..) and open it up as a popup from a BSP screen user click??
Kindly suggest.
Thanks,
Krish
here is a sample code to open a window:
sample1:
<HTML>
<TITLE>TESTTTTT</TITLE>
<BODY bgcolor=="#ffffff" onUnload="window.open('documents_todo.htm',window.name + 'x','width=600,height=700')">
</BODY>
</HTML>
sample2:
OnClick="window.open(this.href,'_blank',
'width=500,height=500,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1');
return false;"
Message was edited by: manasa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
check the below code. here a button called prin is used and that button is attached to a page called document_print.htm
l_string = 'NewWindowPrint();htmlbevent.cancelSubmit = true;'.
<htmlb:button id = "<%= lw_buttons-id %>"
text = "<%= lw_buttons-text %>"
tooltip = "<%= lw_buttons-text %>"
disabled = "<%= l_disabled %>"
design = "<%= l_design %>"
onClick = "<%= lw_buttons-id %>"
onClientClick = "<%= l_string%>"
width = "90" />
<!--
function NewWindowPrint() {
WindowPrint =
window.open("document_print.htm", "Print", "dependent=yes resizable=yes toolbar=yes");
WindowPrint.focus();
}
orelse you can use the
OnClick="window.open(this.href,'_blank',
'width=500,height=500,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1');
return false;" in the button attribute
PS: Please assign points accordingly if the suggestions are of any help to you.
Message was edited by: manasa
Thanks Manasa. I got an idea of using script to open my bsp page in a small window.
Thanks,
Krish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.