Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Code working in Firefox but not in IE...
Old 11-14-2006, 07:07 AM Code working in Firefox but not in IE...
Junior Talker

Posts: 1
Trades: 0
Hi everyone,

I have a code that works great in Firefox, but absolutely not in IE... and I really have no idea why...
Therefore, I am asking for your help.
Any suggestions, comments and help will be greatly appreciated !

Basically, I have an html page where I have an applet.
As this applet needs a parameter, I pass it via the URL and retrieve it thanks to a javascript functions found on the web.
Then, I generate the html code for the PARAMETER tag.
As I said, this works great under Firefox but not under IE.

Code:
<HTML>
<HEAD>
   <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
   <TITLE>Applet page</TITLE>
</HEAD>
<BODY>
<script type="text/javascript">
function gup( name )
{
  var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var tmpURL = window.location.href;
  var results = regex.exec( tmpURL );
  if( results == null )
    return "";
  else
    return results[1];
}
</script>
<H1> Sample applet</H1>
To run this use the applet viewer of JDK 1.1.x
<p>
<APPLET CODE="testApplet.class"   CODEBASE="."
    ARCHIVE="myApplet.jar" HEIGHT="800" WIDTH="700">

<script type="text/javascript">
    var my_param = gup( 'parameter' );
    document.write("<PARAM NAME=\"openname\" VALUE=\"" + my_param + "\">");
</script>
Sorry, you need a Java browser to view this applet
</APPLET>
</BODY>
</HTML>
Thanks in advance !
lilisbbc is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to Code working in Firefox but not in IE...
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.61690 seconds with 12 queries