Posts by Josimara • 1,965 points
59 posts
-
3
votes1
answer106
viewsQ: Vue NUXT.JS, multiplies functions in asyncData
I’m a beginner in Vue with Nuxt, wanted to understand what the problem in this code that only the first function works: async asyncData () { const {data} = await axios.get('/api/skills/view') return…
-
0
votes2
answers61
viewsQ: Catch value in Javascript/Jquery loop
How can I print the value of each alt in the for? <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <div class="pai"> <div…
-
7
votes3
answers1856
viewsQ: How do NOT differentiate upper and lower case with index?
I have the following function: var name = $(".infoname").text(); if(name.indexOf("Carro")!=-1) { alert("existe"); } else { alert("não existe"); } How can I make for the indexOf do not differentiate…
javascriptasked Josimara 1,965 -
-15
votes2
answers128
viewsQ: Adjust the value of cents
I have a variable with the following information: 100.3 What better alternative to make 100.3 to 100.03?
-
3
votes2
answers65
viewsQ: Insert variable in jquery Animate value
I’m trying to insert this value in scrollTop but it’s not returning, some problem? var top = $('.sku').offset().top; $(window).animate({ scrollTop: top }, 500)
-
1
votes1
answer83
viewsQ: replace javascript do not differentiate uppercase or lowercase
What alternative can I use to not differentiate between upper and lower case? location.replace('O=OrderDesc&', '')
javascriptasked Josimara 1,965 -
1
votes3
answers790
viewsQ: Capture javascript array element
Hello, how can I capture the name maria of id 2? listform: [ { id: "1", nome: "juana" }, { id: "2" nome: "maria" }, { id: "3" nome: "carlos" } ]…
javascriptasked Josimara 1,965 -
2
votes3
answers720
viewsQ: Separating text with Javascript
I have a string and need to separate the name of the street, neighborhood, city and state. string: Rua tal Muniz, 124 - ramones, Sapucaia - SP How can I do it using Javascript? (Can be a solution…
javascriptasked Josimara 1,965 -
0
votes0
answers44
viewsQ: Doubt about variable cookies and JS
You can create a variable in javascript or jquery and store cookies in it for a certain time X?
-
0
votes1
answer67
viewsQ: Error in serialize jquery
var Dados = {}; Dados.email = jQuery("#email").val(); Dados.nome= jQuery("#nome").val(); var urlparams = Dados.serialize(); My console returns Dados.serialize is not a Function there is some error…
-
0
votes1
answer2173
viewsQ: Take last array object
How can I always catch the last object of the array at the moment I’m using the following function but only takes the first one. var IDs = arrayIds[0].id; [ { id: '1', }, { id: '2', }, { id: '3', }…
javascriptasked Josimara 1,965 -
0
votes3
answers81
viewsQ: Hide text between javascript keys
How can I hide a text between keys in my div Ex: <div> Hello {World} </div>
-
5
votes2
answers2049
viewsQ: Sort CSS DIV positioning
Is there any chance I could position the .divdois above the .divum only with CSS without having to change the HTML position? <style> .divum { width: 100%; height: 200px; background: black; }…
-
2
votes3
answers32
viewsQ: Jquery . text printing only once
$.getScript("func2.js", function() { $(".teste1").text("1"); $(".teste2").text("2"); }); <div class="teste1" style="color: red"><div> <div class="teste2"><div> 'Cause he only…
-
0
votes2
answers226
viewsQ: Form action without appearing name
How can I send this action only with link+valueInput example http://google.com/test When giving the Submit it returns https://www.google.com/? search=test <form action="http://google.com">…
-
1
votes2
answers460
viewsQ: Hide Div Jquery
How can I do to if there is value occur a None display on all Divs with car? <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script> <script>…
-
0
votes3
answers42
viewsQ: Doubt about standard JS code
Hello, I wanted to understand why this javascript code follows this standardization, I took a project and realized that all js files follow this pattern var projeto = { methods: { funcao1:…
javascriptasked Josimara 1,965 -
0
votes1
answer108
viewsQ: Replace text with JS in a given URL
Hello how can I replace some part of my link with JS example https://meusite.com.br/arquivos/ids/785837-90-90/arquivo I need to trade the 2 "90" for "160"…
javascriptasked Josimara 1,965 -
3
votes1
answer37
viewsQ: Attribute with 2 words does not take CSS
Hello, because this attribute using 2 words does not catch, and what I use only 1 word catches <li data-nome="testejunto">Teste</li> Catching example: .item[data-nome=testejunto] {…
-
-1
votes2
answers83
viewsQ: 3 Div’s 100%, 30% each, one on the left another in the middle and one on the right
Hello I have a problem in this basic CSS, I have a father div 100%, I need the first son to stick to the left the other in the middle and the other on the right. I tried something with Nth-Child but…
-
2
votes3
answers7670
viewsQ: Check if element exists inside another element with Javascript
Is there any way I can check if one structure exists inside another with Javascript? For example: check whether the div "child" is within the "father" to perform a function: <div id="pai">…
javascriptasked Josimara 1,965 -
5
votes2
answers109
viewsQ: Best way to get text + HTML from an array
Function I am using: $(".push-description-top").each(function() { var text = $(this).text(); var carac = text.length; if (carac > 0) { var query = text.split(" ", 14); query.push('<a…
-
3
votes0
answers49
viewsQ: SEO, what are the odds that Googlebot will read this Rich Snippets code?
What are the odds of Googlebot read that code Rich Snippets? Tips on how to improve are welcome... I can only use Front-END, if you hadn’t already used one PHP to solve this. <script…
-
1
votes1
answer486
viewsQ: Grab Object in JSON
How can I take only the property "name":"josimara" in that code ajax, I’m new in this area, thank you for your help. <script src="http://www.habbid.com.br/assets/js/jquery-1.9.1.js"…
-
0
votes1
answer210
viewsQ: Reading in JSON file generating error
I’m trying to make a read on JSON, and it turns out what I wish on a div but my console is returned the following error, XMLHttpRequest cannot load JSON file:…
-
0
votes1
answer256
viewsQ: Jquery attr function does not work
I created the attr function in jquery but this does not take what would be the reason? <script src="https://code.jquery.com/jquery-1.11.3.js"></script> <script> $( "#teste" ).attr(…
-
0
votes3
answers796
viewsQ: Error calling 2 javascript functions at the same time
Hello, I need to call these two separate functions as this only one code works as I do for both work? <script type="text/javascript"> window.onload = function() { if ('a' == 'a') {…
javascriptasked Josimara 1,965 -
0
votes0
answers463
viewsQ: Phonegap + Iframe
I want to start using Phonegap and I wanted to know if you can use an Iframe within the APP to open a web page. If anyone knows any other way to do it will be helping me, thank you.
-
1
votes1
answer60
viewsQ: Function imagecreatefromgif does not take
I’m trying to use this function but I don’t know if I’m using it the right way <?php header("Content-Type: image/png"); ?> <?php header("Content-Type: image/GIF"); ?> <?php $img =…
-
0
votes1
answer776
viewsQ: .htaccess - Special character friendly urls
I have the following line: RewriteRule ^usuario\/([a-z,0-9,A-Z,._-]+)?$ index.php?pg=usuarios&usuario=$1 I needed him to accept the characters @ : = ! ? How can I do?…
-
3
votes2
answers617
viewsQ: addslashes is the basic for security?
I have a site with login system, where there is a forum with comments. I wondered if the addslashes function would be at least basic to prevent me from malicious code, such as page redirection, sql…
-
2
votes0
answers49
viewsQ: Style Placeholder Text in a particular div or input
How can I determine where the style will be using the function? ::-webkit-input-placeholder { color: red; } Example have 4 input with different placeholder formatting.…
-
6
votes3
answers699
viewsQ: Search word with file_get_contents
How can I use file_get_contents to search for the word "team" on the site and if it locates the word echo in the word? <?php $content = file_get_contents( 'https://www.hostgator.com.br' ); $busca…
-
5
votes4
answers1603
viewsQ: Doubt about "encrypted code" (obfuscated) in Javascript
I was wondering if this code is encrypted:…
javascriptasked Josimara 1,965 -
3
votes2
answers100
viewsQ: Insert record into bank by clicking div x
How can I enter a record to the database by clicking on a div x I tried to use ajax but could not do the function I have the function $status = "on"; db::Query("UPDATE bdc SET status='$status'"); I…
-
5
votes1
answer452
viewsQ: Check for data in column
Have a check to see if there is data inside a column in a table? I want to do a check and if there is data in the column it displays a div. I know the mysql_num_rows to add the data that was…
-
0
votes2
answers206
viewsQ: Place ID inside a TITLE
I need to put an id in an example title <div title="<span id=""></span>"> </div> But I didn’t get a result, some way I could do that function?…
-
2
votes2
answers165
viewsQ: Friendly URL changing file link
I have the following friendly url RewriteRule ^noticias/([0-9]+)/?$ inicio.php?pg=noticias&id=$1 However when I access meusite.com.br/news/14 It changes the links of the files to…
-
1
votes1
answer225
viewsQ: fsockopen() error
I’m having an error in that line, and I don’t know why, I tried everything and I didn’t get it. Error: Warning: fsockopen() [Function.fsockopen]: Unable to connect to srvstm.com (Connection refused)…
-
2
votes3
answers840
viewsQ: Countdown, split time by div
I needed help with this countdown system on how I could divide |DIA|HORA|MINUTO|SEGUNDOS| into each div Example: Div day would display the day Div hour would display the hour Div minute would…
-
6
votes2
answers571
viewsQ: How to change the url of the "background" property?
I have this function that changes the src of an img: window.document.images['img'].src = n_src; <img src="" name="img"/> But I wanted to change the background url of the style: <div…
-
3
votes1
answer137
viewsQ: Doubt about PHP function 'end'
My doubt is in $extensao, where it contains a parenthesis at the beginning and end. Why it is there? $extensao = ( end ( explode ('.', $_FILES [ "img" ][ "name"] ) ) ) ; $imagem = md5 ( uniqid (…
-
-1
votes1
answer55
viewsQ: Doubt about upload code
I have a question about that upload code. <?php //SISTEMA DESENVOLVIDO POR LUCIANO ZANITA | [email protected] //requerendo o banco de dados a conexão include "conecta.php"; //PROPRIEDADES DO…
-
2
votes1
answer404
viewsQ: Mysql Insert, Auto Insert?
$insert = mysql_query ( "INSERT INTO analise VALUES ( $analise_hora )" ) ; I am trying to insert this data with this function automatically when the user enters the page, but it is not being…
-
1
votes1
answer60
viewsQ: Problems with . load accentuation
The Site is all right, database, files and put everything in utf-8, but when I will use the $("#aviso").load("inc/aviso.php");},1000); It results in these characters , when I access the warning.php…
-
9
votes3
answers1588
viewsQ: How to filter data entries in PHP
Good evening, I have a form serving data entry that is displayed on the screen. The problem is that this data can be html tags or scripts, if someone puts this code in my form, the page will be…
-
4
votes2
answers408
viewsQ: Long Polling with mysqli does not return data
The data of data php. file database does not return, if I change the whole data php. for any html text it returns running long Polling, but if I try to use mysqli it returns nothing. What can I do…
-
6
votes1
answer468
viewsA: How to change the window.Location of a frame
Well, here’s the solution I found. How I was using <a href="system/radio/on.php" target="topFrame"> <div class="icone_som_um"> </a> How I’m using it now function tocar() {…
-
6
votes1
answer468
viewsQ: How to change the window.Location of a frame
I was wondering if it is possible to insert a target here: window.location='www.google.com'; I don’t want to open on a new page, otherwise I would use window.open. I want to use a target="topFrame"…
-
4
votes1
answer740
viewsQ: How to link when clicking a div
I forgot how to make links with jQuery that run when clicking on a div. The link I needed was with target Blank. I found it from here but I didn’t understand the code and I couldn’t use it.…