Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Exclude Records with Javascript?

Status
Not open for further replies.
Apr 6, 2001
41
US
Ooh, ooh! I have an almost identical problem to THIS thread thread216-95573 EXCEPT I need every checked item to be deleted for a particular user's session (FYI: these checkboxes are populated by database info). Here's the full question...

=====================
I want to allow my users to exclude records of their choice. If you go to the link below you'll get an idea of what I want...


See the left-most column of the table that has the button "Delete" and then all the checkboxes down the column? Let me explain what those are: suppose that in the past, one of my users has had a bad experience with one of these companies. I want to allow that user to click that particular company's checkbox and then click a "recalculate this page" or "delete" button to refresh it with the unwanted record(s) excluded on the refreshed page?
=====================

Another example: Anyone who has a Yahoo email account knows that they can easily delete any junk mail just by clicking the checkbox by the email's title and then clicking "Delete." Same type of thing...but keeping in mind that the updated (after-deletes) info will be passed to an emailing app.

I think I'm close. I looked at what the Yahoo page was doing and "borrowed" some ideas. However, it juuuust doesn't work. What am I missing?

Your help is appreciated!
 
way 2 go!
but u can also use <ilayer id=first><layer id=second><div id=third>where 2 paste new content</div></layer></ilayer> construction for ie & nn4.x-6
& 2 write new content in nn4.x write

with (document.layers.one.document.layers.two.document){
open()
write('new content')
close()
}

& for ie4.x, ie5+ & nn6 write

if (document.getElementById) document.getElementById(&quot;three&quot;).innerHTML='new content'
else if (document.all) document.all.three.innerHTML='new content'

but spans works too
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top