Deprecated: Assigning the return value of new by reference is deprecated in /home/tryangle/public_html/blog/wp-includes/cache.php on line 36

Deprecated: Assigning the return value of new by reference is deprecated in /home/tryangle/public_html/blog/wp-includes/query.php on line 21

Deprecated: Assigning the return value of new by reference is deprecated in /home/tryangle/public_html/blog/wp-includes/theme.php on line 507

Deprecated: Assigning the return value of new by reference is deprecated in /home/tryangle/public_html/blog/wp-content/plugins/codesnippet/codesnippet.php on line 248
Tryangled Dev » 2007 » August

Archive for August, 2007

What are bad practices Search Engine Optimization (SEO)?

Friday, August 31st, 2007

Here are the top 20 things NOT to be done in the process of SEO :

1. dead/404 error page links.

2. No / very few outbound links.

3. Old or Outdated copyright date or last modified date visible on the pages.

4. error pages that don’t send 404 headers.

5. Lot of incoming links from link farms.

6. Reciprocal link request pages.

7. MySQL or PHP errors in the web pages.

8. No published contact address, email address.(in meta tags)

9. All inbound links are to homepage only

10. Too much duplicate content on the web pages (copied from other pages or sites).

11. Whois info for the domain which is the same as other domains previously penalized or

banned.

12. Use of links to affiliate programs that are known scams by google.

13. Domains previously used for spam or that are blacklisted.

14. Stagnation (Site never changes). The pages content has not been updated for long time.

15. No / very few inbound links.

16. Too many spelling errors in a web page .

17. Outbound links to questionable/spammy/crap sites.

18. Excessively lengthy URI’s/URL’s (query strings or folder and file names)

19. Contains unrelated subjects (ex: a site that sells toys and tries to sell web hosting ).

20. No Privacy policy. (Not much importance).

Posted by Suresh B

What are meta tags ?

Thursday, August 30th, 2007

Metatags are a way for us to define our web page to the google , other search engines and other bots.

Example :

1. Title 2. Keywords 3. Description
<META NAME=”keywords” CONTENT=”metatags,meta-tags,searching,
search engines,optimizing searches,keywords,site description”>
<META NAME=”description” CONTENT=”here is the description about our web page “>
<META name=”copyright” content=”Copyright (c) 2007 Tryangled Solutions, All Rights Reserved”>There are 2 types in meta tags:

1.HTTP-EQUIV 2.NAME

<title>Web design | designing cms</title><meta name=”description” content=”Tryangled Solutions is a Website Designing Company “/>
<meta name=”Subject” content=”web design india, website designing, website development “>
<meta name=”keywords” content=”Web Design, Web Design india, content management system “/>
<meta name=”last-edited” content=”Aug 30, 2007″>
<meta name=”posted” content=”Aug 30, 2007″>
<meta name=”resource-type” content=”document”>
<meta name=”classification” content=”CMS, Web Designing,web design India,”/>
<meta name=”author” content=”Tryangled”/>
<meta name=”subject” content=”Website Designing and Web hosting”/>
<meta name=”Designer” content=”Tryangled Team”/>
<meta name=”Publisher” content=”Tryangled Solutions”/>

<meta name=”Distribution” content=”Global”/>
<meta name=”expires” content=”Never”>
<meta name=”document-classification” content=”Website Designing and Web hosting”/>
<meta name=”document-type” content=”Public”/>
<meta name=”document-rating” content=”Safe for Kids”/>
<meta name=”robots” content=”all”/>
<meta name=”revisit-after” content=”15 days”/>
<meta name=”googlebot” content=”index,follow,all”/>
<meta name=”abstract” content=”Web Design India, website designing India, SEO services India, php development India,”/>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″/>

Posted by Suresh B

Javascript is not enabled problem

Tuesday, August 28th, 2007

The Javascript is not enabled the popup window will not be open.

To avoid this situation to use following code;

<a href=“login.php” onClick=“javascript:window.open(’login.php’, ‘title’, ‘width=564PX, height=474PX, scrollbars=yes, top=0, left=0′); return false;”>Click To Login</a>

javascript is enabled–>onclick event will work

javascript is not enabled–> it will open a login.php page specified inside the href tag

