I am having some trouble with one of my buttons, the one button works fine but my second one doesnt work at all. The second button should open the same page as the first and maximize it.
Opening a new window using the window.open( ) command works great for opening new windows and having them on top and having the focus. The window.focus command brings any existing windows to the front (top) in Netscape, IE and Opera. However, this command does nothing when you access the web page through AOL, even though they say this is IE. Once a window is behind (blurred), I have been unable to bring it back to the front without 1. closing it, and 2. re-opening it, which stinks.
It is work one time only. Next script ignore it. Where can be problem???
A full script is as follows: <script language="javascript" type="text/javascript"> function ChangePass(NewPass) { var windowsize "center:yes;dialogHeight:230px;dialogWidth:430px;to olbar:no;menubar:no;status:no;directories:no;scrol lbars:no;location:no;resizable=no";
I have identical code in my index that works, so I'm just guessing the error is somewhere else, I know IE is not the best target to aim for - but I really want this to work in the windows default browser....
Here is the php page... <HTML> <HEAD> <TITLE>[code].... and here is the javascript that works in the index but not here... function Abort() { document.location="AddFamilyMember.php"; };
When I load the page everything looks ok, but click on the abort button, and all that happens is that the little error symbol pops in the lower left of IE. The names of the two files are "AddFamilyMember.php" and "AddFamilyMember.js".
I have a form setup so that when you enter something in a text field and click a button it checks to see if the value entered in the text field is the "correct" letter and if its right it changes the CSS property of a div container to be shown which then has a link to a the next question. So I don't really have a submit button because my form isn't setup to work with one.only problem is when you enter a letter and click enter it acts as a submit and the submit does nothing, which is what it's suppose to do.So what I'm asking is how can I get that button to respond to an enter instead of the default submit taking over the enter key?
I have a form where I want to force users to accept terms and conditions before they can move on to the next page (submit form).
<input tabindex="2" name="agreement" id="agreement" type="checkbox" value="N" onchange="checkAgreement()" /> <label class="checking" for="agreement">I accept the <a tabindex="1" href="?page_id=292" title="read this before you continue" class="popmeup">terms and conditions</a>.</label>
I am making this button in a JSP file. I am trying to make the button do two things: save changes to a profile and, when clicked, display the text "saved" below it. The former worked until I added an onlick to the button that triggers the "saved" to appear. Does anybody have any idea why this is? I have attached the code below.[code]...
I am dynamically creating a table rows and inerting radio buttons which are also dynamically created. Everything works fine in Firefox as expected. But I am not able to select radio buttons in IE. It does not even throw any errors. I have searched over the net but could not find anyhelp. Code:
I have created a dummy web page with three text boxes and three buttons, Enable Disable and Reset. The enable disable buttons work as expected but the Reset button does not.
<html> <head> <script type="text/javascript"> function clear(){ document.getElementById("myForm").reset(); } function disable() { document.getElementById('txt1').disabled=true; document.getElementById('txt2').disabled=true; document.getElementById('txt3').disabled=true; } function enable() { document.getElementById('txt1').disabled=false; document.getElementById('txt2').disabled=false; document.getElementById('txt3').disabled=false; } </script></head><body><table> <form id = "myForm"> First Name<input type = "text1" id = "txt1" size = "20"><br><br> Last Name<input type = "text2" id = "txt2" size = "20"> <br><br> Contact Number<input type = "number" id = "txt3" size = "15"><br><br> <input type="button" onclick="disable()" value="Disable" /> <input type="button" onclick="enable()" value="Enable" /> <input type = "button" onclick="clear()" value = "Reset"> </form></table></body>
I added a submit button with an onclick event and an alert message to say it doesn't work yet, but if I push the button, it isn't taken into account and the form is submitted to the cgi.
Code:
<input id="saveForm" class="button_text" type="submit" name="submit" value="Submit" onclick="alert('Sorry, it's not working yet!');return false;" >
The button shows a little toaster that revolves in response to an mouseover event. The first time you click on it nothing happens but it works the second time. Same thing with the onClick event. Doesn't work the first time, but works the second time. The code uses the setInterval function to advance through the frames. Help anyone? Check it out here:[URL]
Code:
// JavaScript Document window.onload=initAll; var interval=30; var countSpin = 0;
I am trying to use the LPR command inside a javascript to print a PDF file directly to the printer. Want just a simple webpage with a button which will print test.pdf when clicked. code...
I know very little when it comes to javascript. If you know of a better way to use the lpr command
I have the following situation. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[URL]"> <html xmlns="[URL]"> <head> <script type="text/javascript" src="jquery-latest.pack.js"></script> <script> $(document).ready(function() { //select all the a tag with name equal to modal $('a[name=modal]').click(function(e) { //Cancel the link behavior e.preventDefault(); ..... As you can see the script works when you click the Sticky Note button. How can I convert this script into ONLOAD working without clicking the button.
I have been trying to validate both the Radio button and the Select Option box, but it does not work. It didn't show error, only din't do the way I want.I like to validate like this:If a user check "Yes" on this Radio button, then the OPTION box is disabled and no need to validate. However,when I tried the JS code below, the pop up window kept asking for a user to enter the "Seller" name.I combined both together as:
Code: if (document.frmSelect.sellers.disabled=false && document.frmSelect.sellers.selectedIndex==""
If I have a link to a URL such as <a href="http://www.mysite.com/somecode.htm?5">Link1</a>, and if I include javascript in the somecode.htm file, is there a javascript command that I can use which will read the argument 5?
For that matter, is there anyway to send an argument to the javascript code of an html link you are calling. Server scripts are not an option for me.
For example, assuming that index.htm contains 50 links, I would like each link to point to the same html file, but I want that javascript code in that html file to execute something different depending on which link was clicked.
My only other alternative would be to create 50 similar html files which to me looks like amateur or bad coding.
I'm working on integrating the a javascript wysiwyg editor (Xinha) with my blog software (ExpressionEngine, aka EE). EE has extensions now so it's easy to get the Xinha header code into the head section of the EE web page.
But Xinha likes to use an onload command to launch:
window.onload = xinha_init;
....and EE is already using the onload command in the body tag of the web page:
I know this should be kind of easy, but I am very unfamiliar with Javascript.
What I am looking to do is have an image (coupon) that when clicked on, it either prompts for printing only that image, or pops up a window and automatically after loading the image in the new window, brings up the print dialog box. What would you suggest is the best way to do this?
We have an app in which we want to enable our users to open numerous documents in new browser windows.
I got the new window open thing down but each time I open a new document it opens it in the same popup window. I want to be able to select new documents and open those selected documents one at a time in a new browser window as the custormer selects a new document to open.
I will have a list of numbered links and whenever one is clicked, I want to change the content of a <div>. Is there a simple command that does this? I've read a bit of jQuery but could not find this info.