Servers should be cautious about depending on URI lengths above 255 bytes, because some older client or proxy implementations may not properly support these lengths. The spec for URL length does not dictate a minimum or maximum URL length, but … Continue reading
Category Archives: JavaScript
Checking value from array javascript
I found usefull following URL working with Javascript Array. http://www.javascriptkit.com/jsref/arrays.shtml Here is my code to check value from array As per this condition I am chekcing the What is returned by this MyArrayVar.indexOf(testVar). You can check this by using “alert(MyArrayVar.indexOf(testVar));” … Continue reading
How to Add or Remove the javascript file using javascript function
We can use following functions for adding the Javascript file dynamically. We can use following functions for adding the CSS file dynamically. Or We can use this also, both will work: We can use the following code for remving the … Continue reading
Creating the multiple namespace JS library with classes
When I started the creating new namespace JS library I got very useful artile to read. http://pietschsoft.com/post/2007/07/Creating-Namespaces-in-JavaScript-is-actually-rather-simple.aspx In this article they covered lot of things ( namespace protection objective ) Here I am using the namespace manager code: Using this … Continue reading
get time difference in minutes
I created javascript function named “getTheDiffTime” using that function you will be able to fetch the time difference in various format. How to use this function here I am giving you the one good example. I am going to get … Continue reading
Some accordion JS scripts
I am suggesting following accordions: jQuery Accordion example: http://www.stemkoski.com/downloads/jquery-accordion-menu/example.htm http://www.i-marco.nl/weblog/jquery-accordion-menu/ http://roshanbh.com.np/2008/06/accordion-menu-using-jquery.html http://jqueryfordesigners.com/demo/simple-slide-demo.html this has single ‘jquery-1.js’ (79KB) un-compressed version with first visible accordion, onclick backgroud color change MooTools Accordion example: http://davidwalsh.name/dw-content/accordion.php this has single ‘moo1.js’ (133KB) un-compressed version with first … Continue reading
Page scrolling up or down through javascript
Document or webpage scrolling is very easy through javascript. window.scrollBy(10,20); // horizontal and vertical scroll increments or decrements. Using scrollBy function you can create custom event or function based on project requirement. Here I am giving you the sample code: … Continue reading
how to send a variable value from an Iframe back to its parent?
If you want fetch the variable value or send variable to parent page. Use following code: In Parent page use this copy paste folliwing javascript. In Iframe page use following code. In Iframe page use this copy paste folliwing javascript. … Continue reading
Rich Text Editor in Rails Application
Many times you need normal CMS for your application. You want to need some pages data need to handle through CMS. It is really very easy to Install any RTE in the Rails. There are many open source RTE available. … Continue reading
In page pop up javascripts or modalbox
I got requirement to create in-page pop up in my project. I got many open source javascripts and CSS libraries. I found some of them are useful. Here i given the list of libraries: 1. lightbox2.04 Lightbox is a simple, … Continue reading