This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills and have John Sonmez 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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
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: 61756
    
  67

Please do not post the same question more than once.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Show Embedded Document only when pressing link