Aug 21
2009

Drop shadows

Posted by admin in CSS

admin
CSS2 doesn't have a property to add a shadow to a box. You can try to add a border to the right and bottom, but it won't look right. However, if you have two nested elements, you can use the outer one as a shadow for the inner one. For example, if you have a text like this (HTML):

<div class=back>
  <div class=section>
    <h2>Die Rose duftet - doch ob sie empfindet</h2>
    <address>Heinrich Heine (1797-1856)</address>

    <p>Die Rose duftet - doch ob sie empfindet<br>
    ...
  </div>
</div>

you can use the outer DIV as a shadow for the inner one. The result might look like this separate page. First, give the BODY a background (light green in this example), the outer DIV a somewhat darker background (green-gray) and the inner DIV another background (e.g., yellow-white):

body {background: #9db}
div.back {background: #576}
div.section {background: #ffd}

Next, by using margins and padding, you offset the inner DIV a little to the left and up from the outer DIV:

div.back {padding: 1.5em}
div.section {margin: -3em 0 0 -3em}

You also have to move the outer DIV a little to the right. And if you have multiple sections, you probably want some space between them, too:

div.back {margin: 3em 0 3em 5em}

That's basically it. You can add a border around the inner DIV if you want. You'll probably also want some padding inside it, e.g.:

div.section {border: thin solid #999; padding: 1.5em}

Of course, you can vary the size of the shadow to your taste.
Aug 21
2009

Styling Your forms with CSS and Labels

Posted by admin in CSS

admin
Here's how you would use the label tag and some CSS to create a stylin' form with very little markup:

<style>
label { position: absolute; text-align:right; width:130px; }
input, textarea { margin-left: 140px; }
label.check, label.radio { position:relative; text-align:left; }
</style>
<form>
<label for="name">Your Name:</label>
<input type="text" name="name" id="name" /><br />
<label for="email">Your Email:</label>
<input type="text" name="email" id="email" /><br />
<input type="checkbox" name="subscribe" id="subscribe" />
<label for="subscribe" class="check">Subscribe</label>
</form>

If you don't want to apply this styling to ALL forms on your website what I usually do is give my form an id, and then use the ID in the style sheet such as:

#myFormID input, #myFormID textarea { ... }
Aug 21
2009

Ajax Browsing History Functions

Posted by admin in AJAX

admin
One of the biggest challenges in Ajax based applications is to properly implement the browsing history. This form of problem has been in existence since Ajax was first presented. Even with the development of Ajax, its tools and frameworks have been significant, the problem with browsing history still exists.

The back and forward buttons in browsers seemed non-existent when the browser access an Ajax based application. Since there is no direct HTML that will provide the browser with the needed information to enable browsing history, the back and forward buttons might not be used. Ajax will not be able to naturally provide this information since the information is not part of the programming language.

But because of the development of Ajax and support for the programming language, certain tools and functions have been developed. While there are thousands of functions that have been developed to assist this feature for Ajax based application, there are only a few functions that should be able to improve the Ajax based application.

The Getcontent Function
The best solution for this problem in Ajax is to use a simple function called "getcontent". This type of function will be able to do two things. The first function is to retrieve content. The information could be from various sources - the information could be external (another website) or another part of the website. This includes the information from the previous webpage. By using this function, developers will be able to mark the previous webpage and automatically link them in previous functions.

But there is the reason why this function has not been popular for a while. Getcontent will require the developer to use innerHTML. This is a little bit challenging a few years ago since it will require bandwidth as well as a powerful local gadget.

CheckHash Function
Another function developer can use to improve bookmarking is to use CheckHash. This is a very small but very powerful addition to the Ajax based application. CheckHash is basically a function that tries to check the data and mark it for future use.

The beauty of this function is that it reinforces the getcontent function. The previous page of the online application will be marked with the help of getcontent. But with CheckHash, developers will be able to verify if the actual data is still available. This function will check the cached data in the browser. Along with getcontent, checkhash will get the browser and hasten the reload of the previous webpage.

While these two functions will most likely improve the history functions in the online application, it's still important to test them in the server. This is very important for two reasons: first is browser compatibility. While the functions should be able to work in most browsers, checking the function in the server will ensure browser compatibility. The second reason is to ensure stability of the application. By placing the functions in the server, the application will be able to use the functions immediately instead of relying in the client side.
Aug 21
2009

Ajax Expertise and Efficiency

Posted by admin in AJAX

admin
The development of an Ajax based application is always driven by the need to ease data processing. As an online application, it should have the ability to emulate or at least come close to basic functions found in desktops. This will give users a chance to do their data processing online without requiring any downloads or client for an application.

Everything could be done through the browsers and with a decent internet connection. Some even claim that Ajax and JavaScript based application could run seamlessly through dial-up connection but it will take a long time to load. But nevertheless, users will have a good experience when using Ajax based application.

User Experience is King with a Cost
You may have already noticed but everything noted there is all about efficiency and users experience. In the development of an application, developers usually think about the user’s experience when they encounter the application for the first time. This thinking is actually acceptable since after all, the only way the application will prove is usability is through its users.

But focusing on user’s experience might shadow an important factor that could help developers move further. Users experience could be a good thing but letting them enjoy an application without proving any improvement on the skills of the developer will not help in the developer’s skills improvement.

Display of Expertise
While developers should focus on users, it’s also important to slowly improve their expertise in Ajax and JavaScript based application. The current development practices are already impressive but ask any developer and they can assure you that they can still squeeze the programming language even further.

But showing what JavaScript could do does not necessarily mean improvement of user experience. Because there is just a small window that allows improvement, the people who are only able to provide additional functions are those who are already leaders in the field.

The Boom and Bane of Frameworks
The best example of user’s experience overtaking the need of further development is in the frameworks. Developers who use frameworks can easily churn out JavaScript and Ajax based applications even though they have little to no experience and knowledge of JavaScript and Ajax. But the end result of the application could still be impressive. When users see a highly interactive application, it doesn’t really matter if the application was used with frameworks. In fact, it doesn’t even matter if JavaScript was used.

Ultimately, Need Drives Everything
This might look like a bleak reality for JavaScript developers but it’s not the end of improvement yet. There are still users and developers who ask for more and push for further development. There is always something that needs to be filled by JavaScript and through patience and carefully studying, that need could be filled.

In fact, the clamor for brand new things is exponentially increasing. From simple experience of the web, users are now asking more from their browsers. It’s up to the developers on how they can answer that challenge to improve JavaScript and Ajax further along with user experience.
Aug 21
2009

AT&T says it didn't block Google Voice

Posted by admin in Untagged 

admin

Apple is still reviewing the Google Voice iPhone application, and AT&T has not played any role in that review process, the companies told the U.S. Federal Communications Commission on Friday.

Google Voice has not been approved for distribution to the iPhone, and on July 31, the FCC questioned Apple and AT&T about their treatment of that and other proposed iPhone applications. It also questioned Google about its iPhone application and the approval process for software on its own Android mobile platform. All three companies submitted responses on Friday.

Apple said it has not rejected the Google Voice iPhone application but is still studying it. In response to pointed questions, both Apple and AT&T said the iPhone maker did not consult AT&T about Google Voice and that the carrier has not been involved in evaluating it. They said Apple typically does not consult AT&T about decisions on what applications can be offered in the iPhone App Store.

Google Voice would let users make calls on the smartphone while also providing voicemail, text messaging and contact management features. The fact that it has not been approved for the iPhone has heightened criticism of the review process for iPhone applications, which critics say is murky and unpredictable.

In the case of Google Voice, some observers suspected AT&T had squelched the software because it feared competition for its own voice services. In questioning the companies, the FCC cited pending proceedings at the agency concerning open access to wireless networks and exclusive deals between handset makers and carriers.

Apple told the FCC that Google Voice hasn't been approved because it appears to replace the iPhone's core phone functionality and user interface with its own interface for phone calls, text messaging and voicemail. The application also transfers the user's Contacts database to Google's servers, "and we have yet to obtain any assurances from Google that this data will only be used in appropriate ways," Apple wrote.

The FCC had also questioned Apple and AT&T about third-party applications that make use of Google Voice. Along with Google Voice, three other applications -- GVDialer from MobileMax, VoiceCentral from Riverturn and GV Mobile by Sean Kovacs -- also raise issues that Apple is still studying, the company wrote.

Apple said it alone makes decisions about whether applications are allowed on the App Store. However, AT&T told the FCC that as part of their iPhone partnership, "AT&T and Apple agreed that Apple would not take affirmative steps to enable an iPhone to use AT&T's wireless service (including 2G, 3G and Wi-Fi) to make VOIP calls without first obtaining AT&T's consent." Apple said it also respects AT&T's customer terms of service, such as its rule against using the cellular network to redirect a TV signal. Apple said it doesn't even know whether there is a VoIP (voice over Internet Protocol) element to Google Voice.

Aug 20
2009

Better earning Better Link Popularity

Posted by nirmalgyanwali in SEO

nirmalgyanwali

Link popularity plays an important role to maximize traffic for your site. Popularity of a page is judged by the link popularity of the page. That means how many links have been directed to a particular page of your site. If the content of the page is attractive and have ample numbers of inbound links, certainly your website will touch the sky. If the page ranks from one to ten, number of visitors will be acquainted with your site and surely your expectation will be fulfilled. So you have to try your level best for link popularity. Link popularity plays an important role among the top of the search results in the various search engines such as Google, Yahoo! Most of the search engines require at least one links coming to your website, otherwise your site will disappear from the search engine index.There are many ways and means through which you can built link popularity for your site.


1. The most important thing for link popularity is to produce quality content. Every website publisher should be ensured that the site has really good contents. You have to maintain the guidelines to make a crawler friendly website. You can hire a content writer for your site. If the content of your site is helpful and information based, so many sites will direct their visitors to your site. Thus your link popularity will be increased.


2. You can earn link popularity by exchanging your link. You may contact good quality sites for exchange link. First you have to give a link from your site. Then request the publisher with polite words asking for a link.

Aug 20
2009

Inbound and Outbound Link

Posted by nirmalgyanwali in SEO

nirmalgyanwali

Linking in a website is very important. A website or blog must have links to another websites or blogs. All the reputed and useful websites have ample numbers of links. Links are two types- inbound link and outbound link. There is another type of link- reciprocal link.


Inbound link means link from other websites or blog targeted to your blog. Inbound link is the main factor for enlisting in the search engines. Your page rank will be high in different search engines if you get sufficient links from other high ranking websites. The higher the rank, the more traffic. Every web designer should try to get maximum inbound links from another useful and related websites. Outbound link means link from your website to another website. There is a debate over the importance of outbound linking for enlisting in search engines.


I always try to give link to another important website for relevant information for my visitors. You should be careful when you are going to give a link from your website to another website or blog. The website which is linked from your website must be reputed and useful. Linking to sites outside your own website or blog does mean you end up sending traffic away from your website or blog so you need to count the cost of such a strategy. Too much outbound link may be detrimental for your website. So outbound links should be limited.

Aug 20
2009

Adsense Earning from CPM

Posted by nirmalgyanwali in google adsense

nirmalgyanwali

You have ample number of page impressions but your earning shows as $0.00 because you do not have click on the google Ads. Are you disheartened? Looking for earning through page impressions only? Yes you have landed in the right place. Here I am going to discuss how to earn through page impressions. In Google Adsense programme Ads can be either cost-per-click or cost-per thousand-impression basis.

When the advertisers display CPC ads only in your site, you will earn for each valid click-through on ad; You can earn cost-per-thousand-impression basis when the advertisers display CPM ads. CPM stands for "cost per 1000 impressions." The adwords advertisers set specific price per 1000 ads served. They chose particular site to run CPM ads, and pay each time their ad appears. Now the question is how do you get cost-per-thousand-impression ads. CPM ads can be either text or image ads, and are always site-targeted. CPM ads and CPC ads compete each other. You will be paid as per the highest performing ads. So your site should be good enough to get CPM ads.Both Text and image ads can be paid on either on CPC or CPM basis. Advertisers will choose which type of ad they'd like to display - text or image.

If the advertisers consider that your site is relevant for displaying image ads they will display image ads.If you chose only image Ads, You might see public service ads if there is no image ads relevant to your site content. So, I suggest to opt into both text and image ads. There by you can maximize your site’s revenue.At present all CPM ads are site targeted, that means if an advertiser select your content as relevant to their campaign only then CPM ads will be displayed on your site. customize your Onsite Advertiser Sign-up landing page for advertiser bidding on your site.

Aug 20
2009

Earn through Google Adsense

Posted by nirmalgyanwali in google adsense

nirmalgyanwali

Adsense is the real online money making scheme. Thousands of people are earning tons of dollars everyday through Adsense program. If you have a Adsense account and when your earning is in progress, all of a sudden your Adsense account may be disabled. You may be innocent but be careful about the internet enemies. To save you Adsense account from the enemies you have to combat against them. Self clicking and continuous clicking from same IP on the Adsense ads are strictly prohibited and these clicks are treated as invalid clicks. If you can not stop the invalid clicks, your Adsense account may be disabled.


Once your Adsense account is disabled, all of your earning accumulated in the Adsense account will be forfeited. So you have to be vigilant every moment to save your adsense account. I have already discussed about how to deal with Sabotage Clicks and Accidental Clicks. Here I would like to highlight one important point. If clicks are generated from a unknown site how you will save your account?You should use channel for all of your sites.


Advantage of adding url channel is to identify from which site the invalid clicks have been generated and you can report to the Adsense team about the affected site with date and time and url. Sometime you may notice that multiple clicks have been generated but you are unable to identify the site where the clicks were made, even you have added urls of all of your sites. The true fact is that the enemy has made clicks on the Adsense ads which is made with your adsense pub No. and placed on a site created by enemy. In this case you have to use “allowed sites”. Go to your Adsense account then click on “Allowed sites” and put all of your urls so that the page impressions and clicks generated from a site which is not belong to allowed sites will not be counted.

<< Start < Prev 21 22 23 24 25 26 27 28 Next > End >>

Welcome!

Nirmal: Freelance web designer from NepalI am Nirmal Gyanwali, a freelance web developer from kathmandu, Nepal. I am doing MSc (IT) from Sikkim Manipal University. If you would like to contact me you can do so at info@nirmal.com.np.
Thanks!

Tags

Find us on Facebook

Select Language

Advetisement

Follow us on Twitter