Posts tagged 'javascript'

Submit form using javascript

Simply to submit a form using javascript you can write: document.getElementById( 'myForm' ).submit(); In the following code you will see a special case where the form is not appearing directly on the page but through an iFrame element. < iframe id = "myIFrame" name = "myIFrame"...

Continue reading "Submit form using javascript"

Call container page function from child iframe

The simplest way i got to call a function that exists in the iframe container page is using: window.parent.<Parent Function Name Goes here>(); Example: Container page: < html xmlns = "http://www.w3.org/1999/xhtml" > < head runat = "server" > < title ></...

Continue reading "Call container page function from child iframe"

Flash Javascript communication first look

I did a fast research about how to make flash interact with the container website, and i collected some good information. There are 2 main techniques to implement communications between flash and the container website: Example: http://www.kongregate.com/developer_center/docs/kongregate-api 1- Client...

Continue reading "Flash Javascript communication first look"

HOW TO TELL WHEN IMAGES HAVE LOADED

Its a common requirement in some websites specially which are dealing with many images and JavaScript, such as image galleries websites or websites that has images slide shows made using JavaScript. In a project i just finished, i was making a slide show animation which start automatically when the page...

Continue reading "HOW TO TELL WHEN IMAGES HAVE LOADED"

Different ways to watermark html input text

There are many ways to add a watermark text to an input text, which will go when you focus the control or start writing inside. I will list here some good ways to this behavior: < asp:TextBox id ="txtName" Text ="Enter you name .." onfocus ="if (this.value=='Enter you name...

Continue reading "Different ways to watermark html input text"

Hint: Variables scope “Javascript”

All variables declared in a function are defined throughout the function var scope = "global"; function f( ) { alert(scope); // Displays "undefined", not "global" var scope = "local"; // Variable initialized here, but defined everywhere alert(scope); // Displays...

Continue reading "Hint: Variables scope “Javascript”"

JQuery Visual studio documentation

JQuery version 1.3.2 Visual Studio documentation is available for download For more info about using this documentation for intellisense check this post...

Continue reading "JQuery Visual studio documentation"

Add reference to javascript file

You can add reference to another javascript file inside another javascript file for adding intellisense for other javascript files in Visual studio You can do so using the following syntax: /// <reference path="AnotherJSFile.js" /> and to Add Microsoft Ajax reference to javascript file...

Continue reading "Add reference to javascript file"

Options:

Size

Colors