Hello there I'm working on this UIWebView in Swift. I added a url to the web view and so it worked properly. But when I added the web view into a scrollview I disabled the user interaction in the web view so it would not scroll from the web view. so I enabled the scrolling in the Scrollview and now I can scroll fine.. But when ever I try to click a button from my web view it does nothing.. Does anybody know how I can I enable the web view to be clickable inside the scrollview?
I believe this is the proper way to deal with your situation.
Do not disable user interaction in the web view. This prevents scrolling from occurring, but has the side effect of preventing other events, such as tapping.
This line should solve your problem:
webView.scrollView.scrollEnabled = false
If this is in the Storyboard, there is another way to do this. Go to the Identity Inspector (3rd tab on the right sidebar). Press the + sign underneath Key Path to look like the following:
Make sure the checkmark is disabled.
Related
Can you suggest a way to have login page without hamburger menu?
So the app start with the login page(without Shall or hamburger menu). After login the current page becomes a home page with the hamburger menu.
I have tried to make changes to the navigation service, but it didn't work.
What is the proper way to do this?
Not tried it myself yet, but I thought the IsFullScreen property serverd that purpose.
So when you set it to true, the SplitView will not be visible until you set it back to false.
Some comments from the template itself https://github.com/Windows-XAML/Template10/blob/master/Template10%20(Library)/Controls/HamburgerMenu.xaml.cs#L316
This may be a little simplistic, but why not just make the first place you navigate to your app login screen, and THEN navigate to your Shell? Otherwise you can always use the ModalDialog that houses the Shell, or you could follow the techniques in the Login Template 10 sample in GitHub.
I'm working on an XPages Mobile app using mobile controls from Extension Library.
My hope page is a menu leading to 4 different mobilePages.
I get this this is 1 XPage and we're dealing with "Virtual Pages". But is there a way to clear viewScope variables and document bindings as you go back and forth between virtual pages?
For instance. In one of my pages I ask the user for some data. 3 Fields stored in viewScope Variables. Using that I then have a button to Create a new document which gets bound to a panel and then I do things with it.
If the user hits "back" from the menu bar, to go to the Home screen and then goes back to the same page I want to clear everything and start all over.
setting resetContent= true doesn't do anything here.
My virtual page is a custom control and I tried to clear everything on beforePageLoad but that wiped it all during a manual refresh.
I tried hooking into the rendered property of the back button but that fired during a full page refresh. Possibly I could live with partial refreshes but someone might still manually refresh it.
Any way to get this ability inside the single page app mobile context?
Thanks!
See the following XSnippet on OpenNTF.org for your answer and a worked example - have fun! BTW: this is something we want to support on the Mobile App Page in an upcoming release - for now you can use the worked example I provide on XSnippets!
http://openntf.org/XSnippets.nsf/snippet.xsp?id=calling-server-side-jscode-during-mobile-page-transitions
Have you tried using requestScope for the virtual page bindings? From your description, it sounds like this would be the correct scope to use.
I am working on enterprise apps, I am using telerik controls to make life easier ;)
The layout of my application on the left radpanelbar used for the navigation menu, on the right side is the content.
I want to make this navigation menu to navigate to a usercontrol (.ascx file) instead of a page (.aspx file)
The navigation control is in the master page.
I have multiple reasons to make this kind of navigation:
I have many user controls, and do not want to make pages (.aspx) as many user controls as I have.
Which is the most important I want to make this happen on the fly with out post pack (AJAX).
So please could any one tell about the best practice to do it.
One possible solution might be to load the navigation user control programmatically via AJAX when the user clicks a panelbar item. Still positioning this user control on the master page and loading it from the content page is quite odd to me and I personally do not approve it as a good architectural decision.
I'm working on creating a reusable and extensible web application in SharePoint 2010. I've created a master page to apply across all pages in the site. However, whenever I create a web part page and navigate to it, the site icon does not display. Instead of my custom site icon being displayed it shows the default SharePoint icon. I can get around this by placing the icon directly into the master page, but that would require me to create a new master page if I ever wanted to extend this web application.
Does anyone know why this is happening? My initial thought was that the web part page had somehow been customized to not use the default master page, but that does not seem to be the case: if I update the master page it is reflected in the web part page.
Googling around and checking this site yielded little answers. I only found one post out there that reported the same issue I am observing but there was no solution.
If it helps, I did notice one phenomena when navigating to this page. Before the page completely loads, the correct site icon appears for a split second before being replaced with the default site icon. Hope that helps.
I ran into the same issue this morning and didn't want to create a custom master page just for this, but luckily it was quickly resolved by following admlcrunch's suggestion (on SharePoint 2010):
Go to the desire page
Click on the "Page" tab at the top
Click on the "Title Bar Properties" at the right (in the ribbon)
In the Image Link section on the right, paste in the image URL
Click OK
The only bad thing about this is, you have to update every Web Part page that you want custom icon image to display.
I was just having the same issue. Web Part Pages have their own icon that you can set.
To set the icon click Page > Title Bar Properties. This will open the Web Part Page Title Bar dialog. In this dialog there is an area to set the Image Link. You can set the icon here. I just copied the URL to the site icon.
Open the page in designer and remove the custom titlebar place holder:
[WebPartPages:TitleBarWebPart]
from the :
[asp:Content ContentPlaceHolderId="PlaceHolderPageTitleInTitleArea"]
So I created this web part page on sharepoint, but everytime when I add a web part, the entire view gets squished into a narrow window. This makes it impossible to "modify shared web part" because all you can see on the menu pane are OK, Cancel and Apply. You can't fill in any detail or change anything from appearance to layout because you can't really see these options and put your mouse on them.
Thanks in advance for any help
I'm not sure if you want help with determine why this happens, or if you just want to get rid of the faulting web part?
If the latter, you can access the web part admin page by adding ?contents=1 to the URL to remove the web part in question.
This method is documented documented here.
http://<yourserverpath>/yourpage.aspx?contents=1
HTTP:\\MySPRootSite/pages/default.aspx?ToolPaneView=2
This will help u to forcibly display the page in edit mode.
I am struck with forcibly editing a web part in the page after the page is displayed in edit mode.