I am attempting to have a link hide and unhide a div It works in Chrome and Firefox, but not in IE The only thing that does not work is when i click it, it dosen't unhide or change the title, so basically, function unHide is not running, although there are no errors thrown.
I am attempting to have a link hide and unhide a div It works in Chrome and Firefox, but not in IE The only thing that does not work is when i click it, it dosen't unhide or change the title, so basically, function unHide is not running, although there are no errors thrown. I have this in the top of the page
I am having troubles with my form not working correctly in IE. I have onclicks for different parts of my site. I am trying to use onclick and divs to make this happen.
I have added the javascript and the section of code where the user picks how they are. Once you click on one of the users in IE the form goes away.
I'm having a small issue with being able to use the onclick more than once. When I load the page and click the link the request works fine the first time. But if I cancel the request then goto click the link again, nothing happens.
First time poster here. I have to do a project for school that involves HTML, CSS and Javascript language.The following code is running well and working in Internet Explorer and Google Chrome but not working at all in Firefox !
<script type="text/javascript"> //<![CDATA[ function aboutUs(){ window.location.href="about_us.html";
I'm frustrated :(. I've been trying to get this single piece of code to work. I've looked at quite a few sources out there, but everything I try fails. My site uses AJAX to upload a file, and once complete I dynamically add the file name, size, description, etc to a table.
I have a javascript method that will allow me to download the file once uploaded - and I put an onclick event into some of the TDs in the row I added. (Note: I didn't want to put it in the TR because I also have a delete button in the row).
I am creating a weather widget for the iphone. The program creates an xml request for a weather feed and then parses the response. Depending on the response different information is displayed. A different icon for each weather pattern. I have all of this working so far. What I want to integrate is the option to refresh the weather when a user taps on the icon.
Here is my code:
document.getElementByID("weatherIcon").innerHTML="<img src="Icon Sets/"+iconSet+"/"+MiniIcons[obj.icon]+iconExt/" border=2 onclick="refresh();">" function refresh() { weatherRefresherTemp(); }
I know that the function refresh works because it is called from another function that allows the refresh to happen automatically every 30 min. However, wanting to integrate an option to manually refresh I am trying to do it this way. The code never seems to fire, nothing happens. I've added the border option for testing and don't even see that. I've been using a javascript editor and I do not get any errors.
I'm using a textarea box and the onClick function to automatically highlight the code inside of it for the user to copy & paste elsewhere. But this function is not working at all in IE7. (tested fine in Chrome, FF & IE8) I googled and I see that this is a common error in IE7 but I can't seem to figure out what to replace the onClick code with to make it do the same thing.
HTML Code: <textarea name="code" cols="16" rows="3" wrap="VIRTUAL" class="bginput" onClick="this.focus();this.select()"> <style type="text/css"> CSS code here </style>
I have a set of checkboxes and I would like to submit the form they are when one of them is checked. It works fine in IE, Netscape, and Mozilla on Win2K, also in Mozilla on the Mac, but does not work in IE 5.2 Mac. When you click the checkbox nothing happens.
Am I doing something incorrectly? Here's the code:
I have written a PHP script for a secure client login system and it is working on Firefox and Chrome. But it doesn't work on Safari and IE. I have noticed that some of the javascript functions do not work at all while a few of them work.I am pasting the part of my code that does't work up here:
<script type="text/javascript"> function newdir(i) {
[code]....
When I click on the create folder button (newdir.png), I don't see the alert message that I gave for debugging. I have the SAME problem with 2 more buttons on the same page.
<img id="who" class="who" src="who.jpg" alt="Warriors Chosen For Battle" title="Warriors Chosen For Battle"> <img id="chosen" class="selector" src="selector.jpg" alt="Click for next image"
[Code]....
Yeah so basically when I click on one of the selector images I want it to change the value "who" images src value. I'm making an image selector, it works fine in IE, but every other browser it refuses to do anything.
I recently went into twp php files and made a few very minor changes to some outdated $date functions. Now, I have three small icons for 'copy', 'paste','delete' using the javascript 'onclick' function that have stopped working.
In fact, when I replace the two recently revised files with the originals, these icons no longer work there either.
From the primary php file is the relevant lines of source code....As far as I can tell, the second paragraph in each area is returning a 'null' value; i.e. o1a.options.selectedIndex is null.
From the supporting php file are the following lines of code....
None of these lines of code were changed or altered when I was updating the code.
I have a small script which dynamically creates select tags (they are placed within divs). Each select has a + and - sign next to it, and if you click the + it adds another select below that one, or if you click the -, it removes that current select.
I've made it so that if there is only one select, it can't be removed. So i made it like this, when i create a select, the remove button is inactive. When i click to add another select button, it becomes active. The problem is that the onclick event is not working with any browser except Opera. This is the code:
I am trying to use AJAX to do a simple thing of displaying the results in the same page. Clicking on the <a href tag should display the results in the same page. This is working correctly in IE but the onclick() function is not working in firefox and safari.
[URL]you see the Select Drop Down called: Fonts, well if you choose say Airstrip or Arial the image should change but the problem i am having is. It works in IE9 and FF but doesn't seem to work in IE7, IE8 or Google Chrome i hope someone can help here is the code:
I'm having a strange problem with the onclick attribute on a button not working in IE, it works fine in Firefox.
Basically using Javascript I'm creating a button input and setting the onclick to call some othe Javascript. Yet when I click the button it does not call the function. Code:
I am working on my site and I am finding trouble getting my thumbnails to open the larger images when clicked. It only seems to work with the first thumbnail, but I can't figure out why.Here is the code I am working with:
This is probably very simple but I really cant find the answer. I have a text box, and I am wanting the same mouseover and onclick functionality as Money Supermarket; [URL]... When I rollover the text box/table row then I want the area to display one colour and when I roll off then it goes back to normal. However, when I click on it I also want it to display the colour and remain that way until I click another element. How do I achieve this?
I am getting stuck with an onClick function. I test for matching 'id's in the html document and when I have a match I want to attach the onClick function. In firebug I can see the match in the if statement is fine, the onClick function is attached to the element and I can watch it stay there through to the end of debug session. But when I click on the element.