November 13, 2009

Convert GET and POST to objects

Category: PHP, Tags: , , khadlock at 1:51 pm

Here's a quick way to convert GET and POST arrays to objects with PHP:

$get = (object)$_GET;
echo $get->sample;
$post = (object)$_POST;
echo $post->sample;

In this case the "sample" property would be an array key.

Bookmark and Share

 

Submit an Inquiry for your project

Category: Studio Sedition, khadlock at 11:32 am

You can now submit an inquiry for your web project at http://www.studiosedition.com/inquire

Bookmark and Share

 

Setting the label “for” attribute with JavaScript

Category: HTML, JavaScript, Tags: , , khadlock at 10:53 am

Sometimes JavaScript offers unique names for element attributes, for example, CSS properties with words that are normally separated with dashes are camel case in JavaScript.

The label element's "for" attribute is no exception, in fact it's probably the most unique one I've stumbled across, which is why I thought it was important to share. When you set the label "for" attribute with JavaScript you have to set it as "htmlFor" and of course give it the same value as the input element's id that you are tying it to.

Bookmark and Share

 

November 6, 2009

The imagetoolbar meta tag

Category: HTML, Tags: , , khadlock at 12:24 pm

Here's an oldie, but a goodie. Remove the pop-up that appears over images in Internet Explorer 6:

<meta http-equiv="imagetoolbar" content="no" />
Bookmark and Share

 

November 5, 2009

Twitter’s API whitelist

Category: BlogToTweet, Twitter, Tags: , , khadlock at 2:27 pm

One of our product's BlogToTweet.com has been approved for the Twitter API whitelist, meaning any rate limits no longer apply to authenticated requests made through BlogToTweet.

This was never an issue, but our user base is quickly growing, so we were proactive in achieving whitelist status to prevent any problems from creeping up for our users.

If you use the Twitter API and are wondering how to get approved for the Twitter API whitelist, visit http://twitter.com/help/request_whitelisting

To learn more about BlogToTweet you can visit our product page at http://www.studiosedition.com/product/BlogToTweet

Bookmark and Share

 

« Newer PostsOlder Posts »