Posts by Quod Cogitatio • 121 points
3 posts
-
2
votes2
answers1124
viewsA: Difficulty with the javascript "find and replace" function for a browser application
To search the entire document you need the body content. var search = /(Texto\s+da\s+substituição|Outro)/gi; var replace = 'Substituir por isto'; var body = document.getElementsByTagName('body')[0];…
-
3
votes1
answer769
viewsA: Grab link from the share
You want to share the facebook link? Why not use the same link you used for facebook on other social networks? Explain it better, please. If you’re using PHP, see a share function on all social…
-
7
votes4
answers7389
viewsA: How to make Ajax requests, with Jquery, on different domains?
When it comes to CORS, "incompatibility" and restrictions are something we cannot leave aside. An alternative way is to use a php file as an intermediary, playing a proxy role. You can use CURL:…