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!

Recent content by jay25

  1. jay25

    Substring till a specific character is found

    Hello, I'm trying to perform a substring on a string variable. I want to extract a part of the string till a specific character is found within the string.(the pipe character '|' in this case) Currently, I'm using the index function to supply the Length argument: my $cd = substr($_, 0...
  2. jay25

    if a form box is empty

    It was a text input box and the empty quotes worked. Thanks! For some reason, everytime I got back to this site, I had 0 responses. But when I clicked on the post, I saw that you all wrote in it. And I didn't use the back button to get back to the site but used the favorites. I had to reload my...
  3. jay25

    if a form box is empty

    I am trying to get some statements executed in a case a form box is empty and I tried comparing the value (theform.thebox.value) to null, NaN, undefined but it doesn't seem to work. Anybody know how to do it? if (theform.thebox.value == null) alert("You got it!"); else...
  4. jay25

    What is wrong with this link?

    You may have to open that new window from a function and call the function from the link. <a href=&quot;javascript:openPopUp();&quot;> For some reason you can't open a new window right from a link, not by using javascript. Maybe someone knows why.
  5. jay25

    Getting data from the opener window

    Never mind! It does work. I had made a mistake somewhere else!
  6. jay25

    What is wrong with this link?

    Maybe the code in the popup window makes it do that?
  7. jay25

    Getting data from the opener window

    I am trying to get some data from the opener window, like form values, without adding any code to the opener. I tried this: alert(opener.form1[0].value); and alert(opener.document.form1[0].value); and var a = opener.document.form1[0].value; alert(a); None of this seems to work. It's...
  8. jay25

    Drawing a line by coordinates

    I am trying to create a little browser based program to evaluate performance. I put asterisks inside divs and absolutely positioned them inside another div. That makes it look like a chart. What I would like to do is connect those asterisks with lines for it to be more clear. Can it be done...
  9. jay25

    base-60 adition

    Have you tried something like: to ad var a and var b: var c = parseInt(a,60) + parseInt(b,60); Of course this will only round it up to the integer. If you always have the same number of characters after the decimal point you might try something like: [code] var d = 2; // number of points...
  10. jay25

    Netscape's bgColor

    I've tried box1.backgroundColor and document.box1.bgColor and I've tried Netscape6 but they wouldn't work. I think it's like you said, that you can only change the background in the whole document because document.bgColor did work. But I could not do it in a div.
  11. jay25

    Netscape's bgColor

    I can't get this to work in Netscape. What is wrong? Can you not change the background color in Netscape dynamically? [code] <div id=&quot;box1&quot; style=&quot;background-color:#ccffcc;&quot;> This is box 1 </div> <script language=&quot;JavaScript&quot;> function color() { if...
  12. jay25

    Netscape bgColor

    I can't get this to work in Netscape. What is wrong? [code] <div id=&quot;box1&quot; style=&quot;background-color:#ccffcc;&quot;> This is box 1 </div> <script language=&quot;JavaScript&quot;> function color() { if (document.all) { box1.style.backgroundColor=&quot;blue&quot;; } else {...
  13. jay25

    Quotation marks

    If I am using document.write() to write some HTML code, tags and all, how do I nest quotes more than two deep? Thanks.
  14. jay25

    moveTo()

    Thanks. It works fine. I just couldn't figure out why the moveTo() method will only work with relative URL
  15. jay25

    moveTo()

    No, that wasn't it. Now it won't open the window at all and I still get an error. But thanks.

Part and Inventory Search

Back
Top