Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+7
Strength to Decrease Rep
-1
94% Quality Score
Upvotes Received
17
Posts with Upvotes
17
Upvoting Members
16
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
7 Commented Posts
5 Endorsements
Ranked #341
Ranked #300
~96.6K People Reached
Favorite Tags
Member Avatar for Duki
Member Avatar for ArunRaj.SRM

I am new to jsp but I would do either one of the following: 1. Set the username as a session variable and then in welcome.jsp u can use [QUOTE]<%=session.getAttribute("userName")%>[/QUOTE] 2. Send the username in the querystring when redirecting to the welcome page then just use [QUOTE]request.getParameter("userName")[/QUOTE] to display it.

Member Avatar for Vaishnav_1
0
14K
Member Avatar for Techie08

You need to put the name of the form so change the form tag to include name="quiz" like this: [CODE]<form name="quiz" action="javascript:finish();" enctype="application/x-www-form-urlencoded" method="get">[/CODE]

Member Avatar for hdas2012
0
334
Member Avatar for mani2604

I dont know much about php, but first change the submit button to a normal button [CODE]<input type="button" name="submit" VALUE="Submit" onclick="sendInfo()">[/CODE]and use the onclick property to call your ajax function, there are many examples of a simple ajax function on the internet.

Member Avatar for Bachu
0
3K
Member Avatar for sillyboy
Member Avatar for Helianthus
0
5K
Member Avatar for rpjanaka
Member Avatar for jeetudaljit

well u can submit a form from the onclick event on a button element. with the form action being the file name or serlvet, or u could have a struts action, i would go with the struts action.

Member Avatar for ethar.ammar
0
1K
Member Avatar for infernodeep

i have used none and single quotes and it works in both IE and firefox like this [code] var el = document.getElementById(obj); var butId = document.getElementById(buttonId); if ( el.style.display != 'none' ) { el.style.display = 'none'; butId.value='Show Filter'; document.getElementById("FilterResultsList").style.display = ''; }else { el.style.display = ''; butId.value='Hide Filter'; document.getElementById("FilterResultsList").style.display = …

Member Avatar for papiya
0
792
Member Avatar for santhanalakshmi

I dont know much about php, but I do know that you can only insert data into a database using a server side language, so you are going to have to edit your php page.

Member Avatar for mytool.parekh
-1
5K
Member Avatar for Arthi Raman

Not sure if i m understanding u correctly but u just need to have a space " " between the quotes

Member Avatar for Shanti C
0
97
Member Avatar for loken

Try using setAttribute in the servlet, and then getAttribute in the jsp page. I am new to jsp and servlets as well, and i think(i could be wrong) that getParameter is normally used when getting the parameter from the url. If your url is: ...?maxvalue=5, using getParameter will display 5.

Member Avatar for cute_adi
0
4K
Member Avatar for vimax

can u provide an example of what you are doing to call this function, it could be something in your html that is causing the error, also please use code tags, makes it easier to read code.

Member Avatar for Taywin
0
229
Member Avatar for idlackage

You are calling the function incorrectly, you should call it like this: [CODE]<input type="text" id="test" style="visibility:hidden" /> <input type="text" id="test2" onclick="myFunction('test')" />[/CODE] take note of the single quotes on the id sent into the myfunction function

Member Avatar for Taywin
0
114
Member Avatar for brave2010

You can look in the code to see where he is writing stuff to, it should say somewhere in the code what tables he is sending information to and also what fields to populate.

Member Avatar for psninja
0
87
Member Avatar for dennishall

[CODE]window.open("www.google.com", "_parent")[/CODE] will make the page open in the same window. so according to your code this should work : [CODE]winslide=window.open(slidelinks[whichlink], "_parent")[/CODE] You have said u have tried, it, so from the code that u have provided i cant see what could be wrong, please provide the full html as …

Member Avatar for dennishall
0
198
Member Avatar for Matthew N.

Do you want someone to code that for you? or are you stuck somewhere trying to put your plans into action?

Member Avatar for Taywin
0
113
Member Avatar for GigsD4X

I tried your code out and am able to return a string which has the name and the value of the textarea field, could you provide your html, maybe something is wrong in their.

Member Avatar for Taywin
0
138
Member Avatar for Staggasaurarts

I dont understand what is going wrong with the tabs, for me the exact code works fine, perhaps u should include the code you are using, maybe it is some style in your own code that is causing the page to jump

Member Avatar for Airshow
0
127
Member Avatar for Towlie

Really simple error. what was happening was that your variable was never set to 10 because the function was never called. In your addfunction function change this: [CODE]myButton.onclick = addRadio;[/CODE] to [CODE]myButton.onclick = addRadio();[/CODE]

Member Avatar for Thirusha
0
165
Member Avatar for Premsathishbe

ensure that the element that u are referring to has loaded before the "focusFunction" function is called

Member Avatar for Taywin
0
99
Member Avatar for Venom Rush

do u want to validate the input field, or the actual file?, that is, did the user upload a file or just type in some random crap into the field?

Member Avatar for Thirusha
0
93
Member Avatar for ned69

Yes this is doable using javascript, add an id parameter to the drop downs then on the javascript function call the id's, there are loads of examples to disable and enable an element on the internet to help u along as well. you can also look into using jquery, makes …

Member Avatar for Thirusha
0
101
Member Avatar for arctushar

Have u tried accessing the script directly in the browser, by calling the file in the browser? cause sometimes you are just not accessing the file, the location of the file could be incorrect. maybe it is another level up, also ensure that the file is saved the same way …

Member Avatar for Taywin
0
128
Member Avatar for kartiktiger

Yip that looks like jsp/java. I dont understand why you have a method name as a value for a string, it would be much simpler for u to do: [CODE]String s="he is a good boy"; out.println("<input type=text value='"+ s + "' name=s>");[/CODE] if you wanted the words good boy to …

Member Avatar for Thirusha
0
72
Member Avatar for dani0

There is no such thing as [CODE]<input type="image" ...>[/CODE] Change entire tag to and <img> tag something like this:[CODE]<img src="/button.gif" onclick="displaySomething('stuffToShow', 'aForm')">[/CODE]

Member Avatar for Thirusha
0
136
Member Avatar for ryan12193

I dont have one, but try google, there are loads of examples out there. You can search for "sroll images script" or "image slideshow"

Member Avatar for savageocean
0
170
Member Avatar for Tom Desuza

Please provide some code or login details, I dont want to register just to see your error.

Member Avatar for Taywin
0
987
Member Avatar for Staccs

Have u tried placing the site in the safe sites list, that message is standard from IE.

Member Avatar for Taywin
-2
178
Member Avatar for AbhikGhosh

One cant use client side code to get the server side code, if u try printing out the userId it should be there. what u can do is assign the userId to a hidden field then alert the value of the hidden field.

Member Avatar for Thirusha
0
730
Member Avatar for fawad123