247 Posted Topics
Re: What error are u getting, the code seems fine to me, Do u have a form bean of schStartTimeHH? | |
Re: I just replied to your other thread with the same question in the php forums. | |
Re: In order for the event to be triggered, the action must occur, this will only happen when on the page where this textbox is, you change the the value of the textbox | |
Re: there is a tutorial written by Peter in the JSP forums: [URL="http://www.daniweb.com/forums/thread141776.html"]JSP database connectivity according to Model View Controller (MVC) Model 2[/URL] | |
Re: I have done something like that. Using JSON and the JAVA DOM to create the xml file. Sending the xml using ajax, we just created a hidden field then submitted that field to the next page using ajax | |
Re: Wouldn't it be easier to have a table in the database to hold the restricted names, and then just query that table. | |
Re: just submit the form to the servlet, then you can use request.getParameter to get the parameters | |
Re: Use the distinct keyword: [CODE]SELECT DISTINCT "column_name" FROM "table_name"[/CODE] | |
Re: Why dont you rather replace the double quotes with single ones in the code, thus eliminating the need for the user to retype. | |
![]() | Re: You are not sending the username to the servlet, you ahve to post the form to the servlet or in the ajax function send the username in the url, so the url would look something like this: [url]http://localhost/servlet?username=Bob[/url] ![]() |
Re: You could post the information to page2, so you need to have form tags around the your university input field, also a button to submit the form | |
Re: I cannot be sure(you have provided no code), but most probably the button that you are using to submit is of type submit, change the button to type button then and an onclick event and call your javascript function. | |
![]() | Re: Try these two links, I havent tried them, but they seem to be pretty good [URL="http://www.devarticles.com/c/a/Java/J2EE-and-AJAX-AJAX-with-Servlets/"]http://www.devarticles.com/c/a/Java/J2EE-and-AJAX-AJAX-with-Servlets/[/URL] [URL="http://www.java-tips.org/java-ee-tips/enterprise-java-beans/using-ajax-with-java-technology.html"]http://www.java-tips.org/java-ee-tips/enterprise-java-beans/using-ajax-with-java-technology.html[/URL] There are also loads of examples out there, you just have to search for them. When i first started learning jsp, I came across a lot of examples that were incomplete, dont be … ![]() |
Re: If you want to have something like that then the javascript code must cater for it, so if you are going to send in three variables then the function must have three parameters, so the js function will look something like this: [CODE]function c_uncheck(var1, var2, var3){ ... }[/CODE] lets say … | |
Re: getParameter only works if the parameter you are accessing exists in the URL that was sent to the servlet. Are you sure that the array is being sent to the servlet? If the url is this : "/jspservlet?name=blah&myArray={1,2,3}" (the curly brackets would be replaced with the correct url encode for … | |
Re: I am most probably missing something here, but the url seems to be working quite well, whatever i typed in the search box gets sent to the google search. I dont see a problem. | |
Re: Try using the onload event when the page loads, place the onload event on the body tag. | |
Re: try this: [CODE]<input type="text" name="tname" value='<%out.println(rs.getString(1));%>'/>[/CODE] | |
Re: You have to make some effort first, then someone here will be willing to help | |
Re: I think you are missing brackets in the sql statement, when using the in clause, somthing like this : [CODE]where groupId in (1,2,3)[/CODE] | |
Re: Try using a pop up window, or a modal window. | |
Re: Ensure that those fields are within the form tags on the page you are submitting | |
Re: Have u been able to come up with anything? Ajax isnt difficult. try w3schools' website. | |
Re: Loads of people here wouldnt mind helping, but u have to state what the problem is. | |
Re: works for me in FF, i m using FF 3.5.2 it did give one warning, regarding the use of document.getElementById, so i changed the code to this and it still works but this time with no warning: [CODE]function typewriter(typein) { document.getElementById('typeout').innerHTML = typein; }[/CODE] What error are u getting? Have … | |
Re: Can u give an explanation of what the problem is? I have tried this, and on the onmouseover event, the innerhtml is changed. I had removed the images and just places text since i dont have the images. | |
Re: Go to [URL="http://dev.mysql.com/downloads/"]http://dev.mysql.com/downloads/[/URL] The latest version of the community server (this is under the GPL licence) and it should work fine. I dont remember having to put anything in the environment variables but there is documentation about how to install the server, its pretty simple though. | |
Re: I dont use MS Sql anymore, but as far as I can remember the data will NOT be automatically inserted. You have to insert the data. There has to be data in the table which references the foreign key, so in your case the department table has to have valid … | |
Re: As u have stated that some proposals dont have a bid, you cant group by a null value. | |
Re: I could be wrong but i dont think there is one, as far as I know, when u use [CODE]navigator.appName[/CODE], the result in Mozilla will be Netscape. So if the code checks for Netscape it would work in Firefox | |
Re: You will not see the options in the dropdown cause u have not written the "<option>" tag anywhere. So in the loop where u loop thru the elements, u will have to use the createElement in javascript which looks like this: [CODE] var ele = document.getElementById("lstAgencyCity"); var newOption=document.createElement("OPTION"); newOption.value=selArray[i][0]; newOption.text=selArray[i][1]; … | |
Re: Can you provide some code, it will be much easier for someone to help you. | |
Re: nope, but will keep working on it. why dont u rather implement a function on the onlick event. I personally dont like using the onblur event. | |
Re: I think u should provide some code, then we can help when u get stuck. | |
Re: On the top file navigation, go to Window --> then click Palette The palette will only show the drag and drop stuff when a jsp page is open. | |
Re: w3schools is pretty good. [URL="http://www.w3schools.com/JS/default.asp"]http://www.w3schools.com/JS/default.asp[/URL] | |
Re: Your session attribute for value will be 4 since only one value is stored in an attribute, in the loop you are overwriting teh value, by the next number in the loop. To get teh value of the link clicked, u can pass the value in the url so the … | |
Re: You are missing the onreadystatechange property, you will need this to receive the data returned from the server It should look similar to this. [CODE] url+=idField.value; req.open("GET",url,true); req.onreadystatechange = function() { if (req.readyState == 4) { document.getElementById('userIdMessage').innerHTML = req.responseText; } } req.send(null); [/CODE] | |
Re: In javascript 'If' cannot be capital, if u change the 'If' in your function to small letters 'if', it would work. | |
Re: You could try putting the include in a div tag, then in your if statement, set the innerhtml of the div to the correct include, I havent tested this, so i could be wrong. | |
Re: I dont know php, but have u have u tried writing out the sql statement. To me it seems as though the statement is looking for "$suburb", i think u have forgotten to put the curly brackets around $suburb, i say this cause i see to get teh value of … | |
Re: Is there any reason that u would need the hyperlink inside a database? You could always just read the values from the database and then code in the links in whatever language u are using | |
Re: If the length is always the same amount than u can use the substring function, there are two of them: SUBSTRING(str,pos) SUBSTRING(str,pos,len) | |
Re: I think u should rather do a search on the internet for a regular expression that will validate the email field, much less coding is needed. | |
Re: First you have to disable the submit button then on each checkboxes onclick event do a check to see if all of them are checked, then enable the button again. code will look something like this: [CODE]function check(){ if (document.getElementById('chkId1').checked==true && document.getElementById('chkId2').checked==true && document.getElementById('chkId3').checked==true){ document.getElementById(button).disabled = ' '; } }[/CODE] | |
Re: What you could do, is on the submit function of your button, check which radio button was selected, then change the value of the form action attribute. for the changing of the value of the form action: [CODE]document.formName.action ="whever u want it to go"[/CODE] formName is the name of your … | |
Re: There is a class called BufferedReader which you can use. You can try this code, i had it lying around, so i hope it still works, havent had to do such things in a long time: [CODE] BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String input = br.readLine(); System.out.println(input); br.close(); [/CODE] | |
Re: Why not use session attrbiutes, that way the variables will be available for the entire session. | |
Re: No one is going to just give you the answer to the assignment, start coding something, and come back when you get stuck | |
Re: You are missing the column names. See adatapost's post giving an example of the insert statement. Your statement should look something like this: [CODE]INSERT INTO registration1 (registrationno, firstname,.....) VALUES('"+s0+"','"+s1+"'....)[/CODE] |
The End.