Create Cookie – Read Cookie And Delete Cookie With JavaScript Posted by in Javascript | Leave a comment

This is just JavaScript that I used from my friend JavaScript library. We have 3 functions that use to: Create Cookie, Read Cookie And Delete Cookie. Continue reading

JQuery Dialog Hide Or Remove Close Button Posted by in Javascript | Leave a comment

This is just an example to hide/remove the close button (the X or Close at the top right conner) of a JQuery UI Dialog Box. Continue reading

WPML Delete All Translate Independently Posted by in Tips And Tricks | Leave a comment

I’m using WPML and did duplicate all posts and pages for another language and then got overwritten the content when the original is saved. And now I know that I need to set to ‘Translate Independently’ each post/page to avoid the overwritten. Continue reading

Google Email Domain Does Not Designate Permitted Sender Hosts Posted by in Tips And Tricks | Leave a comment

I’m using Google Apps and sending emails from my own domain address but sometime get “Failure Notice” message that says ‘Sorry, we were unable to deliver your message to the following address.’. It seems that we need to create a SPF record and a DKIM record for your domain with Google Apps. Continue reading

JQuery Call Function To Parent And Children Div Posted by in Javascript | Leave a comment

For example, we want to show one div when click on another div inside a parent div. Or even can find an attribute of that div, we can use JQuery .parent() and JQuery .children() function to do that. Continue reading

SQL Server: Cannot resolve the collation conflict between in the equal to operation Posted by in SQL Server | Leave a comment

We get MSSQL error message: “Cannot resolve the collation conflict between “SQL_Latin1_General_CP850_CI_AS” and “Latin1_General_CI_AS” in the equal to operation.” when run a SQL script. In order to fix the collation conflict in the equal to operation issue, we may need to add COLLATE DATABASE_DEFAULT clause to the right of column in the condition. Continue reading

Asp.net Gridview Simple Example Posted by in CSharp | Leave a comment

This ASPX page is just display a Simple GridView which allows sorting and paging and uses a SqlDataSource to select all records from a table. It’s almost hard code (include ConnectionString) and should be used for a quick preview/checking purpose. Continue reading

WordPress Filter/Exclude Posts Category From Displaying In A Specific Page Posted by in PHP | 1 Comment

This PHP is how to exclude categories of posts from displaying in a specific page. Please place this PHP code below in functions.php of your theme directory to cause your page to display posts only from some categories. Continue reading

window.location.href target _blank Posted by in Javascript | Leave a comment

window.location.href may not work when use JavaScript to redirect to another page (or open a new page) when create application in Facebook or using iframe because window.location sets the url of your current window so we can use window.open to open a page in new window instead. Continue reading

FancyBox Redirect To A Predefined URL When Click On Image Posted by in Javascript | Leave a comment

This article will let you know How to redirect to another page (a predefined url) when people click on image in FancyBox popup with JQuery. Continue reading