I want to make a capture window in
*standalone* (in a *.js file) javascript, much in the same way as the
VBscript inputbox() function. I can make it inside a *.html file with
the prompt() function.
Or, is there a way to make a window and then work with this window?
I have an HTML page where I am opening a child window using window.open. the child window is something like yahoo.com. I want to refresh the parent window when the child window is closed.
I know this question has been asked a million times but I still can't get an event from an embedded ActiveX Exe to be caught in javascript. I am able to access all the properties and methods of the ActiveX Exe, I just can't seem to catch the event.
The event handler never fires. I debugged the ActiveX Exe and verified that the event is indeed being raised. I am able to catch the event in a VB6 test container project as well. Any ideas?
I am trying to write a script which will allow me to read the contents of an HTTP web page into memory, parse the data, and output a calculated value.
The HTTP page is on a web enable appliance - I am reading some data out of a table for further calculation. I can't modify the web appliance, only read the text data.
I've written a script on my Windoze PC that successful uses a MSXML2 ActiveX object to read the contents of a web page into memory using the xmlhttp.responseText object. The problem is that the ActiveX object is not available on a lightweight Linux based http server.
I need to write a script that will work with ASP/Javascript on a lightweight Linux based http server.
I have created a classic Snake game. When I run the game in a browser, it works fine. But when I run it as an IFRAME in another window, then it fails to get the keyboard events.
Parent CODE:
Code:
<html> <head> </head>
[code]....
how to capture Window Keyboard Event in the Child IFrame
I have a couple of utility windows - a calculator and a calendar that popup from my main window. I would like them to always stay in front of the parent window until they are shut down with there own close buttons. As it is, when you click back to the parent window, of course it comes in front of the child windows. Can I do this?
I have a rather lengthy javascript application that I want to run in it's own window. It looks like it is no problem to do using the window.open and document.write commands, however this seems like a lot of extra code to wrap every line of my javascript with mywindow.document.write(""); Is there anyway around this or perhaps a different approach to running javascript in it's own window?
this function should open a popup showing an image automatically adjusting browser window's height and width. It works fine with IE6 but not with IE7. In IE7 opens popup too small. why ? Code:
Is there any way to have a browser window resize itself when displaying a new HTML page? I'm using the javascript below to open a NEW window at a certain size, but I'd prefer the page to load in the same window, just sized differently. Here's the script I'm currently using:
<script language="JavaScript"> function link () { msgWindow=window.open('http://anylink/index.html','link','border=0,directories=no,height="100%",left=1,location=no,menubar=0,resizable=yes,scrollbars=yes,status=yes,toolbar=no,top=1,width="100%"');} </script>
<a href="javascript: link ()">any link</a>
The situation is: in Win2000 open OK in respect to the width & height referer in script. But on WinXP, this link open on a litle window.
How can I create a popup message window, with a custom message, that asks a yes or no question? If they click yes, it can load another script or a page, if they click no it leaves them where they are? Can someone give me an example?
Please let me know to execute specific javascript code when the browser is exiting. When a browser is closed i want some code to display images or text to be executed.
We've got a CDROM with a Flash Projector movie on it. Within the Flash projector (which is already burned on CDROM...can't change it), we have the typical getURL fuctions to open a Web browser and browse a link. This works fine when there isn't a browser window already open: the link opens in the FOREGROUND, infront of our Flash Projector.
However, now we've got a problem since after we've burned the CDROM, if a user has a Web browser open already, and clicks a link within the Projector, the new window does not come to the front...it simply stays behind the full-screen projector.
So, we've tried putting an onLoad="window.focus;" tag in our BODY tag on the web pages our Project is linking to, and that actually worked at first (the pages are ASP Classic). However, they're not working anymore. We're really not sure why.
When we load that page, quickly flip to another via ALT-TAB, the first page DOES come forward. However, it doesn't seem to come infront of another application. So, if we hit reload for the above page, then quiclkly ALT-TAB to MS Word, the page will not force itself infront of Word.
but did not help much. In Internet Explorer w.document.charset="ISO-8559-2" after w.document.open solved the problem, but with Mozilla this do not work. There is a w.document.characterSet, but this is read only. Mozilla seems forcing UTF-8 - is there a way to change this?
I have a form that I would like to get the values entered on the page and go to a new page in the same window. I can make the code work to open a new window, but I need it to open in the same window. Here is what I have:
Is it possible to send attributes into this function to change the print preferences from Portrait to Landscape with IE 6.0 set as the standard browser? Right now I'm using
javascript:window.print()
as the command.
Clients want it and I want to confirm it's not possible. If I'm using an old, deprecated process, please give me a heads-up. I'm no Javascript genius.
I've written a Fax Cover Sheet generator web page for the company I work for. The user inputs all the information into a form and clicks 'print'. I do not know CGI, so i've accomplished the tasking using javascript to generate a pop-up window containing the formatted information from the form. However, no matter what I try, I can't get the browser to print the pop-up box instead of the main window. Can someone help me?
Here is sample code that imitates how the real page works:
I would like to have a page on my site containing links to external URLs. When I click on these links, a new window should open with the new URL and some text formatting javascript (or other language) code be applied to it. This would be like loading a new URL and then apply a bookmarklet to it. But I want to be able to do both in one shot. you click on the link, open a new window, and apply the code to the URL. Also, when you open the new window, the location bar should show the external URL, not mine. It doesn't have to necessarily be done with Javascript.
I am trying to determine whether the status bar is visible or not .. is there a method to check the state? I did a google search and found info re: window.status.visible but it returns undefined?! Has it been deprecated?