Showing excel data in web page - javascript

I have a webpage that has two links to download pdf and excel files,
<a onclick="window.open('Files/Creditcard.xlsx')" >Clickhere excel</a>
<a onclick="window.open('Files/Creditcard.pdf')" >Clickhere pdf</a>
While clicking on Clickhere pdf it is opening in webpage itself, which is the actual requirement. But coming to Clickhere excel it is downloading instead of showing in webpage. Is it not possible to show the excel in webpage? If we can, please help..
Thanks Inadvance.

Have you tried setting the target of your link?
http://www.w3schools.com/tags/att_a_target.asp

One possible solution i found is, save the excel as a webpage(any how i just want to view the content not to download). So that content can be viewed in the webpage it self..

Related

HTML hyperlink to a specific page of a pdf file

Consider a very simple link to a pdf file in HTML:
<a target="_blank" href="mypdf.pdf">Link to pdf</a>
Of course, when the user clicks on the link, the pdf is open and the first page is shown in the browser.
Is there a way create a link to a specific page of the pdf? I was wondering if there is some command like this:
<a target="_blank" href="mypdf.pdf#11">Link to page 11 of the pdf</a>
or some trick based on Javascript.
I found answer on adobe forum https://forums.adobe.com/thread/2345594.
After # you should write something like #page=3 for example, to move automatically to page 3.
The following should do the trick
<a target="_blank" href="http://www.exampleurl.com/file.pdf#page=4">
You can also do chapters if needed but this needs a correctly formatted PDF.
Thanks

How to Automatically Click Hyperlinks in a Web Page?

There is a page with hundreds of hyperlinks, each hyperlink is displayed as a text "Download" as follows:
Download
Download
Download
Now we need to download all the scripts, but as you can see, there are many hyperlinks, and it will cost lots of time to click each hyperlink and then save the file one by one.
So we wonder if there is a quick way to download all the files, maybe using web-automation?
Do you have any suggestion or recommendation about the tools?
Thank you!
Use the extension downthemall on firefox https://www.downthemall.net/
this has what you need
please research more

How to hide pdf download option of browser when I click on pdf link in php or using .htaccess file

Here is my pdf image with link
enter image description here
then I click on that pdf link and open that pdf, how I will hide that pdf download option of browser.
I tried to resolved this problem using .htaccess but not getting result
Actually I don't have control on this pdf link that's why I can't disable download option using php, javascript and .htaccess
I also tried to parse that pdf into html but I stuck.
Please give me any suggestion for resolving this issue

Download a URL as a Text File

This is my script
<a name="pack,1,SER_260,NZ vs SL Series,,,yes,PITEM_233,PDATA_234,no" href="javascript:void(0);" onclick="playLink(this);" style="text-decoration:none;">NZ vs SL Series</a>
In this moment when I click on this link it opened rtmp link like this
rtsp://10.62.230.21:554/livefeed/SLVSNZ_QVGA.sdp?msd=94775447908&pi=&pd=&sn=NZvsSLSeries&b=3G&os=WAP&cn=&m=GT-I9505&mcc=&mnc=&v=1.14&lac=&cid=&op=Dialog&st=1&sid=&pid=#00INY0091&stamp=3659098938&sign=a308650741b841c2add44629c15d0ec1
The thing I want to do is not open the link the thing that I want to do is save this URL as a text File or m3u File.Please help me guys.I would be happy to have a example here because I'm not a genius in this field and Any other idea and solutions will be accepted.The only thing that I want to do is saving or showing the URL not opening .Thank You.

Is there any way to open ppt file open in Full screen when I click on anchor link in HTML?

I have ppt file in the href attribute of an anchor tag.If i click on the Anchor tag the file should open in Full screen.I tried by saving the ppt file in different Formats but nothing worked. Please let me know if any way to do that in Html or using Javascript.
Ppt is not an HTML standard so you can't expect to see it in the web page properly, but only if you have a proper viewer installed in the computer, but you can't predict it's behaviour.
Why not export the ppt to HTML and then point a link to it with target="_blank"?
Upload your PowerPoint to Scribd and you can use their API to show it on your website without any add-ons or special software.

Categories