i downloaded the ionic2 starter sidemenu template, now it is showing homepage as first page with sidemenu which is set in app.component.ts as below
rootPage: any = Home;
i'm planning to set my newPage as first page, there should be no side menu, from which i can navigate to the home page by clicking a button,
i added a page 'NewPage' already but no idea about where to set this page.
my ionic version : rc5
Just change the root page to your new page:
rootPage: any = NewPage
Related
I created a dynamic menu in oracle apex but the issue when click on any page after login
to the application again it redirect to login page first then open the page
this is the URL appear when click any page in the navigation menu
http://localhost:8080/ords/r/apex-system/login?session=11974340821162
this is the SQL query for dynamic menu :
select level ,
EN label,
'f?p=&APP_ID.:'||menu_seq||':'||':&SESSION.:::::' target,
EN as is_current,
ICON_IMAGE image_value
from SYSTEM_MENU
start with parent_m_id is null
connect by prior menu_id = parent_m_id
order siblings by menu_id
why always go to login page when click any page link on the navigation menu ?
Sounds like the session is getting reset when navigating to a menu item. At first glance (untested) I'd say there is a syntax error in the url. The session substitution string is in the wrong place. Try replacing ':&SESSION.:::::' with '&SESSION.:::::'.
But... why bother constructing the application url yourself when you can have a function APEX_PAGE.GET_URL do it for you ?
select level ,
EN label,
APEX_PAGE.GET_URL (p_page => 'menu_seq') target,
EN as is_current,
ICON_IMAGE image_value
from SYSTEM_MENU
start with parent_m_id is null
connect by prior menu_id = parent_m_id
order siblings by menu_id
Hi i have added the google reCaptcha in the bootstrap modal i am using same key on the index page and on the modal which opens after button click on the index ,on page it is working fine but on modal popup it is showing error "ERROR for site owner:
Invalid domain for site key"
I have added the screenshot
Try to enqueue recaptcha script or add it to the footer like this
<script type=’text/javascript’ src=’https://www.google.com/recaptcha/api.js?;ver=2.0′></script>
I have a SharePoint 2013 Community Site that is used for discussions. I want to create a link to a specific discussion item that will open the discussion item in "Reply" mode, i.e. the mode you get to if you click the Reply button just under the Discussion item text. I want to do this because the Reply mode text entry box is right under the discussion item text where it is obvious to see. The default reply text entry box is at the bottom of the page and it scrolls off the page if there are already a lot of replies on the topic.
Here is the default view on a Discussion item
If you click the "Reply" link here
then the a Reply Pane opens up right under the discussion item text.
But what I want to do it to be able to send a URL by mail that will open the discussion thread already in Reply mode.
The solution I found to do this consisted of customizing the /Lists/Community Discussion/Flat.aspx with client-side script as follows.
First insert a Script Editor into the page (Settings -> Edit Page -> Add a Web Part -> Categories -> Media and Content -> Content Editor -> Script Editor.
Next upload a copy of jquery.min.js to the Site Assets library.
Then add the following code to the Script Editor using Edit Snippet:
<script src="/SiteAssets/jquery.min.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
$(document).ready(function() {
if (location.search.indexOf('replyMode=1') != -1)
{
openReplyPane();
}
});
function openReplyPane()
{
var mouseEvent = new MouseEvent("click", {
'bubbles': true,
'cancelable': true,
'view': window,
'detail': 0,
'screenX': 0,
'screenY': 0,
'clientX': 0,
'clientY': 0,
'ctrlKey': false,
'altKey': false,
'shiftKey': false,
'metaKey': false,
'button': 0,
'relatedTarget': null,
'currentTarget': 'form#aspnetForm',
'srcElement': 'a#commandBar0-reply-Link.ms-secondaryCommandLink',
'target':'a#commandBar0-reply-Link.ms-secondaryCommandLink',
'timeStamp':1425842811416,
'toElement':'a#commandBar0-reply-Link.ms-secondaryCommandLink'
});
var replyLink = document.getElementById('commandBar0-reply-Link');
replyLink.dispatchEvent(mouseEvent);
}
</script>
Save your changes.
Now if you add the string "&replyMode=1" to the end of the URL for the discussion item, you can navigate to the post, and the Reply pane will be automatically opened for the user.
I am new in rails.I am wondering that how to use the click event in rails 4.1.
In menus_controller:
def index
#menus=Menu.where(:hotel_id=>#hotel.id).sorted
#cart = current_cart
if :MEAL
#menus=Menu.where(:hotel_id=>params[:hotel_id],:item_type=>'Meal').sorted
#cart = current_cart
end
in Menus/index:
<%=button_to("MEAL",{:controller=>'menus',:action=>'index',:hotel_id=>params[:hotel_id]}, class:'linkstyle ')%>
After using the above code the page gets redirected to Menus#create,why this happened?
In index page i have this button and i want to stay in the same page after clicked this button which will call the if block in the index method in controller.
I have a Timeline App that creates a wall posting via the Graph API. The wall posting indicates that the posting was created by the App, which is fine. However, the link for the app points to the Canvas page: http://apps.facebook.com/app_name_space.
I need the link to point to the timeline version of the App: http://www.facebook.com/pages/PAGENAME/PAGEID?sk=app_APPID
I have tried the "actions" parameter on the Post call, but that didn't solve the problem.
Redirecting the Canvas page
Since you cannot use a 301 redirect for this purpose, here is what I did (asp.net):
1) Create a folder named 'canvas' under the website root.
2) Add a default.aspx file to the folder (can't use a static file as an app landing page)
3) Add the following javascript to the head tag:
<script type="text/javascript">
var parentPageName = '<%=ConfigurationSettings.AppSettings["ParentPageName"]%>';
var appID = '<%=ConfigurationSettings.AppSettings["AppID"]%>';
var myHREF = "http://www.facebook.com/" + parentPageName + "?sk=app_" + appID;
top.location.href = myHREF;
</script>
4) Change your App Canvas url to point to the 'canvas' folder.
That's how it works, the 'via' link goes to your app, not to an arbitrary page the app is installed on, because it could be installed on any Facebook page.
Redirect users that land on the canvas app to the page tab, if that's what you want