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
~97.9K People Reached
Favorite Tags

247 Posted Topics

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
338
Member Avatar for madsy

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
808
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
102
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
231
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
115
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
90
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
202
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
115
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
146
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
130
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
167
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
101
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
94
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
104
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
130
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
138
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
174
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
995
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
180
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
732
Member Avatar for fawad123
Member Avatar for manojd
Member Avatar for runjel

Using jquery u can do it like this: [CODE] <p id="email" >some text</p> <button id="but1" name="Collapse" value="Collapse">Collapse</button> <script type="text/javascript"> $(document).ready(function() { $("#but1").click(function(){ $("#email").slideToggle("slow", function(){ $("#but1").html($(this).is(":hidden") ? "Expand" : "Collapse"); }); }); }); </script> [/CODE]

Member Avatar for Thirusha
0
525
Member Avatar for sanraj25
Member Avatar for WaleedaaN
Member Avatar for thorshammer

where is your form submitting to, it could be that when the form submits, the element is no longer on the page or not in the same place as it is before it is submitted there it is being set to the top of the page. could u include your …

Member Avatar for thorshammer
0
118
Member Avatar for anuj_sharma

since it is ajax, u should be able to just call the original page, the one that doesn't have any values.

Member Avatar for Thirusha
0
81
Member Avatar for ausmaya

Just by reading the code I noticed that you are calling this function "GoNext()" but nowhere in the code is there such a function. Another thing you don't need to use the "javascript:" anymore, the browser will know it is a javascript function that you are referring to.

Member Avatar for grungy coder
-1
154
Member Avatar for paulernest
Member Avatar for achiman

There are loads of examples on the net, google will show you the way. here is a [URL="http://cristian.nexcess.net/ajax/suggest/"]link[/URL] i found

Member Avatar for Thirusha
0
49
Member Avatar for esakkirajak

Why would u want to disable to back button? U can read this [URL="http://www.htmlgoodies.com/tutorials/buttons/article.php/3478911"]http://www.htmlgoodies.com/tutorials/buttons/article.php/3478911[/URL]

Member Avatar for almostbob
0
162
Member Avatar for Thirusha

Hi I bought a new laptop which came with windows 7 pre-installed. I am supposed to have a 500GB HDD space, but when i view "Computer" which also displays the available size, it says i have 11GB of 40 GB left! but i have a 500GB hard drive. when i …

Member Avatar for Thirusha
0
126
Member Avatar for naziatarannum

this question has been asked here many times. if you do a search on this site you will definitely come across more references, here is one though, [URL="http://www.w3schools.com/Ajax/default.asp"]w3schools[/URL]

Member Avatar for Sirabbub
0
103
Member Avatar for jainshammi

First you have to supply the problem then we will help with a solution. We will not however complete your homework for you

Member Avatar for Thirusha
-1
52
Member Avatar for ibanez270dx

NoclassDefError, normally stems from not being able to find the class, in your case TagLibraryValidator Ensure that this class is in the lib directory of your application

Member Avatar for ibanez270dx
0
5K
Member Avatar for mr_scooby

I think it is better that you give all the fields unique id's. If the fields are not going to change and not increase at any time, then you could just do a basic if else statement. If the fields are going to increase then just loop through them, first …

Member Avatar for mr_scooby
0
736
Member Avatar for rudz

You can have a look at [URL="http://www.freeaspupload.net"]freeaspupload[/URL] or [URL="http://www.webreference.com/dev/upload/index.html"]webreference.com[/URL]

Member Avatar for Stitch1920
0
102
Member Avatar for kjelle392

I dont know PHP, but what u can do is alert the variables before u put them inside the url variable. Also i think your ajax code is incorrect, this [CODE]request.onreadystatechange = parseResponse(request);[/CODE] should be:[CODE]request.onreadystatechange = parseResponse;[/CODE] You dont need to send the request variable to that function. also the …

Member Avatar for Thirusha
0
163
Member Avatar for antonwildcam

they could just be redirecting you to another page without changing the url, or they could just be using ajax, but replacing the entire pages innerhtml.

Member Avatar for Thirusha
0
72
Member Avatar for ijazkhattak

the problem could be with the id that u are sending to the onclick function, but without seeing any code, its hard to say that is the problem.

Member Avatar for Thirusha
0
85
Member Avatar for ch_nilanjan

if you have given your td tags unique id's u can use the innerHTML attribute to get the values. Some code will be helpful so that we better understand what you are working with.

Member Avatar for Thirusha
0
89

The End.