Category : javascript

Here is my code, How we translate the Swal String into English? Best way for Translating? Thankyou in Advance. function send_message() { var message = $(‘#message’).val(); if (message == ”) { **swal(‘Veuillez √©crire un texte’);** } else { $.ajax({ url: site_url + "customer/add_message/", type: ‘POST’, data: { message: message, owner_id: ‘<?php echo $property->owner_id; ?>’, project_id: ..

Read more

We have generated stream id but when we pass stream id to getstream function then we are getting domain exception error. I have attached following code… public function index1(){ $opentok = new OpenTok($this->config->item(‘opentok_key’), $this->config->item(‘opentok_secret’)); $sessionId = "1_MX40NOTI2NH5-MTYzMjQ4MDI5MDY1Nn5tNTg0aHpSRjdoTTdDb1pHUDNKYUZuSGR-fg"; $streamId = "cf91b5ac-f995-4f77-9c5a-23cf14325720"; // print_r($streamId); exit(); $stream = $opentok->getStream($sessionId, $streamId); // print_r($stream); exit(); // // Stream properties // ..

Read more

I’ve a carousel on my website, that works perfectly on hardcoding it. This is what the code looks like: <div class="w-full flex justify-center"> <div class="gallery js-flickity" data-flickity-options='{ "wrapAround": true }’ > <div class="gallery-cell"> <div class="w-full flex justify-center"> <img src="./img/sidenav-1/clients-01.png" class="client-image"/> </div> </div> <div class="gallery-cell"> <div class="w-full flex justify-center"> <img src="./img/sidenav-1/clients-02.jpeg" class="client-image" /> </div> </div> </div> ..

Read more

I’m working on a FB type project and would like help from anyone who can show me how to add a video player I am in a course making into it. I also need advice on how to create additional php functions such as ‘edit’ and automatic safe content filtering for this site as I ..

Read more