I am looking to create some dynamic buttons and dropdown menu's using HTML/markup in markup Visualization of Apache Superset. I can only create static HTML pages, as the JavaScript associated with it is not working. Is it possible to add plugin like R, idyll for interactive markup in superset or is there a way to make the JavaScript working?
Related
I was building a website with django and wagtail as cms, I was wondering if it's possible to execute javascript through wagtail's richtext field with wagtail's default richtext filter.
For example, add a onclick attribute to a link.
My goal is to prevent such thing from happening, for security reasons.
The |richtext template filter does not strip out any Javascript code (such as onclick attributes or <script> tags) from its input - it only performs light rewriting of Wagtail's internal HTML-like format, such as replacing <a linktype="page" id="123"> page references with real URLs.
However, Javascript code is blocked at the point of submission through the Draftail rich text editor. This is because data is prepared and submitted in a non-HTML format (namely Draft.JS ContentState JSON) and then converted to Wagtail's HTML-like format when saving to the database - in this process, there is an 'allowed list' of elements to be converted, and none of these have any provision for passing Javascript code. (If a way to bypass this mechanism were discovered, then this would be considered a security issue and handled through Wagtail's security process.)
This does mean that if your project inserts untrusted rich text data into the database in a way that doesn't go through the rich text editor (such as importing content from an external source), it's your responsibility to validate that data for any unwanted elements / attributes.
In Superset one can customize the styles for a particular dashboard through CSS-templates, but I want to change the styles for the whole UI such as Home page on which you see the list of dashboards. What would be the easiest way to do this?
I created sphinx html using command make html.But i need a single page document with heading and content.When i click a particular heading page should automatically scroll down to that corresponding content.
I think you want singlehtml instead of html. See the sphinx docs for all the build options.
make singlehtml
I am doing a project in Django and i want to have some google maps displayed in my site. So, i installed django-easy-maps and successfully used it in a sample template. So, i am ready with my maps.
The interface i want to implement is this
http://i49.tinypic.com/sowm74.png
I want to display the maps where the Hellow World! container is and with different links on the sidebar i want to refresh the map being displayed on user click without reloading the page.
I did some researching and it seems Ajax is the solution...
Can anybody tell me how i might achieve this (with or without Ajax ) ?
Sorry for sounding like a noob but i am fairly new to this.
The basic steps are:
Create a view for the Google Maps section to the right. This view does not return a full HTML page but only the HTML for that section (which contains your Google Maps map).
When the user clicks on a link on the left, use JavaScript to perform an ajax call to request that page. In short this means: attach an event handler to the onclick event of those links and in code you can perform an ajax call .Many people use a JavaScript library for this purpose, such as jQuery (which has $.ajax()).
You can then use JavaScript to put the received HTML inside the container on the right (using $.html()).
I've done some research and learned that for Joomla 1.5.9 to work with iframe tags you must set permissions in article manager > parameters > filtering groups to whitelist the super administrator, and then set user manager > select user > user editor to "Editor - No Editor". After doing this, then opening an article, opening the html editor and inserting the iframe like so:
<iframe src="http://thewebsite.tumblr.com/" width="100%" height="300">
<p>Your browser does not support iframes.</p>
</iframe>
The editor continues to strip out the iframe code. Why would this happen?! I'm sure all of the settings I've mentioned earlier are set according to the tutorials I've come across. Are there any factors I need to take into consideration that I'm missing? Is there another way to insert an iframe into a custom template?
I hope someone can help!!
Inside an Article you are best of using a plugin :
http://extensions.joomla.org/extensions/4144/details
it gives you the ability to insert an iframe by using e.g. {iframe width="90%" height="300" frameborder="1" scrolling="yes"}url{/iframe} also within the TinyMCEeditor.
If you don't need antyhing else inside the article you can use menu item/link. Internal Link - Wrapper
When the Wrapper link is selected, it expands to display the Wrapper layout. This is used to show an external web site inside a page in your web site, using an HTML IFrame. The external web site is contained inside the Wrapper. You can navigate to different pages in the wrapped web site, all inside the page of your web site.
http://docs.joomla.org/Help16:Menus_Menu_Item_Wrapper