Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [web]

Do not use this tag. For questions related to an aspect of the world wide web, use a more specific tag for it, such as [uri], [html], [http] or [w3c].

web
53 votes
8 answers
49k views

How to make ng-bind-html compile angularjs code

I am working with angularjs 1.2.0-rc.3. I'd like to include html code into a template dynamically. For that I use in the controller : html = "<div>hello</div>"; $scope.unicTabContent = $...
Clement Roblot's user avatar
31 votes
1 answer
16k views

JSON-LD Schema.org: Multiple video/image page

I can't figure out how you would define a bunch of videos on the same page. i.e. a search page. Let's say you've a site that returns 50 different videos. Then how are you supposed to define this with ...
KaekeaSchmear's user avatar
21 votes
3 answers
2k views

When to use a Var instead of a function?

I am going through the book Web Development with Clojure and it tells me to pass the handler (defined bellow) as a Var object instead of as the function itself, since the function can then change ...
Maurex's user avatar
  • 339
1 vote
3 answers
9k views

Scraping Google Finance (BeautifulSoup)

I'm trying to scrape Google Finance, and get the "Related Stocks" table, which has id "cc-table" and class "gf-table" based on the webpage inspector in Chrome. (Sample Link: https://www.google.com/...
user399034's user avatar
3 votes
1 answer
1k views

Scroll Function In Flutter Web

I'm still new to Flutter Web. I have 3 lines in my flutter web, the first line is the welcome message, the second line is a product and the last is contact, to see those lines user needs to do a ...
Zeke's user avatar
  • 117
38 votes
1 answer
13k views

What is happening when I have two CSP (Content Security Policies) policies - header & meta?

Question is regarding having CSP served twice: What's the behavior if there is one policy served through the Content-Security-Policy HTTP response header and also another policy specified with the &...
Jurosh's user avatar
  • 7,550
5 votes
1 answer
8k views

How to redirect the user back to the home page using FastAPI, after submitting an HTML form?

I have a page with a table of students. I added a button that allows you to add a new row to the table. To do this, I redirect the user to a page with input forms. The problem is that after submitting ...
Bilbab's user avatar
  • 65
30 votes
3 answers
143k views

What are the ways to prevent users to take screenshot of a webpage? [duplicate]

Possible Duplicate: How do i prevent from printscreen of my webpage? I want to prevent users from taking screen shots of a web-page. What should be the code I have to place in that .html file? ...
Debadyuti Maiti's user avatar
0 votes
1 answer
4k views

Beautiful Soup 4 find_all don't find links that Beautiful Soup 3 finds

I noticed a really annoying bug: BeautifulSoup4 (package: bs4) often finds less tags than the previous version (package: BeautifulSoup). Here's a reproductible instance of that issue: import ...
halflings's user avatar
  • 1,538
5 votes
1 answer
11k views

How to download a file using ReactJS with Axios in the frontend and FastAPI in the backend?

I am trying to create a docx file and send it to the frontend client app, so that it can be downloaded to the user's local machine. I am using FastAPI for the backend. I am using python-docx library ...
Ahmad Wehbe's user avatar
2 votes
2 answers
15k views

Read and Write file on streamingAssetsPath

This is how i read my textfile in android. #if UNITY_ANDROID string full_path = string.Format("{0}/{1}",Application.streamingAssetsPath, path_with_extention_under_streaming_assets_folder); //...
NoobProgrammer's user avatar
40 votes
2 answers
39k views

Creating common controller functions

How do I create some sort of utils bundle that would be accessible from all my controllers? I have this route code in my main module: 'use strict'; angular.module('lpConnect', []). config(['$...
Shlomi Schwartz's user avatar
32 votes
6 answers
67k views

Django cannot find static files. Need a second pair of eyes, I'm going crazy

Django will not serve my static files. Here's the error returned: [13/Jun/2014 06:12:09] "GET /refund/ HTTP/1.1" 200 2927 [13/Jun/2014 06:12:09] "GET /static/css/bootstrap.min.css HTTP/1.1" 404 1667 ...
CowardlyFrench's user avatar
32 votes
7 answers
38k views

Why scripts at the end of body tag

I know this question was asked many times, but I haven't found answer. So why its recommended to include scripts at the end of body tag for better rendering? From Udacity course https://www.udacity....
Artem Svirskyi's user avatar
24 votes
4 answers
60k views

How to include javaScript file in xslt

How can I include/import javaScript file/libary in xslt file.
jasin_89's user avatar
  • 2,003

15 30 50 per page
1
2 3 4 5
146