popup

Show popup after page load

a 夏天 提交于 2019-11-29 12:18:42
I created a jQuery popup by following an online tutorial. I want to show this popup after page load/after page load it appears + how to code it as like it appears after 5 second of page load. Due to my low knowledge on jQuery I am not able to make it work as of my requirements. Any idea how to do it? Javascript- <script type="text/javascript"> function PopUp(){ document.getElementById('ac-wrapper').style.display="none"; } </script> CSS- #ac-wrapper { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,.6); z-index: 1001; } #popup{ width: 555px; height:

JComboBox popup is not resized if i add item when it is visible

天涯浪子 提交于 2019-11-29 12:07:53
I have a problem with a JComboBox popup. My JComboBox has an autocompletition implementation like google search box. So, the problem is if I add or remove items when popup is visible it is not resized, I need to close and reopen it. But this fire popupBecomeInvisible and popupBecomeVisible and so i can't use this events for my real porpouse. There is a way to "refresh" popup size in according to count of items that it contains, without close and reopen it? Thanks. Invoke revalidate() on the panel containing the combobox. This will cause the components to be layed out again based on their

Pop up form on button click

本秂侑毒 提交于 2019-11-29 11:16:02
Is there a way to create a form in pop-up window on click of a button using jquery? Form will have few input fields and 'Save' & 'Cancel' buttons. So on clicking 'Save', the information in form will be saved in database and will be back to original screen. I would like to have a fade-in pop up window. Use this code HTML <div id="divdeps" style="display:none" title=""></div> Jquery on DOM ready $("#divdeps").dialog({ autoOpen: false, show: 'slide', resizable: false, position: 'center', stack: true, height: 'auto', width: 'auto', modal: true }); This code will initialize a Dialog and put it in

How do I correctly bind a Popup to a ToggleButton?

[亡魂溺海] 提交于 2019-11-29 11:11:02
问题 I am trying to do something that seems relatively simple and logic from a user interface level but I have one bug that is very annoying. I have a ToggleButton and I am trying to show a Popup when the button is toggled in and hide the Popup when the button is toggled out. The Popup also hides when the user clicks away from it. Everything is working as expected with the following XAML except when I click the toggle button after the Popup is shown, the Popup disappears for a split second then

I want to open a new tab instead of a popup window

泄露秘密 提交于 2019-11-29 10:43:39
I am trying to open a new tab. But Window.open() is opening up popup window. I want to open hello.php file in a new tab. But it is opening up in a new popup window. <!DOCTYPE html> <html> <head> <script language="javascript"> document.onmousedown=disableclick; //status="Right Click Disabled"; function disableclick(event) { if(event.button==2) { //alert(status); return false; } } </script> </head> <body oncontextmenu="return false"> <form action="" method="POST" oncontextmenu="return false"> <b>Enter Username:</b><input type="text" name="username" value=""/><br> <b>Enter Password: </b><input

window.open returns undefined in chrome extension

醉酒当歌 提交于 2019-11-29 10:22:06
I have content script based Chrome extension. I initiate the sign in process through a popup window in the content script. I open a popup window using the below code and then wait till its closed. However, I get an 'undefined' from window.open method. Does anybody know why this happens? loginwin is undefined in below code although the popup window opens up fine with the specified login_url . The code below is called from my content script. var loginWin = window.open(login_url, 'LoginWindow', "width=655,height=490"); console.log(loginWin); // Check every 100 ms if the popup is closed. var

jquery mobile popup not working?

烂漫一生 提交于 2019-11-29 09:18:40
im using jquery mobile. im trying to create a popup. I found this simpel code that should work. http://jquerymobile.com/branches/popup-widget/docs/pages/popup/index.html I tried the code in the example <a href="#popupBasic" data-rel="popup">Tooltip</a> <div data-role="popup" id="popupBasic"> This is a completely basic popup, no options set. </div> but when I put this in my own code the div will still display and when I click on the button it goes to an other page, instead of a popup. Can someone help me? user1263226 Well ... I've gotten it to work (sample code below, sorry for the muddled

PHP/Javascript Session Timeout with warning

本秂侑毒 提交于 2019-11-29 08:51:43
Does anyone know where I can read a tutorial on, or know how to create a Javascript-based session timeout that has a warning built in, and optionally these features: user activity resets the timer interacts with database (last seen on, etc.) if inactive, it will log out users (by redirecting to a logout.php page) before it logs users out, it will display a popup message that asks if they want to continue Unfortunately, I don't know too much about Javascript. JSantos I don't know how your website is done, but if done right, you should have a log in session and some sort of back end control

Get DOM elements of a popup for jQuery manipulation

谁都会走 提交于 2019-11-29 07:59:38
I am creating a popup as follows: var comet = { popup: null, newPopup: function(windowsname, w, h){ this.popup = window.open(windowsname, windowsname, 'width=' + w + ',height=' + h); var self = comet; var logOut= null; $(this.popup.document).ready(function(){ logOut = self.popup.document.getElementById('logout'); console.log(logOut); $(logOut).live('click', function(){ alert('HELLO'); return false; }) }) }, some_function: function(){ //calling it here: this.newPopup('index.php',1120,550); } } The logOut sometimes (usually on the 1st window open) returns null. Also, the click handler never goes

Changing popup content

橙三吉。 提交于 2019-11-29 07:43:55
I'm opening a popup using popup = window.open(....) and then trying to insert some html into a div in the popup. popup.document.getElementById('div-content').innerHTML = "hello world"; doesn't do anything however, popup.document.getElementById('the-field').value = "Hello There"; changes the content of a field with an id="the-field". Any idea why one is working but not the other? How can i replace the content of the div? hope you can help. EDIT: the popup <!DOCTYPE html> <html> <head> <title>Report</title> <meta charset="utf-8"> </head> <body> <header> </header> <div id="div-content"></div>