popupwindow

window.open and $(document).ready

橙三吉。 提交于 2019-12-19 10:14:25
问题 I am trying to make a bookmarklet that opens a popup window. Inside this window is a list of CSS classes that once selected, highlights that object on window.opener page. So I'm running into two problems. Firebug doesn't work in the popup window, so I can't see what's going on. The window never finishes loading (at least I can tell in Firefox) so the $(document).ready(function(){...}) inside the window never gets executed. I can't open the popup from a remote location because I run into cross

Web Browser to handle pop ups within the application

落花浮王杯 提交于 2019-12-19 09:03:26
问题 I am trying to use the WebBrowser control to launch a new form for popups instead of it opening in IE. I have tried to use the AxWebBrowser instead to get the popups which works with NewWindow3 event and just doing e.ppDisp = AxWebBrowser.Application , but there are many limitations that come with AxWebBrowser. So instead I am trying to Extend the normal WebBrowser to include the NewWindow3 event like the AxWebBrowser but running into problems. With e.ppDisp = AxWebBrowser.Application I am

Problems with ListView inside a PopupWindow

拥有回忆 提交于 2019-12-19 04:07:40
问题 I have a ListView in a PopupWindow . The PopupWindow is initialized like this window.setContentView(root); window.setTouchable(true); window.setFocusable(true); window.setOutsideTouchable(true); window.setWidth(WindowManager.LayoutParams.WRAP_CONTENT); window.setHeight(WindowManager.LayoutParams.WRAP_CONTENT); Then the ListView : fileList = (ListView) root.findViewById(R.id.explorer_list); fileList.setChoiceMode(ListView.CHOICE_MODE_SINGLE); fileList.setSelector(android.R.drawable.screen

WebView blocking pop up windows?

安稳与你 提交于 2019-12-18 18:04:21
问题 I'm using WebView to browse pesopay.com and it works properly, except when I pressed the submit button. Using internet browsers like Google Chrome will show a pop up window, it confirms the information you filled. But in my Android WebView nothing happened when I pressed the submit button. I think because WebView is not enabled to display a pop up window. Can anyone point me what is wrong? Here is my activity: public class PaymentActivity extends Activity { String amount1; @SuppressLint(

How to close popup window and redirect the parent window

一世执手 提交于 2019-12-18 12:27:02
问题 string dialog_url = "http://www.facebook.com/dialog/oauth?client_id=" + app_id + "&redirect_uri=" + Server.UrlEncode(my_url) + "&scope=" + permission; ClientScript.RegisterClientScriptBlock(typeof(Page), "key", "window.open('"+dialog_url+"','_parent','');"); I use this code for popup permission dialog. When user click allow facebook redirect user to my app in the popup. I need to send code from popup window to parent window then close popup when user click allow. 回答1: Tell me if this is what

onAnimationEnd is not getting called, onAnimationStart works fine

情到浓时终转凉″ 提交于 2019-12-18 10:26:44
问题 I've a ScrollView in the PopupWindow. I'm animating ScrollView contents using TranslateAnimation. When animation starts, the onAnimationStart listener is called but the onAnimationEnd is not getting called. Any ideas ? Layout : <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:background="@drawable/popup_window_bg" android:layout_width="match_parent" android:layout_height="wrap_content"> <View android:layout_width="@dimen

Get The Measures of Popup Window

ⅰ亾dé卋堺 提交于 2019-12-18 03:11:08
问题 I already set up the pop up window, but i want to center it below the button (View v), that needs to be clicked to open it: public void showPopup(Context c, View v){ int[] location = new int[2]; v.getLocationOnScreen(location); ViewGroup base = (ViewGroup) getView().findViewById(R.id.pup_pattern); LayoutInflater inflater = (LayoutInflater) c.getSystemService(Context.LAYOUT_INFLATER_SERVICE); View pupLayout = inflater.inflate(R.layout.linearlayout_popup, base); final PopupWindow pup = new

When to use Android PopupWindow vs Dialog

南楼画角 提交于 2019-12-18 03:02:05
问题 I'm unclear about when to use PopupWindow vs Dialog. Any insight would be much appreciated. Thanks. 回答1: They both use the addView() method along with various windowManager methods. The two are similar in that regard. Dialogs seem to come with more built-in features for interaction, such as handlers and buttons already included in the base class, while PopupWindows come with more built-in methods for positioning them about the screen. I think that each of them can do exactly the same as the

Qt 4: Move window without title bar

坚强是说给别人听的谎言 提交于 2019-12-17 16:23:18
问题 I have a Qt::Popup flagged window (which does not have a title bar and close etc buttons) and would like to move by dragging\clicking on the non-title bar area.... On Win32, the solution could be WM_NCLBUTTONDOWN but my requirement is crossplatform. 回答1: Try this to move the window manually: void PopupWindow::mousePressEvent(QMouseEvent *event){ mpos = event->pos(); } void PopupWindow::mouseMoveEvent(QMouseEvent *event){ if (event->buttons() & Qt::LeftButton) { QPoint diff = event->pos() -

EditText On A Popup Window

∥☆過路亽.° 提交于 2019-12-17 16:07:02
问题 I am developing on Android 2.2 using Java. I put an editText on a PopupWindow and it's not working. It acts like a disabled edit text, clicking on the edit text won't show the soft keyboard. How can I add an edit text on a popupWindow? 回答1: Just try: AlertDialog.Builder alert = new AlertDialog.Builder(this); alert.setTitle("Title"); alert.setMessage("Message"); // Set an EditText view to get user input final EditText input = new EditText(this); alert.setView(input); alert.setPositiveButton(