anagaiyahoocom


Member since 03/06/2011

Website: www.katcode.com

18 snippets

353 profile views

1 Comment(s) Posted

View their favorites

Profile

Achievement

first submission:submitting first snipplet

anagaiyahoocom's Recent Snippets



« Prev 1 Next »
Place startTime() at beginning where timing is to start. Get the return value and set the start time variable. At end of script to time call execTime($start) passing the start time and this will calculate elapsed time of execution.
1 180 posted 8 years ago by anagaiyahoocom
This will search for specific type of tag in html doc and extract type attribute value and all attributes after it in tag.
0 135 posted 8 years ago by anagaiyahoocom
This will check if object is an array object. This will add isArray() method to Array native object. Can be used to check if passed in object is an array. Future ecmascript 5 will have this included. Can use this in the meantime. Using instance...
0 145 posted 9 years ago by anagaiyahoocom
This will detect if console.log is available in browser and display the message. Otherwise will display as alert message
0 104 posted 9 years ago by anagaiyahoocom
Is very inefficient to attach a anonymous function event handlers to multiple items in a selection. The function is duplicated for each element. This shows how you can just create a single function and in the event handler callback just call that...
0 98 posted 9 years ago by anagaiyahoocom
Use this to page cache your pages. Will save page output to a file. Will check file modified date to get from file or retrieve again
1 115 posted 9 years ago by anagaiyahoocom
Use this to validate if input has html elements
0 135 posted 9 years ago by anagaiyahoocom
You can use JUri object to extract the path or query string from a any url
0 234 posted 9 years ago by anagaiyahoocom
Can use JUri to get the page handle
0 150 posted 9 years ago by anagaiyahoocom
Example of how to display HTTP error code and message on ajax response
0 136 posted 9 years ago by anagaiyahoocom
This will extract page handle between last slash and .html
0 132 posted 9 years ago by anagaiyahoocom
« Prev 1 Next »