popup

A universal createPopup() replacement?

血红的双手。 提交于 2019-11-28 12:10:52
Currently createPopup() is only supported in IE (See http://help.dottoro.com/ljsxcrhv.php ). Is there a universal createPopup() replacement? Or is conditional code required based on browser detection? Hopefully, I am looking for something that not only provides the same functionality, but has the same interface or at least could provide the ingredients to create createPopup() clone without too much work. You may want to look at some of the JavaScript libraries out there. Things like Dojo, Yahoo UI, or JQuery can help to encapsulate most of the browser-specific headaches. For example, with Dojo

Refreshing Parent window after closing popup

与世无争的帅哥 提交于 2019-11-28 12:09:05
I am creating a popup window that goes to hello.html. I want my original (parent page) to reload when i close the popup window (hello.html). I can't seem to get it to work, but I'm close. Here is the code I have so far for the main page and the hello.html page.... <!DOCTYPE html> <html> <head> <script type="text/javascript"> function open_win() { window.open("hello.html","_blank","toolbar=yes, location=yes, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=no, copyhistory=yes, width=400, height=400"); } </script> <script language="JavaScript"> function refreshParent() { window

Popup before window is closed

烈酒焚心 提交于 2019-11-28 11:51:09
问题 I want to open a custom popup box when browser close button is pressed, I want to ask a question to the users exiting that why are they leaving my site. I have checked quite few posts but the best thing I found is something like this post http://stackoverflow.com/questions/10847156/jquery-dialog-box-before-closing-browser-window But this just opens a browser default confirm box. I want to open a custom box like colorbox. My page is http://cwstudio.in/browserclose/ right now I am using alert

how to open a new uiview like a popup?

℡╲_俬逩灬. 提交于 2019-11-28 11:41:17
i have a tabbar app. there is a button in one of tab. i want to open a new uiviewcontroller by animation like popup when i press the button. popupviewcontroller has a uiwebview. i want to show some web pages in popup view. i designed the popupview in IB. how can i open my popupviewcontroller with animation like FBConnect. FBconnect opens the login dialog view with animation like a popup. You won't be able to open like a popup a UIViewController. For that you will have to use a simple UIView Add the UIview (popup shape like) to your current view. - (void) initPopUpView { popup.alpha = 0; popup

jQuery Popup Window Return Value to Parent

戏子无情 提交于 2019-11-28 11:26:59
How can I accomplish the following using jQuery: Open a popup window that returns a value to the parent window when a link in the child window is clicked, close the child window, and then have the parent automatically submit a form based on the value returned? I realize that the jQuery Dialog is a popular solution, but I require a popup window because the window's contents need to be navigable, and I want to avoid using an iframe in the jQuery Dialog. The popup window is going to be used to collect more than one value, ultimately to be returned as a delimited string to the parent, but this

How can I open a second jquery-mobile popup from the first popup

风流意气都作罢 提交于 2019-11-28 10:28:20
问题 Using jquery-mobile I am trying to open a second popup (to confirm) from the first popup when the user clicks delete. I have seen a similar thread with working jsfiddle code http://jsfiddle.net/EWQ6n/520/ here: Opening Dialog from within a Dialog in JQuery Mobile However, even copying and pasting this working pop-up code into my jsfiddle does not work. I am using jQuery 1.10.1 with 1.4.2 mobile. The working jsfiddle in the thread above is using 1.9. with mobile 1.30b.1 When I change my jquery

Android setError(“error”) not working in Textview

你说的曾经没有我的故事 提交于 2019-11-28 09:37:54
We can set error in Edittext successfully but failed to set in textview. is there any problem?? i tried ((TextView) findViewById(R.id.df)).requestFocus(); ((TextView) findViewById(R.id.df)).setSelected(true); ((TextView) findViewById(R.id.df)).setError("akjshbd"); but i am not getting popup for error. Actually , you can use the setError for the textView and show its popup . You just need to use the same style as of the EditText . Simply add the next attribute for the textView in the xml : style="@android:style/Widget.EditText" Default TextView is NOT focusable. So, you need to set android

How change position of popup menu on android overflow button?

半城伤御伤魂 提交于 2019-11-28 09:24:58
I just like to implement somethings same as popup menu in the Gmail app, anchored to the overflow button at the top-right. for that I used the same code as google tutorial for android Android popup menu , but for me show pop menu on top of edge of actionbar not under that. If you notice on pop menu of gmail overflow you saw that popmenu take place at edge of actionbar. This is the xml that I used for popup menu: <menu xmlns:android="http://schemas.android.com/apk/res/android" > <item android:id="@+id/item1" android:title="lablab"/> <item android:id="@+id/item2" android:title="lablab"/> </menu>

Javascript window.open is blocked by IE popup blocker

[亡魂溺海] 提交于 2019-11-28 09:13:09
Can anyone help, I have a popup that is being blocked. It is a popup that is created because somebody has clicked on a Print picture on my site. I thought IE is not supposed to block these when the popup came via an onclick ? Can anyone help? The child1 variable is always returned as NULL if popup blocker enabled... Maybe the problem is that the onclick event then passes control to a new function which loads a html file and does child.document.write Here is my simple code.. var width = 800; var height = 600; var left = parseInt((screen.availWidth / 2) - (width / 2)); var top = parseInt((screen

Using JQuery to open a popup window and print

℡╲_俬逩灬. 提交于 2019-11-28 09:09:38
A while back I created a lightbox plugin using jQuery that would load a url specified in a link into a lightbox. The code is really simple: $('.readmore').each(function(i){ $(this).popup(); }); and the link would look like this: <a class='readmore' href='view-details.php?Id=11'>TJ Kirchner</a> The plugin could also accept arguments for width, height, a different url, and more data to pass through. The problem I'm facing right now is printing the lightbox. I set it up so that the lightbox has a print button at the top of the box. That link would open up a new window and print that window. This