Posts by Daniel • 345 points
20 posts
-
0
votes3
answers138
viewsA: How to copy to clipboard values of multiple <span> elements simultaneously with Javascript
This alternative: function copiar() { window.getSelection().removeAllRanges(range); const element = document.querySelectorAll(".nomesobrenome"); var range = document.createRange();…
javascriptanswered Daniel 345 -
-1
votes3
answers138
viewsA: How to copy to clipboard values of multiple <span> elements simultaneously with Javascript
function copiarSPAN() { const span = document.querySelectorAll('span'); const range = new Range(); range.setStartBefore(span[1]); range.setEndAfter(span[2]); const selection…
javascriptanswered Daniel 345 -
0
votes3
answers138
viewsQ: How to copy to clipboard values of multiple <span> elements simultaneously with Javascript
To copy the value of a span element whose ID is equal to "name", after clicking a button, I am doing so, for example: function copiar() { const element = document.getElementById('nome'); var range =…
javascriptasked Daniel 345 -
1
votes1
answer38
viewsQ: When loading page, open first tab with results
I have five tabs, and each one displays or not the result of a query in the bank. <div class="container"> <ul class="nav nav-tabs"> <li class="active"> <a data-toggle="tab"…
-
2
votes1
answer93
viewsQ: Alternative to IF and Else in a specific problem
PROBLEM I have stored in the database five types of data sets, different from each other. Imagine, to illustrate, that this data set is details of five different fruits, for example, bananas,…
-
0
votes1
answer893
viewsQ: Separate numbers and words
I have a database in excel where in the row/column I have dates and words. Inclusive, with dates before 1900. And in some instances, only the four-digit year. Example: "A1" 20-07-1882 Daniel or "A2"…
-
3
votes2
answers428
viewsQ: Text with line break
I pass some product instructions for an external charge service (website). On the screen of this site, the past messages are in the "description" field, inside an element h3, which seems to have 25…
-
1
votes1
answer62
viewsQ: Linkbutton with Eval Listview Asp.net
I want to do this <%# Eval("campo1").ToString() == "nada consta" ? "nada consta" : Eval("campo1")%> within the linkButton <asp:LinkButton ID="LinkButton1" runat="server" PostBackUrl=…
-
1
votes0
answers64
viewsQ: Get a value from the column of a Listview Asp c# by clicking on the link a
I want to get and move to another page a value from the listview column. The Listview fields: ID: 01; Name: Daniel; Field: field; <%# Eval("campo").ToString() == "nada consta" ? "nada consta" :…
-
2
votes1
answer107
viewsQ: Animate fa fa-Angle-double-down
Hello, I’m trying to cheer up this "guy" here: fa fa-angle-double-down because, many users don’t realize that I want it to be clicked to collapse more Infos. If it were any other guy, I’d do it like…
bootstrap-glyphiconsasked Daniel 345 -
3
votes2
answers446
viewsQ: Restrict access to only one page in the application, leaving the rest free
I would like to restrict access by requesting login to only one page in my application. In webconfig I put so, but obviously this way requires authentication on all pages of the application.…
-
0
votes1
answer76
viewsQ: System.Drawing Image Class unavailability
This class is not available. System.Drawing.Image; I use Vs 2013 and Netframework 4.5.2 and the dll system.Drawing v.4.0 I already added the references and already imported a "new" dll and is not…
-
0
votes1
answer918
views -
1
votes1
answer923
viewsQ: SQL query to return only if capitalized
I would like to make a query in a column and that the return is only the uppercase words that correspond to the searched criteria (user input), no matter if the criterion was typed in uppercase or…
-
0
votes0
answers153
viewsQ: Using IF with Eval Asp.net
<%# Eval("filiacao").ToString() == "nada consta" ? "nada consta" : "+infos" %> I want "+Infos" to be a link. Any idea?
-
4
votes3
answers2308
viewsQ: Format double output with dot instead of comma
I have a collection of coordinates to popular the Peater, with city name, latitude and longitude. .aspx <form id="form1" runat="server"> <div id="repetidor"> var markers = […
-
0
votes1
answer142
viewsQ: Hiperlink + Eval + navigateURL
I would like to create a link on the listview line to navigate to a url when clicked. The "city" field has to complete the url so that the direction is done correctly. <%#Eval("cidade")%>…
-
0
votes1
answer268
viewsQ: Import HTML table based on a URL and fill a datatable
string htmlCode = ""; using (WebClient client = new WebClient()) { client.Headers.Add(HttpRequestHeader.UserAgent, "AvoidError"); htmlCode = client.DownloadString("http://www.site.html"); }…
-
1
votes1
answer430
viewsQ: By clicking (entering) on a page move the scroll bar automatically to a specific element without clicking anything
I was able to do it by clicking on some link etc, but I would like when entering a page the vertical scroll bar of the browser to descend to a specific element, without having to click on anything.…
-
1
votes2
answers4175
viewsQ: By clicking the site menu, move the scroll bar to a specific point slowly
I would like to move the scroll bar to a specific point of the page by clicking on the site menu. I managed to do with anchors. jQuery(document).ready(function($) {…