How to not allow going to a previous page using the phone back button - back-button

I have my user in the profile page, and to get there you need to go trough the phone authentication and userinfo gathering. But I don't wanna allow them to go back to this two pages, and when I press the back button on my cellphone it does that, how can I fix it? thanks.
I could do something like when this button is pressed it finishes the app, but I don't know how to do it.

Related

Is there an option to track(goals) ajax form with checkbox that works screen by screen?

I have an ajax form with some questions of choice but every question will be displayed on new screen (screen by screen) by button.
I want to track users behavior on my form page. I want to know after which question user has left the page (which questions they filled up)
Also I would like to know from which devices they have visited the form page and how long they were on this page
Is it possible to track all of this by GA or GTM?
If the form is screen-by-screen as you said, it sounds like you need to track two things.
An event for clicking the "Next" button
A virtual pageview for each screen.
This way, you can look into your Exit Pages report to see what screen the left the page from.
As for device tracking information, that type of data is automatically captured by GA.
So, basically. You'd have a virtual pageview for the first screen (assuming this form is a popup modal). If it's not a popup modal, then you'd just have the normal pageview for that first screen.
For instance, if the user has to click a link/button for the form to start, then you'd, ideally, fire an event for clicking that link/button, fire a virtual pageview when the first screen loads, fire an event when the user clicks the next button, then rinse and repeat for the subsequent screens.
Also, it may be a good idea to track the last screen's "next" button (or "finish") button as a separate event. Then, you can see in your events report who has filled out all of the screens and submitted.
Another thing worth pointing out: If you also want to show which question was the last one filled out, you can provide the name of the question (or an id, or some kind of brief and canonical identifier) in the virtual pageview as a custom dimension.

emberJS resetting form fields when the user clicks on a browser's forward and back buttons

I am working on an emberJS application and I have a question regarding a browsers forward and back buttons:
If a user navigates to a form, then fills out some information, then hits the browser back button, then the forward button, what is the proper way to reset the form so that the fields are blank again?
Do I need to explicitly set the fields to empty string or is there some way I can force a refresh rather than having the browser go to the cache?
Thanks,
Terry

ASP.NET Multiple links validate

I have about 50 or so links similar to the following:
<asp:TableCell Font-Bold="true"><asp:Hyperlink ID="Hyperlink9" runat="server" CssClass="Hyptext" Name="HypLink1" TextDecorations="None" NavigateUrl="~/Folde1/Second.aspx" Text="Case Study 12 "/></asp:TableCell>
What I like to do is when the user clicks on the hyperlink, I like to validate that the user has permission to view the links. If so, they can view it. If not, a pop-up will come information them that they need to sign in order to view the links.
Questions
1) What is the best way when the user clicks on the HyperLink to do a server side click event. From what I seen,only a client side even can be done with the asp:Hyperlink. I like to then validate if they have permissions. If not, throw a pop-up window.
You should not do that. Instead, you should...
On server side, check to see if user is logged in...
if not logged in, provide login link and text "Login to see case studies".
if already logged in, provide links user has access to.
You need an onClick tag that points to a method. Create one event handler function and point all your hyperlinks to it. Once the event handler fires, cast the sender to Hyperlink and go from there.

face book like button not updates the like count after login

I am using iframe facebook like button on my app(mobile). When I hit the like button without
login -> login window opens-> after login -> the login window hides. But the like count is not updated until refresh and hit the like button again. Please help and thanks in advance.
Note: i want a solution for iframe facebook like button only. Thanks

Update a field in a page, from another page in ASP.NET

I want to make a link on a page that when clicked, would open another page(tab). I have already done that.
Now, when the user clicks a link in the second page, I want the page to close, and a field in the first page to be updated with what the user selected in the second page.
As an example, I would like to achieve the same functionality as the Yahoo Mail address book. When you write a message, you click the "To:" field, the address book opens in a new window, you select the people you want to send the mail to, and then when you click "Done", those people's addresses are automatically added to the "To:" field in the first page.
Please give me some suggestions on how to achieve such a feature.
Thanks in advance
You'll need to use JavaScript to open and close the window. When the second window closes, handle the event and then you can use window.parent.document to find and access fields on the parent window.

Resources