The toolbar is hidden when the page jumps.

Source: Internet
Author: User

The toolbar is hidden when the page jumps.

 

When two pages are redirected, if the toolbar of the two pages is hidden.

 

Code:

 

-(Void) viewDidLoad {[super viewDidLoad]; // Do any additional setup after loading the view. self. title = @ "Hide toolbar when page calling"; // hide toolbar [self. tabBarController setHidesBottomBarWhenPushed: YES];}

 


There are two buttons A and B on the web page. Click A and B to jump to the same page, and the button will show hidden issues.

In this case, is it okay to have a page? Why do we need to jump to the page?
In addition, the buttons on both pages share the same functions. Can they be put together?
 
When the servlet jumps to a new page (passing parameters), how can I make the toolbar not displayed when the onload of the new page?

Parameter passing cannot be implemented. Try to output javascript code in servlet to implement it,
Parameters can be passed with get, such as showmsg. jsp? Errmsg = 1

<SCRIPT>
<! --
Window. open ('showmsg. jsp? Errmsg = 1', 'newwindow', 'height = 100, width = 400, top = 0, left = 0, toolbar = no, menubar = no, scrollbars = no, resizable = no, location = no, status = no ')
// Write a row
-->
</SCRIPT>

Parameter description:
Window. open command to pop up a new window;
'Page.html 'name of the pop-up window;
'Newwindow' indicates the name of the pop-up window (not the file name). It is optional and can be replaced by null;
Height = 100 window height;
Width = 400 window width;
Top = the pixel value between the 0 window and the top of the screen;
Left = 0 the pixel value between the window and the left of the screen;
Toolbar = no indicates whether to display the toolbar. yes indicates display;
Menubar and scrollbars indicate the menu bar and scroll bar.
Resizable = no: whether to change the window size. yes: yes;
Location = no indicates whether the address bar is displayed. yes indicates yes;
Status = no whether to display the information in the status bar (usually the file has been opened), yes is allowed;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.