Jump to content
php.lv forumi

ergocom

Reģistrētie lietotāji
  • Posts

    19
  • Joined

  • Last visited

Posts posted by ergocom

  1. Man patika react . 

    Domaju no Ember js pariet uz react plus Backbone.

    Vai kad izmanto React un backbone kopa.

     

    pimers 

    <!DOCTYPE html>
    <html>
      <head>
        <script src="build/react.js"></script>
        <script src="build/JSXTransformer.js"></script>
         <script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
         <script src="https://cdnjs.cloudflare.com/ajax/libs/marked/0.3.2/marked.min.js"></script>
         <style>
             .comment{
                 background: goldenrod;
             }
             input{
                 display: block;
             }
             .wl{
                 width: 400px;
                  float: left;
             }
              .wr{
                 width: 300px;
                 float: left;
                 margin-left: 10px;    
             }
         </style>
      </head>
      <body>
          <div id="content"  class="wl"></div>
           <div id="content2"  class="wr"></div>
          <!--<script type="text/jsx" src="src/app.js"></script>-->
         
          <script type="text/jsx">
              
              People = Backbone.Model.extend({
            initialize: function(){
              
            },
        });
        
           var person = new People();
         
        
          var User = React.createClass({
             
            
        render:function(){
            return ( <p>
                    <h3>{this.props.data.get('age')} </h3>
                    {this.props.data.get('name') }
                    </p>);
        }
        });
        
         var UserForm = React.createClass({
        
       handleSubmit: function(e) {
        e.preventDefault();
        var name= React.findDOMNode(this.refs.name).value.trim();
        var age= React.findDOMNode(this.refs.age).value.trim();
        if (!name && !age) {
          return;
        }
        // to server
        this.props.onUserSubmit({name: name,age:parseInt(age,10)});
       
        
        React.findDOMNode(this.refs.name).value = '';
        React.findDOMNode(this.refs.age).value = '';
        return;
      },
    
      render: function() {
        return (
          <div className="UsertForm">
            <form className="UserForm" onSubmit={this.handleSubmit}>
            <input type="text" placeholder="Your name" ref="name"  />
            <input type="text" placeholder="Your age" ref="age"  />
            <input type="submit" value="Post" />
          </form>
          </div>
        );
      }
    });
        
        
     
        
      
              var Facebook = React.createClass({
                  getInitialState:function(){
              return {data:person};
            },
            
            load:function(){
               
                   
                   this.setState({data:person});
                       
                  
               
            },
            handleAdd:function(user){
               
                 person.set(user);
            },
            
            componentDidMount: function() {
        this.load();
       setInterval(this.load, this.props.time);
        console.log(this.state.data.get('name'))
      },
                  render:function(){
                      return(
                           <div>
                          <User data={this.state.data} /> 
                            <UserForm button="Add" onUserSubmit={this.handleAdd} />  
                           </div>
                          
                    );
                  }
              });
              React.render(<Facebook url="" time={1000}/>,document.getElementById('content2'));
          </script>
          <script src="http://ajax.cdnjs.com/ajax/libs/underscore.js/1.1.4/underscore-min.js"></script>
        <script src="http://ajax.cdnjs.com/ajax/libs/backbone.js/0.3.3/backbone-min.js"></script>
      </body>
    </html>
    
    
  2. By default in Laravel 5.0, Html and Form are not embedded anymore.

    Add the following lines in the require section of composer.json file and run composer update "illuminate/html": "5.*"

    Register the service provider in config/app.php by adding the following value into the providers array:

    'Illuminate\Html\HtmlServiceProvider'

    Register facades by adding these two lines in the aliases array:

    'Form'=> 'Illuminate\Html\FormFacade', 'HTML'=> 'Illuminate\Html\HtmlFacade'

    No form in box default :(

    Yii2 aizvēsturiska miskaste, Joomla huiņa. 

     

    Varbut pirma Yii versija?

  3. This is an excellent opportunity for a web developer to work with a new British company who are opening offices in Riga. We are building web-based applications focused for the UK market in a variety of sectors including financial, sports and real estate. The role is for someone who enjoys working on new projects within a start-up environment who is also looking to grow with us as an organisation. We will be holding open interviews in Riga on the 7th May 2015 at 7pm. Should you wish to attend please email us for the venue details

    Responsibilities

    Job responsibilities include:

    • Leading the design of various web-based applications.
    • Interacting with other developers and working throughout the project lifecycle to deliver finished products within set timescales.
    • Maintaining and supporting applications and developing extensions.
    Requirements

    Essential skills:

    • Proven experience as a design lead within a professional / commercial environment.
    • Expert on UI / UX web-based development.
    • Strong experience of: JavaScript, HTML5, CSS3.
    • Strong command of cross-browser and cross-device (desktop, mobile, tablet) development techniques.
    • Ability to communicate in English.

    Beneficial skills:

    • Experience of: AJAX, SEO
    • Mobile app development. We offer
    • This is a permanent job opportunity offering a competitive salary and the opportunity to grow with us as a company as we take on some exciting new projects. If you are interested and match the skills required, please email us your CV. This is a direct hire, not through an agency.

    Additional information
    Deadline for application:
    May 10th, 2015
    Location:
    Riga
    Salary:
    from 700 up to 2000 EUR + bonuses
    Contact person:
    Ray Ramnath
    Contact phone:
    +44 771 9734147

     

  4. Biju pirmo  reizi Python un Wordpress  sapulce  Techhub.

     

    zel gan ka 10 gadi atpakal nebija tadu vietu ka Techhub.

     

    Vai php.lv ir kaut kadi  pasakumi ?

×
×
  • Create New...