Irrevocable success php. A Simple Example Using PHP and AJAX
Greetings, dear friend!
"What is success in life for you ???"
Please, think about it, stop for a minute.
Okay, now let me help you. What is not a success, I wrote in the previous mailing list. Let's discard these concepts right away.
Success is peace of mind.
Success is being happy.
Success is the realization of oneself and the disclosure of one's potential.
Success is fulfillment in life.
Success is doing what you love, which ignites you and you can do it around the clock.
Success is giving yourself to others and making the world a better place and happier other people..
Success is inextricably linked to the state of mind. Our soul came into this world to enjoy and realize itself, and we (our mind, our body, our consciousness) must support it in this. When our soul creates and realizes itself, we feel happy. When we feel and see that the creation of our soul and what we do is of great benefit to other people, we feel bliss. This is what is called success. Success is the fulfillment of life.
Any realization of the talents of the soul is possible only thanks to other people... The soul does not create for itself. She creates for others - to help them and make the lives of others fulfilled and give them a piece of her happiness. A happy person passes on a piece of his happiness to others, an unhappy person passes on his unhappiness to others. Avoid unhappy people!
If suddenly at the moment all people disappear, self-realization will become impossible - what is the point in writing books, because no one will read them, what is the point in creating new models of clothes, because no one will wear them, what is the point in building new houses, in which no one will live?
Obviously it doesn't make sense.
Here it appears the double nature of success: the soul creates and realizes itself, and also helps other people to become happier.
The most precise definition success that I could give would sound like this: success is the realization of your true talents, which make our world better, more perfect, and people happier.
I want you to deeply realize that people who live only for themselves and collect wealth only for themselves are unhappy... They collect this wealth in order to fill the spiritual void that has formed as a result of a meaningless life. But this void can only be filled with love, bringing value to other people. The soul is happy when it gives itself without excess to make this world a better place. And what is the point in all those riches that a person has collected when he passes away, because we are not durable. The soul comes to create value, to realize itself and then returns "home". If she does not create this value, but does something else, she feels bad. She feels that she has come into this world and is not doing what she wants. And the reason for this is our mind - it is blinded by "success" in the general understanding of this word. He chases after the illusory, and when he achieves this, if at all, he realizes the meaninglessness of what he has achieved.
And what is success in general understanding?
- wealth (money, material things)
- glory, power, popularity
- status
But look it all comes from the ego. A person wants to feel his own significance, but he does not understand that wealth, fame, status is an illusion. They are like sea water, which no matter how much you drink, you will never satisfy your thirst. Therefore, people all their life and chase after them. They think that I’ll earn so much money and I’ll be happy, that I’ll go to the level of income of $ 100,000 a year and then I’ll be happy, when I go on stage and sing I’ll be happy, I’ll get married, I’ll have children ... you can check it out, but I can say with 100% certainty that you will not be happy. Moreover, your level of happiness will become even lower. You move away from your calling, and realizing this, the soul becomes even more unhappy. The more wealth, fame, status you receive, the more control over life the mind takes and the further the role of the soul is pushed back. But true happiness comes from the soul!!!
Success is harmony between soul and mind. The role of reason is to to help soul to self-actualize. We are prioritizing wrong. We put the short-lived body and material things in the first place, and we put the immortal soul and inexhaustible wealth in the last place. The Bible says, "gather wealth in heaven, not earth." Our body is a vehicle for the soul... The soul is connected with the Higher Mind and only it is able to understand what is needed for this world. The universe encourages people who go their own way... Your path is the least energy-consuming, and in our world everything flows along the path of least resistance. I always say that success is a normal course of events. Failure is a deviation from the norm. If now you are not as successful as you want it, then you are not doing what you are meant to do. Soul and mind are at odds. And the more this discord, the more unhappy the person is.
But do not think that I am saying that a person does not need material things. Very much even necessary. And here's why: when a person has no money, he is forced to go to work and engage in some kind of "stupidity". A person spends 10 hours a day in order to earn money, but by doing this he does not realize himself. The chef is the person who realizes himself at the expense of you. (I say how it happens in most cases. Most people hate their jobs, but they work because they need money to survive).
Material things create comfort for the soul. Material things equip this world for the soul. It is much more pleasant for the soul to create masterpieces in places that inspire it. It is much better to paint a picture in a house by the sea than in a "cesspool". The soul needs peace and comfort in order to create. But what peace can there be if the family does not have enough money and every day the husband and wife quarrel about this.
The soul needs time to express itself. Only after some time has passed, the value created by the soul can be sold and sold hundreds, or even thousands of times more expensive than a person gets at work. But it takes time to create such value. Personally, it took me 5 months to come up with a meager income. After 8 months, my site began to generate income that a poor family could already live on. And only 17 months later, my site began to generate income, which will already replace income from a very high-paying job.
It took 17 months to replace the job. But now I'm free! I do what I love and this is just the beginning. There are no limits for my dreams - and therefore there are no limits for me. When you go about your business, your income is limited only by your imagination and nothing more. Who at work makes $ 1,000,000 a year? Yes, there may be one. But doing your own thing, even this is not a chapel.
The material is important, but only in order to satisfy the needs to live.
I'll be honest: not receiving income, it is harder to create and create masterpieces... The mind constantly says: "what you do is good, but what are we going to live for?" And this question constantly and strongly distracts from creativity. He takes away our happiness. In order to turn off this dialogue, your favorite pastime must bring money. Of course, the mind then begins to ask other questions, but how more money brings what you love, the less painful and distracting these issues become.
Often people work at work, earn money, but still have a hobby. What is a hobby?
A hobby is a hobby that does not generate income. But why not turn a hobby into a job? The happiest people are those whose hobby is work.... They are non-stop doing what they love.
Everything I talk about, about work, about money, I want to convey to you two important thoughts: 1) Soul and mind must be in harmony
2) The intangible should always come first
The focus should only be on the intangible! Material to be attached as a consequence... Here are the right priorities in life:
happiness -> health -> wealth And many people live according to the scheme
wealth-> health-> happiness
And even worse, there are people who live according to the pattern
wealth-> wealth-> wealth
No wonder they are not happy. These people have millions, but they have no friends, they have family problems. They have problems in relationships with people. Because they think that all the people who surround them are with them only because of their money and nothing else. I do not know about you, but I would not want such happiness. When the priorities in life are set correctly, wealth arises as a result. There is no point in focusing on it. High levels of happiness and health inevitably lead to high levels of income.
Material things and our wealth can only serve as an addition to our happiness. They cannot serve as a foundation. What is the foundation, we have already discussed with you above.
The set of key / value pairs that customize the request AJAX. All parameters are optional... It is allowed but not recommended to set a default value for any parameter using the $ .ajaxSetup () method.Method $ .ajax () supports the following parameters:
- "xml"- returns XML a document that can be rendered with jQuery.
- "html"- returns Html as plain text, tags
accepts(default: depends on dataType).
Type: PlainObject.
The set of key / value pairs that are sent to Accept request header. This header tells the server what kind of response the request will accept in response. Note that the value of the parameter specified in dataType(the data type that we expect from the server) is matched with the one specified in the parameter. In addition, for the correct processing of the response from the server, it is necessary in the parameter converters specify a function that returns the converted response value. For example: $ .ajax (( accepts: (mycustomtype: " application / x-some-custom-type"
}
,
// specify how to process the response
converters: ("text mycustomtype": function ( result) {
// return the transformed response value return newresult; )), // Expected data type ("mycustomtype")
dataType: "mycustomtype"));
async(default: true).
Type: Boolean.
By default, all requests are sent asynchronously, if you need to organize synchronous requests, then set this parameter to false. Please note that cross-domain requests and element, parameter dataType which matters "jsonp" do not support synchronous requests. Please note that using synchronous requests, you can temporarily block the browser by disabling any actions while the request is active.
Callback function that will be called before making the AJAX request. This function allows you to modify the jqXHR object (in jQuery 1.4.x the XMLHTTPRequest object) before it is sent. The jqXHR object is an add-on that extends the XMLHttpRequest object, the object contains many properties and methods that allow you to get more full information about the server's response, as well as the object contains Promise methods. If the function beforeSend returns false, then the AJAX request will be canceled. From version jQuery 1.5 function beforeSend will be called regardless of the request type.
cache(default: true, for dataType "script" and "jsonp" false).
Type: Boolean.
If set to false, this will cause the requested pages to not be cached by the browser. Note that false will only work correctly with HEAD and GET requests.
complete.
Type: Function (jqXHR jqXHR, String textStatus).
A function that is called when the request ends (the function is executed after AJAX events "success" or "error"). Two parameters are passed to the function: jqXHR(in jQuery 1.4.x object XMLHTTPRequest) and a line corresponding to the request status ( "success", "notmodified", "nocontent", "error", "timeout", "abort", or "parsererror"). Since jQuery 1.5, the parameter complete can take an array of functions that will be called in turn.
contents.
Type: PlainObject.
An object consisting of string / regular expression pairs that define how jQuery will parse (parse) the response depending on the content type. Added in jQuery 1.5.
contentType(default: "application / x-www-form-urlencoded; charset = UTF-8").
Type: Boolean, or String.
Determines the type of content that is specified in the request when sending data to the server. Since jQuery 1.6 it is allowed to specify the value false, in which case jQuery does not pass the field in the header Content-Type at all.
context.
Type: PlainObject.
When AJAX callbacks are executed, their execution context is the window object. Parameter context allows you to set up the execution context of a function in such a way that $ (this) will refer to a specific DOM element, or object. For example: $ .ajax (( url: "test.html", context: $ (". myClass"), // new context of function execution
success: function () ( // if the request is successful, call the function$ (this) .html ("Everything is OK"); // add text content to the element with class.myClass
}
}
);
converters
Default values:
("* text": window.String, // any type to text"text html": true, // text in html "text json": jQuery.parseJSON, // text in JSON "text xml": jQuery.parseXML // text in XML) Type: PlainObject.
An object containing the data type to convert and how to convert it. The value of each transformer is a function that returns the transformed response value. Added in jQuery 1.5.
crossDomain(default: false for requests within the same domain, true for cross-domain requests).
Type: Boolean.
If you want to make a cross-domain request while on the same domain (for example, a jsonp request), then set this parameter to true. This will allow, for example, to redirect the request to another domain from your server. Added in jQuery 1.5.
Type: PlainObject or String or Array.
Data to be sent to the server. If they are not a string, they are converted to a query string. For GET the query string will be appended to the URL. In order to prevent automatic processing, you can use the parameter processData with the value false. If data is transferred as part of an object, then it must consist of key / value pairs. If the value is an array, then jQuery serializes multiple values with the same key (depending on the value of the parameter traditional which allows us to use the traditional serialization type based on the $ .param method).
dataFilter.
Type: Function (String data, String type) => Anything.
The function is called after the successful execution of the AJAX request and allows you to process the "raw" data received from the server response. The data must be returned immediately after processing. The function takes two arguments: data- data received from the server as a string and type- the type of this data (parameter value dataType).
dataType(default: xml, json, script, or html).
Type: String.
Defines the type of data that you expect to receive from the server. If no datatype is specified, then jQuery will try to determine it based on the MIME type from the answer ( XML type of MIME will result in XML, as of jQuery 1.4 json will give an object JavaScript, script will execute the script and everything else will be returned as a string).
Basic types (the result is passed as the first argument to the callback function success):