Sean, numeric IDs are invalid , better to use something like:
<span class="q"><span style="font-family: courier new,monospace;"><a id="post_345" href="#delete">
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> $("a").click(function(){</span><br style="font-family: courier new,monospace;"></span><span style="font-family: courier new,monospace;">
$.get("test.php", { id: this.id.substr(this.id.substr(<a href="http://this.id">this.id</a>,indexOf('_')+1), action:this.href.substr(this.href.indexOf('#')+1) } );</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">
});</span>
Not tested
<div><span class="gmail_quote">On 7/19/07, <b class="gmail_sendername">Sean Catchpole</b> <<a href="mailto:littlecooldude@gmail.com">
littlecooldude@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I believe I made a typo on the <span style="font-family: courier new,monospace;">this.href.substr(1)</span>. Here's is the revised sample:<span class="q">
<span style="font-family: courier new,monospace;"><a id="345" href="#delete">
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> $("a").click(function(){</span><br style="font-family: courier new,monospace;"></span><span style="font-family: courier new,monospace;">
$.get("test.php", { id: <a href="http://this.id" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">this.id</a>, action:this.href.substr(this.href.indexOf('#')+1) } );</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">
});</span>
<span class="sg">
~Sean</span><div><span class="e" id="q_113e12b8e105b2e4_4">
On 7/19/07, Sean Catchpole <<a href="mailto:littlecooldude@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
littlecooldude@gmail.com</a>> wrote:
> You could save the id in the html. Here's an example.
> <a id="345" href="#delete">
> $("a").click(function(){
> $.get("test.php", { id: <a href="http://this.id" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">this.id</a>, action:this.href.substr
(1) } );
> });
>
> ~Sean
</span></div></blockquote></div>