Click here to Skip to main content
15,898,036 members
Home / Discussions / Java
   

Java

 
Questionxml parsing in java applets Pin
bala_brim30-Apr-11 0:27
bala_brim30-Apr-11 0:27 
AnswerRe: xml parsing in java applets Pin
Richard MacCutchan30-Apr-11 5:35
mveRichard MacCutchan30-Apr-11 5:35 
GeneralRe: xml parsing in java applets Pin
Nagy Vilmos1-May-11 22:39
professionalNagy Vilmos1-May-11 22:39 
AnswerRe: xml parsing in java applets [modified] Pin
all_in_flames8-Jun-11 8:00
professionalall_in_flames8-Jun-11 8:00 
QuestionBest way to display news from DB in jsp Pin
Aljaz11128-Apr-11 6:38
Aljaz11128-Apr-11 6:38 
AnswerRe: Best way to display news from DB in jsp Pin
TorstenH.28-Apr-11 18:55
TorstenH.28-Apr-11 18:55 
GeneralRe: Best way to display news from DB in jsp [modified] Pin
Aljaz11129-Apr-11 4:53
Aljaz11129-Apr-11 4:53 
GeneralRe: Best way to display news from DB in jsp Pin
all_in_flames8-Jun-11 8:10
professionalall_in_flames8-Jun-11 8:10 
I would go about this differently with your javascript. Since you know the iterations you've done (using your for loop), there would be no reason to loop through the page elements testing for equality. You should change the onclick function summary to include the ID you created for your div, e.g.:

<div id="0">
<form>
<input type="submit" target="pr" value="Go"  onclick="getParent(this, 0)">
</form>
</div>


(although I have to admit, I don't understand the purpose of your getParent function. It would make more sense to have the onclick of that button post a form up for processing, or kick off an AJAX request to add/remove a news item).

Hope this helps, feel free to ask some targeted follow-up questions!

Cheers!
Questioncore java Pin
debu900227-Apr-11 22:04
debu900227-Apr-11 22:04 
AnswerRe: core java Pin
Richard MacCutchan27-Apr-11 23:05
mveRichard MacCutchan27-Apr-11 23:05 
AnswerRe: core java Pin
RaviRanjanKr29-Apr-11 9:59
professionalRaviRanjanKr29-Apr-11 9:59 
AnswerRe: core java Pin
Dhruv Arya30-Apr-11 8:04
Dhruv Arya30-Apr-11 8:04 
AnswerRe: core java Pin
JP_Rocks29-May-11 22:37
JP_Rocks29-May-11 22:37 
Questionjni and using Data Structures Pin
harzemli27-Apr-11 3:23
harzemli27-Apr-11 3:23 
AnswerRe: jni and using Data Structures Pin
Richard MacCutchan27-Apr-11 4:47
mveRichard MacCutchan27-Apr-11 4:47 
GeneralRe: jni and using Data Structures Pin
harzemli27-Apr-11 4:54
harzemli27-Apr-11 4:54 
GeneralRe: jni and using Data Structures Pin
Richard MacCutchan27-Apr-11 6:52
mveRichard MacCutchan27-Apr-11 6:52 
GeneralRe: jni and using Data Structures Pin
harzemli27-Apr-11 6:53
harzemli27-Apr-11 6:53 
GeneralRe: jni and using Data Structures Pin
jschell27-Apr-11 12:08
jschell27-Apr-11 12:08 
GeneralRe: jni and using Data Structures Pin
Richard MacCutchan27-Apr-11 12:15
mveRichard MacCutchan27-Apr-11 12:15 
GeneralRe: jni and using Data Structures Pin
jschell28-Apr-11 8:10
jschell28-Apr-11 8:10 
GeneralRe: jni and using Data Structures Pin
Richard MacCutchan28-Apr-11 1:30
mveRichard MacCutchan28-Apr-11 1:30 
AnswerRe: jni and using Data Structures Pin
jschell27-Apr-11 12:10
jschell27-Apr-11 12:10 
GeneralRe: jni and using Data Structures Pin
harzemli27-Apr-11 20:58
harzemli27-Apr-11 20:58 
GeneralRe: jni and using Data Structures Pin
jschell28-Apr-11 8:12
jschell28-Apr-11 8:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.