Posts by Sora • 661 points
41 posts
-
0
votes2
answers53
viewsQ: Changing page colors with name
I made a routine that changes all colors of the page, but only works if it is by id, for example: document.getElementById("PriColor").style["background-color"] = "rgb(155,155,155)"; There’s a way I…
javascriptasked Sora 661 -
0
votes0
answers59
viewsQ: Calling a Nodemailer.js via Javascript (AJAX)
Hello, I wonder if it is possible to run a nodemailer via javascript (AJAX). Because it returns error and I can’t debug (because it’s on the server). This is the right way to call the file? Thank…
-
0
votes1
answer20
viewsQ: Storing image (input file) in characters and restoring to file again (?)
This code gets an image for input file and "transforms" into characters There is a way to reverse the situation, with the characters obtained in the console.log forming the image again (throwing the…
-
5
votes1
answer261
viewsQ: CSS: Border Radius
I’m doing a project where I’m using the border radius to make a vertical menu. I would like the Menu to have the border Radius straight, this rounded shape : And it’s actually getting this way:…
-
0
votes1
answer70
viewsQ: Javascript: Prioritize value in concatenation (.Concat)
I’m studying about the Concat and priorities The following code currently concatenates the Texts values in the field ValFin However I would like to get the priority of Field 4 (Prival04 value 1) was…
-
0
votes2
answers65
viewsQ: Javascript : How to make an Andom based on time?
Adding value to text? And how to make it stay in this format? for example: ADQ20180601513610 (with 20 characters) Example: function insertNewAdq() { var pk = document.getElementById("txtPk").style;…
javascriptasked Sora 661 -
3
votes2
answers48
viewsQ: Javascript + CSS : Doubt about Value or textContent
I made a condition that is not respecting the content of text. Follows the code: function teste() { var elements = document.getElementsByClassName("testetxt"); if (elements.value =! null) {…
-
3
votes3
answers1739
viewsQ: Cleaning Up Form Fields
I have the following encoding and would like to clear the form of all fields that have the same name. But I don’t know why you don’t clear the fields PS: What properties of input text I can use for…
-
1
votes2
answers472
viewsQ: How to make a Textbox accept only the letters S and N?
I’m studying about TextBox in C# and I have no idea how to do this function.
-
0
votes1
answer182
viewsQ: Doubt WPF C# - Setfocus on a Text and leave a button disabled
I’m having difficulty in c# because when I click a button, it has to disable a button and leave the Focus in a txt. But I don’t know how to reference an object in wpf (xaml) in the encoding file…
-
1
votes1
answer35
viewsQ: Doubleclick by duplicating img in a div with already predefined location (?)
I made a Function that plays an image in div conteudo-img double-clicking. But she plays the image in a div sequence and would like it to be in predefined places... For example, the first…
-
1
votes1
answer76
viewsQ: Javascript - Content of a TD comparing to a variable
I am making a script that clears the following 3 elements. In If the clause has to fall into the true one (I made the query through the console.log and have to fall into the true one, but it falls…
javascriptasked Sora 661 -
1
votes2
answers27
viewsQ: Copying an image from one div to another - Jscript Methods
I have an image and a div conteudo-img. When clicking on the image it has to be copied to the div conteudo-img, what methods I can use to make this copy and which one is most viable via Javascript.…
-
3
votes2
answers196
viewsQ: Javascript - Mathematical module of a value
Is there a command (or symbol) that makes the mathematical module a value? For example: var teste = |10|-|6|;
-
0
votes4
answers829
viewsQ: Javascript / Jquery - Means to remove the contents of a <TD>
How can I remove content from a td, for example this code: <table id="tblItens" width="400px"> <tr> <td>1</td> <td>2</td> <td>3</td> </tr>…
-
1
votes3
answers222
viewsQ: Getting TD value and placing it in the array - Javascript
I need to get the value of a td and place it in the array as in the following example: function finalizaCompra() { var tbl = document.getElementById("tblItens"); var produto = []; if (tbl != null) {…
-
0
votes1
answer42
viewsQ: Removing fields from a list
I have a question. I created a list and wanted to remove its elements by clicking on 'x' as in the following image (I put x by Paint): How can I do it this way? It is an attribute or is configurable…
-
3
votes1
answer294
viewsQ: CSS recognizing Javascript variables within html, is it possible?
For example, I have a script that picks up mouse coordinates: function posicaoMouse(ev){ ev.preventDefault(); var x = ev.clientX; var y = ev.clientY; console.log(x); console.log(y); } And I would…
-
1
votes2
answers352
viewsQ: When and why use :Hover and onMouserOver and onMouseOut?
I’m studying about :Hover, onMouseOver and onMouseOut. Suppose in this situation I want to change the background of an image when passing the mouse on top of her. What is the correct way to program?…
-
1
votes2
answers40
viewsQ: Javascript - Function that changes the background of the parent element
I’m having trouble making a Function. Can help me? After clicking on the checkbox or on the label, it colors only the word, I would like to color also the background of the div, I tried to make a…
-
1
votes2
answers611
viewsQ: CSS - When you click on a checkbox... paint a TD
Here’s what I’m trying to do: By clicking on a check box, she paints the background orange... I needed you to also paint the background of TD, because currently only painting the background of the…
-
0
votes2
answers217
viewsQ: Setting the color of a div in rgb
I’m doing a div, where when I click it turns orange, and when I click again, it turns white again. But I have two questions : When comparing color with rgb in part…
-
0
votes1
answer51
viewsA: Animation and Transform Rotate with Reference Point
I used Rotate.js to resolve this issue http://jqueryrotate.com
-
2
votes1
answer69
viewsQ: Javascript - Doubt when manipulating div’s values with variables
Good afternoon ! I have a question regarding the manipulation of div’s values... When dragging an image from the div fundo1 (blue) or the fundo2 (yellow) to div conteudo, would like the values…
-
1
votes2
answers100
viewsQ: Jscript - Finding the id of the previous div
Good afternoon ! I need some help to get the value of the previous div (red DIV01) What command can I use to get the result?? The previous Div is the right parent element? Excuse the ignorance.…
-
2
votes1
answer58
viewsQ: Is it possible to get the value of a div?
If in the div valor0 have a value, have I get this value in a variable to sum it for example?? In this example we have the div valor0 with value 1, I can send it to test variable? var teste =…
-
4
votes1
answer141
viewsQ: CSS + Java Script : Treating image larger than a circular div
Good morning !! Here’s what I’m trying to do: I created a Function that when clicking on the photo, sends the photo to the circular div conteudo, the problem is that if the image is larger than the…
-
2
votes4
answers281
viewsQ: CSS - How to manipulate Div’s?
I’m doing div’s and I’m having a hard time lining up div’s the way I need to, like in the following picture : But it’s getting like this : #total { background-color: red; width: 300px; height:…
-
0
votes2
answers226
viewsQ: Jscript and CSS - Rotate by running the div instead of an image
Good morning, I used a Javascript library to rotate an image by clicking on it, in a section of javascript I put what will rotate when clicking:$("#conteudo").rotate({ The problem is it’s spinning…
-
1
votes1
answer130
viewsQ: Error in reference : Variable was not defined
Because it has error in the variable if in a fiddle ( -> http://jsfiddle.net/8xwqdk71/ <- ) does not present this error? Can it be anything other than Js libraries? Because they have all been…
javascriptasked Sora 661 -
1
votes1
answer51
viewsQ: Animation and Transform Rotate with Reference Point
I’m wondering if it is possible to realize the following functionality: I did an encoding for drag and drop only in a specific area (The pink area) The red area is like droppable = false There is…
-
1
votes3
answers64
viewsQ: Making a div reappear
In the yellow div (id="conteudo") there’s the pink div (id="conteudo-interno") and an image. The button makes the yellow div is clean, but I would like everything to disappear, except the pink div…
-
0
votes1
answer475
viewsA: Drag and Drop - Blocking ondrop on a div Child
I was able to change the allowdrop to see if where the element is falling droppable=false function allowDrop(ev) { if (ev.target.getAttribute("droppable") == "false"){ ev.dataTransfer.dropEffect =…
-
0
votes1
answer475
viewsQ: Drag and Drop - Blocking ondrop on a div Child
I have a div circular (smaller and red) within a div circular (larger and blue). I would like to block drag and drop in the smaller circular area and allow only in the area blue, follow the example:…
-
0
votes1
answer622
viewsQ: Javascript Doubt - Center Image
I have a Function that puts images in the background of a circular div. I would like to center the image in the center of the circular div as in the following example: I thought I’d put a…
-
0
votes3
answers385
viewsQ: Center a circular div within another div
Good afternoon !! I’d like to make a circular div centered on a larger div, it’s focused on the left can help me?? .conteudo-externo{ width:200px; height:200px; z-index:3; background:#ff1;…
-
0
votes1
answer71
viewsA: Drag and Drop ( Drag an already dropped item )
I managed to resolve this issue by replacing the ev.target.appendChild(copyimg); for div.appendChild(copyimg); before the if.
-
3
votes3
answers527
viewsQ: if with console.log condition?
Good morning, I’m trying to make an if whose condition is the result of a console.log But I have no idea how to make the comparison because I’m a beginner in Javascript, would be more or less like…
javascriptasked Sora 661 -
3
votes1
answer225
viewsQ: Drag and Drop : When dropping image inside another image it disappears
Good afternoon, I’m making a Drag and Drop code and when dropping an image into another image, it simply disappears In the example of this site the images are correctly one on top of the others…
-
1
votes1
answer925
viewsQ: How to make a div disappear and appear with Javascript
I know there are many topics talking about "how to make a div appear and disappear with Javascript", most of them teach you how to do: document.getElementById('divaqui').style.visibility = 'hidden';…
-
0
votes1
answer71
viewsQ: Drag and Drop ( Drag an already dropped item )
Good morning!! I could use a little help on Jscript. I made a Drag and Drop code where I put a gif inside the contents div and I can move it freely. I’m just not able to do the following: When…