Creating Windows Startup Script?
Dec 13, 2010
I need to create windows startup script that opens default web browser and navigate to some site say [URL]i've tried to use the following script:
window.open("http://google.com");
but the following error occured:
Line:1
Char:1
Error: 'window' is undefined
[code]....
View 14 Replies
ADVERTISEMENT
Jan 9, 2010
I am trying to create a design based upon the layout of windows 7 with task bar along the bottom and a start menu which will contain a comprehensive site navigation. I have all of it working so far I am just having problems figuring out a javascript method for the opening the start menu.
What I need is to have the start button, when pressed it opens the menu (basically a hidden div which is shown upon press) so far so good, I have found a script that does this, however I also need to get it so that when an option in the menu is pressed or someone clicks outside the menu the menu closes.
My skills lie in xhtml/css & php javascript is still very new territory (adjusting jquery plugins)
View 6 Replies
View Related
Aug 12, 2009
This has me completely stumped. I have a multiple select form element in my HTML document that needs to be manipulated by two different sets of context-sensitive controls. One set of controls is marked up as follows:
<div id="divControls1" name="divControls1" style="display:none">
<form id="fControls1" name="fControls1">
<input type="button" id="btnAdd" name="btnAdd" value="Add" onClick="addStuff();" />
<input type="button" id="btnEdit" name="btnEdit" value="Edit" onClick="editStuff();" disabled />
<input type="button" id="btnDelete" name="btnDelete" value="Delete" onClick="deleteStuff();" disabled />
</form>
</div>
When I load this page into Safari (on Mac OS X) and set the style of divControls1 to "display:block," I have an enabled "Add" button, a disabled "Edit" button, and a disabled "Delete" button, just as I expected. (I monitor selections in a multiple selection element to turn the buttons on and off.) But when I load this page into Firefox (also Mac OS X), all three buttons are disabled at startup. My page runs a function called startup() when the body fires onLoad. To try to troubleshoot the problem, I wrote this line at the beginning of the startup() function:
function startup() {
alert (document.getElementById("btnAdd").disabled);
...
When I run this code in Safari, the alert returns "false" (not disabled), just as I would expect, and intended. However, the same code in Firefox (Mac OS X) returns "true" (disabled) ... but the same code in Firefox (WinXP) returns "false"!
View 1 Replies
View Related
Mar 13, 2010
I read about window object and specifically about creating popup windows. The code below produces a popup window when a link is clicked:
Code JavaScript:
var Survey =
{
init: function()
{
var surveyLink = document.getElementById("survey");
Core.addEventListener(surveyLink, "click", Survey.clickListener);
},
[Code]....
I would like to add a "Close Window" button on survey.html page and when that button is clicked, the window would close. How do I do that? I know that I should use (reference to popup window).close(), but how and where do I attach even listener to that button?
View 1 Replies
View Related
Apr 6, 2010
below is clickunder code , but it open under windows when visitor click everywhere on the pagei need it be speacial for links , whenever visitor click on speacial link , it opens windows
<SCRIPT LANGUAGE="Javascript">
function PopShow3() {
CookieTest=navigator.cookieEnabled; if(CookieTest)
[code]....
View 5 Replies
View Related
Jul 23, 2005
I have a parent window that pushes a new window object onto an Array
with the following code :
OpenChild()
{
//totalNumWindowsCreated is global
totalNumWindowsCreated = totalNumWindowsCreated + 1;
childWnds.push(window.open(link, "child" +
totalNumWindowsCreated,"dependent"));
..
..
..
}
This pops up a new window with every call. In the child window I call
a parent function onbeforeunload, appClose() :
function appClose(){
if (window.opener && !window.opener.closed){
window.opener.CloseChild(getQueryString("application"));
}}
This is in my frameset tag of the child code :
<frameset ... onbeforeUnload='appClose()'>
The window.opener.CloseChild() function is called perfectly when I have
one child window open, but as soon as I create another child window
both of the open child windows don't ever call it. They do both go
into the onbeforeunload appClose() function, but do not call the
window.opener.CloseChild() function inside of this routine.
Anyone have any ideas why when I have two child windows open I can't
access the window.opener functions?
I have tried taking each new window out of the array and used the
following code in CloseChild() :
CloseChild()
{
//win and totalNumWindowsCreated are both global
totalNumWindowsCreated = totalNumWindowsCreated + 1;
var win = window.open(link, "child" +
totalNumWindowsCreated,"dependent");
..
..
..
}
View 1 Replies
View Related
Jul 20, 2005
I would like to pop up a new window when the mouse over an icon, but I don't like to link to another new page, as I will get the details in the database and then I will add those details as the text in the pop up window.
Does anyone know how to do this in svg? is it use the javascript?
View 1 Replies
View Related
Sep 5, 2004
The following code is used by myself to create a new window what i would like to do is to on the submission of the form to close this newly created window and to submit the form back to the parent window.... Is this correct? Code:
View 1 Replies
View Related
Sep 15, 2010
I have an HTML toolbar that I made using VBScript thar launches mstsc to remote servers and a few "\" shared folders. I know that i can do the same thing in js, but not entirely shure about the sintaxis.
This is an example of what i got in my original toolbar:
Code:
<html>
<body bgcolor="lightgrey">
<fieldset>
<input type="BUTTON" name="SERVER1" value="SERVER1" language=VBS onclick="Server1">
[Code]....
View 3 Replies
View Related
Jul 23, 2005
Neglecting the annoyance factor for a moment, is it possible to keep one browser window at the screen forefront (in front of all other browser windows) but still be able to interact with a window directly beneath it? How would this be pulled off in JS?
View 3 Replies
View Related
Jul 23, 2005
On load of index page i am opening few child windows for some purpose now i want if i close the parent window all child should be cloed automatically.
View 1 Replies
View Related
Jul 23, 2005
I'm trying to open a new non rectangular dialog window from an HTA
application, is it possible?
I tried using window.showModalDialog() with the unadorned feature as a
starting point ... but with no luck.
My goal is to create a shaped window ... IMPOSSIBLE ?!
View 2 Replies
View Related
Jul 23, 2005
is there a possibility to get the number or the names of open Browser windows ? I want to try to avoid double-opening of a page. My idea was to give the page a name and to check whether this name exists.
View 3 Replies
View Related
Oct 20, 2006
I have a web application where we pop up a little calendar control in a
new window to allow users to choose dates. For cross-browser purposes,
this is done via window.open (with some code to make it behave like a
modal dialog) and I set the width and height of the window such that
the controls fit nicely and it all looks good.
I have some users who are unable to see the OK and Cancel buttons at
the bottom of the window due to some display settings on their
machines. OK, I though, I'll just make the window resizable and they
can then take control. How naive of me! Why on earth does IE decide
that the minute I put 'resizable=yes' into my attributes for the new
window that it should ignore the size?
I know I can do window.resizeTo in the onload of the calendar window,
but I'm not keen on the resizing of the window.
I don't suppose anyone knows of a way to have IE open a resizable
window of a given size without the resizeTo?
View 3 Replies
View Related
Jul 20, 2005
Certain links (using IE) that are meant to open a javascript window
don't seem to work on my system. That is, the window appears and
disappears in a flash. Of course I have disabled my pop-up stopper.
Any suggestions?
View 2 Replies
View Related
Jun 10, 2011
I have a webpage that works on IE-9, IE-8 /Windows XP, firefox, safari, chrome.But the one place it does not work is on IE-8 / Windows 7. Now I did put in code to redirect people who have this combination to a page that says "download IE-9". But then my clients said that this was not acceptable - they want to fix the problem.[URL]...
View 2 Replies
View Related
Mar 22, 2009
I made a pop up window for my site for my Admin Controls and the pop up javascript window works for every browser but IE7 (Not that I'm surprised)...
How to make a fixed pop up window that will work for all of the browsers out there right now.
View 10 Replies
View Related
Mar 23, 2009
I have recently installed Firebug, hoping to use it as an IDE for Javascript in Windows.
But I'm obviously missing something very basic since, although I can display HTML files containing Javascript scripts, can set breakpoints and can step through the coding a line at a time, I find I cannot edit any of my Javascript code within Firebug.
So (a) how is this done, precisely, if it is possible, or (b) can you recommend an alternative FreeWare IDE for Javascript in Windows?
View 2 Replies
View Related
Jun 18, 2009
I have a page displayuser.php. This page is actually displaying a list of users and at each displyed user there is a drop down list is displayed. The drop down list displays chat animators. When i choose a animators from the
drop downlist, it displays a pop up window called ( chat.php ) with the chosen chat animator and the selected user to chat. When i choose another user to chat, the new pop up window override/reopen on the first pop up window. (that is the new pop up window closed the first pop up window to be able to open).
Me i want it to display several pop up windows(several chat.php windows) when different users are selected. The pop up windows should have the same name.
View 2 Replies
View Related
Mar 16, 2010
I thought I did everything right but pop-up windows aren't working. code...
View 5 Replies
View Related
Oct 17, 2005
I'm trying to use window.open in some buttons on a website I'm building. The windows open in all browsers that I've tested except IE (PC and Mac). I'm assuming this is a pop-up blocker issue even though what I've read says that if the user initiates the pop-up, then it will work even with the blockers enabled.
Does anyone know how to fix this without using target=_blank?
The site is www.cascadequilting.com. The code for the pop-up windows is below:
<a href="#" window','height=600,width=800,status,scrollbars,resizable')">Click here for a quilt size chart.</a>
View 5 Replies
View Related
Oct 20, 2001
I've been working on a small e-commerce site with the Access DB and ASP. I have one variable to get from a form that I open in a separate window and bring back to the current form in the current window. I would like to keep the sections all in this current form and not break it into separate forms. Can anybody tell me how to bring data back to the open form?
View 10 Replies
View Related
Sep 19, 2006
I have two windows, one, the 'main' window which contains a blog entry, and a 'child' window that contains item in an ordered list. Each item A-Z has a corresponding word a-z in the main window. Whever the user puts his mouse over, or clicks on a-z in the main window, I'd like the corresponding item in the child window to be brought to the top and highlighted.
I haven't had much luck looking around for answer because I'm not sure what I should be looking for. Even just some search terms would be helpful (though I prefer a nice solution!).
View 9 Replies
View Related
Dec 17, 2006
I have a company web site where I wish to open a search window with javascript. I do know and have used the window.open( for this.
The window that is opened provides a search function an returns a list of results as hyperlinks. I then want the user to be able to select the link from the list and when the link is clicked the 'poped' search window closes and the hyperlink reference be displayed in the window which referenced it in th efirst place.
View 3 Replies
View Related
Mar 23, 2007
Hi I managed to find a way of opening a PDF in a new window using JavaScript.
I warned the user beforehand and opened the new window at 80% height and width of the original window to show it was a new window.
However I can't seem to control XLS, DOC, RTF documents. These are the issues:
1. Firefox: They always seem to open in a new window anyway.
2. Firefox: Firefox opens a blank window as well when the JavaScript is used.
3. IE and Firefox: I can't seem to control the height and width
View 1 Replies
View Related
May 1, 2002
Its a message system im putting together. I would like users to be able to have a friends list. I know the php to manage the friends list but i dont know the javascript to achieve my goal here.
I want them to be able to click the Friends List link and have the box pop up. Then have them able to click the persons name and have that persons id show up in the Mail To: Text Box in the first window. Anyone know how to go around doing this. I know its possible cause hotmail does it.
View 1 Replies
View Related