Is it possible to view a webpage (or local html-file) in a new sidebar, like the integrated help-pages do? And what would be the vba code to launch it?
I'd like to provide some help-files with my xlam but don't want to use the old chm-files...
Background:
I need to allow users to create web pages for various products, with each page having a standard overall appearance. So basically, I will have a template, and based on the input data I need the HTML page to be generated for each product. The input data will be submitted via a web form, following which the data should be merged with the template to produce the output.
I initially considered using a pure templating approach such as Nunjucks, but moved to ReactJS as I have prior experience with the latter.
Problem:
Once I display the output page (by adding the user input to the template file with placeholders), I am getting the desired output page displayed in the browser. But how can I now obtain the HTML code for this specific page?
When I tried to view the source code of the page, I see the contents of 'public/index.html' stating:
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
Expectedly, the same happens when I try to save (Save As...) the html page via the browser. I understand why the above happens.
But I cannot find a solution to my requirement. Can anyone tell me how I can download/save the static source code for the output page displayed on the browser.
I have read possible solutions such as installing 'React/Redux Development Extension' etc... but these would not work as a solution for external users (who cannot be expected to install these extensions to use my tool). I need a way to do this on production environment.
p.s. Having read the "background" info of my task, do let me know if you can think of any better ways of approaching this.
Edit note:
My app is currently actually just a single page, that accepts user data via a form and displays the output (in a full screen dialog). I don't wish to have these output pages 'published' on the website, and these are simply to be saved/downloaded for internal use. So simply being able to get the "source code" for the dislayed view/page on the browser and saving this to a file would solve my problem. But I am not sure if there is a way to do this?
Its recommended that you use a well-known site generator such as Gatsby or Next for your static sites since "npx create-react-app my-app" is for single page apps.
(ref: https://reactjs.org/docs/create-a-new-react-app.html#recommended-toolchains)
If I'm understanding correctly, you need to generate a new page link for each user. Each of your users will have their own link (http/https) to share with their users.
For example, a scheduling tool will need each user to create their own "booking page", which is a generated link (could be on your domain --> www.yourdomain.com/bookinguser1).
You'll need user profiles to store each user's custom page, a database, and such. If you're not comfortable, I'll use something like an e-commerce tool that will do it for you.
You can turn on the debugger (f12) and go to "Elements"
Then right-click on the HTML tag and press edit as HTML
And then copy everything (ctrl + a)
I am using the ionic framework and would like to be able to read from the HTML from the current webpage and then send the selection back to my application.
I have the Theme-able Browser Plugin setup and can use it like any other web browser.
I have tried looking at ways to include my own script with the .executeScript() function but no luck.
I have also tried to read data from custom buttons that I have inserted into the tool/nav bar but that gives me the HTML of my application.
TL;DR: (Basically want access to the DOM of the current webpage and have the user use native selection to read the document.getSelection() and send that text back to my application.)
Any help would be highly appreciated.
After browsing the forums on Ionic I found the solution:
browser.executeScript({code:'window.getSelection().toString();'}).then((selection)=>{
packet.text = selection[0];});
This allows me to get the selection.
We would like to display excel file which consist of graphs onto our HTML5 web page.
I tried couple of approach but haven't got exact solution-
If I used iframe then source excel file opens as an attachment and dialog box appears. which I dont want.
If I convert excel file into mht and then open using iframe. This only works with IE and not mozilla or chrome.
Can anyone please suggest how to view entire excel workbook on my HTML5 page?
Note: I do not want to use google docs in my case.
Check out this link: http://www.labnol.org/software/embed-tables-spreadsheet-data-in-websites/7435/
It has multiples ways of embedding spreadsheets into html pages
My application exports data to Excel as HTML.
It saves the markup of an HTML table in a temporary file (using xls as an extension). It then asks the operating system to open that file using its native application.
Excel can open it without a problem. I have even been able to get some formatting via CSS.
I would like the top x rows not to scroll. I was wondering if there was a way of achieving a "freeze panes" effect? I have tried using the thead and tbody tags but it does not help.
I am programming this in ActionScript. However the language used to generate the markup in the text file is irrelevant. What is important is the markup itself.
I haven't tried that myself but this http://jwcooney.com/2011/09/08/generating-excel-documents-through-html-xml-and-css-part-2/ page seems to have an answer
..The x:FreezePanes and x:Panes markup in green below tells Excel to
Freeze the first row of the document..
x:FreezePanes etc. elements are documented in the "Microsoft Office HTML and XML Reference" which you can download at http://msdn.microsoft.com/en-us/library/Aa155477%28office.10%29.aspx
The x:urn:schemas-microsoft-com:office:excel namespace is also known as "XML Spreadsheet 2000"