Helping ordinary people create extraordinary websites!

Go Back   Web Development Forum > Website Programming > Client-Side Scripting
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-21-2008, 09:44 AM
Junior Member
 
Join Date: Aug 2008
Posts: 2
Default Works in IE, but not in Firefox

I'm currently re-doing the customer sites for our studio.
This is a log-in form, it shows up in IE but not in Firefox.

Here's the scripts code:
<script type="text/javascript" language="JavaScript">
<!-- Copyright 2005 Bontrager Connection, LLC

var FrontOfUsername = "http://www.studio-g.no/kunder/";

var BetweenUsernameAndPassword = "-";

var WhatFollowsPassword = "/";

var LowerCaseUsername = "yes";

var LowerCasePassword = "yes";


// No furthercustomization required.
function PasswordAccess(u,p) {
LowerCaseUsername = LowerCaseUsername.toLowerCase();
LowerCasePassword = LowerCasePassword.toLowerCase();
if(LowerCaseUsername.substr(0,1) == 'y') { u = u.toLowerCase(); }
if(LowerCasePassword.substr(0,1) == 'y') { p = p.toLowerCase(); }
location.href = FrontOfUsername + u + BetweenUsernameAndPassword + p + WhatFollowsPassword;
return false;
}

//-->
</script>

<SCRIPT TYPE="text/javascript">
<!--
var F_A,F_B,F_CH,F_CL,F_DB,F_E,F_F,F_L,F_MT,F_MV,F_R,F _SE,F_SU,F_U,F_HR,F_MU,F_MD;
function F_e(){} function F_n(){} function F_onLoaded(){}
//-->
</SCRIPT>
<SCRIPT TYPE="text/javascript">
<!--
document.write("<SCRIPT SRC=\"./assets/validation.js\"><\/SCRIPT>");
document.write("<SCRIPT SRC=\"./assets/script.js\"><\/SCRIPT>");
document.write("<SCRIPT SRC=\"./assets/effects.js\"><\/SCRIPT>");
//-->
</SCRIPT>
<SCRIPT TYPE="text/javascript">
<!--
function F_doLoaded() {
document.main = new F_cMain();
document.objectModel = new Object();
F_OM('Layout','LayoutLYR', 'doc', '', new Array());
F_OM('submit' , '', 'btn', 'Layout',new Array(
'Clicked','Layout','Show','',0),'LAYOUTFORM',0,'su bmit');
F_pageLoaded('Layout');
}
//-->
</SCRIPT>
<STYLE TYPE="text/css" TITLE="NOF_STYLE_SHEET">
<!--
DIV#LayoutLYR { position:absolute; top:0; left:0; z-index: 1; visibility:inherit; }
-->
</STYLE>


In the body:
<SCRIPT LANGUAGE="JavaScript"> onLoad="F_onLoaded();">

Now if I remove this tag, both browsers will of course show the login form.
But as soon as I put it up it dissappears in Firefox.

After browsing the web I found alot of solutions concerning the LayoutLYR css style, but trying everything that I found it still does not work.
Been plundering with this quite a couple of hours, but with no javascript skills and no advanced css skills I can't seem to find the problem.

Anyone have any idea?


Regards,
Kjell
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 08-22-2008, 06:43 AM
Junior Member
 
Join Date: Aug 2008
Posts: 2
Default

Problem: SOLVED

Almost more irritating than relieving.
But the thing was I just removed this code:
Code:
<SCRIPT LANGUAGE="JavaScript"> onLoad="F_onLoaded();">
It apperantly had no effect on the log-on script whatsoever.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 08-31-2008, 06:12 AM
ryanhellyer's Avatar
Super Moderator
 
Join Date: Dec 2007
Posts: 708
Default

Glad to hear you got it working
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Thread Tools
Display Modes

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

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



All times are GMT -5. The time now is 05:26 AM.


Website Design by Ducani Media Group
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.