Why is this page "submit" Not responding?

Source: Internet
Author: User
Why is this page "submit" Not responding?
Background a page index.html












  • Website basic information













The corresponding PHP code WebAction.class.php:


Class Webaction extends Baseaction {

/**
* Display on page smarty injection
*/
Public Function index () {
$this->checkaccess (' team ');
$this->assign ("News", $this->fnews ());
$this->fnews ();
$this->assign ("Onenews", $this->fonenews ());
$this->display ();
}

/**
* Check the basic information of the website
* @return ambigous
*/
Public function Find () {
$this->checkaccess (' team ');
$m = m ("web");

$web = $m->find ();
$this->assign ("Web", $web); Assignment Data Set

$this->display ("Web/index");
}

/**
* Inquiry into the article displayed in the Help Center
* @return ambigous
*/
Public Function fonenews () {
$this->checkaccess (' team ');
$type [' id '] = $_get[' id ']? $_get[' ID ']: 1; Binary operation if there is a $_get[' id ' assignment itself does not exist for a false assignment of 1

$oneNews = M ("News")->where ($type)->select ();
return $oneNews;
}

/**
* Jump to the Add Article category page
*/
Public Function Create () {
$this->checkaccess (' team ');
$nType = new Newlistaction ();
$webType = $nType->fnewstype ();
$this->assign ("Newstype", $webType);
$this->display ("News:newsfrom");
}

Public Function Update () {

Class Webaction extends Baseaction {

Public Function index () {
$this->checkaccess (' team ');
$this->assign ("News", $this->fnews ());
$this->fnews ();
$this->assign ("Onenews", $this->fonenews ());
$this->display ();
}

Public function Find () {
$this->checkaccess (' team ');
$m = m ("web");

$web = $m->find ();
$this->assign ("Web", $web); Assignment Data Set

$this->display ("Web/index");
}

Public Function fonenews () {
$this->checkaccess (' team ');
$type [' id '] = $_get[' id ']? $_get[' ID ']: 1; Binary operation if there is a $_get[' id ' assignment itself does not exist for a false assignment of 1

$oneNews = M ("News")->where ($type)->select ();
return $oneNews;
}

Public Function Create () {
$this->checkaccess (' team ');
$nType = new Newlistaction ();
$webType = $nType->fnewstype ();
$this->assign ("Newstype", $webType);
$this->display ("News:newsfrom");
}

Public Function Update () {
$this->checkaccess (' team ');
$where [' id '] = I (' Nid ', ' ', ' trim '); Site name

$web [' webname '] = I (' name ', ' ', ' trim '); Site name
...

$add = M ("Web");
$add->create ($web)
$result = $add->where ($where)->save ($web);

if ($result) {
$this->success ("Operation succeeded!");
} else {
$this->error ("Operation failed");
}
}
}


After tracking, click "Submit", WebAction.class.php in the update () has not been executed, this is what is going on?
------to solve the idea----------------------


These two should only be one, which may cause conflict
------to solve the idea----------------------
You can see if there are any errors under the Firebug console.
------to solve the idea----------------------
Clean the cache under IE to see.
------to solve the idea----------------------
Through the Firebug tracking the URL address executed, breakpoint debugging, see what content returned.
------to solve the idea----------------------
References:
Quote: References:

Through the Firebug tracking the URL address executed, breakpoint debugging, see what content returned.


Clean the cache of IE, and it will be the same after refresh.
There are many javascipt codes in the Firebug trace, all in one line, and breakpoints cannot be traced to anything: (

"All jquery.js?v20130702" in the picture is followed by a curly brace, a little surprise.
------to solve the idea----------------------
IE can be opened debugging check
Attention:

[1,
2,
3,
]

This is the wrong wording in the low version of IE
------to solve the idea----------------------
The project probability of TP is JS conflict
  • 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.