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 IamaSherpa 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. mpalmer12345

    non-ASCII char recognition

    Okay, I found the problem, It's the old single vs double quotes for the strings. Instead of var bintexx = new Array (" ÔÉL? .", " ?p !UN"); I should have used var bintexx = new Array (' ÔÉL? .', "'?p !UN'); like you did in your example, Dan. Thanks!
  2. mpalmer12345

    non-ASCII char recognition

    No, didn't work. It's like the array with extended chars isn't even recognized as a valid array. The program works with normal chars in the array, and fails when I add extended chars.
  3. mpalmer12345

    non-ASCII char recognition

    I'm trying to use extended chars in an array of strings, and Javascript is not recognizing the non-ASCII chars. I know there must be a way to fix this, but I can't find the info listed anyplace. Here's a sample, containing 2 array elements between quotes. I would prefer to leave the elements in...
  4. mpalmer12345

    char 2 bin

    Thanks!
  5. mpalmer12345

    char 2 bin

    Hm, thanks, DAN, but I want to convert an Ascii letter into a binary #, not the other way around. Maybe there's a toCharCode out there?
  6. mpalmer12345

    char 2 bin

    After a bit of searching, I give up! How do I convert an ASCII value to its numeric equivalent (preferably binary) in Javascript? The result should cover all values from 0 to 255, not just A-Za-z.
  7. mpalmer12345

    Keeping centered while scaling

    I'm trying to scale up some letters in a text, but I also want to keep them exactly centered in the middle of the screen. Is there a better way to do this than simply to adjust the y-coordinate in some crude fashion as the scale grows larger such as I am doing below? It seems that every letter...
  8. mpalmer12345

    Letters 1 at a time

    Thanks for the help! I can't get this code of yours to run. I fixed a small error, and still nothing, var newtext = setTimeout("changeTX(ii)", 1000); to var newtext = setTimeout("changeTX()", 1000);
  9. mpalmer12345

    Letters 1 at a time

    I am trying to print out the letters of MYtext one at a time at 1 second intervals. This doesn't work, all I get is the first letter, then it stops. My grasp of setTimeout is very shaky, it seems. <HTML> <HEAD> <script language="JavaScript"> <!-- MYtext = "black"; function changeTX(var ii) {...
  10. mpalmer12345

    Form button font change?

    Yes, outstanding! Thanks!
  11. mpalmer12345

    Form button font change?

    Form button font change? Is it possible within an HTML page to change the font on a form button so that all users see the same font? Right now the VALUE= command between quotes is in what looks like Chicago font or something on my browser, and I'd like something nicer. <FORM METHOD=POST...
  12. mpalmer12345

    CPU Load Suspension

    Thanks for the info! So I gather than an infinite loop in a cgi-bin program still runs even after the user breaks it off? Hm.
  13. mpalmer12345

    draw a line in 1 sec

    Easy question to answer, probably. I'd like to have a series of lines (using a loop) drawn across the screen in relation to some specific amount of time. So I would like to draw a line across the screen like this MoveTo(0, 50); LineTo(30, 188); then pause 1000 milliseconds, then another line...
  14. mpalmer12345

    background color shift on timeout

    Thanks! You are absolutely right, and things are working fine now. Thanks, again.
  15. mpalmer12345

    background color shift on timeout

    Sorry for being so stupid! Okay, I've simplified the code as much as I can and I still can't make it work! All I get is c=1 written to screen. var c = 0; function changeBGx() { if (c++ < 10) { document.write("c = " + c + "<BR>"); } setTimeout("changeBGx()", 1000); }; ... </HEAD> <BODY...
  16. mpalmer12345

    background color shift on timeout

    Thanks, but that doesn't seem to fix the problem. All attempts at adding a loop the timeout fails. I only get a single change at the end, not a new change every 1000ms. I would like a loop someplace, say (ii=0; ii<10; ii++) { ... } to generate a total of 10 different colors with changeBG(ii)...
  17. mpalmer12345

    background color shift on timeout

    I want to do a simple alternation betwen black and white background colors. (I may expand it later to more colors, which explains the code below.) I would think the simple code below would work, but it doesn't! Why not? Dec2Hex is a conversion function, obviously. ... function changeBG(ii) {...
  18. mpalmer12345

    CPU Load Suspension

    Okay, because it's so short, I figure I may as well post the code I've written that is causing the problem, minus a few details. I invite anybody to tell me how I might revise this code to lessen the CPU load, or otherwise tighten it up to run more efficiently. The program basically takes a...
  19. mpalmer12345

    CPU Load Suspension

    Thanks for that tip! Here's what he sent me, I can't pretend to know too well what the references mean, although if somebody else does, I'd love to hear about it. I can also post the code in my cgi-bin file, if that would help get to the source of the problem. # The problem stems from a...
  20. mpalmer12345

    CPU Load Suspension

    I am running a Perl cgi-bin program that is causing my account to be suspended due to excessively high cpu load. All the program does is read in a site's html code via LWP::Simple and process it using Perl s// commands. Can anybody give me some general tips as to how I can write Perl code to...

Part and Inventory Search

Back
Top