Tag Archives: javascript
RegEx: Compare two strings to find Alliteration and Assonance
would be possible to Compare two strings to find Alliteration and Assonance?
i use mainly javascript or php
Continue reading
Tagged javascript, php, regex
Leave a comment
Is this an example of an XSS attack?
I’m a PHP developer and I’m looking to improve the security of my sites.
From what I understand the following are two major types of vulnerabilities which affect web applications:
SQL Injection
XSS
SQL Injection can be fixed with prepared… Continue reading
Tagged html, javascript, php, xss
2 Comments
How to properly validate your code?
I have about 4000 lines of code for a web-application in JavaScript / PHP / CSS / HTML. How can I test it properly?
I only support the latest version of IE and Safari. I’ve worked out all the bugs.… Continue reading
Tagged css, html, javascript, php, testing
Leave a comment
Is it considered bad practice to have PHP in your JavaScript
So many times on this site I see people trying to do things like this :
<script type="text/javascript">
$(document).ready(function(){
$('<?php echo $divID ?>').click(funtion(){
alert('do something');
});
});
</script>
I don’t think that this is some sort of pattern that… Continue reading
Tagged javascript, php, web-development
1 Comment
how mature is HTML+CSS now in relation to generating reports for printing?
I’m considering creating all the reports of a series of desktop business apps directly to html. Most of the reports are tables (maybe compound reports), headers, footers, etc. (no images, vector graphics, etc.).
After a search in SO, I’ve read… Continue reading
Tagged html, html5, javascript, php, printing
Leave a comment
Google Maps API v3: How to Set Zoom Level And Map Center To User Submitted Location?
I have used this tutorial from Google to build a web app that finds the closest store from the user entered location:
http://code.google.com/apis/maps/articles/phpsqlsearch_v3.html
I have my app almost working the way I want it, upon page load, the map is… Continue reading
Tagged google-maps, google-maps-api-3, javascript, mysql, php
2 Comments
Can MongoDB and its drivers preserve the ordering of document elements
I am considering using MongoDB to store documents that include a list of key/value pairs. The safe but ugly and bloated way to store this is as
[ ['k1' : 'v1'] , ['k2' : 'v2'], ...]
But document elements… Continue reading
Tagged bson, javascript, json, mongodb, php
Leave a comment
Scripts being stripped with jQuery .load
I don’t think this question has been posed before, at least not in the way I need it answered. I’m using jQuery’s .load function. I have a problem when loading just page fragments.
When using something like:
$('#content').load('loadTest.html');
All… Continue reading
Tagged html, javascript, jquery, load, php
Leave a comment
Cross domain login check?
I have bookmarklet. If I open a random page (not mine) and click the bookmarklet, I would like to check if the user is logged in on my page.
I am already doing Cross-Domain AJAX Request using Access-Control-Allow-Origin, but it… Continue reading
Tagged cross-domain, javascript, php
1 Comment
Is using CSS classes for JS markup a bad practice?
The scenario:
A homepage that is generated with PHP and a template engine.
The page is being redesigned.
The new design is based on jQuery UI.
The current CMS uses multiple templates: a page template, an article details template, a… Continue reading
Tagged css, javascript, jquery, php
1 Comment
31 pages
