Hi friends
I have an html page i want to print a portion of this html page, I know a javascript function to print a page,
onClick="javascript:window.print(); return false;
but how can i print a portion of a page.
Any one have an idea, please share it to me
Thanks
When using ECMAScripts typeof on plugin elements (i.e. embed or object), Safari & FireFox return "function":
typeof(window.document['myPlugin']) // "function"
This can't be influenced on the plugin side, as the browser doesn't call the plugin here. Funny enough, in IE the same line evaluates to "object".
Is that simply implementation dependent behaviour as per ECMAScript §11.4.3 or am i missing something here?
I am using Adobe Flash Media Live Encoder to stream live video to a video streaming server.
The webcam is in our office pointed out the window.
Thankfully, Flash Media Live Encoder has a checkbox to un-include audio.
I am wondering how I can push a recorded message to the audio ( or music ). Is there any way I can play a recording and have it behave like a microphone?
What is better for window form applications or what do you all perfer?
An application with a Trial Period by a Date (like free to use for 30 days) or do you like to limit functionality of the application for the Free Version?
(function () {
function User() {
//some properties
}
//private fn 1
User.prototype._aPrivateFn = function () {
//private function defined just like a public function,
//for convetion underscore character is added
}
//private function type 2
//a closure
function _anotherPrivateFunction() {
// do something
}
//public function
User.prototype.APublicFunction = function () {
//call private fn1
this._aPrivateFn();
//call private fn2
_anotherPrivateFunction();
}
window.UserX = User;
})();
//which of the two ways of defining private methods of a javascript object is better way, specially in sense of memory management and performance.
Hi,
Hoping someone can assist but I am trying to access a div id="mnuGrp" that resides inside a child iframe(id="iframe2) from the parent window within the document.ready() section but unsure how to access this child div in the parent inorder to apply fadein and fadeout calls.
Any help would be appreciated.
Thanks.
I tried this one and it generates a textview window:
http://zetcode.com/tutorials/gtktutorial/gtktextview/
But I don't want it to be editable.
BTW,how can I show the scroll bar when the text overflows?
At work we have a C# solution with over 80 projects. Is it possible in VS 2010 to stop compilation as soon as an error is encountered rather than the default behaviour which is to continue as far as possible and display a list of errors in the error window?
I have been trying to open a hidden default browser from delphi but coulnd't.
I tried
ShellExecute(self.WindowHandle,'open','www.google.com',nil,nil, SW_HIDE);
and I get my chrome browser open but not hidden, and it opens a tab not a new window, also tried with TStartupInfo with the same results. Is there another way to achieve this?
I am creating a simple batch file to assist in a few things, and I have some instructions that it prints out as well that I want the user to see before exit. Currently, the window closes very quickly. So I added PAUSE at the end of the file, but it does not want to work.
I looked at other questions on SO and have checked to make sure the line endings are CRLF and that I have CRLF at the end of the file.
Any suggestions?
I have an issue with my application when windows shuts down - my app isn't exiting nicely, resulting in the End Task window being displayed. How can I use the debugger to see what's going on? e.g. is there a way to send the windows shutdown message(s) to my application so it thinks windows is shutting down, so i can see exactly how it behaves?
Hi all,
I would like to know if it's possible to use javascript to open a popup window containing an image, and at the same time have the print dialog show. Once someone clicks on print, the popup closes.
Is this easily attainable?
Hi all
When we install some applications in Winodws, we would get a dialog ask us if we want to attend the some consumer program, and send some system/applcation information to the company. Or when the Window server meets failure, it would also send error report to MS. I want to know, how can a application send information from client to report?
Best Regards,
I recently installed PHP on IIS/Windows 7, but it isn't working. I am getting the entire source file in the browser window.
FastCGI Settings shows c:\Program Files (x86)\PHP\php-cgi.exe
Handler Mappings has
Request Path: *.php
Modue: FastCgiModule
Executable: C:\Program Files (x86)\PHP\php-cgi.exe
Request Restrictions: File or Folder, All verbs, Script Access
I recently started using Linux and was floored by the ease with which windows can be moved and resized with simple keyboard combinations using Compiz. If I want to move a terminal to top-right of the screen a simple CTRL+ALT+Numpad9 does the trick for me, and it resizes the window at the same time. I'm sure you guys know what I'm talking about.
I would like to know if there is a way to do this in windows.
Thanks.
I have an ajax navigation similar like here.
now if a menu is clicked window.location.hash is added like this #about
i want to REmove the hash (#) so that people can easily copy and share the link naturally.
How this can be done in april 2012 without a pagerefresh crossbrowserwise (IE7+,FF,Opera,Safari) ?
For inspiration: Here is actually someone already doing this, click on "portfolio" or "features" and watch the url in your browser.
thanks for tips
I created a WPF Window and made it a MEF Export.
I can do a ShowDialog once on the MEF Import but the second time it aborts because the MEF component was closed by the first ShowDialog.
What can be done to allow repeats of ShowDialog?
I have a Win32 window and it has a gl context. I'm trying to figure out how to resize the context because even if I use glviewport it still stays the same size as when I created the context. Am I misunderstanding glviewport? i'm providing it the bottom left corner and the size I want but its still the original size that I made the context.
Thanks
I wrote a simple Qt application (Windows+Mac) that uses QtWebKit to render
a web site inside a window.
But I already saw differences in layout and behavior between our app and Chrome
(that uses WebKit as well), e.g.:
- different fonts are displayed for the same web page
- an html anchor link with "javascript:someFunction()" is not working
Is there somewhere a summary list of all such differences (not the entire QtWebKit bug list)?
Also: is there a way to use a WebKit version more similar to Chrome in my application?
Everything was fine until I did an upgrade from Ubuntu 9.04 to 9.10. Since then, Eclipse just doesn't respond properly. The following are the symptoms I can see:
When I click on update, it grabs the
available updates but doesn't show
them. Any internal window that is
displayed has corrupted buttons
I cannot click on any of the buttons. I
have to keep pressing Tab to
highlight that specific button and
then hit spacebar.
Anyone knows how to solve this?
Sometimes R stops displaying output. I type the number 1, followed by the return key, and nothing appears.
This situation occurred after I pressed the "STOP" icon in the window, which is for stopping long calculations. I'm using R 2.11.0 on a Mac.
Does pressing "STOP" cause R to stop displaying output? How do I get R to display output again?
My first day using this IDE...
is there a way to configure the IDE to open files in the project by double click? It is rather painful having to drag files from the project overview into the editor window.
in my project i have one registration form which is developed in C#.net.to this form at lost i have an print button on clicking this button i have to get print window which we usually see when we give print in our system .plz provide me this code and help me. thanks uu
I cannot figure out a way to disable a container AND its children in Swing. Is Swing really missing this basic feature?
If I do setEnabled(false) on a container, its children are still enabled.
My GUI structure is pretty complex, and doing a traversion of all elements below the container is not an option. Neither is a GlassPane on top of the container (the container is not the entire window).