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 SkipVought 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: Damian13
  • Order by date
  1. Damian13

    handling window closure

    Put whatever the button does in the OnUnload method of the body. <BODY OnUnload=&quot;SameAsButtonClick();&quot;> That is run even when the &quot;x&quot; is clicked.So it should work for you
  2. Damian13

    parameters transfer problem

    I never went through the whole thing , But I think you have to say ... <option value='106'>106</option> ???
  3. Damian13

    Popup Window only when a specified site was not ! visited

    <!-- :-) ;-) :-) --> <html> <head> <script language=&quot;JavaScript&quot;> var ViewedInfo = false; function CheckIfViewed(){ if (!(ViewedInfo)) { alert('BAD PERSON, you didnt go where I wanted you to go ... So I will take you there')...
  4. Damian13

    form validation

    These functions do it, not so simple but its ok function isInteger (s) { var i; if (isEmpty(s)) // Search through string's characters one by one // until we find a non-numeric character. // When we do, return false; if we don't, return true. for (i = 0; i < s.length...
  5. Damian13

    how can i create a button with JS

    <!-- Here's some code to create controls dynamically that I found --> <HEAD> <SCRIPT LANGUAGE=&quot;JavaScript&quot;> <!-- Begin function createForm(number) { data = &quot;&quot;; inter = &quot;'&quot;; if (number < 16 && number > -1) { for (i=1; i <= number; i++) {...
  6. Damian13

    checkbox-correct remain checked, incorrect unchecked

    <!-- Questions 1 4 and 6 are wrong That stuff you said was confusing, but I think this is what you want --> <html> <head> <script language=&quot;JavaScript&quot;> <!-- NoOfChancesAllowed = 2; NoTried = 0; function CheckIt(){ NoTried = NoTried + 1; msg = &quot;&quot;; if...
  7. Damian13

    Calculating values in forms!

    <html> <head> <script language=&quot;JavaScript&quot;> function DoMathsPopup(){ document.frm1.answer.value=parseInt(document.frm1.no1.value) + parseInt(document.frm1.no2.value); winpopup =...
  8. Damian13

    checkbox-correct remain checked, incorrect unchecked

    <!-- Questions 1 4 and 6 are wrong That stuff you said was confusing, but I think this is what you want --> <html> <head> <script language=&quot;JavaScript&quot;> <!-- function CheckIt(){ msg = &quot;&quot;; if (document.frm1.chk1.checked){ msg +=...
  9. Damian13

    Calculating values in forms!

    <!-- this is a basic thing but it shows you everything you need to do maths stuff --> <html> <head> <script language=&quot;JavaScript&quot;> function DoMaths(){ document.frm1.answer.value=parseInt(document.frm1.no1.value) + parseInt(document.frm1.no2.value)...
  10. Damian13

    Javascript Pixel Color Finder

    Sorry, I never read the whole thing, I though that code on the page would do what you wanted. I'll look again sometime. Merry XMAS :-)
  11. Damian13

    Javascript Pixel Color Finder

    Go to this website , it looks like it is what you want. http://www.vimas.com/server_sdk/pixcolor.htm Tell me if it is. I think it only works on pictures though.
  12. Damian13

    Newbie Question

    Yes ... a question that I can answer :-) Just swop this line var tot = ace1 - ace2; With this line var tot = parseInt(ace1) + parseInt(ace2); You were trying to do maths stuff with a string and in JavaScript the thing you use to combine string is + thats why it did what it did.
  13. Damian13

    onClick - multiple functions

    onClick=&quot;function1(); function2();&quot;
  14. Damian13

    if/then between 2 form fields

    PART 2 <!-- This way of doing it is cool, because you make your functions return TRUE / FALSE so if the first one fails it doesnt waist time doing the next one and the form is only submitted when both return TRUE but if you just want it plain onSubmit=&quot;test1();test2();&quot; that will run...
  15. Damian13

    Combine + functions?

    <input type=&quot;text&quot; onchange=&quot;alert('change');&quot; onKeyUp=&quot;alert('keyup');&quot;> <input type=&quot;text&quot; onKeyUp=&quot;return autoTab(this, 3, event);&quot; onChange=&quot;setRubriek(this.form);&quot;> That puts both your functions on the text box ... Hope its...
  16. Damian13

    if/then between 2 form fields

    <!-- This code should help if I understand what you want right. I didn't write the isEmpty and IsWhitespace functions I got them off a site, can remember which one though. Thanks whoever wrote them --> <html> <head> <script language=&quot;JavaScript&quot;> <!-- // whitespace characters var...
  17. Damian13

    how to clear screen and display new stuff

    <!-- Hi Run this script, it is a simple version of what you want to do I think, I would explain it but I just started looking at it a few minutes ago, but it doesnt look too bad. --> <HEAD> <SCRIPT LANGUAGE=&quot;JavaScript&quot;> <!-- Begin function createForm(number) { data =...
  18. Damian13

    Save input words into text file using JavaScript (Urgent)

    <!-- It is possible to do this using ActiveX embedded into your JavaScript It works but it brings up a window asking if you want to run the script because it might be UNSAFE --> <html> <head><Script language=&quot;JavaScript&quot;><!-- function WriteToFile() { var filename =...

Part and Inventory Search

Back
Top