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 Chriss Miller 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 gph1

  1. gph1

    troubles with an "onfocus" in a <select>

    Also try this el.style.backgroundColor
  2. gph1

    confirm();

    Sorry I use a different writing style from your example. I'm missing a bracket. function confirm_entry() { if (confirm("Are You Sure? Email will be sent to all customers!")) { email('about:blank'); f = document.forms[0]; f.target = winName; f.action =...
  3. gph1

    confirm();

    function confirm_entry() { if (confirm("Are You Sure? Email will be sent to all customers!")) email('about:blank'); f = document.forms[0]; f.target = winName; f.action = 'email_control.asp?action=send'; f.submit(); } }
  4. gph1

    Browser detection

    Actually it could be a little better at catching opera, not creating errors in NN6x and getting IE4 only. This should be IE4 (can't test). Disregard what I said about "opera/" it's for getting versions. var...
  5. gph1

    Browser detection

    well no because document.all is IE only. The 2nd condition in the line is to stop Opera from pretending to be IE. I think you have to check for "opera " and "opera/" to catch it on any OS but I could be wrong.
  6. gph1

    Explain this line to me

    It's called a ternary expression. It's the same as doing this: var DomYes if (document.getElementById) { DomYes = 1 } else { DomYes = 0 }
  7. gph1

    .js - Validation Fails-Works when Embedded in Page

    1/ Try putting the js file in the same directory, that will rule out or show a path problem 2/ I've never seen a script tag written with line breaks like you have it. It might be fine but try it this way. The path is as I described above. Also, drop language, it's depreciated. <script...
  8. gph1

    ActiveX Object and MS Word

    I looked for some type of method but found nothing. Just FYI I use it to return focus to the app. function one() { Word = new ActiveXObject(&quot;Word.Application&quot;) Word.visible = true } // then after it's lost focus function two() { Word.visible = false Word.visible = true } I think...
  9. gph1

    ActiveX Object and MS Word

    A ridiculous hack that I know works on PhotoShop. Word.visible = true Word.visible = false Word.visible = true There has to be a better way, maybe someone will enlighten us.
  10. gph1

    three handy Array functions: pull(), insert(), replace()

    oops, forgot the star.
  11. gph1

    three handy Array functions: pull(), insert(), replace()

    hey those are real handy, thanks jemminger
  12. gph1

    if (document.form.user.vlaue=&quot;a&quot;) PROB

    Ok, you don't need window. for alert. alert alone is fine if (document.form.user.value==&quot;a&quot; && document.form.pass.value==&quot;b&quot;) { alert(&quot;Thanks&quot;)
  13. gph1

    if (document.form.user.vlaue=&quot;a&quot;) PROB

    = gives a value to something == compares 2 conditions to see if they are the same This might help http://www.devguru.com/Technologies/ecmascript/quickref/javascript_index.html
  14. gph1

    if (document.form.user.vlaue=&quot;a&quot;) PROB

    if (document.form.user.value == &quot;a&quot;) { alert(&quot;Thanks&quot;)
  15. gph1

    Including Javascript inside Javascript

    document.write('<\script src=&quot;file2.js&quot; type=&quot;text/javas\cript&quot;></s\cript>')

Part and Inventory Search

Back
Top