15,688 Topics
![]() | |
I've added a SweetAlert into an existing upload Form, where upon selecting the Submit button it successfully displayed the pop-up alert. Like so: $('#submit-btn').on('click',function(e){ e.preventDefault(); var form = $('.pt_upld_page_frm'); swal.fire({ title: "Are you sure?", type: "warning", showCancelButton: true, confirmButtonColor: "#DD6B55", confirmButtonText: "Yes, submit it!", closeOnConfirm: false }).then((result) => { if … | |
I want to display name,description and image in `GridView.` export default function NFTViewer({ }) { const [galleryList, setGalleryList] = useState([]); const metadata = []; const cardActions = []; const [data, setData] = useState() useEffect(() => { const getNFTDetails = () => { fetch("http://localhost:4000/getDetails").then(response => { return response.json() }) .then(posts => … | |
I'm trying to add something to this JS, for a successfully working submit Form: $('#upload-form form').ajaxForm({ url: '{{LINK aj/ffmpeg-submit}}?hash=' + $('.main_session').val(), beforeSend: function() { $('#submit-btn').attr('disabled', true); $('#submit-btn').val("{{LANG please_wait}}"); }, success: function(data) { if (data.status == 200) { window.location.href = data.link; } to get a message to display before the Form … | |
I have a website that have 6 videos from +500MB to +1GB i have uploaded them my other hosting which is not same as the website thinking it would not have lag. But it seems it has lag and its loading slow. What solution do i have to host my … | |
This works successfully: $wallet = $user->wallet; $upwallet = ($sell_video == 0 && $wallet >= 1 ? 0.5 : 0); $db->rawQuery("UPDATE ".T_USERS." SET `wallet` = `wallet`- '".$upwallet."' WHERE `id` = '".$video->user_id."'"); (when the sell_video amount is 0 and the wallet amount >= 1, deduct 0.5 from the wallet). Works successfully. I'd … | |
This is how I want it to work. 1) First day. It goes to all questions that are asked within last 14 days. 2) It picks each question. Then it RANDOMLY picks 25 users and clicks on "+" to request. 3) It does this for each and every questions asked … | |
**Promises syntax that I learnt:** let p = new Promise(function (resolve, reject) { let x = 20, y = 20; if (x == y) { resolve(); } else { reject(); } }) p.then(function () { console.log("that's correct"); }) .catch(function () { console.log("that's not correct"); }) I don't even understand what … | |
This php statement works successfully: if (empty($error) && $_POST['set_p_v'] == 0 && $wallet >=1) { //echo '<script type="text/javascript"> $("#myModal").modal("show")</script>'; $db->rawQuery("UPDATE ".T_USERS." SET `wallet` = `wallet` - 0.50 WHERE $wallet = $user->wallet"); } as you can see I tried to echo a modal when conditions were met, but no success. No … | |
Hello! We are getting together for a new project, to build a 2-way API connectivity tool for programmers experimenting with new forms of e-commerce, and merchants operating across a range of e-commerce platforms. We would be grateful for any programming language choosing tips. We are looking for an experienced Full-stack/API … | |
Hi everyone! I'm just begining on JS so I think my code is not very good. I'm trying to store the results of my game each time it ends. unfortunately it doesn't work well all the time. Sometimes I have exactly what I want: one line per recording, sometimes I … | |
I am trying to open a camera on a browser with javascript i have this code and it was working yesteday but when i tried today to open through mobile its saying `NotAllowedError: The request is not allowed by the user agent or the platform in the current context.` <button … | |
Why header background not changing to red and font style not changing to coiny? **index.js** import Head from 'next/head' import Image from 'next/image' export default function Home() { return ( <div className="min-h-screen h-full w-full flex flex-col bg-brand-light overflow-hidden"> <Head> <title>Create Next App</title> <meta name="description" content="Generated by create next app" /> … | |
Full-stack technology refers to the entire depth of a computer system application, and full-stack web developers are those who are capable of developing both the front end and the back end of web development. All of the features that are visible to the client, or the viewer of the site, … | |
I have been developing WordPress websites for the last five years. My skills include developing plugins and websites such as mouse tests and keyboard tests. Learning more about development interests me | |
Hi, everyone! I'm maintaining a repository. [Proxy-web-storage](https://github.com/KID-joker/proxy-web-storage), keep the type of storage value unchanged and change array and object directly. And it also supports listening to the changes and setting expires. Can you give me some suggestions? | |
How would you write this into pseudo code #include<cstdio> #include<cstdlib> #include<iostream> using namespace std; int main(int nNumberofArgs, char* pszArgs[]) //variables string var, var1; float cm, mile, kilometer, inch, meter, AU, fahrenheit, celsius, foot, quit, i; //program i = 1; while (i <= 1000000000) cout << "Enter the starting unit. For … | |
I am trying to learn some basic concepts of JS. I want to start by moving a box which is inside a box. Here is the jsFiddle ... [https://jsfiddle.net/FarrisFahad/a1Lqchj8/1/](https://jsfiddle.net/FarrisFahad/a1Lqchj8/1/) I want to move the mouse on mousedown, mousemove, and mouseup | |
I really need help and i would apreciate if someone can help me with this I need to do the same than here but with .NET, instead of node js. I never worked with .NET before. Is my first time working with tokens and APIs. So i kinda need help … | |
Hi, Hope you're all doing well. I need help with my site: https://4lolipop.com, I want to add my Instagram widget where people can click on it and land on my Instagram profile. I'm a newbie in Programming. Kindly assist. I'll be very thank full to you. | |
(Thank you Dani for approving this post!) Hi We are researchers from the University of Zurich, Switzerland, and developed a web application experiment for investigating ways to improve code review. If you have **javascript** knowledge, please help us in this **20 – 30 minutes** experiment by using the desktop version … | |
Hello all. I am trying to use four modals in codeigniter. Main page has four simple links, each of them pops up its modal. Then each modal has a form with upload image, this means main page requires four images which would be uploaded through modals. The upload form is … | |
what line of code would perform a floating text in php. Any help pls!! | |
my code have issue will show both if and else alert when key in information in web. | |
I'm learning AI techniques by building a bot to play a video game. I'm documenting my process as I go. Any advice on topics I should research? Thanks! https://www.youtube.com/watch?v=1gSMtfPpJC0  | |
What are the programming languages needed to learn to create a movie website? The movie website should also be capable to upload new movies. I have included php, javascript, and jQuery already. | |
I want to develop a social media website. So can anyone tell me the what are the programming languages needed for it? I have already included php, javascript and html. Can you suggest me with any powerful js library? | |
Basically, I have developed a Website, Now I want to upload some js files and generate a link for that. So I can use that in my local html file. Are there any websites that are capable to upload files and generate a link for it?. Please Answer. | |
How to pass the linkbutton text to the modal popup. Now Im only getting a empty popup <script type="text/javascript"> $("#linkbutton1").click(function(){ var text =$("#linkbutton1).val(); $("#modal_body").html(text); }); function openModal() { $("#myModal").modal('show'); } </script> <div> <div id="myModal" class="modal fade" role="dialog"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title"> Modal Title</h4> </div> <div class="modal-body"> … | |
It's taken me months to figure out how to show/hide certain content by days throughout the year, but now I'm stuck because the code gets too big for any browser to handle once I add every day for the entire year within the script. Is there a way I can … |
The End.