This :-) Also, if I remove the a href, it would break the links
(dynamically generated by the web application on load) and the preview
panels :-) Adding the second return false;, as suggested by Matt has
fixed it quite nicely! Thanks all :-(
On Jan 14, 8:55 am, Matt Maxwell
hi pedalpete, your solution does work perfectly fine, sorry for not
making that clear. but if we look beyond the initial implementation we
begin to see a problem: this solution requires two separate pieces of
code to be maintained to handle certain modifications.
for instance, if the link needs
this really an interesting jq/html semantic issue: if the a tag is
not handling the actual redirection to another page, maybe we
shouldn't be using the a tag at all. maybe the href should really
just be stored in the jq routine. this clears up maintenance issues
and passes the gut check.
That is true, but if you remove the link's href, the application will not
degrade for users without JavaScript enabled.
On Thu, Jan 14, 2010 at 8:46 AM, bill ozzi...@gmail.com wrote:
this really an interesting jq/html semantic issue: if the a tag is
not handling the actual redirection to
doh! matt you hit the web accessibility nail right on the head! thanks
for reminding me.
maybe i should pay penance by turning off my javascript for a day!
then again, corporate policy dictates that i have IE6 loaded on my pc,
hopefully that buys me some web accessibility karma.
Thanks for clarifying that Bill.
I see your issue with my solution.
I'm still learning to be a better programmer, and getting your type of
feedback is really helpful.
Thanks
On Jan 14, 6:37 am, bill ozzi...@gmail.com wrote:
hi pedalpete, your solution does work perfectly fine, sorry for not
You'll want to unbind the click event for the link, this should work
$(#factsheets td a').unbind('click');
Since the link is inside the cell, a click on the link should still
trigger the link.
Let me know how it goes (I don't get to answer questions very often )
On Jan 13, 1:22 pm, Collectonian
change window.open to window.location
both the anchor tag and the javascript are interpreting the click, and
the problem is that your anchor tag is opening the link in the same
window, whereas your js was opening the link in a new window.
actually, pedalpete's solution is more correct (as there
ack, i just realized i misread pedalpete's solution; each click will
only get interpreted once, but depending on where the click happens
determines whether or not the a tag or the js will handle it. this
smacks of wrongness. let's examine other ways to handle this:
1. expand the size of the a to
Hi Bill,
I'm still learning lots, and was hoping you could better explain what
was wrong with my solution (as it seems the other solutions are FAR
more complicated.
What I was trying to acheive was to just disable the link for
javascript enabled browser, and keep it enabled for those without
What I'm assuming is happening here is that the even tied to the a tag is
firing as well as the click tied to the cell.
It appears as though two windows are opened because the page you're
currently on goes to the PDF and a new window is opened with the PDF.
The easiest solution would be to add
11 matches
Mail list logo