User Profile
Collapse
Profile Sidebar
Collapse
pronerd
Last Activity: Sep 16 '09, 08:36 PM
Joined: Nov 10 '06
Location:
-
Servlets can only run inside of a Servlet container (Tomcat, JBoss, etc.). You can not run one inside an Applet.... -
-
And as I already explained that is going to happen each time the user selects an input field. None of the key events are going to trigger until the user has selected something else.
Why does it matter if the user can use the page up or down buttons any way. If they have selected a textfield that they are entering data, why would they want to move off of the page. They would not be able to see what they are entering....Leave a comment:
-
This is not clear. MySQL is a database not a form field. So there is no field type of MySQL. Also since it sounds like you want to be able to do database access you will need a server side technology like ASP, JSP, PHP, etc. You can not access a database with JavaScript by it self....Leave a comment:
-
Yes. There are thousands of examples of JavaScript form validation available. Just Google for "JavaScript +form +validation"....Leave a comment:
-
You will spend a huge amount of time trying to work out all the details of emulating a HTTP client your self. You would be a lot better of using one of the library's for this. Like HttpClient lib (http://hc.apache.org/httpclient-3.x/) from Apache.Leave a comment:
-
The description starts off talking about accessing a JavaScript file, but the URL is for a JAR file. Which is it you are trying to use? They are completely different un-related technologies. Are you trying to load a Java Applet in the page?
Meaning what exactly? Is there an error, is something happening that should not, or something not happening that should be?
Is...Leave a comment:
-
Sounds like this question should be posted in a forum for SQL or the DataBase you are using rather than for Java. Unless you are doing this with EJB entity beans or a similar frame work. Is that the case?Leave a comment:
-
P.S. I would also try adding the line below just before the write() method call to make sure your heap size settings are actually being made. You might also try using a capital 'M' instead of lower case for setting the Xmx value. I see to remember seeing it that way in examples some where.Leave a comment:
-
That is the only option I know of for Java to create the acutal files. Some other options are to export the data in CSV format and import it to Excel, or for Office 2003 or newer you can save the in an XHTML table and Excel can open that just like a normal Excel file. For this option to work the XHTML has to be well formed, and there is some meta data tweaking that has to be done. To see an example just save a normal Excel file as HTML and look...Leave a comment:
-
This is something that needs to be done on the server side. The client side not reliable enough to carry out critical funcitons. There are too many knowns. Difffernt browser bugs, differnt browser plugins that can change behaviors, different browser security settings that can prevent JavaScript features etc. etc. This also would not handle the problem of OS level crashes, or loss of network connectivity. The server side logic needs to handle...Leave a comment:
-
Ok,
I think I see what is going on here. Once you select the text input field the field then absorbs all keyboard events. So if you change the trigger event from something like onkey to onmouseover the act() function is called before the text field is selected. And your keyboard events are not swallowed by the text field. Once a text field is selected though the keyboard events are swallowed by the text field, and you have to select...Leave a comment:
-
Finding a layer's width when the CSS is not set
Does anyone know a trick to get the width of a layer when its CSS width attribute is not set? The code below will return a value of null since the CSS attributes are not set. Does anyone know of a way to get the layer's width in this case?
Code:<div id="someLayer" ></div> <script> alert('Width: 'document.getElementById('someLayer').style.width): </script>
-
Too many errors to explain them all. Here are working versions of the functions
Code:function validateCB() { if(document.rec.loc.options.selectedIndex == 0) { alert(" hi"); return false; } else { return true; } } function validatePID(inputfield, helptext) { if(inputfield.value.length !=9) { if(helptext
Leave a comment:
-
There should not be a space between the equals signs.
Code:selectedIndex = = 0
Should be
Code:selectedIndex == 0
Leave a comment:
-
pronerd replied to Selecting a value of ASP:DropDownList to concatenate with another String in a textboxin JavascriptCode:<html> <body><br /><br /> <select onchange="concatInput()" id="dropDownMenu" > <option value="1" >1</option> <option value="2" >2</option> <option value="3" >3</option> </select>
Leave a comment:
-
The POI project will let you access MS Office files with Java.
Apache POI - Java API To Access Microsoft Format FilesLeave a comment:
-
Ok first off I think what you actually want to do is change the ID attribute, not the name attribute. Chaining a tag's name could potentially change is function. For instance if you had a DIV tag and you changed it's name to "blankX" it could end up no longer functioning as a DIV object.
Secondly what you are describing sounds unnecessarily complicated. If you just want to make objects appear and disappear you could simply...Leave a comment:
-
Sure you can. As I just explained you could add a space after the closing tag so the cursor would not end up beside the letter(s). Or you could set an onChange event for the field and check to see if the currsor is next to your tag. If it is then move it over a space or two.
I do not understand what you mean. First off you are not setting your font size in px. You are not including any label...Leave a comment:
-
That is not a bug. Just about every rich text editor will do that. I have the same problem with MS Word. If the cursor is placed next to that text it will be counted as inside the tags so it will have the style of those tags. You could try adding a space after the closing tag so that it will not treat the cursors location as inside the tag....Leave a comment:
No activity results to display
Show More
Leave a comment: