Posts categorized 'Technical'

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"

Nice article about large file upload using asp.net

http://weblogs.asp.net/jgalloway/archive/2008/01/08/large-file-uploads-in-asp-net.aspx...

Continue reading "Nice article about large file upload using asp.net"

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"

Guidelines for high-quality URLs

Usability expert Jakob Nielsen (www.useit.com) urges developers to pay attention to URLs and provides the following guidelines for high-quality URLs: ❑ A domain name that is easy to remember and easy to spell ❑ Short URLs ❑ Easy-to-type URLs ❑ URLs that refl ect the site structure ❑ URLs that are “hackable”...

Continue reading "Guidelines for high-quality URLs"

Send email from gmail using asp.net, godaddy shared hosting

“Sending email is working local, but when i put online its not sending and returning errors”, We hear a lot of people online suffer from this annoying problem, i had the same problem but rather than spending a lot of time searching for solutions on google and forums, i went to godaddy support...

Continue reading "Send email from gmail using asp.net, godaddy shared hosting"

Indexed pixel format problem in GDI+

Exception : "A Graphics object cannot be created from an image that has an indexed pixel format". this exception happed in my application while trying to draw string on a .gif image, I read about this problem and found in MSDN that: If the image has an indexed pixel format, this method throws...

Continue reading "Indexed pixel format problem in GDI+"

Demo Website – free code samples

I created a sub domain called http://demo.amrelgarhy.com , under this domain i will samples to solves many technical problems i find useful to share with readers. I will try to add as many different examples as i can, also will try to describe as much as i can how i implemented these examples. Also i...

Continue reading "Demo Website – free code samples"

Options:

Size

Colors