Questions tagged as 'javascript'

1
answer

Change JavaScript text

I want to change text tag text with JavaScript. <text id =txtrect x="5" y="35" font-family="Verdana" font-size="11" fill="white" > Rect </text> I tried this but it does not change document.getElementById(txtrect).innerHTML=t...
asked by 06.11.2014 / 22:45
1
answer

Iterate a list and check if the component exists in jQuery

I am making an Ajax call and thus returning new entries to a table. So far so good, but I want to make a .prepend() by adding a "Remove" button on each element in the list. The problem is that this button is only added in the fi...
asked by 06.11.2014 / 18:18
1
answer

Load and read XML via AJAX Cross-Domain

I have a Cross-Domain AJAX request that receives an XML. After a lot of work, I was able to download the XML but I do not know if I did it correctly because it never arrives at success . Here is the requisition code: function refreshPage() {...
asked by 09.05.2014 / 21:51
3
answers

Remount date with javascript

In my database I have a DateTime field. In my form I have three combos for: Day, Month and Year. I have a JavaScript function which serializes the information, sending them to my controller to record. It turns out that the date is coming null. I...
asked by 19.03.2014 / 21:04
3
answers

Mark html element

I have my elements in a text. <h2> Titulo </h2> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do <h2> OUTRO TITULO </h2> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do <h2> OUTR...
asked by 06.03.2014 / 16:00
2
answers

Count lines with PHP and JS

I need a function that helps me to record a line break variable and, later using java script , display the line number in real time. I would basically number the line being that I have to use PHP to receive and java script just to displa...
asked by 03.04.2014 / 00:45
1
answer

How to map a http request parameter to an enum in java?

I am making an ajax request like this: $.ajax({ type : 'POST', url : apiURL + '/play', dataType : "json", data : { against : "ANYBODY" }, success : function(data, textStatus, jqXHR) { // ... }, e...
asked by 15.04.2014 / 22:00
2
answers

Loading View only (without Layout) - Yii Framework

I'm customizing a website at Yii . And I'm wondering how do I access a file that is within the protected/ directory. I'm using a javascript function to only load view of admin , but I think it's protecting (as expected). It...
asked by 04.04.2014 / 20:09
1
answer

How to make smooth bearing with button or anchor?

I need help with css , and js . I need a js that makes when I click the down button, or up, scroll the scroll of a div to a certain size: Sample link: link     
asked by 14.04.2014 / 15:42
2
answers

Clear form on entering?

Is it possible to clear form or fields after the call without pressing any button? In my case the user changes the menu and the data continues. Call menu: Menu Content Page: Content     
asked by 30.06.2014 / 14:47