Aparna Ram

Ranch Hand
+ Follow
since Jan 27, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Aparna Ram

Hello all!

I am looking to know how to handle a callback of an event, before it performs the default href function.

<code>
<a href = '<?php $url ?>' onclick = myFunction(); return true;>Click Here
</code>

I want the onclick event to finish completing and then perform the default href function, which is denoted by the "return true". The javascript "myFunction()" opens a window in a pop-up and it has a submit button in it. I would like to wait till this page loads in the pop-up window and only after the user clicks on the close button, the default href function needs to be carried out.

I cannot figure out on how to get the callback from this event.
Any help is appreciated!

Thanks !
Hi,

I would like to achieve the following:

I have a small and a large image.
On rolling over the small image, the large image should pop out. This is achieved. But now I want the large image to be zoomed in at the position where I place my mouse over the small image. So as I move my mouse around the small image, the respective position of the large image should be zoomed in. Does this require Image Mapping? How can i map the small image to a large image?

The idea can be seen here when you roll over the images in this website: www.edealinfo.com

Any help/suggestions much appreciated.

Thanks in advance
- AH
Thanks Paul Yule!
That worked beautifully :-)
-- Aparna
Hi,
I changed to Prepared statement. And now I am able to login successfully for the 2 users in my table. But when I enter gibberish, I am not forwarded to the error page. Nothing happens! No exceptions either.

Any help here please?

Thanks again, I am new around to coding.

Thanks for the reply.

So if I was to use a prepared statement, then I don't really need to remove the 'return' statement, since there is only going to be one row in the resultset. Do I?
Please correct me if I am wrong.

Thanks!
Hi,
I am trying to work on user authentication.
There are 2 rows in a mysql table. I am trying to validate them by comparing them with the inputs from 2 input fields (username and password) on my jsp page.

When I login using data from the first row of the table, I am forwarded to success.
But when I login using the data from the second row, I am forwarded to the error page. I believe the resultset is not moving forward to the next row.

I have pasted the code below.
Where am I going wrong?

Many thanks in advance.



-- Aparna
Hi,

I would like to highlight the first row in my datatable, onloading of the page. How do I go about doing the same?



Thanks much.
16 years ago
JSF
Sorry.. this code shows row selection.

16 years ago
JSF
I am sorry.. I have not mentioned the question properly..
I would like to display the value of the 5th column(not displayed in datatable) which corresponds to the row that I have selected(clicked on).

The code in my first post shows the row selection.
16 years ago
JSF
I use the below code to highlight a row on mouse over and reset it on mouse out.
Now, when I click on a row, a hidden button is clicked, but I also want the highlighting to remain on the clicked row.
If I comment the line where the hidden button is clicked, the highlighting is retained. But if it is uncommented, the highlighting disappears and focus moves to the top of the datatable.

What should I do?? Kindly help.

16 years ago
JSF
Ok, is there a way I can display the value of a "rendered = false" column in a h:datatable ?

Please guide.
16 years ago
JSF
Well, I need to display this bean value, that is not displayed in the datatable. If I was able to have a hidden column in the datatable, then I would just be able to access this value and things would go fine.

How do I go about doing the same?
16 years ago
JSF
Ok, there are only 4 columns in the datatable that are displayed. This datatable is populated from a bean. The bean holds 5 values.

I want to store this fifth value in a hidden input field. How do I access this fifth column's value.
16 years ago
JSF
Hi,

I have a datatable, in which I display 4 columns. I am able to retrieve the value of these 4 columns and store them where I want to.

Now, I need to store the value of a 5th column in a hidden input field. This 5th column should not be displayed in the datatable.
I tried but there is no option to hide a column in a datatable. How do I retrieve the 5th column from the bean, not display it in the datatable and store it in a hidden input field.


Please help on the same. Many thanks.
16 years ago
JSF
Hey thanks Tony.. it works
16 years ago