Posts by Michel Simões • 1,236 points
82 posts
-
2
votes1
answer980
viewsA: Update fields with Javascript
Your mistake is that you’re manipulating the msg.errorMsg.forEach(ShowResults); msg.errorMsg.forEach will not pass to its function if it does not return error. You should just call the function…
-
-2
votes2
answers356
viewsA: Async parameter of jQuery.ajax is obsolete, what now?
status = (function(){ funcaoMain(); }); verificando = status.done(function () { funcaoOptional(); }); concluindo = verificando.done(function () { funcaoterceira(); });…
-
2
votes2
answers2471
viewsA: Load HTML pages into a <div>
For this to work in . html files, you will need to load the content dynamically using ajax, that will manipulate the content of div. http://www.w3schools.com/ajax/ Or you can use a language like…
-
1
votes1
answer60
viewsA: Turn 3 CSS classes into one
If your doubt is to set one className to the component panelgrid and from there implement the CSS instructions for TR and TD panel, can do as follows, setting the classname to panelgrid: .meuPanel{…
-
1
votes1
answer766
viewsA: Write unit tests for the interface or for the implementation?
With respect to what to test, you can instantiate the object with the interface type, and by manipulating it use polymorphism to call the implementation and its respective method. This way all…
-
0
votes4
answers957
viewsA: Intercept Exception
By intercepting the exception do the manipulation by type ValidationException, who is the Exception 'father' of the one who manipulated.
-
1
votes1
answer295
viewsA: Images do not line up in the table
is probably image margin, try a img{margin:0} your code has not css, you have tested on others browsers? tries to provide more information. follows example only to enlighten you: <html>…
-
1
votes2
answers1388
viewsA: Modal not redirect when running Post
A suggestion is to create a method void to execute the adicionar, so it will not redirect after inserting, and for there to be code duplicity the method that redirects can call this method void and…
-
2
votes2
answers3046
viewsA: Dots and accents in mod_rewrite Urls
Points and special characters can interfere when receiving data in your programming, ideally using a method urlencode or urldecode, this exists for various web languages or similar, to be able to…
-
2
votes2
answers1536
viewsA: Changing date to be shown on datepicker
tries to configure his mindate... ai vc arrow the minDate with mes+1. https://api.jqueryui.com/datepicker/#option-minDate…
-
2
votes0
answers152
viewsQ: Get the CPF field of e-CNPJ using Demoiselle’s Certificate-core
I am developing an application using the Dmoiselle-Certificate-core version 2.0.0. By manipulating an X509 object, I can extract all fields as shown in the methods documentation: CertificateManager…
-
2
votes2
answers1312
viewsA: Use SQL LIKE to find a number followed by space
uses the separator comma to find ex:> LIKE '%, 5,%'... in this case the first record should be preceded by ", " also ex:>, 1, 2, 3, This I believe is the simplest method for your form of…
-
0
votes4
answers2771
viewsA: How to change the color of a div before loading the page through a script?
the way to declare on onload is correct.... put us to work please... you can test q will probably work <script> function funcaoQueMudaDeCor(){…
-
3
votes4
answers1112
viewsA: Is there an XHTML5 (XHTML + HTML5)?
XHTML has a default and is validated based on older HTML, which does not include some new Html5 inputs and some metatag syntaxes, unfortunately still XHTML is based on HTML2, following its syntaxes…
-
3
votes3
answers377
viewsA: Firefox and IE cannot find source
your error is in repeating "src:".. that is the name of the attribute, try to leave it so: src: url(...)..., url(...)... if you notice in the 2 examples you repeat src: 2x…
-
1
votes3
answers238
viewsA: Prevent an action from being intercepted by the Interceptor Handle
From what I understand the additionUsuario already receives the object filled in the form with the data of the new user. Up to there is ok! your error is in the syntax, apparently the screen…
-
0
votes2
answers832
viewsA: How to align text in a "mobile" menu using the "select" tag
when you align the sf-menu as the center, it will receive by default the center. for sub-items try to be more precise as for example to align the text of the items li and ul try to use: .sf-menu li,…
-
1
votes1
answer4330
viewsA: Break table cells/td in html
With tables you won’t get the expected, you should use the Divs and try with float:left and fixed size "simulate" a table with clear:Both to make your code. Another alternative to make it…
-
1
votes2
answers137
viewsA: What JSF DTD to use with HTML5 tags
XHTML was based on html 4. Therefore its syntax does not support things like required, special inputs like date, number or other Html5 facilities. Coming from the front-end, we look forward to the…
-
0
votes1
answer2103
viewsA: Pass javascript array to php using ajax
When I used PHP and needed this I was describing a string with all the positions of the array separated with 2 Pipes ex: campoa||campob||campoc|etc... After the js side I would split it, like…
-
0
votes1
answer662
viewsA: How do I know if the user is updating the page
vc can use a function in onexit, and when leaving the page the function is called. What Voce would need is to know what the id of the user is, and before destroying the session, to delete the…
-
2
votes1
answer127
viewsA: Merge image and map Google Maps
what Voce can do is to have a div with the image of bg and the map inside the div, and in the div you put an onclick function. For the user to understand that it is "clickable", Voce can put the css…
-
3
votes2
answers738
viewsA: Ckeditor does not recognize required attribute
You can use the filter.check property to check for text, for example to check for an image in the text: filter.check( 'img[alt]' ); // -> true or if you want you can use filter.check( ', true,…
-
0
votes2
answers642
viewsA: Nfe - private and public key reading applet
What would work in your case would be a webservice, which could be even simple in java that would enable Oce to inform a key and it returns a boolean or even a string ok and error, something like...…
-
2
votes1
answer84
viewsA: Java class for performance analysis of my project
Have you tried jmeter? for javaEE testing no better. Supports proxy and certificate configuration.
-
5
votes3
answers2830
viewsA: Extract data from txt file to use in autocomplete
Voce can manipulate the txt file by parsing each line and saving it in an array, or concatenating into a single scan each line returned. something like that $(function(){…
-
5
votes2
answers7455
viewsA: Change banner according to screen size?
yes quite normal. Voce can handle in css or js layers. Nowadays js offers a lot of screen resize support, with components in jquery ui. if you need to change size, bg and component layout, I suggest…
-
0
votes2
answers690
viewsA: SQLSTATE[42703]: Undefined column: 7 ERROR: column Alis.column name_column does not exist LINE 1:
try to put a ? as in the line above between the parameters: ->set(’d. transferido_den', '?', 'NOT(d. transferido_den)') probably work.
-
0
votes2
answers932
viewsA: How to focus on a specific browser tab from a php check
If you open a page through yours, for example via javascript with window.open, you can name it, and focus by calling it by name. If it’s a q page you know the name can also do the…
phpanswered Michel Simões 1,236 -
0
votes2
answers333
viewsA: A div superimposed on an image descends according to the scroll bar
To place a div q accompany the bar, you must set it with position: Fixed; so the top point: x or bottom: x of css, will be fixed, even when scroll down.
-
1
votes5
answers9469
viewsA: Hide HTML code
Voce can load the page with display:None and when the page is loaded, a javascript script will remove this None display, so if it does not load js, the code will not be displayed.
-
2
votes1
answer197
viewsQ: Error generating code from an entity extending Pojo<type>
In the project a Pojo class was created that receives the type of the serializable variable for indexing and treating the convert in a generic way: Pojo.java: {...} public abstract class Pojo<T…