INTERNET EXLPORER!!! GIMME SOME TNT TO BLOW IT

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
novice4eva
Forum Contributor
Posts: 327
Joined: Thu Mar 29, 2007 3:48 am
Location: Nepal

INTERNET EXLPORER!!! GIMME SOME TNT TO BLOW IT

Post by novice4eva »

Yes i had heard of it and yes it is the perfect night-mare for all client side programmers and designers as well BUT WHY THE HELL PEOPLE USE IE PLZZZZZ don't use it Pleasssssse..... I BEG YOU. I only tried window.location.href , works like magic in FF compared to IE, is that command so complex one, a simple redirect!! I would have never ever imagined that "MICROSOFT" IE, despite its esteemed stature of having the name "MICROSOFT" backing it fails like CRAPPPP...
I HATE INTERNET EXPLORER, AND AS OF NOW I DON'T CARE I AIN'T GONNA USE IE FOR PERSONAL USE NEVERRRRRRRRR :madblow:
User avatar
papa
Forum Regular
Posts: 958
Joined: Wed Aug 27, 2008 3:36 am
Location: Sweden/Sthlm

Re: INTERNET EXLPORER!!! GIMME SOME TNT TO BLOW IT

Post by papa »

Which one are you using?

I'm not a big fan of IE either but it's a necessary evil when working with web. :)
User avatar
novice4eva
Forum Contributor
Posts: 327
Joined: Thu Mar 29, 2007 3:48 am
Location: Nepal

Re: INTERNET EXLPORER!!! GIMME SOME TNT TO BLOW IT

Post by novice4eva »

version:6
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: INTERNET EXLPORER!!! GIMME SOME TNT TO BLOW IT

Post by Eran »

use 'window.location' without the '.href'. Should work
silenceghost
Forum Newbie
Posts: 22
Joined: Sun Oct 19, 2008 3:25 am

Re: INTERNET EXLPORER!!! GIMME SOME TNT TO BLOW IT

Post by silenceghost »

SOME TNT TO BLOW IT the internet explorer is put
return false on the event handler of onClick
check if C is capital on onClick or not

Code: Select all

 
<html>
<title></title>
<head>
<script>
function test(url){ 
    window.location=url;
}
</script>
</head>
<body>
<a href="#" onClick="test('test.php');return false;">click</a>
</body>
</html>
User avatar
novice4eva
Forum Contributor
Posts: 327
Joined: Thu Mar 29, 2007 3:48 am
Location: Nepal

Re: INTERNET EXLPORER!!! GIMME SOME TNT TO BLOW IT

Post by novice4eva »

Thanks guys for much appreciated help.
I tried all three flavours: window.location.href, window.location, location.href none worked 8O
Ok this is what i'm doing, maybe that will shed some light if i did something wrong

Code: Select all

 
<a href="javascript&#058;void(0);" onClick="doRedirection();">Redirect</a>
 
my redirection function in JS is:

Code: Select all

 
function doRedirection()
{
  window.location.href = 'addNewItem.php?mode=U';
/* THINGS I TRIED
  window.location = 'addNewItem.php?mode=U';
  location.href = 'addNewItem.php?mode=U';
*/
}
 
I read few blogs and i also tried changing that <script language=""> thing, setting language to "javascript", "javascript 1.2", and other versions also "text/javascript".... and IE loves disappointing us
User avatar
novice4eva
Forum Contributor
Posts: 327
Joined: Thu Mar 29, 2007 3:48 am
Location: Nepal

Re: INTERNET EXLPORER!!! GIMME SOME TNT TO BLOW IT

Post by novice4eva »

Eii thanks there, the return false thing worked good...still I HATE IE :twisted: :twisted: :twisted:
THANKS A LOT AGAIN TO ALL YA FRENS
Post Reply