Feed on
Posts
Comments

Archive for the 'JavaScript' Category

To encode Uniform Resource Identifier (URI) you can use the encodeURIComponent() JavaScript function like this:
javascript:location.href=’http://mysite.com/bookmark.aspx?url=’ + encodeURIComponent(location.href)+’&title=’ + encodeURIComponent(document.title)
 To decode the URI you can use the decodeURIComponent JavaScript function.
encodeURIComponent, JavaScript, URL Encoding

Share and Enjoy:
These icons link to social bookmarking sites where readers can share and discover new web pages.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • dzone
  • Netscape
  • digg
  • YahooMyWeb
  • Technorati

Use this JavaScript to change the content of iFrame with name frameMyFrame:
var oIframe = window.frames[’frameMyFrame’];            var sContentHTML = ‘<b>My text.</b>’;        oIframe.document.open();oIframe.document.write(’<html><head><link rel="stylesheet" href="styles.css" type="text/css" /></head><body>’);oIframe.document.write(sContentHTML);oIframe.document.write(’</body></html>’);oIframe.document.close();

iframe, JavaScript

Share and Enjoy:
These icons link to social bookmarking sites where readers can share and discover new web pages.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • dzone
  • Netscape
  • digg
  • YahooMyWeb
  • Technorati

Have you ever wondered how to make a drop-down list to perform a PostBack when only a specific option is selected? If you set the AutoPostBack property to true, then each time when the selected option is changed the PostBack will be invoked. Since this means unnecessary requests to the server it is better to […]

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • dzone
  • Netscape
  • digg
  • YahooMyWeb
  • Technorati

« Prev -