« first day (3782 days earlier)      last day (1170 days later) » 

4:14 AM
  <ion-row align-items-center>
            <ion-col col-md-3 col-12>
              <ion-label color="basic" stacked>Name</ion-label>
            </ion-col>
            <ion-col col-md-9 col-12>
              <ion-input type="text" formControlName="signin_sec1_signin_1" name="name"></ion-input>
            </ion-col>
          </ion-row>
i m using this code for a form, but the text field that should appear next to label is not coming
 
5:02 AM
does any one know about the Socket.io?
 
@MaitraySuthar Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
 
7 hours later…
12:14 PM
|| mdn disable()
 
TIL
 
1:10 PM
<ion-input type="text" formControlName="signin_sec1_signin_1" name="name"></ion-input>
if i remove formControlName then the app works and loads this page but does not show the ion-input field
 
1:37 PM
In Angular, i've created a function.ts file which includes random functions that handles stuff, now i want to use a service there, but i can't inject it (because no constructor). Is there another way to use a service there?
 
 
1 hour later…
2:49 PM
afternoon all, i'm hoping someone help me quickly with regards to Knex and using it as a query builder. I have this: const builder = db<User>(tableName); and i am conditionally adding stuff to builder (in terms of where) but i cant seem to figure out how to then execute the query. I'm sure i'm missing something super simple and i've had a brain fart.
 
3:05 PM
@Andy devhints.io/knex select with .then((rows) => ...), updat with .update({...})
 
3:15 PM
ah, so i can just do something like: builder.where(); builder.where(); builder.then() and it'll execute?
infact, just tried that and yep, that's how it works.
thanks, i was having a super brain fart
 
happens :3
 
 
2 hours later…
5:19 PM
@KarelG it';s a weird function: it disables the active tab - so if you tab out it isn't disabled anymore.
Cannot think honestly of a good use nowadays.
 
5:41 PM
CDVPlugin class APPPrinter (pluginName: printer) does not exist.
Error: Cordova Plugin mapping not found
 
Does it make any sense to try and minify/gzip/compress POST payloads coming from the client? - Does the browser do this already?
 
printer plugin is installed and added to module.ts
 
Hi guys I have I question I’m new in angular and I don’t understand how to load a not globally third js. It’s better load it in angular.json( but it’s globally and it will download even if I didn’t use it in all places) or load in component with require node js because I use only in one component?
 
@FabioLaGanga Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
6:01 PM
My question is to understand the best way and performance to do it
 
6:53 PM
Hi guys, I am having some struggles in trying to convey google what I am trying to achieve. If you can can understand what I am trying to say a help would be appreciated
I am trying to make animations every time the user enters a certain div, using GSAP. something like in this site wildsouls.gr/en. How can I detect if the user has entered into a div with javascript?
 
 
7:43 PM
@RifkyNiyas what a wild mix.. the site you mention seems to use more css animations like its described here, in javascript you'd probably listen for mouse events on the div like this
 
8:10 PM
o/
 
 
1 hour later…
🚽
 
appropriate
 
posted on February 22, 2021 by Srinivas Sista

The Stable channel has been updated to 88.0.4324.190 for Windows, and 88.0.4324.192 for Mac which will roll out over the coming days/weeks. A full list of changes in this build is available in the log. Interested in switching release channels?  Find out how here. If you find a new issue, please let us know by filing a bug. The community help forum is also a great place to reach out for he

 
9:36 PM
> is it possible to do this thing that the code i'm providing does?
 
10:05 PM
Hi
 
@gbengaogunbule Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
My question is on React native and expo-sqlite
Am unable to insert new record into db table
note that the data that needs to be inserted into the db table is hand coded here
I used the componentDidMount() to create the table
componentDidMount() {
    db.transaction((tx) => {
      tx.executeSql(
        'CREATE TABLE IF NOT EXISTS Student (studentId INTEGER PRIMARY KEY AUTOINCREMENT, firstname VARCHAR, lastname VARCHAR, middlename VARCHAR, phone VARCHAR, sex VARCHAR, matricNo VARCHAR, email VARCHAR, password VARCHAR, course VARCHAR)'
      );
    });
  }
and use the saveStudent to insert the record
saveStudent = () => {
    db.transaction((tx) => {
      'INSERT INTO Student (firstname, lastname, middlename, phoneNo, email, course, password, sex, matric) VALUES (?, ?, ?, ?, ?, ?, ?, ? , ?)',
        [
          'firstname',
          'lastname',
          'middlename',
          'phoneNo',
          'email',
          'course',
          'password',
          'sex',
          'matric',
        ];

      tx.executeSql('select * from Student', [], (_, { rows }) =>
        alert(JSON.stringify(rows)) // Alert shows that nothing is inserted into the database table
it is not inserting the handcoded data
and it isn't displaying any error
 
is it just me, or, is there something missing inside of the saveStudent transaction
{'the sql',[an,array]; tx.executeSql('moresql',[],cb); }
the first two pieces, 'the sql',[an,array], seem to be freefloating
 
@KevinB Actually am new in sqlite and react as a whole
 
i'm not familiar with react native or expo-sqlite, but I presume this is javascript, and that's not normal javascript
given the code, i'd expect that bit to be within an executeSql call
similar to the tx.executeSql that comes after it
 
10:20 PM
@gbengaogunbule Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. You have 25 seconds to edit and format your message properly before it will be removed. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.
For posting large code blocks, use a paste site like like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
1 message moved to Trash can
 
:51649735 db.transaction((tx) => {
      tx.executeSql('INSERT INTO Student (firstname, lastname, middlename, phoneNo, email, course, password, sex, matric) VALUES (?, ?, ?, ?, ?, ?, ?, ? , ?)',
        [
          'firstname',
          'lastname',
          'middlename',
          'phoneNo',
          'email',
          'course',
          'password',
          'sex',
          'matric',
        ];),
Something like this?
 
sorta
don't need the ; in there
or the comma at the end
and i'm not sure about the callback or the timining of the two statements
javascript being asynchronous etc
 
@KevinB it could then be in an aysnc/await?
 
err, well, those calls being asynchonous anyways
not necessarily
async/await are for promises
these don't appear to be, but again i'm not faimilar with that library
 
@KevinB Jesus Christ. Okay sire. let me try this first
 

« first day (3782 days earlier)      last day (1170 days later) »