so i have a bootstrap carousel on my page and i’m trying to change the content of the page depending on which slide in currently showed. i have the current slide index in a javascript variable but can’t transfer the value to php. so i am now getting the value with GET but the php variable’s …
Tag: javascript
laravel get data to pass to laravel blade but in json format
I have data that I am creating a chart using d3.js. I have that part working with hard coding the data as such Where I am struggling is to get data into the javascript section of my blade template. I have tried to hardcode the following and I get an htmlspecialchars() expects parameter 1 to be string, object …
“Box Embed” type preview for Dropbox in PHP/java-script based website
i have integrated Dropbox with php based application using their API. Files are uploaded and then shared URL is stored in PHP application. Show any file preview: I did some R&D and find out …
SyntaxError: identifier starts immediately after numeric literal, str_replace variable to javascript
so i have this variable $number = “1944/UN31/KEP/2017” then i want to replace the “/” to “” so i create new variable: i can access my $number variable to js before using (in laravel blade): but when i replaced the string and the 2nd variable : i got an error in my debuger s…
How can i insert these multiple row data into mysql database
This is my html ajax and js code, it’s dynamic input field form i want to insert multiple data into mysql database following these column “pro” “des” “qty” “price” “sub_total” . “qty” and “price” used auto sum value to &…
Freeze first row and first column of table
I am trying to freeze/lock the first row and the first column of a table. I have tried giving thead position: absolute; or position: fixed; but it looks strange. I have followed some answers but I am still confused how to make it. My HTML / CSS Code : Answer Freeze First Row Freezing the first row can be done
Resize thumbnail image for mobile site
I’m making a website for mobile and for desktop, but I want images to show mobile images if loading on a mobile device. For example, I have a list of images of thumbnails of food types like: (source: whereshouldieat.ie) But I also have images where there is a mobile version: (source: whereshouldieat.ie)…
How to send data to php after validating information on a javascript file
I heard of Ajax/XMLhttprequest but im not quite sure if thats what I need to transfer the data from a javascript variable to php. The webpage is basicly a contact us page, where customers enter they …
s3 uploads audio file but it doesn’t play. How to upload audio stream to s3?
I’m trying to upload my Amazon Polly speech files to s3. They upload successfully, so no errors that I can work with but they don’t play. I have an array of objects which include lyrics which are …
Reading floats from binary file javascript
I’m trying to read floats in javascript from a binary file that is created using Java. The file is created in Java using DataOutputStream: The file is retreived by http request and read like this: dataLoaded function: Output: Expecting: The file is sent with php: It seems that somewhere there is a flaw …