 |
| Javascript How-To Ask your "How do I do this with Javascript?" questions here. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

February 9th, 2006, 08:01 AM
|
|
Friend of Wrox
|
|
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
yep, just tried it with FF and i got this:
Code:
<html>
<head>
<title>Sign In</title>
<title></title>
<base href="https://www.quickbase.com/db/">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Content-Type" content="text/html">
<script language="javascript1.2" type="text/javascript">
var gReqDBID = "main";
var gParentDBID = "";
var gSingleTableAppDBID = "";
var gReqCompanyName = "";
var gReqCompanyID = "";
var autoFAQ = "";
var kRecordNameSingular = "";
var kRecordNamePlural = "";
var kRecordNameSingularLower = "";
var kRecordNamePluralLower = "";
var kRuntimeMode = "";
var kIsPreRelease = false;
var kFMdefaultToAll = false;
var gPrimaryTableDBID = "";
function TableInfo (name,snoun,pnoun,inQS,extApp)
{
this.name = name;
this.snoun = snoun;
this.pnoun = pnoun;
this.inQS = inQS;
this.extApp = extApp;
}
var gTableInfo = new Array();
var gViewsInfo = new Array();
</script>
<script language="javascript1.2" src="/js/utils.js" type="text/javascript"></script>
<script language="javascript1.2" src="/js/std_head.js" type="text/javascript"></script>
<link href="https://www.quickbase.com/css/style.css" rel="stylesheet" type="text/css">
<link rel="icon" href="/favicon.ico" />
<link rel="shortcut icon" href="/favicon.ico" />
<script lang=JAVASCRIPT>
var redmsg = "";
var gPassword;
var gLoginID;
function LoadProc()
{
gPassword = getElementBy ("password");
gLoginID = getElementBy ("loginid");
if (document.mainform)
{
if (GetValue(gLoginID) == "")
{
gLoginID.select();
gLoginID.focus();
}
else
{
gPassword.select();
gPassword.focus();
}
}
}
function checkform()
{
if (gLoginID.value == "")
{
alert ("Please enter your e-mail address or screen name.");
gLoginID.select();
gLoginID.focus();
return false;
}
if (gPassword.value == "")
{
alert ("The password area is blank.\n\nIf you don't have a password for QuickBase click the Register button below.");
gPassword.select();
gPassword.focus();
return false;
}
return true;
}
function ClickRegister()
{
SetValue ("loginidreg", GetValue (gLoginID));
ShowPopupDiv ("regNeedEmailPopup");
SetFocus("loginidreg");
}
function checkRegForm()
{
var emailAddr = GetValue ("loginidreg");
emailAddr = emailAddr.Trim();
if (emailAddr == "")
{
alert ("Please enter an e-mail address.");
return false;
}
//
if (!LooksLikeEmailAddress (emailAddr))
{
alert ("This is not a valid e-mail address.");
return false;
}
//
return true;
}
function ClickResetPswd()
{
SetValue ("loginidreg", GetValue (gLoginID));
document.regform.action='main?a=ForgotPassword';
document.regform.submit();
}
</script>
<style>
td.t { font-family:arial; font-size:120%; font-weight:bold; }
td.q { font-family:arial; font-size:100%; font-weight:bold; color:#222222; padding-bottom:5px;}
td.m { font-family:verdana; font-size:75%; }
td.blackmsg { font-family:arial; font-size:110%; color:#333333; }
span.smnote { color:#666; font-size:100%; padding-left:10px; }
tr.boxtop td { padding:4px 10px; color:white; background-color:#aa8; font-weight:bold;}
</style>
</head>
<body link=blue vlink=blue alink=blue id="stdBody" onLoad="StdLoadProc();"
onUnload="StdUnloadProc()"
onClick="StdClickProc(event);"
onResize="StdResizeProc(event);"
onScroll="StdScrollProc(event);"
onKeyDown="StdKeyDownProc(event);"
onMouseDown="StdMouseDownProc(event);"
onMouseUp="StdMouseUpProc(event);"
onBeforeUnload="return StdBeforeUnloadProc(event);"
>
<div id="tableSelector" class="PopBox" style="visibility:hidden; display:none;">
<table cellspacing="0">
<tr><td class=a90 style="padding-bottom:1em">For which table?</td></tr>
<tr>
<td>
<table cellspacing="6" width="100%">
<tr><td><a href="javascript:void(0)" onClick="location='?a=' + gAction; return false;"></a></td></tr>
<tr id="alltables" style="display:none"><td><a href="javascript:void(0);" onclick =" location='?a=' + gAction; return false;">All Tables</a></td></tr>
<tr><td id=cancelButCell class=closeBut><a href="javascript:void(0)" onClick="HidePopupDiv(); return false;">Cancel</a></td></tr>
</table>
</td>
</tr>
</table>
</div>
<div id="HelpMenu" class="PopMenu" style="visibility:hidden; display:none;">
<table cellspacing=0 cellpadding=0><tr><td>
<H4>Help</H4>
<A HREF="javascript:void(window.open('https://www.quickbase.com/db/main?act=dohelp','Help','width=650,height=550,resizable,scrollbars'))">Help Topics - General</a>
<A HREF="javascript:void(window.open('https://www.quickbase.com/db/main?act=dohelp&page=LOGIN','Help','width=650,height=550,resizable,scrollbars'))">Help Topics - Help for this Page</a>
<A HREF="main?a=gensupport&accountid=0">Support</a>
<A HREF="javascript:void(window.open('https://www.quickbase.com/help/printed_help_manual.pdf','Help','width=650,height=550,resizable,scrollbars'))">Print Help Manual</a>
</td></tr></table>
</div>
<table id=stripe1 class=t100
>
<tr>
<td><a href="main?a=home"><img src="/i/logoOnBlueGrid.gif" height=28 width=321></a></td>
<td align=right id=stripe1right nowrap style="vertical-align:top;">
<table cellpadding=0 cellspacing=0>
<tr>
<td style="padding-top:5px">
<a id="HelpButton" href="javascript:void(0)" onClick="return ShowHelpMenu(true);" onMouseOver="ShowHelpMenu(false);" class=s1link style="color:#fff;">Help</a>
<span class=s1link style="color:#fff;">|</span>
<a href="main?a=SignIn" class=s1link style="color:#fff">Sign In</a>
</td>
<td><img src="/i/orangeCurve.png" width=18 height=18 onload="correctPNG(this)" style="margin-left:15px"></td>
<td><a href="main?a=myqb" id=s1RealmHost>My QuickBase</a></td>
</tr>
</table>
</td>
</tr>
</table>
<table id=stripe2 class=t100 onresize="HideMenus();">
<tr>
<td style="padding:0px 20px 0px 20px; height:28px; text-align:right">
<span style="color:#222;">Not signed in </span><a href="main?a=profileview" class=hlink><b></b> <span style="color:#444"></span></a>
</td>
</tr>
</table>
<table cellspacing=0 cellpadding=0 align=right>
<tr>
<td align=right><td>
</tr>
</table>
<table class=t100>
<tr>
<td><img src="/i/secondBarShadow.gif" height=5 width="100%"></td>
</tr>
</table>
<table id=stripe4 class=t100 style="margin-top:7;">
<tr>
<td id=dsbSpacer style="display:none;" width=150>
<table class=t100>
<tr>
<td class=dsbHead>Customize</td>
<td class=dsbHead align=right valign=top><a href="javascript:void(0)" onClick="closeDesignSidebar(); return false;"><img src="/i/closeBoxSmall.gif" border=0></a></td>
</tr>
<tr><td colspan=2><img src="/i/clear2x2.gif" height=1 width=150></td></tr>
</table>
</td>
<td style="padding-left:20">
<table cellspacing=0 cellpadding=0>
<tr>
<td id="s4PageName"></td>
</tr>
</table>
</td>
<td align=right style="padding-right:12px">
<table cellspacing=0 cellpadding=0 id=s4ButtonArea>
<tr>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=0 cellpadding=0 width="100%" id="bodyTable">
<tr>
<td valign=top id=designSidebar style="display:none;" width=150>
</td>
<td valign=top id=mainCell style="border-width:0px 20px;">
<form method="post" action="main?a=signin" name=mainform onsubmit="return checkform()">
<table cellspacing=0 cellpadding=0>
<tr id=loginMsgRow style="display:none">
<td>
<table style="border:1px solid #99a; background-color:#FFFFDC; margin-bottom:15px; line-height:100%">
<tr>
<td style="padding:10px" valign=top><img src="/i/icon_warning.gif" border=0></td>
<td style="padding:10px" id=loginMsgDiv>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table style="border:1px solid #cca; background-color:#ddb;" cellspacing=0 cellpadding=0>
<tr class=boxtop><td>Sign in to QuickBase</td></tr>
<tr>
<td>
<table cellspacing=0 cellpadding=5 style="margin:15px">
<tr>
<td style="border:1px solid #aa9; background-color:white; padding:20px">
<table cellspacing=0 cellpadding=5>
<tr>
<td><b>E-mail Address</b></td>
<td valign=top>
<input type=text name="loginid" size="40" maxlength="99" value="" tabindex=1 style="font-size:120%">
<span class=smnote>(or QuickBase screen name)</span>
</td>
</tr>
<tr>
<td><b>Password</b></td>
<td valign=top>
<input type=password name="password" size="20" maxlength="20" tabindex=2 style="font-size:110%">
<span class=smnote></span>
</td>
</tr>
<tr>
<td> </td>
<td colspan=2 style="padding-top:14px">
<input type="submit" value=" Sign in " name="SignIn" tabindex=3 style="font-size:120%" id="signin">
</td>
</tr>
<tr>
<td> </td>
<td colspan=2 style="padding-top:10px;">
<input type="checkbox" name="EnableAutoLogin" tabindex=4>
<span style="font-size:90%">Keep me signed in on this computer unless I sign out</span>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="padding-top:20px;">
<table cellpadding=3 style="color:#221">
<tr>
<td>Don't have a password for QuickBase?</td>
<td><input type="button" value=" Register " name="Register" onClick="ClickRegister()" id="register"></td>
</tr>
<tr>
<td>Forgot your password for QuickBase?</td>
<td><input type="button" value="Forgot My Password" onclick="ClickResetPswd()" style="font-size:90%"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<table cellspacing=0 cellpadding=0 border=0 id=bottomSpacer>
<tr><td><img src="/i/clear2x2.gif" height=15></td></tr>
</table>
<div id=bottomFooter style="width:100%; position:absolute; visibility:hidden; display:none;">
</div>
<div id="confMsgBox" style="visibility:hidden; display:none; position:absolute; text-align:center"></div>
<script>
var gMsgBoxMsg = "";
var gMsgBoxSubMsg = "";
</script>
<div id="msgBox" class="PopBox" style="visibility:hidden; display:none;">
<table cellspacing="0">
<tr>
<td style="padding-bottom:1em; color:#c00; font-size:80%"><span id=msgBoxMsg></span></td>
</tr>
<tr>
<td style="padding-left:20px">
<table cellspacing="0">
<tr>
<td><span id=msgBoxSubMsg style="line-height:130%"></span></td>
</tr>
<tr>
<td id="msgBoxClose" class=closeBut><input type=button value="Close" onclick="HidePopupDiv('msgBox');"></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<div id="qbAlertDiv" class="PopBox" style="visibility:hidden; display:none; padding:30px;">
<table cellspacing="0">
<tr>
<td style="padding-right:20px" valign=top><img src="/i/icon_warning.gif" border=0></td>
<td style="font-size:80%; line-height:140%" id="qbAlertSpan"> </td>
</tr>
<tr>
<td class=centerButs colspan=2>
<input type=button value=" OK " onclick="HidePopupDiv('qbAlertDiv');">
</td>
</tr>
</table>
</div>
<div id="qbConfDiv" class="PopBox" style="visibility:hidden; display:none; padding:30px">
<table cellspacing="0">
<tr>
<td style="padding-right:20px; line-height:140%" valign=top><img src="/i/qmarkBalloon.gif" border=0></td>
<td style="font-size:80%;" id="qbConfSpan"> </td>
</tr>
<tr>
<td class=centerButs colspan=2>
<input type=button value=" OK " onclick="QBconfirmYesProc()">
<input type=button value="Cancel" onclick="HidePopupDiv('qbConfDiv');">
</td>
</tr>
</table>
</div>
<div id=qbBusyDiv class=PopBox style="visibility:hidden; display:none; padding:40px">
<table cellspacing="0">
<tr>
<td style="font-size:80%;" id="qbBusySpan"> </td>
</tr>
</table>
</div>
<div id="qbPromptDiv" class="PopBox" style="visibility:hidden; display:none; padding:30px">
<table cellspacing="0">
<tr>
<td style="padding-right:20px; line-height:140%" valign=top rowspan=2><img src="/i/qmarkBalloon.gif" border=0></td>
<td style="font-size:80%;" id="qbPromptMsg"> </td>
</tr>
<tr>
<td><input type=text size=40 id="qbPromptInput"></td>
</tr>
<tr>
<td class=centerButs colspan=2>
<input type=button value=" OK " onclick="QBpromptYesProc()">
<input type=button value="Cancel" onclick="HidePopupDiv('qbPromptDiv');">
</td>
</tr>
</table>
</div>
<div id=fpopmenu style="left:0px; top:0px; visibility:hidden; display:none; position:absolute; z-index:6" class="PopMenu">
<table cellspacing=0 cellpadding=0><tr><td>
<h4><span id=fpopMenuLabel></span></h4>
<a id="fpopEditProps" href="">Edit this field's properties...</a>
<a id="fpopDefView" href="">Edit the default view...</a>
</td></tr></table>
</div>
<input type=hidden value="first" name=firstTimeLoaded>
<div id="interactionID" style="visibility:hidden; display:none;"></div>
<div id="regNeedEmailPopup" class="PopBox" style="visibility:hidden; display:none; width:500px; left:0px; top:0px;">
<h4>Please enter your e-mail address</h4>
<p>To begin registration we first need your e-mail address.</p>
<form method="post" action="main?a=reg" name=regform onsubmit="return checkRegForm()">
E-mail address: <input type="text" name="loginid" size=40 id=loginidreg>
<div style="float:right; padding-top:30px">
<input type=submit value="Register" id="needEmailRegister">
<input type=button value="Cancel" onClick="HidePopupDiv('regNeedEmailPopup')">
</div>
<input type=hidden name="whichButton" value="register">
</form>
</div>
</body>
</html>
Seems it cant be done....
www.crmpicco.co.uk
|
|

February 9th, 2006, 08:19 AM
|
|
Friend of Wrox
|
|
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
|

February 21st, 2008, 05:36 PM
|
|
Registered User
|
|
Join Date: Feb 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I don't know whats more annoying.
That people ask this questions so many times or that "people who things they are smarter than others" posts so many replies telling "the stupid people" "that U can not so this" and "why don't U read the previous replies".
I think you are more annoying bcs U don't seam to be able to tell how to turn of this feature. Then U could say that this is not a good idea and explain why.
|
|

February 21st, 2008, 05:54 PM
|
|
Friend of Wrox
|
|
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
|
|
OMG do you realise the last post before yours is nearly 2 years old!!!
I remember it made me laugh very hard on several occasions. It may even be, IMO the biggest waste of disk space on the very useful forum :o)
Wind is your friend
Matt
www.elitemarquees.com.au
|
|
 |