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
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...
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 =...
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
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...
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
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
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"...
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
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...
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...
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
hi everyone -
i saw a post similar to this one, but it didn't really answer my question, so i posted this one...
i have a frameset with 3 frames (one hidden)...summary.htm is initially loaded into the "main" frame. this page has links that will let you view different reports. when you click on...
i'm sorry if i have not provided enough information...it is a complicated problem and difficult for me to explain...here are the relevant sections of code:
Hframe is the hidden frame
main is the main viewable frame
in page1.html:
function populateArray(i){
ColorArray = new Array()...
i understand that arrays are objects but i don't understand why i can't access this one. if i just declared a 2D array in a page and populated it and then did array.sort() it would still sort even though it is 2D. sorting is no problem with 2D arrays normally. but when i try to sort this 2D...
hi - so here is my issue:
on my first page, i am saving info into a 2 dimensional array which is stored in a hidden frame in my frameset. then i am accessing that array from my second page. if i try to access the array elements individually (array[1][2]) there is no problem. the information was...
Hi --
I have been trying to install Dreamweaver and I am pretty sure that the problem is with my computer rather than Dreamweaver which is why I am posting here. When I try to run the installation, it starts up and extracts some files and then I get an error message saying: "The InstallShield...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.