Tag Archives: javascript function

fading image using javascript

Share Show me what it does! Hide – Show Click on a link above to make the image disappear and re-appear by gradually fading in/out. It uses CSS transparency, in CSS you can set the transparency in different ways. To … Continue reading

Posted in javascript | Tagged , , | Leave a comment

javascript: escape()

ShareProblem: Getting error on ajax when passing url with “&” on it. Solution: escape() Definition and Usage The escape() function encodes a string, so it can be read on all computers. Syntax escape(string) Parameter Description string Required. The string to … Continue reading

More Galleries | Leave a comment

javascript: test()

ShareDefinition and Usage The test() method is used to search for a match of a regular expression in a string. This method returns true if a match is found, and false if not. Syntax RegExpObject.test(string) Parameter Description RegExpObject Required. The … Continue reading

Posted in javascript | Tagged , , | Leave a comment

cancelBubble

ShareI have this function but something was wrong with firefox. I got undefine value. After taking a closer look in my code I forgot to pass the ‘event’ parameter on my function. function dps_cancel_bubble(e) { if (!e) var e = … Continue reading

Posted in javascript | Tagged , , , , , , | Leave a comment

javascrpt function setHomePage doesn’t work with firefox and ie

ShareWe need to use this javascript function setHomePage() for our website but my teammate said it only works for ie. So I did some checking on that function and bumped into different sites that referenced it.  And some are listed … Continue reading

Posted in javascript | Tagged , , | 1 Comment