I need to implement some pop-up dialogs in sitecore. The popups are used in an existing angular site and I would like to reuse as much as possible.
Use case: From a sitecore form activate the dialog, init the dialog with data from the sitecore field. If the user presses OK, then write back the new value to the site core field.
I know that sitecore has an IFrame type but I know that the browser will not allow me to write back to the parent window from a site in another domain.
So what options do I have?
It is possible to communicate cross iframes and cross domains by posting it between, see example here
Related
I am building a WordPress website for an radio station. They want to integrate the streaming option into the header and give user the ability to navigate their site without taget_blank or _blank and keep streaming.
So basically they would like users to listening to their radio without putting the streaming window in a popup or any other window what is not the landing page.
Only think i could think is to not refresh or load the entire new page while user is surfing and leave the header fix.
Does anybody has any idea how to get this done?
Appreciate the gesture.
I found a solution based on Frameset, but I think their must be something better, maybe ajax or something.
I am planing a simple website layout: Header with navigation, sidebar and a content block.
The whole site should be a single-page application because I am using a Cesium Visualization and a page reload would delete the current JS objects that are displayed in the Viewer.
Therefore I would like to reload the content container using AJAX to display my different "pages" and therefore keep all the JS Objects in the browser.
My question is:
Do you know a way to add a url-based navigation to this architecture?
For example: I am on the index page /index/ and enter the new url /content1/. The new url reloads the content container using AJAX and keeps the rest as it is. Therefore I would also be able to use the forward and backwards buttons of the browser.
May this be possible with ASP.net MVC routing?
I am pretty new to this so I hope I discribed my problem well enough.
Thanks a lot!
Try Pjax which uses ajax to load content dynamically via ajax
and pushState to maintain url history i.e is a HTML5 api. You shall find more details in the link below
https://github.com/defunkt/jquery-pjax
If you are familiar with angularjs then using ngRoute is a better alternative to Pjax as it has an effective url management through the routing service, please check the below link for more details on ngRoute
https://docs.angularjs.org/api/ngRoute/service/$route
Any way to hide the Page Navigator that appears on the top of every App Maker produced page? When you create your own custom menu system that navigates the site then there is no longer a need for the page navigator. Also, the naming convention on the pages are not exactly user friendly (not allowing spaces for example) so that makes the page navigator look more like a developer tool than an end-user one. And last but not least, the page navigator is redundant if you only have one page in your app.
You can show/hide page chooser by setting ?console= URL parameter to 1 or 0 correspondingly.
But as Morfinismo noticed, most likely you are looking for creating a deployment which you can share with your end users, configure permissions, etc., since only you can access your Preview deployment.
I am new to Microsoft Dynamics. I managed to create new solution and know how to add web resource to particular page like Contacts. Also, I have added few buttons to Ribbon control with their actions.
Now my problem is, I want to add a button either to ribbon control or anywhere in page, which I can access in complete CRM (like I can do in Master Page of asp.net), and which will help me open my web resource.
For example, if I click on Charts bar, web resource should be visible, otherwise it should be hidden.
My question may be lame, because I am very new to CRM Dynamics, kindly suggest my way is correct or I need to take some different approach?
If I understand it correctly you're looking for a way to add a button to multiple screens without need to modify each of them separately. (To avoid the pain when modifying all the ribbons or all the forms.)
In that case I'd suggest creating a separate JS web resource with code that adds a button with desired functionality, styling etc. And use Form Libraries Manager from XrmToolbox to bulk add the resource to all the forms.
Is not it possible to add a flex url to bookmarks. If not,Please let me know if any alternatives are there. Thank you.
There is a concept in Flex called deep linking.
You can read all about it in the docs.
You basically just need one class: the BrowserManager.
This class allows you to:
control the navigation history of your browser
set window titles for different states of your application
set specific URL's in your browser's URL bar for different states of your application
listen for changes in the browser's URL bar, so the state of the application can be changed accordingly
So you can have URL's like
http://www.myflexapp.com/#dashboard
http://www.myflexapp.com/#product/123
which can tell your application to display the right information.
Why is there a pound sign in the URL?
That's because we don't want to reload the entire application when the user changes the URL. So we stay on one page with the same app loaded; the part behind the pound signs is information that is being sent to the Flex app, which can change it's state according to this information.
You could look at: http://code.google.com/p/bookmarks-framework/