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 TouchToneTommy 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

    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...
  2. 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.
  3. 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...
  4. 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) {...
  5. 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...
  6. 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...
  7. 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) {...
  8. 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...
  9. mpalmer12345

    Replace all instances but one

    Here's a question I have been puzzling over for a while. I want to replace all pretags in a text with "", EXCEPT the &nbsp; pretag. I figure that $text =~ s/&[a-zA-Z]+?;//ig; will wipe out ALL of them. But how do I wipe out all but &nbsp;? I've tried a few dumb things, but I can't seem to...
  10. mpalmer12345

    Newline recognition problem

    I am having a devil of a time figuring this out! I am taking as my data the source code brought in from a website via LWP::Simple, such as the following: <!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <html> <head> <meta http-equiv="Content-Type" content="text/html...
  11. mpalmer12345

    Replacing a segment with x's

    $text = '<input type=hidden name="avkw" value="fogg"> <input type=hidden name="avkw" value="a be cee">'; Given this bit of code above, I wish to write a line that replaces all words between every instance of value="" with an equal number of xs. So the result should be: <input type=hidden...
  12. mpalmer12345

    extended characters search and replace

    Is there a way I can easily extend the typical search instruction s/a-zA-Z// to include groups of foreign characters like those using cedillas, umlauts, etc.?
  13. mpalmer12345

    Super-simple HTML parsing.

    I'd like to create an ultra simple HTML parser/replacement tool that looks for any and all alphanumeric text between > and <\n and blanks it out with xs. So a string containing $text = "<TITLE>This is a title<\TITLE>"; would become <TITLE>xxxx xx x xxxxx<\TITLE>. $text = "<TITLE>This is a...
  14. mpalmer12345

    Same program - 2 different results!

    Same program - 2 different results! I am puzzled why I am getting two different results with the exact same program! The only difference is that one is being run on my home computer and the other is on the Web. $text = '<html> <head> <title>Untitled Document</title> <meta...
  15. mpalmer12345

    perl::flash???

    Does anybody know if the perl-flash connection has been made? I was hoping this would be it http://thegestalt.org/flash/ but the demos all give internal server errors.
  16. mpalmer12345

    LWP:: Simple problem - no HTML!

    I am trying to use the LWP:: Simple command. When I do the following, all I get is the simple webpage link returned to me, not the HTML code! <form name="form3" METHOD="POST" ACTION="/cgi-bin/Scrip01.cgi"> <p>ENTER THE URL OF WEBSITE PAGE:</p> <input type="text" name="urlval" size="100">...
  17. mpalmer12345

    Improper color values(?)

    What happens when you feed numbers higher than 255 into the three hex slots of a font color (strColor)? I am getting some pretty, but unpredictable, effects I would like to reproduce, if possible, but within a setting where the values are within the proper range and won't produce error messages...
  18. mpalmer12345

    Match all chars with equal # of dots

    This seems like an easy problem, but I am stumped! How do I match all chars in a portion of the string and replace with an equal number of "." characters. So "alt=testx" becomes alt=….."?
  19. mpalmer12345

    Submitted URL turned into source code sent to CGI?

    I want to write an HTML program that accepts user input via a form submission in the form of a website URL link (such as http://www.etc.com), then sends the HTML source code of the inputted URL to a CGI file for processing. How would I do this? Any tips or hints would be much appreciated, as I...
  20. mpalmer12345

    Rollover with a twist.

    Rollover with a twist. I am trying to do the basic rollover image idea, but with the twist that if you click on the mouse, the images are swapped. So if rollover with image 1 as base, image 1 -> image 2; if click then rollover, image 2 -> image 1. Also the reverse: if rollover with image 2 as...

Part and Inventory Search

Back
Top