Menu
  • HOME
  • TAGS

I want to pop up a div after submit a form

javascript,jquery,html,forms,popupwindow

I solve the issue see the example what I have done This is the post.php <html> <head> <script src="http://code.jquery.com/jquery-1.9.1.js"></script> <script src="http://code.jquery.com/ui/1.11.4/jquery-ui.js"></script> <script type="text/javascript"> $(document).ready(function(){ $('#form').on('submit',function(e){ e.preventDefault(); $.post('result.php', $(this).serialize(), function(response){ $('#result').html(response); }); }); }); </script> <style type="text/css">...

Popup working on one browser but not another

javascript,popupwindow

It is good practice to return false in your onclick handler. The link normally leads to the page you want it to show, while the popup script is called in the event handler. When you return false in your function, you prevent the browser from following the link. This might...

How to include a jquery function within a window.open

jquery,telerik-grid,popupwindow

You can use backslash with the end script tag. mywindow.document.write("<script>(function(){alert('1');})();<\/script>"); ...

Custom PopupWindow with BitmapDrawable deprecated method

android,deprecated,popupwindow,bitmapdrawable

if want to clean the background, as stated in your comment //Clear the default translucent background you can use popup.setBackgroundDrawable(null); ...

Popup is not displayed

c#,wpf,xaml,popupwindow

You need to add PlacementTarget which is where the popup will appear. For example <Popup .... PlacementTarget={Binding ElemtnName=_configframe} /> Hope it solved this...

Home screen popup in android

android,popupwindow

What you'r showing can be achived by using the SYSTEM_ALERT_WINDOW permission. Take a look at a chathead tutorial to get started!

Google maps — pop up box

google-maps,kml,popupwindow

