anagaiyahoocom


Member since 03/06/2011

Website: www.katcode.com

18 snippets

25 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 28 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 19 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 17 posted 8 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 15 posted 8 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 12 posted 8 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 13 posted 8 years ago by anagaiyahoocom
Use this to validate if input has html elements
0 22 posted 9 years ago by anagaiyahoocom
You can use JUri object to extract the path or query string from a any url
0 39 posted 9 years ago by anagaiyahoocom
Can use JUri to get the page handle
0 16 posted 9 years ago by anagaiyahoocom
Example of how to display HTTP error code and message on ajax response
0 17 posted 9 years ago by anagaiyahoocom
This will extract page handle between last slash and .html
0 15 posted 9 years ago by anagaiyahoocom
« Prev 1 Next »