Regarding the function GlenMac posted on 3/15/04 which displays the character code for a given character: I've been unsuccessful modifying the function to return the character codes for keys such as PgUp/Dn, the arrows, function keys, etc.
I know these keys return a 2-byte sting and the first...
I've ruled out browser/PC problems because I just tested an example from an earlier post on this site ("Can you place a class on a row - 10/30/03) which worked fine.
I get a bottom-border when I set the <td> class attribute but not so with <tr>. Does anyone see my error?
<html>...
This function returns all files in a given directory. You might be able to adapt the following for your needs by replacing the Debug statement with the statement to open the workbook. You might want to perform a test first to see if the current file is indeed an XLS file.
Function FileList()...
This function returns all files in a given directory. You might be able to adapt the following for your needs by replacing the Debug statement with the statement to open the workbook. You might want to perform a test first to see if the current file is indeed an XLS file.
Function FileList()...
Targol,
Thanks for the explanation of "+" vs. "&&" vs. "&". I'm pretty sure I know how the pw = pw ... line should now read.
Jemminger,
That level of detail is exactly what I appreciate so much in this forum. It took me a while to get used to VB/VBA editors...
Thanks, Targol. The charCodeAt and fromCharCode were the key.
I cut and pasted your code so the complete function now reads:
function ValidatePW(f)
{
var pw = f.ApprovalPassword.value;
var offPW = f.OfficerPW.value;
var mgrPW = f.ManagerPW.value;
for (var i = 0; i<...
I'm just learning JS. I've been able to convert all but a few lines of the original code. Can anyone help? Many thanks.
function ValidatePW(f)
{
var decryptedPW = f.ApprovalPassword.value
var offPW = f.OfficerPW.value;
var mgrPW = f.ManagerPW.value;
var pw = "";
var i...
I've been asked to create an online survey with 5 <textarea> elements. I need to plan for the response to each question to be a few thousand characters.
This is the construct I've used in the past for other elements such as checkboxes or radio buttons:
With rs
.AddNew...
valeriav,
Amazing. The code you pasted from your application is the exact same code I started with! (The form I'm validating has about 30 radio buttons so I wrote that function to which I could simply pass the individual controls.) I only started playing around with my code because the first...
No change - both evaluate to either true or false. I tried a few experiments, though. Maybe this will be of help:
If I change that first alert to alert (f); , IE returns [object] and NS returns [object HTMLFormElement] - both meaning the same thing.
However, if I change the alert to alert...
Yesterday it was a style issue. Today it's radio buttons. I'm shocked to discover such incompatibility exists between IE and NS on what seem to me to be common tasks.
The following code performs as expected in IE, but not NS6. In NS6, the function gets called because I get the first alert...
In no way do I disagree with sjravee's assessment.
However, in possible defense of qwe1204's question, I was asked for similar functionality by my users. I agreed with the users that if such functionality were possible, it would have been a beneficial enhancement to the application.
I finally had a chance to complete the testing. Both methods worked precisely as expected in the four browser versions I tested: Netscape 4.3 and 6.2, and IE 5x and 6x.
Thanks very much for your help. Maybe I'll have an opportunity to return the favor some day.
I've not tried either yet, but both approaches look good to me. Thanks.
I can see the td, th { parameters } method being an excellent approach on a simple table. Thanks for the great tip. Unfortunately, I'm working on a complex online loan application.
The <font> method will work better in...
Version tested was Netscape 6, but I'll need it to work under Netscape 4 as well as IE 4x through current.
I sent a watered down example. In practice, class names include "SmTxt", "LgTxt", "BoldHeadings" ... maybe a dozen altogether.
I'm new to HTML, but not...
What does Netscape want/expect
An overly simplified illustration of what I'm doing:
<head>
<style>
.Text { font-family: sans-serif; font-size: 10px; }
</style>
</head>
I specify the style using the class attribute:
<table>
<tr>
<td class="Text">My Text</td>
</tr>...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.