Using Ajax+jquery to implement front-end received data on the console display + Simple home design with bootstrap plugin implementation Picture Carousel

Source: Internet
Author: User
Tags email account

1. Data that implements the front-end input is displayed on the console
The previous article is to solve the front-end input information on the Cygwin display, this time to the foreground can see the data, because the database inserted less data, so write the statement over and over the words, emmm Of course, the implementation of a non-reliable, at the front desk can also see the user password function is this meaning HHHH
In register is the code of the Registration Interface section:

<script> $ (' #submit '). On ("Click",function () {varA = $ (' #login input[name= "username"]) [0]if (A.Value.Length = =0) {alert (' Email account not entered! ‘)ReturnFalse} var p = $ (' #login input[name= "password"]) [0]if (p.value. length = = 0) {alert (return false} console. log (a.value) Console.log (P.value) $.ajax ({url:  '/', type: Span class= "hljs-string" > ' POST ', data: {username: a.value, Password:p.value}, DataType:  ' JSON '}). Success (function (res) {console. Log (RES)})}) </script>            

Here I also made a very embarrassing mistake, because the HTML base is too weak, in the # call the login tag when you write a run found always request error urgent straight sweating, and then know to be in the user input user name and password part of the id=login tag surrounded to call it, Also, you know the attributes of the DIV tag: ID and name, and the results are displayed on the console:

2. Registration and login page finished the following is to do a homepage, see the Novice Tutorial home page layout, with the table label simple cloth, after may still change, I think it is ugly ~ ~

HHhH I just have the guts .
There's two bucks on it. Sign in and sign up tomorrow do a little more
3.bootstrap Plugin for picture carousel

 <DivId="Carousel-example-generic"class="Carousel Slide"Data-ride="Carousel" ><!--indicators--<Olclass="Carousel-indicators" ><Lidata-target="#carousel-example-generic"data-slide-to="0"class="Active" ></Li><Lidata-target="#carousel-example-generic"data-slide-to="1" ></Li><Lidata-target="#carousel-example-generic"data-slide-to="2" ></Li></Ol><!--Wrapper for slides--<Divclass="Carousel-inner"role="ListBox" ><Divclass="Item Active" ><ImgSrc="..."alt="..." ><Divclass="Carousel-caption" > ...</Div></Div><Divclass="Item" ><ImgSrc="..."alt="..." ><Divclass="Carousel-caption" > ...</Div></Div> ...</Div>--<!--Controls--<Aclass="Left Carousel-control"href="#carousel-example-generic"role="Button"Data-slide="Prev" ><Spanclass="Glyphicon Glyphicon-chevron-left"aria-hidden="True" ></Span><Spanclass="Sr-only" >previous</Span></A><Aclass="Right Carousel-control"href= "#carousel-example-generic" role=  "button" data-slide= "Next" > " Span class= "Hljs-tag" ><span class=  "Glyphicon glyphicon-chevron-right" aria-hidden= "true" ></span>  <span class= "sr-only" >Next </span> </ a> </div>    

Put the desired picture in the folder, before the static can be glued on the back of each picture path, you can.
4. Each run has an ICO reminder 404 looked at a good awkward to find a JPG format with the online converter to the ICO format, after the ICO format of the picture in the static directory and then in the head tag written in the following statement, OK;

<link rel="shortcut icon" href="../static/bitbug_favicon.ico"> 

Today's summary is here, there is a front desk displayed on the database has not been understood, crying ...

Using Ajax+jquery to implement front-end received data on the console display + Simple home design with bootstrap plugin implementation Picture Carousel

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.