/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] how add dinamically rows between rows

hello guys

i have a problem

a menu with css has a link and call to the server to show, for instance , a table with rows/details where each of its are [b]debts[/b]

[CODE]
<tr=”id1″>
some <td> tags ….
</tr>
<tr=”id2″>
some <td> tags ….
</tr>
<tr=”idN”>
some <td> tags ….
</tr>
[/CODE]

so each row has a link to open a popup to insert a pay and less the amount of the debt

how i can do add dinamically ( i use ajax/js) after of make the pay, create a new row after fo the row where the link/popup was open???

thats mean
if i choice the first row “id1” the new row of the payment should appear after of this

[CODE]
<tr=”id1″>
some <td> tags ….
</tr>
[b]
<tr=”id1.1″>
some <td> tags ….
</tr>
[/b]
<tr=”id2″>
some <td> tags ….
</tr>
<tr=”idN”>
some <td> tags ….
</tr>
[/CODE]

how i can do this???

thanks for advanced

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@KorMar 19.2007 — use DOM methods (createElement(), createTextNode() ,insertBefore()... and so on)
Copy linkTweet thisAlerts:
@dr_pompeiiauthorMar 19.2007 — hi Kor

thanks for the reply

maybe you can share a good link about this,

yes, google out there, but maybe you know an excelent link of your recomendation

regards
Copy linkTweet thisAlerts:
@dr_pompeiiauthorMar 21.2007 — thanks so much, it works!!!

regards
×

Success!

Help @dr_pompeii spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...