Cheers for the information rsfoley, it's much appreciated. I will try this later tonight at home, and I'll let you know how it goes.
All the best,
Alex.
Hi,
I need a Java program to go to a URL and then save the web page in a text file. I have successfully done this by finding the GetURL method (see bottom of page). But I need to do it for a URL where a standard username and password prompt appears. I know I need to use the following piece of...
Hi,
I need a Java program to go to a URL and then save the web page in a text file. I have successfully done this by finding the GetURL method (see bottom of page). But I need to do it for a URL where a standard username and password prompt appears. I know I need to use the following piece of...
Hi,
I need a Java program to go to a URL and then save the web page in a text file. I have successfully done this by finding the GetURL method (see bottom of page). But I need to do it for a URL where a standard username and password prompt appears. I know I need to use the following piece of...
Hi,
I need a Java program to go to a URL and then save the web page in a text file. I have successfully done this by finding the GetURL method (see bottom of page). But I need to do it for a URL where a standard username and password prompt appears. I know I need to use the following piece of...
I have realised that I can't access a select boxes' text values (using boxname.options[x].text) from within a Javascript function. The only place I can is just surrounding some JS code with the script tags int the body. Even if I put in in a function in the body it can't see it. It says...
This piece of JS copies the contents of a select list into an array, and it works fine:
<script>
ops = new Array();
var total = document.form1.poss.options.length;
document.write("Select box option numbers: "+total+"<BR>");
for (x=0;x<total;x++)
{
ops[x] =...
Hang on, I know the problem now, an i with square brackets around changes everything to italic. I've changed it to x now. Cyberwolf => Can u re-reply with your suggested code? Cheers:
<script>
ops = new Array();
var total = document.form1.poss.options.length;
document.write("Select box...
I've noticed that in my original message it missed out any occurance where I wrote 'i' in square brackets, and it turned my text into italic from that moment onwards. Anyone know why?
Cyberwolf14 => I think you had the same problem. From a square brackets with an i in onwards, your text is italic.
This piece of script does exactly what I want it to but it comes up with an error on the
following line: ops[i] = document.form1.poss.options[i].text;
error = 'document.form1.poss.options[...].text' is not an object
poss is the name of my select box. If I put a number in the error line in...
I am trying to pass multi-select box form values from one web-page to another. Does anyone know how? It's easy with normal form elements, but more difficult when there are lots of name/value pairs all with the same name.
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.