Posted by Kalaivani S

How to open a popup window depending on screen width and height

Tuesday, August 28th, 2007

The following code will open a popup window depending on screen width and height

onClick=“javascript:window.open(’php page name’, ‘title’, ‘width=’+screen.width+’PX, height=’+screen.height+’PX, scrollbars=yes, top=0, left=0′);”

The above line will be placed inside the anchor tag

Posted by Kalaivani S

How to open a popup with specified width and height

Tuesday, August 28th, 2007

//Javascript

window.open(’login.php’,'title’,'width=564PX,height=474PX’);
-The above line will place inside the script  tag.
-It will open a login.php page with 564px as width and 474px as height of the page

//To open a popup window using ‘anchor’ tag

onClick=“javascript:window.open(’login.php’, ‘title’, ‘width=564PX, height=474PX’)”;

-The above code will open a popup window based on  the onclick event

Posted by Kalaivani S

How to write paragraphs to mysql with quotes(’ and “)

Friday, August 24th, 2007

Php provides a function called addslashes ( string $str )

What addslashes do?

It returns a string with backslashes before characters that needed to be quoted in database queries . Example characters are single quote (), double quote (), backslash (\)

How to use it?

$yourvariable=“is html does good’s “ ;

echo $yourvariable;

// this outputs "is html does good\’s"

$yourvariable=addslashes($yourvariable);

Posted by Suresh B

Load XML file in PHP

Thursday, August 16th, 2007

class doc

{

bool load_doc ( string filename )

}

Loads and XML document from a file.

Examples:

 

<?php
$document1
= DOMDocument::load(‘example.xml’);
echo
$document1->saveXML();

$document1 = new DOMDocument();
$docoument1->load(‘book.xml’);
echo
$document1->saveXML();
?>

Posted By:V.Mahesh

Posted by Mahesh ( Tryangled )

Troubleshooting Cofiguration Error in asp.net?

Thursday, August 16th, 2007
  1. step1: Select Control Panel->Administrative Tools->run internet Service Manager
  2. Find the project in the list of projects. (Open up your computer in the list and look under “Default Web Site”).
  3. Bring up its properties (Right click > Properties).
  4. If the “application name” (under “Application Settings” on the “Directory” tab) is greyed out then click ‘[Create]’ and then ‘[OK]’.

Posted By: V.Mahesh

Posted by Mahesh ( Tryangled )

selecting checkbox insiding gridview control in asp.net

Thursday, August 16th, 2007

stringBuilder name=new stringBuilder();

//select checkbox from gridview control

for (int i = 0; i < GridView1.Rows.Count; i++){

GridViewRow row_names = GridView1.Rows[i];

bool isChecked = ((CheckBox) row_names.FindControl(“chkSelect”)).Checked;

if (isChecked)

{


str.Append(GridView1.Rows[i].Cells[2].Text);

}

}

//Results

Response.Write(str.ToString());

<HeaderTemplate>
<input id=”cheackall” onclick=”javascript:selectcheckbox(this);” runat=”server” type=”checkbox” />
</HeaderTemplate>


<script language=javascript>

function selectcheckbox(chk){

var item1 = Chk.children;

var theBox=(Chk.type==“checkbox”)?Chk:Chk.children.item[0];

xState=theBox.checked;

elm=theBox.form.elements;

for(i=0;i<elm.length;i++)

if(elm[i].type==“checkbox” && elm[i].id!=theBox.id)

{

//elm[i].click();

if(elm[i].checked!=xState)

elm[i].click();

//elm[i].checked=xState;

}

}

</script>

Posted By: V.Mahesh

Posted by Mahesh ( Tryangled )

how to rewriting URL in asp.net?

Thursday, August 16th, 2007

void Application_BeginRequest(Object sender,EventArgs e)

{

string cpath;

 	String CustomPath;

 	Cpath = Request.Path;

	 cPath = cPath.ToLower();

 if (cPath.IndexOf( “/subfolder/” ) > -1)

 {

  CustomPath = “getContent.aspx?id=” +

Path.GetFileNameWithoutExtension( cPath );  // rewrite the URL

  Context.RewritePath( cPath );

 }

}



Posted By:V.Mahesh
Posted by Mahesh ( Tryangled )