You could consider the following approach: 1)suppress a default info window: var kmlOptions = { suppressInfoWindows: true, // do not to display an info window when clicked preserveViewport: false, map: map }; var layer = new google.maps.KmlLayer(url, kmlOptions); 2)register a shared instance of Info Window: var infoWindow = new google.maps.InfoWindow();...

Xpages xsp popup form + disable close button

javascript,xpages,popupwindow,maximize-window

Look at help for window.open for the relevant browser. The popup window is not being managed by XPage functionality but is being opened as a normal browser window. If you want to manage the opened window and it's being opened from an XPage, use the Dialog component from the Extension...

Floating widgets/pop up window in android

android,popupwindow

You have to start a foreground Service and draw using the WindowManager on top of everything else, manage your popup position, size, etc... WindowManger windowManager = Context.getSystemService(Context.WINDOW_SERVICE); You will also have to add this permission "android.permission.SYSTEM_ALERT_WINDOW" to your manifest. A simpler solution would be to use a library called StandOut,...

IE11 Enterprise Mode not being enabled when page opened in popup page without toolbars or address bar

popupwindow,internet-explorer-11

you can enable enterprise mode by default for every site using a window registry entry. And it will work for pop also. put the pop up URL in site list....

ADF popup resize

popup,oracle-adf,popupwindow

You can either try to set explicit dimensions for af:dialog control or try to wrap or even replace current panelGridLayout with set of panelGroupLayout. In fact if I got your idea right, you can use simple panelFormLayout to get desired result.

Get the location of PopupWindow

android,popupwindow

I ended up using the following: int[] location = new int[2]; popupWindow.getContentView(). getLocationOnScreen(location); ...

How to open multiple javascript pop ups at the same time?

javascript,for-loop,popup,popupwindow

The second argument to window.open() must be unique for it to open a new window or must be set to "_blank". From the MDN page for window.open(): var windowObjectReference = window.open(strUrl, strWindowName, [strWindowFeatures]); If a window with the name strWindowName already exists, then strUrl is loaded into the existing window....

How to define layout in a PopupWindow from an xml file, when PopupWindow method is called from a separate class

android,xml,popupwindow

Change showPopup like this public class showPopup { Context ctx; Button btnDismiss, btnSaveRecord, btnLastRecord; EditText edSpeciesLookup,edSpeciesLookupRowid; DBAdapter msdb; SQLiteDatabase db; public showPopup(Context ctx){ this.ctx = ctx; msdb = new DBAdapter(ctx,"gfda", null); db = msdb.getWritableDatabase(); } public void goJoe(View parent){ LayoutInflater inflater = (LayoutInflater) ctx.getSystemService(Context.LAYOUT_INFLATER_SERVICE); View popUpView = inflater.inflate(R.layout.popup_layout, null, false);...

How to open custom view in same window in sugarcrm..like quick compose email view in leads module of SugarCRM

javascript,email,sugarcrm,popupwindow

Open the Popup in a new window with a defined size using javascript function popup (url) { foo = window.open(url, "Popup", "width=400,height=300,resizable=yes"); foo.focus(); return false; } or take a look at JQuery Dialog...

Closing java popup frame without exiting program

java,swing,jframe,popupwindow

You may try this: frame1.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);//<-- destroy only this frame ...

Popup window not showing up with spinner item selection?

java,android,spinner,popupwindow

remove your CustomOnItemSelectedListener.java class and then use this code public class MainActivity extends Activity { Button btnClosePopup; // Button OpenPopup; ArrayList array; service ser = new service(array); Spinner spinner; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); spinner = (Spinner) findViewById(R.id.spinner1); /* * OpenPopup = (Button) findViewById(R.id.button1); * OpenPopup.setOnClickListener(new OnClickListener(){...

How to close pop-up on successful sign-in

php,html,forms,login,popupwindow

Try this on your login.php echo '<script>if (window.opener){window.opener.location.href="PUT URL TO PAGE HERE"; window.close();}</script>'; And edit your HTML <li><a onclick="popupCenter('http://taskbasket.net/gallery/login.html', 'myPop1',400,380);" href="javascript:void(0);">Sign In</a></li> To <li><a onclick="openLoginWindow()" href="javascript:void(0);">Sign In</a></li> JavaScript: function openLoginWindow() { myPop1 =...

How to change the contents of a pop up window

android,listview,popupwindow

You have to call findViewById() on your ContentView and call setText() to change your content. TextView textView = (TextView) popup.getContentView().findViewById(R.id.textView_id); textView.setText("New Content"); A small tip: If you set a background on your PopupWindow you get the dismiss behavior for touches outside of the PopupWindow for free. popup.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); ...

Android, setText in TextView in popup window

java,android,popupwindow

If your userScore is from type int, you should change this line: bestScoreTextView.setText(userScore); to: bestScoreTextView.setText(Integer.toString(userScore)); You are not able to set something different from String as text of a TextView...

How to Make Info Boxes Appear on Website on Click

javascript,html,css,popupwindow

Generally people here are suggesting lightboxes, which work wonderfully for galleries, but are complete overkill for info boxes like this. Lightboxes can slow your website down alot, as they require a lot of assets to be included, multiple HTTP requests for .css files and .js files, when your problem could...

Popup Manipulation WP8.1 C#

c#,popup,windows-phone-8.1,image-manipulation,popupwindow

I was able to solve it with the help of a colleague. I was using the wrong deltamanipulation handler. I used the handler of the popup itself, whereas the ctrlGrid_Deltamanipulation handler was the correct one. Flo...

Android setting View with PopupWindow to invisible without invoking PopupWindow 's onDismiss

android,popupwindow

you could set the view's alpha to 0 for invisible and 1 for visible.

Ck editor not show in popup javascript

javascript,html,popup,ckeditor,popupwindow

To initialize the new textarea that you are inserting append the ckeditor script after the new elements: var s=document.createElement('script'); s.type='text/javascript'; s.src='//cdn.ckeditor.com/4.4.7/standard/ckeditor.js'; $('body').append(s); As long as the ckeditor.js is included on the page, this should rescan the page for the textarea element and change to the ckeditor. http://jsfiddle.net/96d9102L/1/...

Print window blocked by browser popup blocker

javascript,asp.net,vb.net,popupwindow

A long time ago I had to deal with something like this. I wound up abandoning the popup window to print and just used print styling in my CSS file. Yeah, it's a lot more work, and you're going to use a lot of paper to test it, but I...

chrome.storage between popup and browser action window

javascript,google-chrome,google-chrome-extension,popupwindow,google-chrome-storage

I think that your newPage.html is asking for the value of 'enabled' before it's been set by the event handler in settings.html, which only executes after you've actually opened the browser popup. So this is why it's undefined. Open the popup and you should see that it's defined.

client side validation not working for model window / ajax-loaded-form in yii

ajax,yii,popupwindow

The simple way is using render method in your Ajax action and creating empty layout for this action. If you do so, validation scripts will be included in the server response. Also you need to exclude jquery.js and other script with Yii::app()->clientScript->scriptMap and include them in main layout always.

wxPython popup window bound to a wxButton

python,wxpython,popupwindow

Did you look at the wxPython demo? It has several examples of using wx.PopupWindow and its variants. Here's an example based on the demo: import wx ######################################################################## class TestPopup(wx.PopupWindow): """""" #---------------------------------------------------------------------- def __init__(self, parent, style): """Constructor""" wx.PopupWindow.__init__(self, parent, style) panel = wx.Panel(self) self.panel = panel panel.SetBackgroundColour("CADET BLUE") st = wx.StaticText(panel,...

Refreshing parent fragment on PopupWindow.dismiss

android,performance,android-fragments,listener,popupwindow

Never got to the point where I could refresh the parent window directly on the child PopupWindow dismiss. The final solution (workaround) was to use fragmentmanager replace() after an onTouch event from the spinner only when a static flag (iSpeciesRefresh) had been set that indicated a modified SQL spinner lookup...

Opaque pop up window

html,css,popupwindow

It works, but only if the Javascript comes before your onclick-handlers in the source code. So you need to change the following setting in JSFiddle (the second dropdown must be set to "No wrap - in <head>": In the updated fiddle, I also fixed the opacity issue. Your whole overlay...

Display a popup on long click in extended EditText class

android,android-edittext,popupwindow

I found it : Replace import android.R; by import myPackage.R; Sorry, I use CTRL + Shift + o to add missing imports and not see it...

Closing a generic pop up in Selenium

python,selenium,selenium-webdriver,webdriver,popupwindow

As I can see, it's not an alert box!!. It is just a Simple Pop-up that appears when you are entering the page and it is present in main window itself(no need of switching and closing it too). Use the below code to close it. driver.find_element_by_xpath('//div[contains(@class,"ui-dialog") and @aria-describedby="dialogContent2"]//button[@title="Close"]').click() ...

Create go back button function like Angry Birds

android,popupwindow

Remove this line: super.onBackPressed(); From: @Override public void onBackPressed() { // Write your code here initiatePopupWindow(); super.onBackPressed(); } ...

Pop up window code fails

javascript,html,popup,popupwindow

Delete the second popitup function. You need only the first one. Pass the URL to open in the argument. E.g., popitup('/popup.html');. Since this button is inside a form, the button will cause the form to be submitted, which will navigate away from the current page before the popup can be...

Selenium webdriver selecting new window c#

c#,selenium,selenium-webdriver,webdriver,popupwindow

It is really easy in Selenium WebDriver. By using SwitchTo method driver.SwitchTo().Window(driver.WindowHandles.Last()); See this blog post as well http://binaryclips.com/2015/03/13/selenium-webdriver-in-c-switch-to-new-window/...

Android Popup Window X and Y positioning

android,popupwindow,android-popupwindow

It would refer where u r popping the window.. For example, if B represents address 100, then the expression, B+5 would signify the address 105. The 5 in the expression is the offset

Pop-up message when site it accessed on mobile device

html,mobile,web,popupwindow

Yes it is possible, you need mobile detection script, have a look at following project on github. I have used it myself for similar requirements. This solution is for PHP (you haven't mention which technologies you been using). https://github.com/serbanghita/Mobile-Detect...

No action clicking on Bootstrap popup

javascript,jquery,onclick,bootstrap,popupwindow

Your data-target="#myModal" is referring to a <div> that should have an id='myModal' Hence change this line <div class="modal fade"> to <div id="myModal" class="modal fade"> and it should work. Note: You are missing the bootstrap.css file. Update: you should load jQuery first. Remove your scripts and links and load it in...

I'm trying to implement this code on Android, im a noob at this [duplicate]

java,android,popupwindow

Looks like a typo but it should be: Button showPopUp = (Button) findViewById(R.id.button); showPopUp.setOnClickListener(new View.OnClickListener(){ @Override public void onClick(View v) { showSimplePopUp(); } }); ...

HTML and Clickable table cell

php,html,popupwindow

using pure javascript, without js framework <tbody> <?php $mystring = ""; //remember to remore the ' symbol ... echo '<td scope="row" style="width: 300px" onclick="alert(\'' .$mystrin. '\');">&nbsp;</td>'; echo '<td style="background-color:#FFFFFF"></td>'; ... ?> </tbody> ...

ng-grid with popup edit and save

angularjs,popup,popupwindow,ng-grid

You just need to override your cell template in your edit column templates. columnDefs would be like below var cellTemplate='<div class="ngCellText" data-ng-model="row"><button data-ng-click="updateSelectedRow(row,$event)">Edit</button></div>' columnDefs: [{field: 'name', displayName: 'Name', enableCellEdit: true}, {field:'age', displayName:'Age'}, {field:'',cellTemplate:cellTemplate} ] attach updateSelectedRow function to your controller scope,this function gets the first parameter as entire row object....

firefox addon - how to open this kind of window?

firefox-addon,popupwindow

var sDOMWin = Services.wm.getMostRecentWindow(null); var sa = Cc["@mozilla.org/supports-array;1"].createInstance(Ci.nsISupportsArray); var wuri = Cc["@mozilla.org/supports-string;1"].createInstance(Ci.nsISupportsString); wuri.data = 'http://www.bing.com/'; sa.AppendElement(wuri); let features = "chrome,width=300,height=400"; if (PrivateBrowsingUtils.permanentPrivateBrowsing || PrivateBrowsingUtils.isWindowPrivate(sDOMWin)) { features += ",private"; } else { features += ",non-private"; } var XULWindow =...

How to delegate touch events on both popup window and activity android

android,popup,popupwindow,ontouchevent

You can achieve this using WindowManager. private void popUp(View yourPopUpView,WindowManager.LayoutParams params){ WindowManager manager = (WindowManager)getSystemService(WINDOW_SERVICE); manager.addView(yourPopUpView,params); } remove same view using private void removePopUp(View yourPopUpView){ WindowManager manager = (WindowManager)getSystemService(WINDOW_SERVICE); manager.removeView(yourPopUpView); } but don't forget to remove that view onResume of your activity. B'coz it will remain after destroy of your...

Multiple Bootstrap Popup for same page not working

jquery,twitter-bootstrap,popup,popupwindow

yes it is possible to load different content in each window using same data target and different hyperlinks here the demo [Demo][1] [1]: http://plnkr.co/edit/yMofRZ?p=preview ...

Handling events from a Kendo MVC Grid's PopUp editor window

kendo-grid,kendo-asp.net-mvc,popupwindow

The "events" of the kendo grid popup are not honoured/serialized (at least not the last time I tested this back in 2014) and so you should use the grid's Edit event to control the "Pop Up" window events So within your grid add this: .Events(event => event.Edit("onEdit")) .//other grid settings...

ADF popups with datepicker

datepicker,popup,popupwindow,jdeveloper,adf

If you didn't specify width or height, the dialog by default will expand to cover the content, make sure also you don't set the stetchFirstChild attribute as well.

How to use the EditorGUILayout to create a dragable popup window?

c#,unity3d,popupwindow

I found my answer after I posted this same question on the Unity Forums. Someone linked me to a Node Editor (http://forum.unity3d.com/threads/simple-node-editor.189230/) that seems very helpful.

Android ClickListeners not firing from a PopupWindow

android,onclicklistener,popupwindow

If btnDismissxml and btnSaveRecordxml are your buttons in popup window, you could find them using layout.findViewById rather than MainActivity.this.findViewById. Use the following code: View layout = (TableLayout) layoutInflater.inflate(R.layout.popup_layout, null); // ... btnDismiss=(Button) layout.findViewById(R.id.btnDismissxml); btnDismiss.setOnClickListener(new OnClickListener() { // ... }); btnSaveRecord=(Button) layout.findViewById(R.id.btnSaveRecordxml); btnSaveRecord.setOnClickListener(new OnClickListener() { // ... }); ...

Cannot show loading spinner on Kendo window

javascript,asp.net-mvc,kendo-ui,kendo-asp.net-mvc,popupwindow

If you want to use events like "open" then add .Events like in the snippet below. @(Html.Kendo().Window() .Name("winCreate") .Visible(false) .LoadContentFrom("Create", "Issue") .Modal(true) .Actions(actions => actions .Close() ) .Events(events => events .Open("onOpen") .Refresh("onRefresh") ) ) That should get your functions to fire. see http://demos.telerik.com/aspnet-mvc/window/events...

Jquery: Open a html window in popup jquery

jquery,html,login,popupwindow

If you have jQuery available anyway why not make full use of it? You can add a click event in jQuery like this: $('.vpb_general_button').click(function(event) { event.preventDefault(); vpb_show_login_box($(this).data('popup-type')); }); In your HTML add a data-attribute to specify the popup type and remove the onclick attribute and replace the href value with...

Show a GWT Container from another class in a popup window

java,eclipse,gwt,popupwindow

If Login class extends Widget, you can simply setWidget(new Login()); ...