Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8410575
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T00:12:49+00:00 2026-06-10T00:12:49+00:00

There’s an error when I post the code: Your post appears to contain code

  • 0

There’s an error when I post the code: Your post appears to contain code that is not properly formatted as code.

Code:

<!DOCTYPE html>  <html> 
    <head> 
    <title>test</title> 

    <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a2/jquery.mobile-1.0a2.min.css" />
    <link rel="stylesheet" href="css/colors.css">
      <script src="http://code.jquery.com/jquery-1.4.4.min.js"></script>
      <script src="http://code.jquery.com/mobile/1.0a2/jquery.mobile-1.0a2.min.js"></script>

    <script>     
     // Global declarations - assignments made in $(document).ready() below
        var varHeaderView11 = null;

        var varContentView11 = null;
        var varContentView12 = null;

        var varFooterView11 = null;

    </script> 

</head>  <body> 

<!-- Page 1 starts here --> <div data-role="page" data-theme="b" id="page1">

    <!-- view 11-->
    <div data-role="header" id="headerView11" name="headerView11" data-nobackbtn="true">
        <h1>header</h1>
    </div>
    <div data-role="content" id="contentView11" name="contentView11">    

        <form id="formView11">
            <fieldset class="ui-grid-b"> 
                <div align="center" class="ui-block-a"><button onclick="button1View11()">btn1V11</button></div>
                <div align="center" class="ui-block-b"><button onclick="button2View11()">btn2V11</button></div>
                <div align="center" class="ui-block-c"><button onclick="button3View11()">btn3V11</button></div>


<!--
                <div align="center" class="ui-block-a"><a id="button1View11" name="button1View11" data-role="button" data-inline="true">btn1V11</a></div>
                <div align="center" class="ui-block-b"><a id="button2View11" name="button2View11" data-role="button" data-inline="true">btn2V11</a></div>
                <div align="center" class="ui-block-c"><a id="button3View11" name="button3View11" data-role="button" data-inline="true">btn3V11</a></div>

-->

            </fieldset>

            <div align="right"><img id="image1View11" name="image1View11" src="img/1.png"/></div>

            <div id="textField1View11" data-role="fieldcontain">
                <label for="inputText1View11" id="labelTextField1View11" name="labelTextField1View11">labelTextField1View11</label>        
                <input id="inputText1View11" name="inputText1View11" type="text" />
            </div>
            <div id="textField2View11" data-role="fieldcontain">
                <label for="inputText2View11" id="labelTextField2View11" name="labelTextField2View11">labelTextField2View11</label>        
                <input id="inputText2View11" name="inputText2View11" type="text" />
            </div>

            <fieldset class="ui-grid-a">
                <div class="ui-block-a"><a id="submitView11" name="submitView11" data-role="button" type="submit" value="submit" data-inline="true">submitView11</a></div>
                <div class="ui-block-b"><a id="resetView11" name="resetView11" data-role="button" type="reset" value="reset" data-inline="true">resetView11</a></div>
            </fieldset>

            </form>
    </div>
    <div data-role="footer" id="footerView11" name="footerView11">
                <fieldset class="ui-grid-b">
                    <div align="left" class="ui-block-a"><a id="buttonFooter1View11" name="buttonFooter1View11" data-role="button" data-inline="true">Footer1</a></div>
                    <div align="center" class="ui-block-b"><a id="buttonFooter2View11" name="buttonFooter2View11" data-role="button" data-inline="true">Footer2</a></div>
                    <div align="right" class="ui-block-c"><a id="buttonFooter3View11" name="buttonFooter3View11" data-role="button" data-inline="true">Footer3</a></div>
                </fieldset>

    </div>


    <!-- view 12-->
    <div data-role="content" id="contentView12" name="contentView12">    

            <div align="center"><img id="image1View12" name="image1View12" src="img/2.png"/></div>

    </div>


    <script>
        $(document).ready(function() {
            // Assign global variables
            varHeaderView11 = $('#headerView11');

            varContentView11 = $('#contentView11');
            varContentView12 = $('#contentView12');

            varFooterView11 = $('#footerView11');

            //set up the first view    
            hideView12();
        }); 

        //functions show and hide
        function showView11 {
            varHeaderView11.show();
            varContentView11.show();        
            varFooterView11.show();
        }
        function showView12 {
            varContentView12.show();
        }
        function hideView11 {
            varHeaderView11.hide();
            varContentView11.hide();        
            varFooterView11.hide();
        }
        function hideView12 {
            varContentView12.hide();
        }

    </script> </div>  <!-- Page1 ends here -->


</body> </html>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T00:12:51+00:00Added an answer on June 10, 2026 at 12:12 am

    The error console (CTRL+MAJ+J) is pretty clear though :

    SyntaxError: missing ( before formal parameters
    
    function showView11 {
    

    function declaration may lack a couple of characters …

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There is my code that I want to alert test once when mousemove ,
There is a moment in my app, that I need to force to show
There is a column that exists in 2 tables. In table 1, this column
There are a lot of blogs saying that a hasOwnProperty check should be used
There is a table view with three sections. The last section may contain many
There is a website called Gild.com that has different coding puzzles/challenges for users to
There is no doubt that MonoTouch is one of the great cross-compiler(s). Similarly, SenchaTouch
There is a text file with 1,000,000 lines of code floating around and Ctrl+F
There are some stdlib functions that throw errors on invalid input. For example: Prelude>
there's a drop down html element for date for the current month (January 1

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.