Questions tagged as 'javascript'

1
answer

How to attach a DIV to another DIV using DOM

var X = createElement('div'); document.body.appendChild(X); var Y = createElement('div); as an attachment to div X to div Y?     
asked by 25.03.2015 / 20:07
1
answer

Update an asp section variable without refreshing the page

I'm breaking my head to try to solve this problem, but without success ... I have a virtual store created for another programmer who disappeared. To vary code is undocumented. To calculate the freight in the shopping cart it calls another...
asked by 27.03.2015 / 05:44
1
answer

Looking for information in JSON format from a url

I have a url that when opened has the following json : [ { "Name" : "Alfreds Futterkiste", "City" : "Berlin", "Country" : "Germany" }, { "Name" : "Berglunds snabbköp", "City" : "Luleå", "Country" : "Sweden" }, { "Name" : "Ce...
asked by 20.03.2015 / 12:42
1
answer

Problem in CkEditor with PHP PDO

I have a PHP script that does an update in the database to change the css properties of some texts, however the inclusion is being done as follows: <h2><span style=\"color:#fff; font-family:tahoma,geneva,sans-serif\">INFORMA&Cc...
asked by 25.03.2015 / 07:04
1
answer

Delete CSS applied to Brothers object clicked with Javascript

How could resetar a CSS applied with Javascript via Click element? I have a table whose tr and td are dynamically created and a table table is created directly in% static%, HTML of course does not have...
asked by 26.05.2015 / 14:59
1
answer

GET image / gif with jQuery

I tried this however the Chrome Developers utility recognizes dataType as xhr $(document).ready(function() { $.ajax({ type: "GET", url: "/img/img.gif", dataType: "image/gif", cache:...
asked by 24.05.2015 / 02:20
1
answer

Instability in script to hide / show fields

I have the following script: @Scripts.Render("~/bundles/jquery") <script> $(document).ready(function () { $('.ocultar').hide(); $('#dn').change(function () { if ($("#dn").attr("checked",true)) {...
asked by 03.12.2014 / 13:04
2
answers

How to pass array in JavaScript to variable in PHP

What is the best way to transfer two arrays into JavaScript for variables in PHP, follow my idea below, would it work? JavaScript Function Expiration date array ( datasvenc ) in file cadastro_contratos.php : Is it correct...
asked by 06.11.2014 / 17:41
1
answer

Modify title with angularJS through a form

I have the following code: <!-- define-pageTitle --> <div id="shareContent"> <p class="subtitle-app mt30">Define title page</p> <form onsubmit="return false"> <label>...
asked by 07.11.2014 / 17:48
3
answers

Onmouseover and onmouseout events taking too long to swap images

I have a problem using the onmouseover and onmouseout events that when passing the mouse it does the swapping of the images but it is very slow it takes a lot, there is another way to do this by following the example below. p> <...
asked by 20.10.2014 / 17:59