Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
    Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

javascript in JSP

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Hello Ranchers
I've a trouble in implementing the javascripts in JSP page
It is working properly!! I have checked through out the internet and couldn't even find a solution!!
I'm doing a project -- ACCOUNTS SYSTEM!!
for that displaying up to the ledger is OK
now..
after retrieving the datas from the table the jsp page will be looking like this
the first row of the table contains
1) check box
2) Details
3) VAT TYPE
4) VAT DETAILS
_________________________________________________________________
check |Details |combo box |textbox |
| |(default : disable) |(default:readonly) |
__________________________________________________________________
chk1 |rs.getString(1) |combo box containing 3 items | display what is|
chk2 |rs.getString(2) |standard, excempt,zero rate | selected in the|
chk3 |rs.getString(3) | |combo | ______________________________________________________________________
and the corresponding rows below that contains the datas from the database
___________
now there is the use of scripts
when the page is loading all the combo box will be disabled and all the text box will be in read only
so.. when i'm checking the first checkbox.. in the table header
all other checkbox should also select (like a select all button in the email clients like yahoo.. gmail and all)
at the same time the corresponding combo box should also get enabled!!
and then only it can be able to select the values from the combo.. which ever value is selected it should display in the textbox corresponding to that combo!!
i think you all understood what i meant!!
and help me..

i don't really know the complexity of this
please help for doing my project well!!
thanks in advance!!

regards

Megha
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
well you can reference the form element via

document.forms.elementName.disabled = false;
document.forms.elementName.readOnly= false;

That will get you started.

Eric
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
I am closing this since you already had a topic started on this same subject. https://coderanch.com/t/117790/HTML-JavaScript/Java-Scripts-JSP-page

Eric
 
Why is the word "abbreviation" so long? And this ad is so short?
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
    Bookmark Topic Watch Topic
  • New Topic