Posts by Aluisio Martins Junior • 309 points
8 posts
-
1
votes3
answers761
viewsA: Form.serialize() does not work
Don’t forget to load the Jquery lib on your ok page!? JS I changed the $.ajax for $.post as this is most recommended in this case that you will only upload a DOM object with new content. Later you…
-
0
votes1
answer90
viewsA: Configure N levels in htaccess
In fact you will need only one rule in your HTACCESS file and the rest you will do in your PHP script, this way: In your . htaccess RewriteRule ^produtos/(.*)\.html?$…
-
8
votes3
answers51011
viewsA: How to send email from localhost using PHP’s mail function?
In Windows 8 you will need Stunnel to do the Sendmail work properly with Gmail once it has removed support for v2 how is used by sendmail, follow the step-by-step below and I believe you will…
-
1
votes1
answer504
viewsA: Ajax Locking Page Exchange (Longpolling)
Without looking at the way you’re sending it, we’re a little in the dark, but you can use Jquery’s $.ajax method by setting the async as TRUE or FALSE depending on need, TRUE = asynchronous and…
-
2
votes1
answer450
viewsA: How could I trigger an action in a PHP script with a link?
I will do based on the information you passed in your code, I believe you are making a system for rent/ sale of real estate, is the following: In the attribute href of the links [to] from your list…
-
2
votes4
answers173
viewsA: Javascript PHP sprintf equivalent
For your luck and our luck has a crowd in turn PHP functions into JS and you will find a lot on the site http://phpjs.org. The equivalent of sprintf is this http://phpjs.org/functions/sprintf/ Good…
-
3
votes1
answer2216
viewsA: Pick up dynamic loaded element id
It was not understood correctly, but if you want to trigger a "click" event in a dynamically created element use the on() of the BODY element and not the direct click(). It would look something like…
-
0
votes4
answers1357
viewsA: Margin in percentage is relative to what?
In the specified case it would be relative to 100% of the ". mainheader", that is, the img would be away 2% at the top and footer of the 100% mainheader