I made the change you suggested, and still the same thing happens. It gets to the alertBox ("here") and flashes it 3 times for the 3 (or however many times for the amount of elements in thirdSplit).
Thanx so much for all the help guys. I am now in the last stages of getting this all done, but now I am having difficulty comparing the two arrays. Ive tried a couple of different ways in looping and no dice. The highlighted loop is the one I have had the most luck in...the other commented out...
OK everything works ok....only one problem: (on checking the URL for a question mark)
if (fullURL.search("?")){ .....
or similarly:
if (fullURL.match("?")){ ....
give me unexpected quantifier errors...ugh. If i use other characters, it works though. It doesnt seem to like the "?
Comming from the Noob:
I had a similar problem a few weeks ago. My client came to me with the idea of getting a nav menu similar to yahoo's and wanted me to do it in javaScript. I had never touched JavaScript prior to 3 weeks ago.
I understand things best by looking at examples. So i found a...
Well the name for each textBox is Field, which is passed in the URL. We can grab the variable from the url, but Field appears more than once, if more than one checkbox is selected.
ie...URL:
https://testbed..../script/Directory2.asp?TypeSearch=documents&Pattern=eee&Field=title&Field=approach...
Nope, its not redirecting, and Nope, we cant use cookies. My teamate and I were looking at using an ASP session variable, but how would we set that session variable to the javascript array of boxVals?
Meaning, hows about we take the array boxVals and store it in the session variable to output...
What I am After:
This is a search navigation form.
The form has four checkboxes which represent categories that the user can search on.
When the page first loads, all the checkboxes should be checked by default (this is what my client wants..i dunno why)
The user then unchecks any fields...
I made the change you suggested. It works to get the checked boxes but doesnt get the values of the all the fields. For example, if the user checked 3 boxes, it will output the value of the first element in the array, and then undefined for the remaining two.
Also, my main problem is that...
Okay, taking the advice into account, i re-wrote some code in my Functions. But When the user submits the form, the value in BoxVal (the array of elements i am passing) gets reset to zero.
Also for boxVals, It seems as if it gets filled with the total amount of boxes, and only assigns values...
Hey all....
I am new to JavaScript, so bare with me on this. Im all googled out trying to figure out what is going on with this code.
I am trying to pass an array to a function and then output its contents, but I keep getting the term [object] or Undefined when the returned array is...
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.