Posts by Ale • 2,461 points
113 posts
-
3
votes2
answers143
viewsQ: Class is not embedded in DOM(Jquery)
Following code: <script> $(document).ready(function() { $("#inicio").hover(function() { $("#inicio").addClass("fogo"); $("#inicio").removeClass("fogo"); }); }); </script> And the HTML:…
-
1
votes1
answer173
viewsQ: Reference DOM element in Jquery otherwise
Hello, look at these lines of code: <div id="divn4" align="center"><i style="">Nunca, nunca enviamos span.</i></div> So, if I wanted to reference the italic there, to apply…
-
2
votes1
answer84
viewsQ: Check compatibility with browsers
How do you check the compatibility of the websites in the various browsers? What online tools do you use? Or do you test on your own? Any experience reporting on this? Currently we need to always be…
-
2
votes1
answer76
viewsQ: Function not defined error
Follows the code: <?php if (isset($_GET['algumacoisa']) && !empty($_GET['algumacoisa'])) { $user = "useradmin"; $pass = "senha123"; mysql_connect("localhost", $user, $pass);…
-
0
votes1
answer662
viewsQ: Error sending email with PHPMAILER
Hello, follow the code: Inicia a classe PHPMailer $mail = new PHPMailer(); $mail->IsSMTP(); $mail->Host = "smtp.dominio.com"; $mail->Username = '[email protected]'; // Usuário do servidor…
-
9
votes2
answers19079
viewsQ: Find Scroll Position of a Particular Object
It is possible to know the position of the scroll of a given object through pure Jquery or Javascript? tried var posobj = $("#meuobjeto_id").scrollTop(); However, the obtained value is always 0. Any…
-
10
votes1
answer3240
viewsQ: Display something when trying to close my site
It is possible to display something (a Alert, or a popup, an optin catcher(newsletter)) when the person tries to close mine website? I’ve seen something like it, that it displays a alert() to…
javascriptasked Ale 2,461 -
-2
votes1
answer742
viewsQ: Checkbox always returns false when I do . is(":checked");
Code is this: <script> $(document).ready(function () { alert("funfo"); $("#segunda").click(function () { var check = $("#segunda").is(":checked"); if (check == "true") { alert("true"); } else…
javascriptasked Ale 2,461 -
1
votes1
answer66
viewsQ: About page loading Jquery
I understand the use of this code snippet in Jquery below: $(document).ready(function() { alert("carregou"); }) However, the problem in question is that when I load something by iframe, this…
-
3
votes2
answers452
viewsQ: Problem when breaking in if
If I put one break in the first loop if, simply does not work or execute anything.. It seems that the break is read first of all, even without entering the condition if. What’s the matter? function…
javascriptasked Ale 2,461 -
2
votes2
answers82
viewsA: Click on image does not work with box-Sizing
Thank you. But it was my mistake. Well, I was using the bootstrap to make the page responsive, so the Divs are all in the bootstrap pattern (classes were: col-Sm-12, col-Sm-8.), respecting what they…
-
-1
votes2
answers82
viewsQ: Click on image does not work with box-Sizing
Hi, I have a problem.. In an image of my site, which has ID #image, when clicked it executes a code in jquery, as the below: <script> $(document).ready(function() {…
-
1
votes2
answers141
viewsQ: fade in/ fade out is not executed
<script type="text/javascript"> $(document).ready(function () { alert("ready"); $("#comentario").fadeIn(1000); $("#nome").fadeIn(2000); $("#foto").fadeIn(4000); $(".back").click(function () {…