Thanks for the response. I tried w3c and think that the spec says that only a sub-set of ASCII can be used. However, I've been sticking all manner of values into the title attribute and IE 5/5.5 appears to have no problem with them. I guess that I'll just have to accept the reality of what is...
Hi Guys
Are there any characters that cannot be used in html tag attributes, (apart from the id/name)? E.g. Could I use the unicode for japanese symbols in a title att? I have been testing this with european characters but I was wondering if there is a definitive list that says what can and...
Sorry guys, I missed the closing script tag on the last post
<html>
<head>
<script>
<!--
function testParse(){
var a = '1,3';
alert(parseFloat(a)+2);
}
-->
</script>
</head>
<body>
<input type=button value='Click Me' onclick='testParse();'>
</body>
</html>
Hi Guys
I'm trying to establish if non-English browsers have a different implementation of parseFloat(). For example, if I enter 1,30 into a French installation of IE 5 will this be parsed as one dollar thirty cents or one dollar?
I've changed the regional settings of my Windows 2k...
Hi jared
The particular problem that I'm trying to address wouldn't affect you as I guess that you've got the machine set to a US locale. The issue that I have is that not all locales use a '.' and I'm trying to establish if the js engine in the browser is smart enough to swap the separator...
Hi Guys
Is it the case that parseFloat will ALWAYS successfully parse a float that is formatted with the user's local decimal indicator. E.g. A German browser will correctly parse one dollar seventeen cents formatted as 1,17?
Thanks in advance
Hi Tammy351
There's a solution below that meets the bare-bones of the requirements. Note that there was a mistake in the main method, (assigning the result of r.nextInt() to the array rather than to a position in the array).
Hope this helps
//Program Starts here
import java.util.*;
public...
You could put a filter routine in front of the call to sort() or reverse() to remove the duplicates. Removing elements in the sort is going to give you problems because the script-engine is building a new array based on your return values but I guess you could avoid that problem by scattering...
Are you using something like: window.open("url", "name", "atts"); to create the pop-up? If so, then you can simply append the parameters to the url string e.g. myUrl.jsp?paramOne=testingOne¶mTwo=testingTwo
These would then be available to the jsp containing in...
Normally I'd say that body.onload is a fine location for such a script but the implementation is using JSP, (so there's no direct access to the body tag server-side by the time that this table-building routine is hit). I know that I can add a function to the body tag onload, (there's an faq...
That's great boomerang but I was wondering if anybody knows of a way to have 'three' automatically expand in that fashion, (i.e. without having to explicitly set the height attribute). I'll take a peak at the specs again and post back if I find anything.
Thanks for your help
Hi Erik
The effect that I'm trying to achieve is approximately:
One Two
Three
rather than
One Two
Three
The <br> tags in the first column are there to simulate the presence of a large quantity of text that I thought would detract from the issue.
Any help appreciated...
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.