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

    redirection a page to a url defines as variable?

    i got it to work by your advice tsuji but whats with all the extra quotes? is there a certain pattern ? whats the defining difference between double and single quotes???
  2. dbartlett41

    redirection a page to a url defines as variable?

    ok i tried this but it didn't work var go = "http://www.google.com" window.setTimeout('window.location=' + go, 2000) i tried this also and it did work except it doesent selay the redirect for 2 seconds like i wanted any idea why?? var go = "www.google.com"...
  3. dbartlett41

    redirection a page to a url defines as variable?

    nope didn't work and i think you were missing a quote there? i tried: window.setTimeout('window.location=' + go', 500); window.setTimeout('window.location="+ go", 500); window.setTimeout('window.location="+ go"', 500); what is the difference between single quote and double quote? what is the...
  4. dbartlett41

    redirection a page to a url defines as variable?

    i am trying to use the following code but it doesent seem like i can place a variable in side it to redirect to a url that is a variable any idea why it doesent work window.setTimeout('window.location=go; ',500); where go is normally "http://somesite.com" any ideas, thanks again dave
  5. dbartlett41

    search html for a string

    i see thanks that helps eliminate a bit of code. thanks again for you help.
  6. dbartlett41

    search html for a string

    ok sounds good so how would i search rfor an item multiple times say the word "hi" and increase a count everytime it is found? i know how the .search("")works but is there another way besides finding the search term and shortening the string every time the term is found?? possibly a built in...
  7. dbartlett41

    search html for a string

    <html> <head> <script language="JavaScript"> function init() { var found = document.body.innerHTML.indexOf("Nested"); alert(found); } </script> </head> <body onload="init()"> <div> <p> Nested element...
  8. dbartlett41

    search html for a string

    ok so what command stores it to a string so i can search it?
  9. dbartlett41

    search html for a string

    i want to put some java script in a page that searches the html in the same page for a string. how can you do this? how can you store the document to a string or somehow scan through its own document looking for a certain line of html and if found store it to a variable along with everything...

Part and Inventory Search

Back
Top