GetElementsByClassName Internet Explorer - Doesn't Support
Oct 29, 2010I want to use getElementsByClassName in Internet explorer, well it doesn't support it.
View 4 RepliesI want to use getElementsByClassName in Internet explorer, well it doesn't support it.
View 4 RepliesI can't get getElementsByClassName to work in Internet Explorer.What I want to do is open external links in a new window without using the target attribute (because the site is XHTML Strict) nor inline Javascript.I've given the external links the class name "external":
Code:
<a href="http://webdeveloper.com/" class="external">...</a>
I then wrote the following function, which works in all browsers (Mozilla Firefox, Opera, Google Chrome, Safari) except Internet Explorer:
Code:
window.onload = function() {
external=document.getElementsByClassName('external');
for (var i=0;i<external.length;i++) external[i].onclick=function() {
[code]....
How can I get this to work in Internet Explorer too?Or which other function can do what I want in Internet Explorer?
IE is returning this error: Object doesn't support this property or method
On this line:
This site that i am making is a very complicated php / javascript / mysql database, and this part just is NOT working in IE.
Here is the uncompiled code for that specific page:
I'm running into a really strange AJAX problem which I haven't encountered yet in Internet Explorer.
The following code works:
Code JavaScript:
$.post("home.php", function(data){
console.log('success');
});
[Code]....
I have an extremely easy function:
<script language="javascript">
function plakken() {
window.alert("typing...");
[Code]....
I'm experimenting with jQuery plugins. I have this code to fade in a "lightbox":
$('#cleverbox')
.css({ opacity:0, visibility:'visible' })
.animate( {opacity:1}, 2000 );
It works fine on Firefox and Chrome, but in IE (7 and 8) and Opera the element just appears rather than being faded in. I've seen a few solutions posted online but have yet to find a solution that works.I have an example page if that helps. I'm also having a few other problems: In Internet Explorer (7 and 8), the first thumbnail never displays the lightbox (the onload event never fires). But the others work fine. In IE7, the code to fix the ClearType bug doesn't work. $(this).css( 'opacity', '' ) should remove the opacity style (in this case, the 'filter' property) but it doesn't remove it. I also tried to remove the filter property. In IE's dev tools it still has style="filter: ;"
In Opera, it never runs after it has loaded once. In other words, if an image is in the browser cache the onload event never fires.
I'm having a bit of an issue with the site I'm building at the moment. It's currently under [url] with the CSS at [url] and the relevant jQuery file at [url] If you're using Firefox or Chrome you'll see that upon clicking the tabs, the image and text all changes. However in Internet Explorer the text doesn't change, it merely adds onto itself (This will be a lot clearer if you check it out on the site.)
View 2 Replies View RelatedRecently I've added an addition to my site; a javascript featured image slider / slideshow where it cycles and fades between a select amount of images.Everything works great and it works in all browsers except for the dreaded IE The problem with IE is that the script doesn't work at first because it requests permission (the popup at the top) and the page doesn't work correctly until permission is granted.
View 2 Replies View RelatedI am trying to make comments system and i want to add smileys.the content of each comment is written in TEXTAREAI have a JS code that gets a "smiley code" like :) and adds it into the TEXTAREA. i mean it adds :) :( XD ;) or what i sent to the function.the TEXTAREA code:
Code:
function Add_Smiley(smiley)
{
[code]....
my javascript create new element when it is first loaded.
the code work fine in opera and mozilla and netscape, but it failed in
microsoft IE. message:
Internet Explorer cannot open the Internet site
I check the google, found some info. But, none related to my problem.
the cause is due to creating new element while the page is loading.
How to do that without problem?
So this works just fine in FF. In IE7 I am getting this error. I can see my content load in the background, when I hit ok it takes me to a page cannot be displayed page. If I comment out:
<script type="text/javascript" src="js/moodalbox.js"></script>
It doesnt present that error, but that is obviously not an option. Here is my code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />[CODE]......
I'm having trouble figuring out what's going on with IE6's
Msxml2.XMLHTTP object. I have two feed addresses in this stripped down
version of my code below. Both work fine in Firefox (using the
XMLHttpRequest object), but only the thinkgeek one works in IE. In the
processFeed function, it shows the problem - the first alert shows 0
for the wikihow feed in IE, though it can still display the
responseText. Any insight? Code:
How does one find the value of a drop down in Internet Explorer?
The form below works in Firefox and Safari. But not in Internet
Explorer. Can someone tell me how to code this so IE understands it?
<script language="javascript">
function copyDescription() {
document.myForm.Description.value=document.myForm. MakeDescription.value
}
</script>
<form name="myForm" id="myForm">
<SELECT name="MakeDescription" onChange="copyDescription();">
<OPTION selected value="">Choose</OPTION>
<OPTION>A</OPTION>
<OPTION>B</OPTION>
<OPTION>C</OPTION>
</SELECT>
<br /><br />
<input name="Description" id="Description" type="text" />
</form>
i want to run a bit of js not in ie but in all others within some js i'm doing.is this the way to do it? (got this from o'reilly's js;definitive guide book):
Code:
/*@cc_on
@if( @_jscript )
; // nothing for internet explorer[code]....
how should braces be in that, if they should at all? i mean if i wanted multiple lines of js code in the either non-ie or ie blocks how and where would {}'s go?also does that work for ie8?
my site seems to be working perfectly on firefox but when I access it on internet explorer everything loads fine but there is a yellow marker on the status bar of IE saying there are errors on the page. I copied the source into dreamweaver to check for browser specefic bugs but the only bugs that came up were that in Netscape. So any idea why this is happening? The link to my site is in my profile.
View 6 Replies View RelatedHow can I set 'frameborder' attribute in ie? I tried this but didn't work:
var foo = document.createElement("iframe");
document.body.appendChild(foo);
foo.setAttribute('frameborder',Ɔ');
I am having trouble with Internet Explorer AGAIN.How do you use the setTimeout for it?This is what I am using and it is working on all of the other browser:Code:setTimeout("growContact(" + (height+20) + ")", 0);
View 1 Replies View RelatedWhy doesnt the following code work in IE. There is an error on the same row as fillText. It says object doesnt support this property or method.
<html>
<head>
<title></title>
<script type="text/javascript" src="excanvas.js"></script>
</head>
<body>
<canvas id='chart' width='500' height='200'>
[Code]...
I have a new (XP) version of IE, but when I click on links that are
javascript they do not seem to work and suggestings?
I have a problem, and maybe someone knows the solution.
Context :
- Browser : IE 6.0
- Application server : Livewire Pro
- Client OS : Windows 98 SE
- Server OS : NT4
- I have a frameset, including several pages, but only one will be
used for the example.
--------
| a |
--------
| b |
--------
- a form on the main page (a.html i.e.)
- a data is manually typed, then I submit the form => the action will
redirect to a new page (c.html)
- on this new page, I do a history.go(-1), so I'm back on the a.html
page, and the data is still there (it's ok)
- cache parameters : "check on every page visited"
Problem :
- From the main page, if a popup gives the data to the form, so after
the submit and the history.go(-1), the form contains NO data !!!
So, the data is lost when the data input is not made by hand.
I have no troubles with Netscape/Mozilla, but only with IE.
Maybe someone would have an idea ?
I have a radiobutton group in HTML in a form:
Sex: <input type="radio" name="Sex" value="male">Male
<input type="radio" name="Sex" value="female">Female
<input type="radio" name="Sex" value="unknown">Unknown<br>
When I call document.forms[0].elements['Sex'].type I don't get "radio" but
"undefined" instead.
For all other kinds ("text", "textarea", ... etc) of input fields the type
is returning a correct string.
It only seems to happen with Internet Explorer (using version 6).
What am I doing wrong?
I've developed a calendar program in javascript, and up until now I've
done most of my testing using Mozilla and Firefox. Everything works
fine, but when I try to use Internet Explorer my response time is
sometimes 50 times slower than using Mozilla.
I know I haven't given you much to go by, but I'm not looking for an
answer so much as an approach to debugging the problem. For example,
does anyone here know of a good web site which deals with
browser-specific javascript performance issues?
I am wondering if there is any way to write a VBScript macro for IE,
just like the action that we can do in MS Excel (Tools -> Macro ->
Visual Basic Editor).
Also, I believe we can automate actions to IE pages using VBScript,
like when you right click a web page and choose "Export to Microsoft
Excel". But I have no idea how to get it.
I have a shortcut on my desctop that points to web location. When a
user clicks on it the Internet explorer opens the web location but
without the navigation bar status,location bar address bar, but with
resize handlers.
Ok, if this cannot be done is there a javascirpt that can imediatly
remove this when the page is called?
Is it possible with JavaScript to prevent that a User is closing the
Internet Explorer? Because it is important for me that the User pushes the
cancel Button of this webapplication how can i do this?
I don't know if that's a problem from jquery or not, so it's a question for the moment :)
I've this : Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET4.0C; .NET4.0E; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; Zune 4.7)
[Code]...