We published a while ago a small WordPress plugin which enables the users to look up words in a specific database, by highlighting with the mouse the word they want to look up then following a link to an administrator set online database (like Google Definition service or Dictionary.com) which will do the rest of the job. Worthless to say that this...
More from this category
DefiThis un-minified Javascript and code explanationWe published a while ago a small WordPress plugin which enables the users to look up words in a specific database, by highlighting with the mouse the word they want to look up then following a link to an administrator set online database (like Google Definition service or Dictionary.com) which will do the rest of [...]
The best method to check for Internet Explorer in JavascriptIf you will code in Javascript, or if you already familiarized yourself with it, you encounter many times problems related to the fact that Internet Explorer doesn’t understand a lot of functions which the other browsers can. But the browser market-share dictates that we still have to code in the way to make the script [...]
jQuery : Error: $(document).ready is not a function — Sure!This error message appears only if another framework is in conflict with the almighty jQuery. For example You try to use Prototype/Scriptaculous for Lightbox but you also need Thickbox for something else, which requires jQuery.
Since no framework is compatible with another framework, you have to find a workaround to get things working.
And here comes jQuery [...]
Clients… I had to create a website… XHTML Strict… AND opening all links in a new tab/window.
No probs, there’s the target attribute of the anchor elements! But not in XHTML Strict!
W3 states clearly that target attributes should be forgotten and avoided. Why, I have no idea, but if you want to create XHTML Strict pages, [...]
This subject is quite interesting and i was searching for examples for long. Then I managed to do something, true that only by combining many examples i’ve found.
Let’s see the code then I’ll try to explain everything.
function popUp(URL) {
window.open(URL, ‘WindowName’, ‘toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=300,height=400′);
}
window.onload = popUp(“http://example.com”);
The above function will pop-up window which will contain the page you put [...]
