RSS

How can I make URLs automatically hyperlinked on a web Google Doc

26 Aug

// if you want to open document with google doc viewer thien this article very helpfull for you.

//Header Section

<script>

$(document).ready(function () {
$(‘#document-slider-item’).click(
function (event) {

event.preventDefault();
var url = ‘http://docs.google.com/viewer?url=&#8217;;

url += $(this).attr(‘href’);
url += ‘&amp;embedded=true’;

var iframe = ”;

$(‘#document-viewer’).html(iframe);
});
});
</script>

 

//Body section

 

<body>
<form id=”form1″ runat=”server”>

<a id=”document-slider-item” href=”http://www.irs.gov/pub/irs-pdf/fw4.pdf&#8221; target=”_blank” style=”color:Red;font-weight:bold; font-size:larger;” >Click me</a>
<div style=”float:left” id=”document-viewer”>

</div>
</form>
</body>

 

 

Advertisements
 
Leave a comment

Posted by on August 26, 2013 in ASP Dot Net C#

 

Tags: , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: