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
Author

Show Embedded Document only when pressing link

samuel marin
Greenhorn

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

<p>Link</p>

<script>
$("p").click(function () {
$(this).showembed();
});
</script>


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

Something like:

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

<script>
var document
$("p").click(function () {
$(this).showembed(document,);
});
</script>

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

Thanks so much
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63202
    
  69

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: http://aspose.com
 
subject: Show Embedded Document only when pressing link
 
jQuery in Action, 3rd edition