window

jQuery: receive document ready() on child window

↘锁芯ラ 提交于 2020-01-03 07:09:11
问题 I'm trying to get notified when the child window I'm opening has its document loaded and ready. This doesn't seem to work: win = window.open(href, 'test', 'width=300, height=400'); win.focus(); $(win.document).ready(function() { // Ok, the function will reach here but if I try to manipulate the // DOM it doesn't work unless I use breakpoints $(this).contents().find("...").doStuff(); // nothing happens }); What do I have to do? 回答1: Have you tried this? — $(win.document).ready(function() { $

Qt remove title bar

不想你离开。 提交于 2020-01-03 06:06:30
问题 I've a MediaPanel which inherits from QWidget and I want to hide the title bar but event if I set the flags with setWindowFlags(Qt::CustomizeWindowHint | Qt::WindowTitleHint); (or some other flags like ) the result is still the same : and if I use setWindowFlags(Qt::Window | Qt::FramelessWindowHint); I lose all the buttons, labels and sliders : I've played with the Qt example and some combination seems to be impossible... EDIT : I've posted a reduced part of my code, could someone tell me

Qt remove title bar

╄→гoц情女王★ 提交于 2020-01-03 06:06:11
问题 I've a MediaPanel which inherits from QWidget and I want to hide the title bar but event if I set the flags with setWindowFlags(Qt::CustomizeWindowHint | Qt::WindowTitleHint); (or some other flags like ) the result is still the same : and if I use setWindowFlags(Qt::Window | Qt::FramelessWindowHint); I lose all the buttons, labels and sliders : I've played with the Qt example and some combination seems to be impossible... EDIT : I've posted a reduced part of my code, could someone tell me

Is it possible to, in JavaFX, have a scene, stage, and control that are all transparent?

让人想犯罪 __ 提交于 2020-01-03 04:46:11
问题 I have a custom control which is 3 simple buttons. The control handles operations for the application to which it is tied, but it must reside on an external stage for reasons. The thing that is annoying about it is that between all buttons is a white background. I've tried all of the following to eliminate it: Init StageStyle to Transparent Declare Scene with a transparent background : new Scene(Node, X, Y, Color.TRANSPARENT); Declare Scene with a NULL background : new Scene(Node, X, Y, null)

Zipping all files and subdirectories inside a folder using batch file

 ̄綄美尐妖づ 提交于 2020-01-02 20:18:08
问题 I wrote the below script to zip all the files and sub directories inside a folder. But I am only getting the sub directories zipped. What am I doing wrong here? Please advice. FOR /D %%i IN ("*") DO "C:\Program Files (x86)\WinRAR\WinRAR.exe" a ../../../apps-1.0.2.zip "%%~fi\" 回答1: Give a try for this example and tell me the results : -R Switch : for recurring subfolders -AF <Type> Switch : specify the archive format -EP1 Switch : to exclude the names of the basic folder -DH Switch: open

SAS: Print to Log AND View Live Log Window Simultaneously

六月ゝ 毕业季﹏ 提交于 2020-01-02 18:33:09
问题 I understand that PROC PRINTTO LOG="C:TEMP\SAS LOG.TXT" outputs the entire contents of a SAS program log, but this also essentially leaves the log window blank while the program is running and I am unable to view the 'live' progress of the SAS program so to speak. I want to ultimately save the log for further review, but I also want to keep an eye on things as they're happening live when I'm running tests, etc. -- is there a way to print the log and keep the contents of the log live as they

Jquery run function from child window in parent window

亡梦爱人 提交于 2020-01-02 11:06:14
问题 I have a popup window and I want to run a function from in the parent window. In the child I have: $(document).ready(function(){ parent.$.fn.guestFromPop('Action'); }); In the parent I have: $(document).ready(function(){ function guestFromPop(data) { alert(data); } }); The problem is when parent.$.fn.guestFromPop('Action'); I never see the alert, nothing happens. Am I doing something wrong? 回答1: This doesn't declare the function $.fn.guestFromPop : $(document).ready(function(){ function

Change height of window title bar for Visual Studio 2013 and/or Office applications

假装没事ソ 提交于 2020-01-02 08:19:08
问题 I don't know why but Microsoft decided to make the title bars of the windows of Visual Studio 2013 and Office applications huge! They are so thicker than normal windows and this is really annoying especially if you have a small screen. Do you think there is a way to change this? 回答1: There is an extension for Visual Commander to hide Visual Studio 2013 title bar. In the HideTitleBar function instead of setting visibility to collapsed you can try to change height. 回答2: I don't think you can

How to switch to Login window using obj-c in Mac OS 10.6+

点点圈 提交于 2020-01-02 07:32:47
问题 I have an app and I need to switch to Login window programmatically similar to this application: http://itunes.apple.com/us/app/lock-me-now/id464265594?mt=12 Thank you. 回答1: If you want to switch user: /System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -switchToUserID UserID for UserID id -u userName For login Window /System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend 回答2: You send an «aevtlogo» Apple Event to the loginwindow

How to get child window url from parent window using javascript

♀尐吖头ヾ 提交于 2020-01-02 07:13:50
问题 I'm launching a child window with a window reference name. I want to capture the URL of the child window when it changes each time. var winRef; var url='http://www.google.com'; if(winRef == null || winRef.closed) { winRef = window.open(url, "mywindow"); winRef.focus(); alert(winRef.location.href); } winRef.captureEvents(Event.CHANGE); winRef.onchange=function(){ alert('change event triggered'); console.log(winRef.location.href); } I have tried with events LOAD, CHANGE to capture the location