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 Shaun E 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 SarahKate31

  1. SarahKate31

    Array as Object property

    yes you are correct - this syntax does work - i had a problem elsewhere that i have now fixed...i haven't used the object constructor very often, so i assumed i had the syntax wrong...sorry! Thank you both for your quick replies Thanks - Kate
  2. SarahKate31

    Array as Object property

    Hi everyone -- I need to use the Object constructor to create a new object with properties. I also have a multidimensional array that I would like to store as a property of the object. sibsArr = new Array() sibsArr[0] = new Array() sibsArr[0][0] = "John" sibsArr[0][1] = 26 sibsArr[1] = new...
  3. SarahKate31

    Loop thorugh words in Textbox entry

    you might want to start by splitting your input string on spaces using .split() and then you will have an array containing each individual word that can be lopped through...after checking for abbreviations, you will be able to put the array back into a string using .join() var myString =...
  4. SarahKate31

    sorting 2D array with numbers

    okay i see...thanks for the tip! -- kate
  5. SarahKate31

    sorting 2D array with numbers

    I simplified the code for posting and the array index mistakes were typos...but thank you for the revision to numberSort: return(a[0]-b[0]) that did the trick...Also, I haven't had any trouble with the link...how come its wrong? thanks -- kate
  6. SarahKate31

    sorting 2D array with numbers

    Hi everyone -- I have a 2D array with numerical values in the 1st index and string values in the 2nd index. I need to sort the array by the 1st index. I know I can sort a 2D array by the first index when all of the values are strings. And I know I can sort a 1D array of numerical values with the...
  7. SarahKate31

    Toggle textbox visibility

    ok...add quotes around the element id: document.getElementById("dropDown").value document.getElementById("Type2").style.visibility that worked for me...its always something stupid like that... --kate
  8. SarahKate31

    Make Window Unable to Move

    thanks everyone for your help -- i am going to see what i can put together with all of your advice spewn - in answer to your question, no it does not need to be cross-browser compatible...i only need it to work with IE thanks again -- kate
  9. SarahKate31

    Toggle textbox visibility

    i was kind of thinking: <script language = "javascript"> function toggleVisibility() { if(document.getElementById(dropDown).value=="4") { document.getElementById(Type2).style.visibility='visible'; } } </script> <form name = "form"> <select id = "dropDown" name="dropDown"...
  10. SarahKate31

    Toggle textbox visibility

    correction: document.all.textBoxID.style.visibility="visible
  11. SarahKate31

    Toggle textbox visibility

    you could define a text box in the HTML and use CSS to set the visibility: style="visibility:hidden" then in your function you can reveal it: document.formName.textBoxID.style.visibility=visible --kate
  12. SarahKate31

    Make Window Unable to Move

    Jeff - thanks for the idea... but i cant seem to get it to work...i set the interval like this: (it is being set onload) var pos = setInterval(CheckLocation(),2000) function CheckLocation() { if(window.left!=0) window.moveTo(0,0) } it seems to be running only once...and the window is still...
  13. SarahKate31

    Make Window Unable to Move

    Hi everyone -- forgive me if i'm duplicating someone elses post...Anyway, I am opening a popup window with window.open and I would like to have the user not be able to move the window around with the mouse. I'd like it to stay anchored to its location...Does anyone know how to do this? Thanks so...
  14. SarahKate31

    submit form from one frame, display in another

    right you are - my mistake... thanks so much for your help - i really appriciate it :) --kate
  15. SarahKate31

    submit form from one frame, display in another

    adding target="rpt" is working, but is there a way to do it without opening up a new window? and just have the rpt frame display in the bottom half of the current window? thanks, kate

Part and Inventory Search

Back
Top