247 Posted Topics

Member Avatar for willfindavid
Member Avatar for Suneetha Reddy

[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.

Member Avatar for Thirusha
0
94
Member Avatar for sTyleSHA

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]

Member Avatar for sTyleSHA
0
261
Member Avatar for Shanti C

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]

Member Avatar for ithelp
-1
133
Member Avatar for e_velkova

I dont see any problems with the snippet of code. Are u getting any errors?

Member Avatar for Thirusha
0
85
Member Avatar for ishlux

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.

Member Avatar for Thirusha
0
67
Member Avatar for shijumichael

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

Member Avatar for Thirusha
0
26
Member Avatar for insauciant
Member Avatar for Thirusha

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.

Member Avatar for Thirusha
0
122
Member Avatar for new2jsp

If u are using struts create a struts action for that servlet, and then link to /getReleaseData.do

Member Avatar for ~s.o.s~
0
196
Member Avatar for sreein1986

Is this what u are looking for; [CODE]<input type="text" name="testField" id="testField" value="<%=someVar%>" />[/CODE]

Member Avatar for sreein1986
0
114
Member Avatar for arunagar

I am not yet an expert in jsp, but i think u have to submit the page before any of your parameters are set.

Member Avatar for arunagar
0
130
Member Avatar for ardeezstyle
Member Avatar for insauciant

[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.

Member Avatar for Thirusha
0
102
Member Avatar for punithapary

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?

Member Avatar for Thirusha
0
80
Member Avatar for kevin wood

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]

Member Avatar for Thirusha
0
72
Member Avatar for kevin wood

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]

Member Avatar for Thirusha
0
93
Member Avatar for tecktalk

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.

Member Avatar for sreein1986
0
97
Member Avatar for Thirusha

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 …

Member Avatar for Thirusha
0
603
Member Avatar for push

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.

Member Avatar for jwenting
0
102
Member Avatar for OmniX

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)) …

Member Avatar for Thirusha
0
80
Member Avatar for luxmi_gee

[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

Member Avatar for Thirusha
0
70
Member Avatar for C_E_H
Member Avatar for Thirusha
0
51
Member Avatar for rajesh_2234

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.

Member Avatar for Thirusha
0
58
Member Avatar for icemandog

Lets start off simple, first u will need to put your fields in a form tag. Your update button should then submit the form.

Member Avatar for Thirusha
0
82
Member Avatar for pit1031

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 …

Member Avatar for ctj
0
101
Member Avatar for supriya.iiita

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]

Member Avatar for ~s.o.s~
0
212
Member Avatar for ammwebmaster2

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" …

Member Avatar for Thirusha
0
176
Member Avatar for hussainzim

I would suggest using a bean, and then using the getter method on the jsp to get the information from the servlet.

Member Avatar for Thirusha
0
174
Member Avatar for priyapratheep

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.

Member Avatar for MidiMagic
0
72
Member Avatar for nishanthaMe

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 …

Member Avatar for nishanthaMe
0
143
Member Avatar for to.prakashg

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

Member Avatar for Thirusha
0
143
Member Avatar for niladri.user

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.

Member Avatar for Thirusha
0
67
Member Avatar for Thirusha

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 …

Member Avatar for Thirusha
0
133
Member Avatar for Thirusha

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 …

Member Avatar for Thirusha
0
96
Member Avatar for irtiza

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/

Member Avatar for sinan.yumak
0
104
Member Avatar for gehher
Member Avatar for Lum1n0us

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 …

Member Avatar for Lum1n0us
0
699
Member Avatar for Thirusha

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 …

Member Avatar for Thirusha
0
95
Member Avatar for Thirusha

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 …

Member Avatar for Thirusha
0
102
Member Avatar for Thirusha

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!

Member Avatar for Thirusha
0
135
Member Avatar for vicshoup

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 …

Member Avatar for vicshoup
0
160
Member Avatar for b1naryMan

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 …

Member Avatar for jwenting
0
97
Member Avatar for Thirusha

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?

Member Avatar for Thirusha
0
67
Member Avatar for themailsian

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]

Member Avatar for madmital
0
237
Member Avatar for Thirusha

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 …

Member Avatar for ~s.o.s~
-1
84
Member Avatar for Thirusha

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 …

Member Avatar for Thirusha
0
113

The End.