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 SkipVought 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: *

  • Users: woja
  • Order by date
  1. woja

    filter works in-line but not as a function

    I had this problem about 6 months ago, and I'm sure it was something to do with the return value. Don't have the code here at the moment. Maybe someone else will be able to help as I can't get the details until Monday. Sorry I couldn't be more help. _______________________________________ Roger...
  2. woja

    filter works in-line but not as a function

    OK, it was just an idea because that's the only difference really. The other thing you might try is: [code<textarea rows=2 cols=20 id="ta1" onKeypress="filterKeys(); return true;">[/code] but I'm not certain this will make much difference. _______________________________________ Roger [pc2] The...
  3. woja

    filter works in-line but not as a function

    In filterKeys try setting event.returnValue to true or returning true. As it stands at the moment, filterKeys has an undefined return value, which is treated as false. _______________________________________ Roger [pc2] The Eileens are out there
  4. woja

    How to mark x on same line

    Is this in Excel? _______________________________________ Roger [pc2] The Eileens are out there
  5. woja

    passing a string as a variable

    So, does your ASP does something like this (assuming VBScript)? <script type="text/javascript"> <% Set rs = db.OpenRecordSet("....") While (Not rs.EOF) %> var <%=rs.Field("Name")%> = "<%=rs.Field("Value"%>"; <% rs.MoveNext Wend %> </script> If so, you should be able to do this...
  6. woja

    passing a string as a variable

    I'm going to simplify this a bit, so it's easier to explain (for me). {HTML} <select id="selbox"> <option value="v1">January</option> <option value="v2">February</option> <option value="v3">March</option> </select> <input value="Go" type="button"...
  7. woja

    Operator[ ] with two arguments

    About the comma: It's a binary operator when used like this: double y = 0; double z = 0; double x = (y = sin(2.13), z = cos(y), sqrt(z)); which sets does: [ol 1] y = sin(2.13) z = cos(y) sqrt(z) [/ol] and the value is sqrt(z). Everything being evaluated left to right. But in: double x =...
  8. woja

    Easy way to Password a html page

    You would need to do this on the server (using scripting: ASP, PHP, etc.). You can't do this directly in HTML (even with JavaScript). You could do it in JavaScript on the client, but the ansers to the questions would have to be visible in the JavaScript, so anyone could find them out...
  9. woja

    Operator[ ] with two arguments

    You can't overload any operator with more arguments than it's normally allowed (e.g., you can't give binary + three arguments). So you can't overload the [] operator with more than one argument. The best bet would be to have a class (say, GridRow which represents a single row of the Grid and...
  10. woja

    Is there a way to set the width of a drop down list?

    If you want to set the width to, say, 50 pixels, then the following will do it: <select style="width: 50px;" size="1"> <option value="0">First item, which is quite long.</option> <option value="1">Second item, which is quite long.</option> <option value="2">Third item, which goes on...
  11. woja

    Open Acrobat Reader/Writer through Javacript code

    You want to open the reader without a document? Why? From JavaScript within the browser, you can't open other applications (think what would be possible if you could). _______________________________________ Roger [pc2] The Eileens are out there
  12. woja

    Open Acrobat Reader/Writer through Javacript code

    Just open a new window (using the window.open() method) with a URL pointing to a PDF document. This will work as long as the user has PDF documents mapped to Acrobat in their browser. From within a browser, the answer is no. For good security and privacy reasons, you can't control other...
  13. woja

    Problem getting random records

    From MS Access documentation for Rnd(): You need to use the Randomize statement to get different numbers each time. You'll find that withing Access you get the same sequence everytime you open the DB but the list will be different each time you call the procedure while the DB is open. From the...
  14. woja

    Problem with CFile!!!

    Open using CFile::modeCreate | CFile::modeNoTruncate | CFile::modeWrite (or possibly, CFile::modeReadWrite, if that's what you need). Then you must do seekToEnd() before writing to the file. Hope this helps. See...
  15. woja

    iss file or folder setting

    Yes, the file/folder needs to be able the be read by the user. And, IIS must have the file/folder readable. _______________________________________ Roger [pc2] [i]The Eileens are out there
  16. woja

    for loop populate &lt;option&gt; tag

    Or try: {JavaScript} function populateList(aList, aStartHour, aEndHour) { var itemIndex = 0; // firstly empty the list if it's got anthing in it. while (aList.options.length > 0) { aList.options.remove(0); } // now add the new items; for (var h = aStartHour; (h <...
  17. woja

    Colorado T1000e: Can't see device

    We need (urgently, as ever) to retrieve some date from a 1998 backup tape that was created on a T1000e (which we have). I've installed the original software and driver (which was windows 95) on a Windows 98SE machine. The first time I did it I could actually see the tape drive but when it came...
  18. woja

    Excel97/2000 Problem

    No, the references are the same. The MSComm control is the same version in both. _______________________________________ Roger [pc2] [i]The Eileens are out there
  19. woja

    Excel97/2000 Problem

    We have the following problem: A workbook has been created with Excel2000. This workbook contains a reference to the MSComm object. The workbook is saved. The workbook is opened in Excel97, without problems and can be worked on and saved and evrything is OK. The workbook is closed (it matters...
  20. woja

    How can the file pointer be moved?

    You need SetFilePointer: SetFilePointer(hFile, 0, NULL, FILE_END); _______________________________________ Roger [pc2] [i]The Eileens are out there

Part and Inventory Search

Back
Top