How i create popup menu when button onclick
how i create popup menu when button onclick
You try adding a scrip tag in your jsp code, and calling the function in the onclick attribute.
Example:
<script><![CDATA[
function confirmDelete(){
if(confirm("Are you sure you want to delete selected user")){
return true;
} else{
return false;
]]></script>
<ui:button action="#{View.delete_action}" binding="#{View.delete}" id="delete" onclick="confirmDelete"/>
Cheers
Daniel
null
Similar Messages
-
Help!!! How to create simple menu with buttons.
I basically need help on how to create a menu with Up, Left, Next and Back buttons.
Then it must have a submenus like Telephone, Lights, Fans and Television.
and more sub sub menus of On and Off buttons.
Ive jut started to learn Labview and a newbie at it.
It could be really nice if someone could make an example.
Would appreciate it if it could work like Ipod interface.
Thanksssss! Pls help!Duplicate post.
-
HOW I CREATE POPUP MENU ON MOUSE OVER
hello every body
my question is how to create popupmenu on mouse over on table column data in studio creator.
please help me
thanksok this examples runs great on image component, in button or hyperlynk dont work finee or i can find how, paste this code in the head of the jsp code:
<script type="text/javascript"><![CDATA[
var opt=0;
* AnyLink Drop Down Menu- � Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
//Contents for menu 1
var menu1=new Array()
menu1[0]='Information<\/a>'
menu1[1]='Del<\/a>'
var menuwidth='165px' //default menu width
var menubgcolor='lightyellow' //menu bgcolor
var disappeardelay=250 //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?
/////No further editting needed
var ie4=document.all
var ns6=document.getElementById&&!document.all
if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"><\/div>')
function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
return totaloffset;
function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top="-500px"
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
return edgeoffset
function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)
if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
return clickreturnvalue()
function clickreturnvalue(){
if (ie4||ns6) return false
else return true
function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
if (hidemenu_onclick=="yes")
document.onclick=hidemenu
]]></script>
Next, paste this in css stylesheet:
#dropmenudiv{
position:absolute;
border:1px solid black;
border-bottom-width: 0;
font:normal 12px Verdana;
line-height:18px;
z-index:100;
#dropmenudiv a{
width: 100%;
display: block;
text-indent: 3px;
border-bottom: 1px solid black;
padding: 1px 0;
text-decoration: none;
font-weight: bold;
#dropmenudiv a:hover{
/*hover background color*/
background-color: #faebeb
and in the image componen in event onClick paste this
dropdownmenu(this, event, menu1, '150px')
onMouseOut event paste this:
delayhidemenu()
this should works, and as u can see, u can get more examples like this in the DHTML page. I hope it helps
Plz tell me if this is what ur looking for, oor if u need help, post again
Beltazor -
How do I disable the brushes popup menu when I left click in Photoshop CS5?
How do I disable the brushes popup menu when I left click in Photoshop CS5? I am trying to use the clone stamp and I am not able to get a sample because of this popup menu.
LOL, I can't even begin to complain with the number if times I misread questions, and then try to break my own record for the number of typos in a single post.
The image above was taken on a photgraphic weekend where the group (of all young ladies ) I was travelling with, set us a photography challenge. The one above was my response to a 'faceless portrait'. The only other one I attempted was this response for a picture of a 'wild animal', featuring camera club president Liz.
Oh what fun we had, laughing and laughing until our faces fell off.
[EDIT] Both taken at Karamea, which some visitors to NZ might recognise as the western end of the Heaphy Track. -
Help Needed. Creating popup windows when creating an app. And a text search button
Hi, I'm new to indesign and am having trouble creating popup windows when creating an app. Also i would like to create a text search button so that people can search text within my app. Can these things be done?? im using cs6 at the moment.
Questions on creating apps with the Adobe Digital Publishing Suite need to be asked in the DPS Forum, where I've moved your question.
-
How to create popup in ABAP webdynpro.
Hi,
I found lot of examples to create a popup/ model window for java webdynpro.
Could anyone give a pointer to an example which explains how to create popup in ABAP webdynpro??
Kind Regards
ShahulHi Thomas:
It worked fine the 1st time. Second time when the user clicks on the button to open up the popup it dumps.
Here is the code in the action for popup:
data: l_cmp_api type ref to if_wd_Component,
l_window_manager type ref to if_wd_window_manager,
l_api type ref to if_wd_View_controller,
l_text type string_table.
l_cmp_api = wd_comp_controller->wd_get_api( ).
l_window_manager = l_cmp_api->get_window_manager( ).
if wd_this->m_popup is initial.
wd_this->m_popup = l_window_manager->create_window(
window_name = 'DOCQSOW'
button_kind = if_wd_window=>co_buttons_ok
message_type = if_wd_window=>co_msg_type_none ).
component_usage_name = 'DOCQUERY_USAGE_1'
l_api = wd_this->wd_get_api( ).
wd_this->m_popup->subscribe_to_button_event(
button = if_wd_window=>co_button_ok
button_text = 'Transfer'
action_name = 'POPUP_CLOSED'
action_view = l_api ) .
wd_this->m_popup->SET_REMOVE_ON_CLOSE( abap_true ).
endif.
wd_this->m_popup->open( ).
Second time when the popup tries to open, I get the following error:
Method: RENDER_WINDOW of program CL_WDR_WINDOW_RENDERER========CP
Method: RENDER_WINDOW of program CL_WDR_CLIENT_SSR=============CP
Method: RENDER_POPUP_WINDOWS of program CL_WDR_CLIENT_SSR=============CP
Method: RENDER_WINDOWS of program CL_WDR_CLIENT_SSR=============CP
Method: IF_WDR_RESPONSE_RENDERER~RENDER_VIEWS of program CL_WDR_CLIENT_SSR=============CP
Method: IF_WDR_RESPONSE_RENDERER~RENDER_USER_INTERFACE_UPDATES of program CL_WDR_CLIENT_SSR=============CP
Method: IF_WDR_CLIENT~SEND_RESPONSE of program CL_WDR_CLIENT_ABSTRACT_HTTP===CP
Method: IF_WDR_CLIENT~SEND_RESPONSE of program CL_WDR_CLIENT_SSR=============CP
Method: EXECUTE of program CL_WDR_MAIN_TASK==============CP
Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
Is there a way to destroy the instance of the m_popup?
Any help is appreciated!
Thanks -
How to create a new push button in application tool bar in GMGRANT thru BDT
Dear SAP Gurus -
We have a requirement in 'GMGRANT' transaction. We need to create a button in the application tool bar of 'GMGRANT' transaction. Once the button is activated, if the user clicks on the button then it will go to a new screen (external screen). User can input data in to the external sceeen and upon saving, the data will be stored in to a custom table and when user clicks on 'back ' button user should come back to the GMGRANT transaction.
Just wanted to know, how to create / activate a new button on application tool bar of GMGRANT transaction and what are the configuration and detail steps to achieve the same through BDT.
We went through a lot of documents on BDT but do not have a proper solution.
Could you please help.
Thanks in advance.
Regards,
Atul Mohantyhi,
You can find user-exits (menu exits) to add new menu item.
But, there is no possibility to add new buttons on application tool bar.
Regards,
Sailaja. -
How to create a Menu for PeopleSoft HRMS application program ?
Folks,
Hello. I am developing PeopleSoft HRMS application program for a client. I have created 10 components. But I don't understand how to create a Menu on the left handside for users to access the components. The Menu's structure is as follows:
Folder Root containing Folder1, Folder2.
Folder1 containing Folder1a, Folder1b.
Folder2 containing Folder2a, Folder2b.
Folder1a containing Component1, Component2.
Folder1b containing Component3, Component4.
Folder2a containing Component5, Component6, Component7.
Folder2b containing Component8, Component9, Component10.
The Folder Root should appear in the Menu on the left handside. A user can reach Compoent1 by clicking
Folder Root -> Folder1->Folder1a ->Component1.
Can any folks tell me how to create such a hiearachical Menu ? Thanks.Folks,
Hello. Thanks a lot for replying to me. By using PeopleTools->Portal->Structure and Content Reference, I have created the hierachical folder groups:
FolderRoot containing Folder1 and Folder2
Folder1 -> Folder1a -> the link to a Component
Folder1 -> Folder1b -> the link to a Component
Folder2 -> Folder2a -> the link to a Component
The above hierachical folder groups have appeared on the left handside under "Menu" and work correctly.
But when click on "FolderRoot", "Folder1" and "Folder2" don't appear under "FolderRoot" on the right handside of the screen. When click on "Folder1", "Folder1a" and "Folder1b" don't appear under "Folder1" on the right handside of the screen.
I have checked PeopleTools ->Portal -> Structure and Content Reference's folder administration, there are no places to type in information to have children folders appear under its parent folder on the right handside of the screen.
My question is :
How to make children folders appear under its parent folder on the right handside of the screen ? -
How to create a menu in the canvas
Hi,
I want to create a menu in my canvas, like this:
http://nsa30.casimages.com/img/2013/01/14/130114030406639595.pngYes you can create menu in form canvas
First create menu under main form property just above program units. and then create menu items for displaying menu item.
After creating you menu item you just click on Canvas property by selecting canvas and F4
then under Function property select your menu under "POPUP MENU"
when you right click your canvas runtime you will see a menu just like web.
mark this correct/helpful -
How to create file menu in the swing?
How to create file menu or any menu in the swing?
Please help me.How to create file menu or any menu in the
swing?
Please help me.By file menu, do you mean where you can choose a file to open or save to? If so, have you had a look at the File Chooser component? If not, please click on the link in the previous sentence to the Sun tutorial.
Good luck
/Pete -
How to create dropdown box, radio button,check box in wad
Hi,
How to create dropdown box, radio button,check box in wad.
Thanks,
cheta.Cheta,
This are all standard Web Items in the WAD. Drag them onto your template and then make the changes you need to them in their Properties.
Regards
Gill -
How to create Dynamic Menu in 11g?
Hello All,
I am using JDeveloper/Adf 11g.
Can you please tell me how to create Dynamic menu(means Menu will be created from table if we make any changes in table it will reflect to the Menu).
Thanks.
Neelmani Jaiswal
(Madhav, Hayaghat)
Edited by: Neelmani Jaiswal on Jan 6, 2009 11:01 AM
Edited by: Neelmani Jaiswal on Jan 6, 2009 11:01 AM
Edited by: Neelmani Jaiswal on Feb 3, 2009 8:46 AMNeelmani,
How: write some code.
The Web User Interface Developer's Guide for Oracle Application Development Framework will be helpful. Hint: you may want to read section 14.2 (especially 14.2.1, item 2, which talks about using iterators in a menu) OR section 17.5, which talks about creating menus to support page hierarchies.
John -
How to create an activity when system finds duplicate record!!
Hi CRM Experts,
I am working on CRM 5.0. We are uploading contact details to CRM through ELM.
Here My queries are:
1) How to create An Activity when system finds duplicate record?
2) By using ELM we can create BP with Activities and BP with Leads. But Here, my scenario is we have to Create BP with leads and Acivities. can any one help me on these areas?
Thank in Advance.
SreeHi Sree,
I can help you with your first query.
When the system finds a duplicate record then either the system stops working further or proceeds with the error free record.
So once the duplicate entry is found only the first record will be considered and not the second or the duplicate record.
Regards,
Rekha Dadwal
Kindly reward with points if usefull !!!! -
HT1430 How do I restart iPad when buttons are not responding?
How do I restart iPad when buttons are not responding?
GIve the reset another try; nothing to lose.
Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears
Note: Data will not be affected. -
Creating Popup Menu in Desktop Intelligence
I need help creating a popup menu in the Tool menu of Deski.
This popup needs to be visible when a report is open or when no report is open.
It's my first add-in and I can't make my code work.
Sub BuildMyMenu()
Dim PopMenu As CmdBarControl
Dim CleanPop As CmdBarControl
Dim unvButton As CmdBarControl
Dim lsiButton As CmdBarControl
On Error Resume Next 'disable errors temporarily
Set PopMenu = Application.CmdBars(1).Controls("&Tools").Controls("&Clean-Up Utility")
If Err.Number = 0 Then 'button already exists
Button.Delete 'delete it so that it can be re-defined
Else
Err.Clear 'clear the error so other testing can take place
End If
Set PopMenu = Application.CmdBars(1).Controls("&Tools").Controls.Add(boBarPopup)
PopMenu.Caption = "&Clean-Up Utility"
PopMenu.DescriptionText = "Clean-Up Utility"
PopMenu.TooltipText = "Clean-Up Utility"
Set unvButton = PopMenu.CmdBarPopup.Controls.Add(boControlButton)
unvButton.Caption = "C&lean-Up Universe..."
unvButton.DescriptionText = "Clean-Up Universe"
unvButton.TooltipText = "Clean-Up Universe"
unvButton.OnAction = filename(ThisDocument) & "!ShowUserForm2"
Set PopMenu = Application.CmdBars(2).Controls("&Tools").Controls("&Clean-Up Utility")
If Err.Number = 0 Then 'button already exists
Button.Delete 'delete it so that it can be re-defined
Else
Err.Clear 'clear the error so other testing can take place
End If
Set PopMenu = Application.CmdBars(2).Controls("&Tools").Controls.Add(boBarPopup)
PopMenu.Caption = "&Clean-Up Utility"
PopMenu.DescriptionText = "Clean-Up Utility"
PopMenu.TooltipText = "Clean-Up Utility"
Set unvButton = PopMenu.CmdBarPopup.Controls.Add(boControlButton)
unvButton.Caption = "C&lean-Up Universe..."
unvButton.DescriptionText = "Clean-Up Universe"
unvButton.TooltipText = "Clean-Up Universe"
unvButton.OnAction = filename(ThisDocument) & "!ShowUserForm2"
End Sub
What I need is a popup menu from the Tools menu, that says "Clean-Up Utilities". From that popup menu, 2 more buttons: one that says "Clean-Up Universes" and the other "Clean-Up LSI".
Thanks for your help.In what way, exactly, isn't it working? Do you see the pop up menu at all?
Did you make sure that JS is enabled in your Acrobat?
I've ran the code and it seems to work fine for me. However, I don't quite
get what it's supposed to do.
Is it supposed to take the user to a specific page, or to a named
destination? It seems like it's trying to do both, which doesn't make much
sense.
Maybe you are looking for
-
Way to acquire more than one sample at a time into Labview from cFP?
In reading data from my cFP into Labview I see that I can use the FP Read.vi but it only grabs one sample per call (loop iteration). In other devices, I could just use the AI Acquire Waveform.vi to grab multiple samples per call. Can I use this for
-
How do I install stunnel on Yosemite server 4 so my mail relay works on port 465?
My ISP blocks outbound smtp mail and insists I point to their relay server on port 465. After I set up mail relaying in the server config app I get SMTP log errors saying it's unimplemented. After some research it looks like I need to install a SSL
-
Compiling with javac command gives error msg
HI, I'm working on a linux based system and I need java for programming projects but when i want to compile a project, I get the error: 1. WARNING in Og05_08.java (at line 8) public class Og05_08 extends Applet implements ActionListener
-
YY field is missing in RHS (POOL area)
Hi Gurus, I need to add YYACCDT field in LO datasource 2LIS_12_VCITM. So I double clicked maintenance structure and wanted to pull the field YYACCDT from RHS to LHS in POOL area, but I don't see this field YYACCDT in RHS. But I found this field as a
-
language, english