This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Show Embedded Document only when pressing link Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply locked New topic

Show Embedded Document only when pressing link

samuel marin

Joined: Nov 18, 2011
Posts: 16
I have the following:


$("p").click(function () {

Now, how can I do to tell when I press "Link" show the following document. "document.pdf"

Something like:

<p (\document.pdf)>Link</p>

var document
$("p").click(function () {

So when I press the "Link" the document.pdf shows embed

Thanks so much
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63202

Please do not post the same question more than once.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Show Embedded Document only when pressing link
jQuery in Action, 3rd edition