Posted in JavaScript on November 8th, 2006 No Comments »
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.
Posted in JavaScript on October 27th, 2006 No Comments »
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.
Posted in ASP.NET, JavaScript on October 26th, 2006 1 Comment »
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.