Posts by Renato Colaço • 144 points
8 posts
-
2
votes5
answers32001
viewsA: JSON.parse error: Unexpected end of JSON input
Hello Amanda your responseText is not a valid JSON, since it contains only a string "true". responseText: "true" I don’t think in this case you need to parse. A valid JSON example (returned by the…
javascriptanswered Renato Colaço 144 -
1
votes2
answers1971
viewsA: How to capture string between square brackets
The regex below will capture letters, numbers or "_" that are in square brackets. If you need a more restrictive version just exchange " w+" for [a-z]+, for example. \[(\w+)\] I made an example you…
-
0
votes3
answers106
viewsA: Limit dynamic fields in jquery
Just adding an alternative to the previous answers... How would you like to just count the number of children your div has? if($('#dynamicDiv').children().length < count)…
jqueryanswered Renato Colaço 144 -
1
votes2
answers334
viewsA: Increase the size of images in a virtual store
In fact to increase the image height you need to increase the width proportionally. A hint would be to show less item at a time on each line, 2 instead of 3. For this, if possible, you need to…
-
1
votes2
answers2447
viewsA: fill in right-to-left input
The way is to look for a plugin that suits your needs. Unless, of course, you have a very specific requirement and choose to develop your own library. So start over here:…
-
1
votes1
answer224
viewsA: Javascript: How is self used?
According to MDN the 'self' notation alone is useful when working with web Workers. I know my answer is not very detailed, but I believe this link will put you on the right track.…
javascriptanswered Renato Colaço 144 -
1
votes1
answer904
viewsA: How do I interact with HTML created with javascript?
The main problem is this code snippet: document.getElementById('corpo').innerHTML += corpo; This form causes you to lose the events attached to your elements (roughly speaking). Instead use methods…
-
2
votes1
answer651
viewsA: How to access child items in a Boundfield of a Gridview in Asp.Net Web Forms?
Hello, If the idea is: a Menuitem has its properties and another item (Subitem) of the Menuitem type to form a chain or auto reference: public class MenuItem { string Nome { get; set; } MenuItem…