Questions tagged [html]

276131 questions
1

votes
0

answer
44

Views

how to display a pdf file as a download link from mysql without path directing way in php?

I tried to display pdf files from mysql in the webpage without any path directory. is it possible to do that? I tried this:
saisun7
1

votes
1

answer
335

Views

@page css rule alternative for safari

How can I use write alternatives for these rules in safari? I am using angularPrint directive for adding print functionality to some of my pages, which adds some helper classes to my document and also use @page directive, everything works fine in all browsers except safari, I found that these rules...
Rathma
1

votes
0

answer
51

Views

How to trigger css keyframe with Scrollmagic?

I'm looking for example to trigger CSS keyframe with Scrollmagic but I couldn't find it. Basically I need JavaScript code to trigger this keyframe with scrollmagic. .project-title-line { width: 264px; height: 4px; margin-top: 10px; background-color: rgba(235, 235, 235, 0.4); border: 0; display: bloc...
zee7
1

votes
0

answer
52

Views

How to check if FontFace prototype exists in Edge

I am using FontFace to preload fonts, it's working ok on chrome, but it stops page in Edge because FontFace is not defined in Edge. How can I check if FontFace class prototype exists ( in JavaScript) so I don't construct it in Edge? (I know FontFace prototype doesn't exist in Edge, but just wanted t...
AVEbrahimi
1

votes
1

answer
59

Views

Send data to another JavaScript file from a JavaScript file

I want to see the information of this admin in the panel when admin enters the panel. But there are more than one admin on the system. Therefore, I need to find the administrator who logs in to the system according to the mail entered from the login page. When I click submit button, I need to send t...
Engr. Arda
1

votes
0

answer
44

Views

FlexSlider images will not load on tabs

I have 2 sliders in one page without tabs they are working properly. Check my screenshot below but when I try to apply tab-pane my second slider not showing Looks like this But when my minimize then maximize the page it will show. Here's my code below HTML {lang_media_slider} {lang_media_plans}...
Carlvic Lim
1

votes
1

answer
49

Views

Carousel's image is bigger I expected

Carousel's image is bigger I expected. My Code * { margin: 0; padding: 0; } .menu { background-color: gray; width: 500px; height: 100%; float: left; } .title { color: white; font-size: 30px; margin: 0px 5px; margin-left: 40px; text-align: center; } .first { padding-top: 30px; } h...
user8817674
1

votes
0

answer
74

Views

Unable to add a class attribute to the label generated by a radio button input

I have the following configuration: # config/initializers/simple_form.rb config.item_wrapper_tag = :div config.item_wrapper_class = 'form-check' # config/initializers/simple_form_bootstrap.rb config.wrappers :vertical_radio_and_checkboxes, tag: 'div', class: 'form-group', error_class: 'has-error' do...
bitsapien
1

votes
0

answer
262

Views

Prevent Middle Click button from opening new tab in FIREFOX not working

I have the following simple code -I had a rather more sophisticated thing but this exemplifies my point-. I have the below html Click me And the following javascript code function preventOpen(event, element){ event = event || window.event; event.preventDefault(); if (event.which != 3) { element.clic...
user2237998
1

votes
0

answer
143

Views

How to design a line deleting function for Tetris game?

I am trying to build a Tetris game in javaScript and HTML. I ran into problems with my function for removing the full lines. It sort of works, but not every time and not as I expected. I am not a professional programmer, I am learning to code just for fun. My knowledge of javaScript is limited and m...
Radek John
1

votes
2

answer
62

Views

add/removeClass doesn`t work on iPhone

This works correctly on browser but doesn't work on iPhone. Also I used the var $event = ($ua.match(/(iPod|iPhone|iPad)/i)) ? 'touchstart' : 'click'; It also doesn`t work on iPhone HTML hello CSS .mod_section.active{ display:none; } .mod_section{ display:block; } JQuery function mod(){ $('.mod_secti...
Eric Lee
1

votes
0

answer
48

Views

how to set default view using angular-route-segment (not in index.html) angular js

In my MEAN application for nested views I am using angular-route-segment. Everything works fine with the nested views except for the initial default screen. my first page (index.html) contains header & footer with buttons connect & disconnect. This theme is common in all the pages. once I click conn...
Krishna Kiriti
1

votes
0

answer
1.1k

Views

Pandas Styling HTML with Style.apply [duplicate]

This question already has an answer here: How to use `style` in conjunction with the `to_html` classes on a DataFrame? 1 answer Change the color of text within a pandas dataframe html table python using styles and css 2 answers I am trying to use my highlight_diff function to compare two dataframe...
Tyler Russell
1

votes
1

answer
46

Views

How can I get ID from “ul” dynamic tag

I have the next situation. I have a button in HTML code. When I press one of the options from the button I call a function that constructs the content from other button. I have a ul tag in HTML code with a list of li tags inside. The value of this li tags are generated dynamically with a query datab...
olga fm
1

votes
0

answer
20

Views

How to check if a given HTML file is a Google Search site

I have a list of collected html sites saved using a browser plugin for history tracking. While iterating through them I want to skip all results which are Google search sites. The problem is that for most for many pages I don't have their actual URL and research was performed using Google in differe...
Mnich
1

votes
1

answer
476

Views

How can I prevent a button shrinking smaller than non-wrapping text using css?

Essentially I have a button with the word 'Delete' inside. It currently uses this css: .btn-delete { font-size: 32px; background-image: none; border: 1px solid transparent; border-radius: 15px; border-top: 0px; color: #fff; background: linear-gradient(to bottom, #ff0000, #d40000); vertical-align: mi...
Terry
1

votes
5

answer
3.3k

Views

Sum table rows and columns

I have a table and I want to allow submitting the form if and only if the total of each row must be =100 not less nor more and the total of each column must be 0; if (hasError) { disableSave(); return; } var expectedTotal = $('.total').length * 100; console.log(expectedTotal, getCurrentTotal()); if...
Learner
1

votes
1

answer
73

Views

How to get javascript object property names? [duplicate]

This question already has an answer here: Getting the object's property name 11 answers I want to create a table whose header labels are known dynamically based on data object property names Here is my code example: ob = { ** name **: 'Joe', ** age **: '22', ** country **: 'UK' } table = document.c...
MrDevIll
1

votes
0

answer
83

Views

Getting specific web page content with CSS stylesheet

I have this code which gets a specific web page content and loads it in an iframe. It works fine, unfortunately this content is in the body and doesn't come with CSS formatting, so I get an unformatted page. How can I get the stylesheet to come with the page content? Thanks in advance! var getHTML =...
Adam
1

votes
2

answer
342

Views

How can to responsive Nivo slider with content ?

I am a newbie to web development.I just tried to add Nivo slider to my content.I added that.But the problem is when I try to transfer my template to mobile devices(320px) it won't work properly.The background picture got responsiveness, but content in the slider won't be responsive.How come I fix th...
Kawsar_Ahmed
1

votes
0

answer
120

Views

Mailto line break not working on yahoo

I am having an issue with line break not working on yahoo. I have used this code %0D%0A and it work well on Gmail, Outlook, etc. but not on Yahoo. But when using it will work on yahoo but not on outlook. Does anybody here can help that would work on all email? Any help is appreciated. Thank you.
zen
1

votes
0

answer
35

Views

Embed SVG in HTML with some event-based behaviour?

I have an SVG file that I would like to embed on a website (a WordPress blog, so hopefully something that Wordpress allows). But I want the SVG to react to the user. Specifically, there is some text that I want to hide unless the user zooms in. Ideally, the SVG would be inside some viewport so that...
ddeunagomez
1

votes
0

answer
238

Views

compare date strings to json date strings

A User selects a pair of dates from two jquery-ui datepickers, when the user selects the second date both values are compared to strings stored in an external JSON file. If the dates are within the dates below external data is returned to the html page. The dates look like this: 'startDate':'01/01/2...
ernesto fernandez
1

votes
0

answer
59

Views

How do I shut off scrolling on the Instagram in-app browser?

I've created a web game, and for some reason Instagram Stories swipe ups adds padding to the bottom of the game. It operates fine in Chrome, Safari, and Firefox (both mobile and desktop), and fine on Android's Instagram in-app browser - just not iOS. How do I force no scroll on the site? I have tri...
piedpipermask
1

votes
2

answer
409

Views

click on a <a> tag with selenium c#

I am trying to click on a tag but when I am trying to access it by ID i got an error that says Unable to locate element. I am using selenium c# in unit test project. the code to make the click is the followining: IWebdriver.FindElement(By.Id('BUTTON_OPEN_SAVE_btn0_acButton')).Click(); and tag cod...
user6336440
1

votes
0

answer
357

Views

Angular 2 - Disable form control based on the value of another form control

I need help in disabling the value of a specific form control based on its value in Angular 2. The field - startDate needs to be disabled whenever the value of another field - period is 'Lifetime'. It needs to be enabled otherwise. Also, whenever the app is loaded, the default value of period is 'L...
Kaushik Rajan
1

votes
1

answer
574

Views

Camunda: Cannot resolve identifier for an exclusive gateway

I tried to use a html form for a user task in which a variable gets defined, to select a sequenzflow in the following exclusive gateway. html: Neukunde Altkunde Sequenceflows: I get this exception when executing: An error happend while submitting the task form : Cannot submit task form 713c798f-ebeb...
Ricardo Schumacher
1

votes
0

answer
44

Views

Showing auth. errors in Django in HTML

I'm new to Django. I have custom HTML form for login and sign up, so when I input wrong username or password my page just reloads. How can I put messages into HTML printing 'wrong password' or 'wrong username'? My URLs urlpatterns = [ path('login/', auth_views.login, {'template_name': 'login.html'}...
D. Make
1

votes
2

answer
128

Views

Trigger event if variable changes [duplicate]

This question already has an answer here: Listening for variable changes in JavaScript 17 answers I currently have a div which displays information such as DNS and IP address. I am trying to trigger an alert if the IP Address variable changes, so I've attempted both listening for changes to the div...
gjames
1

votes
1

answer
40

Views

how to open a document when loading a web page [duplicate]

This question already has an answer here: Javascript Excel OpenFile 1 answer I want to open a excel document while loading a web page but i don't know how. I tried this: function myFunction() { window.open('file:///D://Files/doc.xlsx'); } But it didn't work. I want to mention that it has to be done...
Simona
1

votes
3

answer
48

Views

List with icon displayed in a single row instead of multiple rows

I have a normal list with icon classes like below Search I expect each list items should appear in a row as normal behavior. But I am getting all items in a single line. I have uploaded an image for the same below Can some one help me to resolve this issue ?? My expected result will be each icons...
Arunprasanth K V
1

votes
1

answer
53

Views

html.beingform not generating appropriate url

I am using html.beingform to generate the url to post @using (Html.BeginForm('action', 'ctrl', new { id = 5, name = 'a' })) the url getting generated is but it should be generated as what is wrong with the syntax I am using?? EDIT I tried below syntax as per comments @using (Html.BeginForm('action',...
hr-tis
1

votes
1

answer
55

Views

Should I use routerLink only with anchors or is it okay to use it on other HTML elements too?

Let's say that I have a logo on my website, should I link it this way: or maybe like this: What about headlines? Post title versus Post title What is the proper way of handling this? Does it even matter? Is there any semantic value in adding HTML anchor tag if I'm using routerLink?
user3812733
1

votes
2

answer
1.9k

Views

Vertical scrollbar styling not works in Firefox browser

Code for Chrome, Opera, Safari for scrollbar as below: .scroll_bar::-webkit-scrollbar{ width: 20px; } .scroll_bar::-webkit-scrollbar-track{ -webkit-box-shadow: inset 0px 0px 6px #0067ab; border-radius: 5px; } .scroll_bar::-webkit-scrollbar-thumb{ -webkit-box-shadow: inset 0px 0px 6px #0067ab; border...
Aryan Infotech
1

votes
1

answer
508

Views

Mapbox on('load', function() shows data that should be hidden when I open the map

I have set the 'Student Comments' layer as initially hidden using a setLayoutProperty call as seen here map.on('load', function() { map.setLayoutProperty('user-data-comments', 'visibility', 'none'); map.setLayoutProperty('user-data-comments-text', 'visibility', 'none'); }); However, when I open t...
Camila Andino
1

votes
1

answer
798

Views

When I share my website URL on LinkedIn its showing an image from my website. Can I change that image?

When I share my website URL on LinkedIn, its showing an image from my website, but it's not a relevant image. Can I change the Preview Image? I already set these meta tags. Anyone please help me.
Juice
1

votes
0

answer
90

Views

CSS Box-Shadow not shown on position relative

I have this css for the outer div: #outer{ display: inline-block; width: 100%; background-color: #FFFFFF; } and this one for the inner which should give a box-shadow, but it doesn't: #inner{ margin-top: 50px; margin-bottom: 50px; width: 100%; height: 5px; float: left; position: relative; box-sha...
MauriceNino
1

votes
0

answer
100

Views

How can I make any selected text in an EditText Bold or Italic in android studio and store it into a SQLite database?

How can I make any selected text in an EditText Bold or Italic in android studio and store it into a SQLite database?
V. Tank
1

votes
0

answer
187

Views

How to display specific xml attributes from multiple xml files in HTML

My apologies if this has already been asked and answered, but after about 8 hrs of searching, I'm knackered. Displaying the attribute values of a single xml file in an HTML table is straight forward using xsl, css and Microsoft.XMLDOM. Here's where I'm stumped... the HTML table needs to display addi...
RickEEE
1

votes
1

answer
131

Views

CSS slider with link to pop up video

I'm trying to create a link to a pop up video in my css slider. I cant get the link to work. It seems like a simple task but its just not acting as a link. Any advice would be really appreciated Here is my code
user9150564

View additional questions