247 Posted Topics
Re: Have u tried using firebug? | |
Re: [QUOTE=vicky_rawat;645260]Hi Sunita, Can you please clear your requirement. What actually you want?[/QUOTE] As well as some of your own code. | |
Re: Try google, there are loads of examples and articles there, u can read this too [URL="www.elated.com/articles/javascript-and-cookies/"]www.elated.com/articles/javascript-and-cookies/[/URL] | |
Re: Have u tried google? Try this link [URL="http://www.bigwebmaster.com/JavaScript/Scripts_and_Programs/Image_Galleries/"]http://www.bigwebmaster.com/JavaScript/Scripts_and_Programs/Image_Galleries/[/URL] | |
Re: I dont see any problems with the snippet of code. Are u getting any errors? | |
Re: I dont see any place where u are calling the javascript function that will do the validation. U could have a button that will call that function then the validation might work. | |
Re: your javascript in your browser has been turned off or disabled, u can enable it in firefox by going to tools -- options -- content then make sure teh enable javascript checkbox is checked | |
Does anyone know how i can get a list of the java stored procedures that are inside the oracle database using oracle sql developer? If anyone has used Toad, i m referring to the list of java classes that comes up when u click the Java tab in Toad. Thanx. | |
Re: If u are using struts create a struts action for that servlet, and then link to /getReleaseData.do | |
Re: Is this what u are looking for; [CODE]<input type="text" name="testField" id="testField" value="<%=someVar%>" />[/CODE] | |
Re: I am not yet an expert in jsp, but i think u have to submit the page before any of your parameters are set. | |
Re: Hi can u please paste some code, or elaborate on your problem. | |
Re: [QUOTE=drago865;626401]I'm going to feel really stupid if I'm wrong but is this even Javascript? It looks like ASP or something.[/QUOTE] I dont think u are cause it definitely does not look anything like javascript, it is java scriptlets, which should not be used at all. | |
Re: can u provide some more information on your problem like what u trying to do with the combo, or if u are trying to create it using javascript? | |
Re: You have two style attributes, place both the height and width in one like this: [CODE]<button style="width:126;height:29" onclick="history.go(0)" ><img src="admin/images/reset_btn.gif" /></button>[/CODE] | |
Re: Have u tried setting the target of the form to "_self" like this: [CODE]<form id="buttons" method="post" enctype="multipart/form-data" action="<?php echo $PHP_SELF; ?>" target="_self">[/CODE] | |
Re: this is the first time i m hearing of tags being optional, and luckily too. i m way too used to closing tags and if i had know that sooner, i most probably would of not closed a lot of tags and become a sloppy programmer. | |
I have a couple of div tags inside a form, inside those tags, there are input elements, i would like to know if there is a way to loop over all the input elements that are inside the div tags. This has to be dynamic as i will not know … | |
Re: it is not good practice to connect to a database using jsp, rather use a servlet, and there are loads of examples online for connecting to a db using a servlet. | |
Re: you can go here [URL="http://articles.techrepublic.com.com/5100-10878_11-1044655.html"]http://articles.techrepublic.com.com/5100-10878_11-1044655.html[/URL] There are loads of other examples i just googled "restricting input to only text " and that is where i found the above link I used regular expressions to prevent the user from entering non-numeric characters: [code]function checkNumeric(entry) { var numeric = /^[0-9]*$/; if (!numeric.test(entry.value)) … | |
Re: [code]// code for Mozilla, etc. if (window.XMLHttpRequest) { xmlhttp=new XMLHttpRequest() xmlhttp.Open("GET","index.jsp",true) xmlhttp.Send(null) xmlhttp.onreadystatechange=state_Change }[/code] should be [code]// code for Mozilla, etc. if (window.XMLHttpRequest) { xmlhttp=new XMLHttpRequest() xmlhttp.open("GET","index.jsp",true) xmlhttp.send(null) xmlhttp.onreadystatechange=state_Change }[/code] U were using captial letters for open and send | |
Re: If u are posting the value to a servlet, set the value as a session, and then call that attribute in your second jsp, or servlet that u are on. | |
Re: Lets start off simple, first u will need to put your fields in a form tag. Your update button should then submit the form. | |
Re: first thing i noticed is that your comparison sign is incorrect: [CODE]If rs("distance")>25 Then Exit For[/CODE] should be [CODE]If rs("distance")<25 Then Exit For[/CODE] I would also change the loop, to loop till end of file instead of using the counter i, what if the records that are less than 25 … | |
Re: I have no idea how to use ruby on rails, but to make a div unique, use some id from the db and place in the html code something like: [code]<div id='<%==h c.name%>' >test</div>[/code] | |
Re: I could be wrong since i no longer program in asp but i think the code supposed to look like this: [code]<%[COLOR="Red"]=[/COLOR]Request.QueryString["donor"].ToString().Substring(1,9)%>[/code] From what i remember if u want to display something u have to write it out, u have to use "<%=" I definitely know that this [code]<input name="donor" … | |
Re: I would suggest using a bean, and then using the getter method on the jsp to get the information from the servlet. | |
Re: Are u calling the two in the same ajax call, if u are the last one always gets fired. can u provide some more code. | |
Re: I m not too sure if i am understanding your question correctly, but if u dont want to see the scrollbars then take out the overflow attribute from the div tag. When u dynamically get teh data, why dont u get it so the latest will always be the first … | |
Re: I too have a similar problem, i can see the code in the source it is just not visible, and i have no clue why :'( , i hope someone will be able to help | |
Re: To check if a value is empty u need to use "==" and not a single equals to sign. I would change the submit button to a normal button, and use the onclick instead of onmouseup. | |
Hi what i want to do is create a session scoped bean in my servlet and also get the values in that same servlet i have created a bean in my servlet with a session scope(not sure if it really is in session scope) using this code: [CODE] HttpSession session … | |
Hi I have a collection which is the resultset of a sql query. when i write out the collection (using system.out.println(col)) my collection is in the correct order. -- which is great. But when i iterate through the collection in order to populate my linkedhashmap, the items are inserted into … | |
Re: I too am new, but ClassNotFoundException is generally caused by the class file not being in the correct location. HelloWorldServlet class file needs to be in /web-inf/classes/servlets/ | |
Re: I too am new to jsps, but i do know that u will have to submit the form. use a submit button. your code should look something like this [CODE]<form name="testform" id="testform" method="post" action="/yourjsppage.jsp"> <input type ="text" name="username" id="username" /> </form> <input type="submit" name="submitme" value="submit" />[/CODE] the text that u … | |
Hi I have passed my json string to a jsp page, i would like to loop through this string to create a sql statement. Any ideas how i would go about looping through the json string in the jsp page? a snipet of thejson string looks like this: [CODE]{"CREATEDBYNAME":"TEST_ADMIN","NAME":"test001","TYPEID":"1900000000"}[/CODE] Any … | |
I am very new to json and havent used much ojects in javascript. I have created a json object, and after i move through a couple of forms in my app i want to access that same object, is there a way to do it? Any help will be greatly … | |
Is is possible to clear the value of a bean using the jsp:setproperty tag? i have tried [CODE] <jsp:setProperty name="MyNameBean" property="subscriberName" value="" /> [/CODE] but it didnt work. Please help! | |
Re: I dont use access but i think it has something to do with the your sql statement. try writing the sql statment out. just re-read your post, i was never liked to write vbscript with "&_" cause it always confused me, but since it is a compilation error, maybe u … | |
Re: I can answer your first question, just insert this to the top of your jsp file which is going to dipslay your information [code]<%response.setHeader("Content-Disposition","attachment;filename=fileName.xls"); %>[/code] And when u go to that page a box will pop up asking u if u would like to save the file. Regarding your second … | |
Hi i have been searching around the net, but have not have any luck(most probably i m searching for the wrong thing). I am able to get json data from my database, i now want to populate the text fields in my form how do i go about doing it? | |
Re: I am not sure i understand correctly but are u looking to do something like this: [CODE]<a href='/somepage.asp?name=<%=session("username")%>'[/CODE] | |
Hi I am using ajax and jsp in my web application. The user is required to fill out a few forms, for this i am using ajax to go through the forms, on one of the forms i need to set the session bean value and i am unsure as … | |
I have looked around this site but have not found anything to help me. I have a jsp page which takes user input, the page is then posted to a servlet using ajax, the servlet then sets a bean value. My problem is that when i go back to the … |
The End.