1 baileyjs Dec 15, 2006 23:09
3 baileyjs Dec 16, 2006 01:12
EdB:
Thanks. Your shot hit the mark. It did just what I was looking for. However I did have to make one minor modification.
When I viewed the source of the html it showed
class="foo" target="_blank"">
. The "" made the page invalid for the Doctype: XHTML 1.0 Transitional.
So I changed
( '#title#', '#', 'foo" target="_blank"' )
to
( '#title#', '#', 'foo" target="_blank' )
to remove the trailing " after _blank and all is well.
You are a clever man!
4 edb Dec 16, 2006 01:37
BaileyWTNH wrote:
... You are a clever man!
I'm glad you got it working as you wanted, but the cleverness belongs to ¥åßßå for coming up with that little trick a while ago on an unrelated issue. All I did was apply the trick to this situation.
That function goes like this:
So maybe you could cheat a bit and take advantage of the class parameter with something like this:
In this case the class "foo" has no meaning (unless you want it to). All it's doing is taking advantage of the how the function will react if there is something in the class field.
It's worth a shot!