Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Sam6284

    How it works :-?

    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...
  2. Sam6284

    bottom-border and <tr>

    I've ruled out browser/PC problems because I just tested an example from an earlier post on this site (&quot;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>...
  3. Sam6284

    Excel Concept Question

    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()...
  4. Sam6284

    Excel Concept Question

    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()...
  5. Sam6284

    Convert a line of VBA to JS

    Targol, Thanks for the explanation of &quot;+&quot; vs. &quot;&&&quot; vs. &quot;&&quot;. 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...
  6. Sam6284

    Convert a line of VBA to JS

    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<...
  7. Sam6284

    Convert a line of VBA to JS

    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 = &quot;&quot;; var i...
  8. Sam6284

    Thoughts on handling large quantities of text.

    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...
  9. Sam6284

    Another way to write this piece of validation?

    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...
  10. Sam6284

    Another way to write this piece of validation?

    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...
  11. Sam6284

    Another way to write this piece of validation?

    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...
  12. Sam6284

    window.print()

    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.
  13. Sam6284

    Using &lt;style&gt;&lt;/style&gt; in Netscape 4x through current

    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.
  14. Sam6284

    Using &lt;style&gt;&lt;/style&gt; in Netscape 4x through current

    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...
  15. Sam6284

    Using &lt;style&gt;&lt;/style&gt; in Netscape 4x through current

    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 &quot;SmTxt&quot;, &quot;LgTxt&quot;, &quot;BoldHeadings&quot; ... maybe a dozen altogether. I'm new to HTML, but not...
  16. Sam6284

    Using &lt;style&gt;&lt;/style&gt; in Netscape 4x through current

    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=&quot;Text&quot;>My Text</td> </tr>...

Part and Inventory Search

Back
Top