Is it possible to customize loading of resources used by HTML page in WebKit.NET so that I can serve them from my custom source (database)?
Related
I'm hosting a static Jekyll website with written markdown content on Netlify (e.g. like cooking recipes or something). I'd like to integrate a login flow so that some of the html pages are visible to members only, but my understanding is that this is not possible on static jekyll websites. Is that the case or is there a simple way to add members-only content on Jekyll?
I can do this trivially by writing some vue.js code, but I also want to preserve the ability to render markdown->html. Is there a way that I can get login-gated content on Jekyll natively, or somehow get some other web framework to render Jekyll-compiled content correctly?
I have a web app that I created with vuejs and veutifyjs.
When a do a pagespeed insight, I get a very low performance and the suggestions are that I should preload some CSS files and web fonts. I can change the rel of css files but I don't know how to change that of web fonts.
Here's an image of the suggestion.
You can do in two ways:
Add <link> of your font inside along with preload attribute.
Let service-worker to handle the caching mechanism, that would include .woff fonttype as well.
I have created an extension and added to a page when I executed page got a blank page. Then I inspected through view-source of browser the contents are there. but not visible.
The view was visible on Typo3 v7 local, but not on the server.
I'm using the Typo3 v7 and Typo3 v8.
Extension has been installed in both server versions, but not displaying.
I have included the extension into the template.
I have Checked the Debug functionality through the controller
that also didn't display on front-end, But is visible as source code
Should anything to be done more? Any idea?
Thank you
That does not sound like a problem of TYPO3 than a problem with CSS.
If the HTML markup is available at the browser but not visible the browser has decided not to show it. And that probably is CSS. Use the browser debugger (firebug, inspector, ...) to identify which CSS hides the content.
Also Javascript might interact as it could change visibility after page submit. (try to load the page with deactivated javascript)
In the end it could be an additional or missing div tag or css class that is responsible and you could configure TYPO3 to change the HTML markup in the way so that your content is not hidden.
If you have one server where the content is visible and one where it is not shown you may do a diff on a page to find the difference between these servers. The HTML could be the same if CSS and/or Javascript is different.
I would save the same page from both servers localy (with all CSS and JS) and do a tree diff with a tool like kdiff3
Good morning,
I am installing a APP with IBM MobileFirst Platform and seen in the documentation, by making an APP multi page, you should avoid the attributes href and document.location.href of javascript. I have verified that the system used is that of a single page and upload the content in div with jquery load () function.
Is strictly necessary this requirement or I can continue using href and document.location.href? I say this, because in my APP, the header and footer, change in each html page and I do not want to reload the html page with many divs, shown and hidden.
What you recommend to resolve this issue? How I can connect different html pages in MobileFirst, without using href or document.location.href?
Thank you.
Best Regards,
The reason why it is recommended to load the page contents via ajax is because MobileFirst libraries are loaded in the main html file. Loading other html files would require you to include all the MobileFirst libraries "including cordova" in every single html file of your application. Doing that will decrease the performance of your application since you will have to load all the library files for each page. It may also cause some conflicts with the objects loaded into the DOM since they may be loaded already.
What is the difference between JPF (Apache netUI) and Struts? When should I use JPF in web applications? What are the pros and cons about JPF?
Apache Struts is an open-source framework that provides support to Model-View-Controller
implementations of web-pages. Its goal is to separate these three parts of the project: the model (application logic that interacts with a database) from the view (HTML pages presented to the client) and the controller (instance that passes information between view and model). It has a tag library
that eases the production of form-based applications with server pages.
NetUI is also a MVC framework that is part of Beehive Project, which aims for the reduction of the necessary code on J2EE projects
by using JSR-175 java annotations.
NetUI was built atop Struts, and it provides a Page Flow Controller class that separates navigational control from presentation
of the web-project, keeping a clean JSP code and enabling the reuse of navigational/flow logic (also, it provides a set of JSP tags for rendering HTML/XHTML).
Now, regarding your other question about when to use JPF: Page flows control all of the major features of a web application: how users navigate from page to page, user requests, and access to the web application's back-end resources. You should use them when you need this kind of control for your application.
For example, with normal HTML pages, each page is linked directly to other pages.
page > page > page > page
When using page flows, pages and actions are interwoven, transparently.
page > action > page > action > page > action > page
Here is an image to illustrate this situation. The .jsp squares are static pages, while the other ones are JPF controllers.
You can read more about all of this in the apache beehive documentation, where I got the most of these information.