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 strongm 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: *

  • Users: gph1
  • Order by date
  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>')
  16. gph1

    Can You secure a JS file ?

    No You can use the usual array of pretend barriers, no right click etc. but JS is a client side language and therefore needs to be download to work. Using JS, the best advice I can give is to make the file hard enough to read that only people that can read JS will get to the sensitive info...
  17. gph1

    Checkbox Status

    It doesn't matter how the existing string got there, it will add it to the existing value. Even if it's just regular text in a division or table it will do the same thing by replacing value with innerHTML. <html> <head> <title></title> <script> UnCheck_State = 'with border' Check_State =...
  18. gph1

    Checkbox Status

    I think I understand what you mean this adds a string to the end of an existing string document.getElementById('something').value += new_string this replaces an existing string with a new one document.getElementById('something').value = new_string let me know if I'm barking up the right tree
  19. gph1

    Checkbox Status

    I know nothing of server side VBScript. I don't know what's required to send the variable. This puts the condition in onsubmit but it is already a global variable. <script> myvar = false UnCheck_State = 'with border' Check_State = 'borderless' function Name(state) { a =...
  20. gph1

    Checkbox Status

    No it doesn’t matter, I left it as text so you could see it. If you need to support lesser browsers as opposed to forward compatibility change this: document.getElementById('something') to this document.formname.something Incase your wondering, this is false if (!state) {

Part and Inventory Search

Back
Top