<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4094035554361722548</id><updated>2011-11-27T21:00:33.472-03:00</updated><category term='jquery'/><category term='DOM'/><category term='javascript'/><category term='CSS'/><category term='iframe'/><category term='HTML'/><category term='IE'/><category term='Internet Explorer'/><category term='code'/><category term='frame'/><category term='encode'/><category term='FF'/><category term='style'/><category term='FireFox'/><category term='GUI'/><title type='text'>Another Technical Blog</title><subtitle type='html'>This is another technical blog without any aspiration of to get masses, but, with a notebook's aspirations about coding/develop tech tips. 
If somebody else thinks that this is useful, great!</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://anothertechnicalblog.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4094035554361722548/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://anothertechnicalblog.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Francisco Javier Cabezas V.</name><uri>http://www.blogger.com/profile/14048957893641121418</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>9</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4094035554361722548.post-2045914788732780076</id><published>2009-08-24T17:07:00.013-04:00</published><updated>2009-10-07T13:04:03.816-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='FF'/><category scheme='http://www.blogger.com/atom/ns#' term='Internet Explorer'/><category scheme='http://www.blogger.com/atom/ns#' term='IE'/><category scheme='http://www.blogger.com/atom/ns#' term='jquery'/><category scheme='http://www.blogger.com/atom/ns#' term='FireFox'/><category scheme='http://www.blogger.com/atom/ns#' term='iframe'/><title type='text'>jQuery: open a widescreen dialog (in top.document) from any nested iframe/frame</title><content type='html'>A problem that I had some days ago was to open a &amp;nbsp;&lt;a href="http://jqueryui.com/demos/dialog/"&gt;dialog&lt;/a&gt;&amp;nbsp;with jQuery from a nested iframe but using all the document's width/height. If the dialog is inside of the iframe, the modal view (and the position ) depends just about the iframe scope.&lt;br /&gt;&lt;br /&gt;Indeed, every time that you execute a line like&amp;nbsp;&amp;nbsp;$("#dialogDiv").dialog(),&lt;span style="font-family: monospace;"&gt;&lt;span style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; white-space: pre-wrap;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;the init will set the parameters about the position &amp;nbsp;and dimentions of the caller object, i.e., if do you want to make a dialog() call from a iframe/frame that just have a few pixels (or just don't have them), the dialog window will not see ok.&lt;br /&gt;&lt;span style="font-family: monospace;"&gt;&lt;span style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; white-space: pre-wrap;"&gt;&lt;span style="font-family: 'Times New Roman';"&gt;&lt;span style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; white-space: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;One possible solution is to define a dialog div (with id=dialogDiv) in the top.document file. But we can not activate the dialog from the iframe/frame. To solve this, we need add a javascript code like this in the top.document file:&lt;br /&gt;&lt;br /&gt;&amp;lt;script  type="text/javascript"&amp;gt;&lt;br /&gt;var &lt;span style="color: #990000;"&gt;top.window&lt;/span&gt;.docDialog=null;&lt;br /&gt;$(document).ready( function() {&lt;br /&gt;&lt;span style="white-space: pre;"&gt;    &lt;/span&gt;$("#main",top.document).prepend("&amp;lt;div id='dialog' title=''&amp;gt;&amp;lt;/div&amp;gt;");&lt;br /&gt;&lt;span style="white-space: pre;"&gt;    &lt;/span&gt;&lt;span style="color: #990000;"&gt;top.window&lt;/span&gt;.docDialog=$("#dialog");&lt;br /&gt;&lt;span style="white-space: pre;"&gt;    &lt;/span&gt;&lt;span style="color: #990000;"&gt;top.window&lt;/span&gt;.docDialog.dialog({&lt;br /&gt;&lt;span style="white-space: pre;"&gt;        &lt;/span&gt;bgiframe: true,&lt;br /&gt;&lt;span style="white-space: pre;"&gt;        &lt;/span&gt;minHeight: 30,&lt;br /&gt;&lt;span style="white-space: pre;"&gt;        &lt;/span&gt;minWidth: 200,&lt;br /&gt;&lt;span style="white-space: pre;"&gt;        &lt;/span&gt;height: 100,&lt;br /&gt;&lt;span style="white-space: pre;"&gt;        &lt;/span&gt;width: 250,&lt;br /&gt;&lt;span style="white-space: pre;"&gt;        &lt;/span&gt;autoOpen: false,&lt;br /&gt;&lt;span style="white-space: pre;"&gt;        &lt;/span&gt;modal: true&lt;br /&gt;&lt;span style="white-space: pre;"&gt;    &lt;/span&gt;});&lt;br /&gt;});&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&lt;br /&gt;Where the code is adding a div (id=dialog) inside of another existing div (id=main). Then you assign the jQuery object to a variable of the top.window. Thus, we can locate the docDialog variable from any iframe/frame, allowing us to interact with the dialog div defined.&lt;br /&gt;&lt;span style="font-family: monospace;"&gt;&lt;span style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; white-space: pre-wrap;"&gt;&lt;span style="font-family: 'Times New Roman';"&gt;&lt;span style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; white-space: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;In this hand, if assume that in the nested iframe/frame an error occurs and want to activate the message (dialog), just use a code like this:&lt;br /&gt;&lt;br /&gt;&amp;lt;script  type="text/javascript"&amp;gt;&lt;br /&gt;&lt;span style="color: #990000;"&gt;top.window&lt;/span&gt;.docDialog&lt;br /&gt;&lt;span style="white-space: pre;"&gt;    &lt;/span&gt;.html("&amp;lt;div style='font-size:14px;paddig:0;margin:0;color:#FF1111;'&amp;gt;&amp;lt;center&amp;gt;No se puede Ingresar en este momento&amp;lt;/center&amp;gt;&amp;lt;/div&amp;gt;")&lt;br /&gt;&lt;span style="white-space: pre;"&gt;    &lt;/span&gt;.dialog('option', 'title', 'ERROR')&lt;br /&gt;&lt;span style="white-space: pre;"&gt;    &lt;/span&gt;.dialog('open');&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&lt;br /&gt;Note that the&lt;span style="color: #990000;"&gt;&amp;nbsp;top.window&lt;/span&gt;.docDialog object is a jQuery object. Also, this works with Internet Explorer and FireFox.&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4094035554361722548-2045914788732780076?l=anothertechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://anothertechnicalblog.blogspot.com/feeds/2045914788732780076/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4094035554361722548&amp;postID=2045914788732780076&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4094035554361722548/posts/default/2045914788732780076'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4094035554361722548/posts/default/2045914788732780076'/><link rel='alternate' type='text/html' href='http://anothertechnicalblog.blogspot.com/2009/08/jquery-dialog-en-topdocument-desde.html' title='jQuery: open a widescreen dialog (in top.document) from any nested iframe/frame'/><author><name>Francisco Javier Cabezas V.</name><uri>http://www.blogger.com/profile/14048957893641121418</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4094035554361722548.post-5063622700252131661</id><published>2009-08-20T11:58:00.013-04:00</published><updated>2009-10-07T15:20:45.891-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='frame'/><category scheme='http://www.blogger.com/atom/ns#' term='FF'/><category scheme='http://www.blogger.com/atom/ns#' term='IE'/><category scheme='http://www.blogger.com/atom/ns#' term='DOM'/><category scheme='http://www.blogger.com/atom/ns#' term='jquery'/><category scheme='http://www.blogger.com/atom/ns#' term='iframe'/><title type='text'>jQuery: To select elements from a iframe/frame</title><content type='html'>&lt;div&gt;&lt;br /&gt;When we use jQuery selectors is necesary to deliver an argument of&amp;nbsp;&amp;nbsp;&lt;span style="color: #cc0000;"&gt;document&lt;/span&gt;, ie, a&amp;nbsp;&lt;span style="color: #cc0000;"&gt;HTMLDocument&lt;/span&gt;&amp;nbsp;object. The problem is that don't work to use &amp;nbsp;&lt;span style="color: #cc0000;"&gt;.document &lt;/span&gt;or&amp;nbsp;&lt;span style="color: #cc0000;"&gt;.contentDocument&lt;/span&gt;. To make work both, &amp;nbsp;IE and FF, we need to use &amp;nbsp;&lt;span style="color: #cc0000;"&gt;.contentWindow.document&lt;/span&gt;.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Ex: suppose a document with an iframe(id=frame_selector) inside it, and the document inside of the iframe have a form(id=sel_indice). We need to set a input element inside of the form with the count of the checked checkboxes before to run a submit of the form. We can use the follows code:&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;script&amp;gt;&lt;br /&gt;function doSubmit() {&lt;br /&gt;&lt;span style="white-space: pre;"&gt; &lt;/span&gt;var docSel=null;&lt;br /&gt;&lt;span style="white-space: pre;"&gt; &lt;/span&gt;$('#frame_selector').each( function(){ docSel=this.&lt;span style="color: #cc0000;"&gt;contentWindow.document&lt;/span&gt;;});&lt;br /&gt;&lt;span style="white-space: pre;"&gt; &lt;/span&gt;$("#sel_indice input[id='Cantidad']",docSel).val($("#sel_indice &lt;span style="white-space: pre;"&gt; &lt;/span&gt;input[id*='check']",docSel).filter(":checked").length);&lt;br /&gt;&lt;span style="white-space: pre;"&gt; &lt;/span&gt;$("#sel_indice",docSel).submit();&lt;br /&gt;}&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;br /&gt;The important is the second code line. If you try to do a selector like &amp;nbsp;$("#sel_indice"), without the second argument, you will get a empty array as return of the jQuery selector,&amp;nbsp;because jQuery uses the content of the DOM that include the iframe/frame definition as default &amp;nbsp;&lt;span style="color: #cc0000;"&gt;HTMLDocument&lt;span style="color: black;"&gt;, but not the DOM contained by the iframe/frame. Again, this works using Internet Explorer or FireFox.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4094035554361722548-5063622700252131661?l=anothertechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://anothertechnicalblog.blogspot.com/feeds/5063622700252131661/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4094035554361722548&amp;postID=5063622700252131661&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4094035554361722548/posts/default/5063622700252131661'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4094035554361722548/posts/default/5063622700252131661'/><link rel='alternate' type='text/html' href='http://anothertechnicalblog.blogspot.com/2009/08/seleccion-de-elementos-dentro-de-un.html' title='jQuery: To select elements from a iframe/frame'/><author><name>Francisco Javier Cabezas V.</name><uri>http://www.blogger.com/profile/14048957893641121418</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4094035554361722548.post-637401743964749838</id><published>2009-08-20T11:49:00.004-04:00</published><updated>2009-10-15T13:25:14.016-03:00</updated><title type='text'>Frame/Iframe Scrolls</title><content type='html'>&lt;div&gt;&lt;span style="font-weight: bold;"&gt;margin note: &lt;/span&gt;&amp;nbsp;to avoid frames/iframe's scrolls, use the follow properties : overflow-x y overflow-y. &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;Ex: &lt;span style="color: #cc0000;"&gt;style="overflow-x: hidden; overflow-y: auto;"&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;This shows a vertical scroll if it's necesary and never shows an horizontal scroll.&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4094035554361722548-637401743964749838?l=anothertechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://anothertechnicalblog.blogspot.com/feeds/637401743964749838/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4094035554361722548&amp;postID=637401743964749838&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4094035554361722548/posts/default/637401743964749838'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4094035554361722548/posts/default/637401743964749838'/><link rel='alternate' type='text/html' href='http://anothertechnicalblog.blogspot.com/2009/08/scroll-de-frames-e-iframes.html' title='Frame/Iframe Scrolls'/><author><name>Francisco Javier Cabezas V.</name><uri>http://www.blogger.com/profile/14048957893641121418</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4094035554361722548.post-3863834545674338624</id><published>2009-07-30T12:40:00.012-04:00</published><updated>2009-10-15T15:34:06.315-03:00</updated><title type='text'>Selectors, optimizing time and  jQuery</title><content type='html'>When I &amp;nbsp;learned &amp;nbsp;to use jQuery, it was necesary to me to understand the several &amp;nbsp;kinds of selectors to do the same duty.&lt;br /&gt;&lt;br /&gt;To confront the problem of to do the init of &amp;nbsp;a few Datepicker calendars (10 in total ), the first way was to make the follows selector (class selector):&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&amp;lt;script&amp;gt;&lt;br /&gt;$(&lt;span style="color: #cc0000;"&gt;".datepicker"&lt;/span&gt;).datepicker();&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;The problem of this kind of selector is that each time that you do it, the jQuery do a whole search by all DOM. In fact, to do this sentence takes a few seconds.&lt;br /&gt;&lt;br /&gt;Searching a solution to this response time GAP, the selector was changed by the follows code (a for with id selector):&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&amp;lt;script&amp;gt;&lt;br /&gt;var arrId=new Array("id0","id1","id2","id3","id4","id5","id6","id7","id8","id9");&lt;br /&gt;for (x in arrId) {&lt;br /&gt;$(&lt;span style="color: #cc0000;"&gt;"#"+arrId[x]&lt;/span&gt;).datepicker();&lt;br /&gt;}&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Where the arrID var is a array with the id's by each &amp;nbsp;element to set as a&amp;nbsp;datepicker. The id selector always be faster because uses the feature of a&amp;nbsp;document.getElementById() search. This code just takes arround a second.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4094035554361722548-3863834545674338624?l=anothertechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://anothertechnicalblog.blogspot.com/feeds/3863834545674338624/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4094035554361722548&amp;postID=3863834545674338624&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4094035554361722548/posts/default/3863834545674338624'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4094035554361722548/posts/default/3863834545674338624'/><link rel='alternate' type='text/html' href='http://anothertechnicalblog.blogspot.com/2009/07/selectores-optimizacion-de-tiempo-y.html' title='Selectors, optimizing time and  jQuery'/><author><name>Francisco Javier Cabezas V.</name><uri>http://www.blogger.com/profile/14048957893641121418</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4094035554361722548.post-5460347438117519739</id><published>2009-07-30T12:15:00.009-04:00</published><updated>2009-10-15T16:07:26.305-03:00</updated><title type='text'>A weakness of  DatePicker widget</title><content type='html'>A jQuery's widget, the datepicker, have many users in the website programming field.&lt;br /&gt;&lt;br /&gt;But, nothing in programming is perfect. When a webpage includes several calendars (datepicker objects), the init process for each calendar gives atime gap undesired.&lt;br /&gt;Testing in a PC(intel core 2 duo), when init the datepicker calendars, you could have a 500ms time wasted by each object.&lt;br /&gt;&lt;br /&gt;Of course, the most webpages have just 1 or 2 calendars, but I need a page with 10.&amp;nbsp;Moreover, we needed the calendars with lenguage's distintion, so, when makes the lenguage's settings the init process was slower.&lt;br /&gt;Apparently, the code&amp;nbsp;&lt;span style="font-style: italic;"&gt;.datepicker(option, {var:valor, var:valor}) &lt;/span&gt;or options set later to init take more time in the execution than realy we &amp;nbsp;want. I don't check the sources yet, but in facts, it's clear that for each sentence to init a calendar we produce a time gap when set options.&lt;br /&gt;&lt;br /&gt;How to solve this?&lt;br /&gt;By now, we add a previous code (execute on server side, like PHP or ASP code) that using the lenguage defined by the page's user inserts a javascript like this before to init the calendars:&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&amp;lt;script&amp;gt;&lt;br /&gt;jQuery(function($){&lt;br /&gt;$.datepicker.setDefaults($.datepicker.regional['es']);&lt;br /&gt;});&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;With this reduce the load time from 5 to 1 second.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4094035554361722548-5460347438117519739?l=anothertechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://anothertechnicalblog.blogspot.com/feeds/5460347438117519739/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4094035554361722548&amp;postID=5460347438117519739&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4094035554361722548/posts/default/5460347438117519739'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4094035554361722548/posts/default/5460347438117519739'/><link rel='alternate' type='text/html' href='http://anothertechnicalblog.blogspot.com/2009/07/una-debilidad-de-datepicker.html' title='A weakness of  DatePicker widget'/><author><name>Francisco Javier Cabezas V.</name><uri>http://www.blogger.com/profile/14048957893641121418</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4094035554361722548.post-525463459570317621</id><published>2009-07-24T10:22:00.015-04:00</published><updated>2009-10-15T15:32:43.729-03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='code'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML'/><category scheme='http://www.blogger.com/atom/ns#' term='encode'/><title type='text'>Publishing HTML code</title><content type='html'>&lt;span style="font-family: verdana;"&gt;&lt;/span&gt;&lt;span style="font-family: verdana;"&gt;To publish HTML code in a blog, is necesary to write the code as an "&lt;span style="font-style: italic;"&gt;entity-encoded markup&lt;/span&gt;". To don't do it by hand, there is a site called simpleCode that does it easier as a copy and paste.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;Just need to visit the form and use it.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;The important link:&amp;nbsp;&lt;a href="http://www.simplebits.com/cgi-bin/simplecode.pl?mode=process"&gt;http://www.simplebits.com/cgi-bin/simplecode.pl?mode=process&lt;/a&gt;.&lt;/span&gt;&lt;span style="font-family: verdana;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4094035554361722548-525463459570317621?l=anothertechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://anothertechnicalblog.blogspot.com/feeds/525463459570317621/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4094035554361722548&amp;postID=525463459570317621&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4094035554361722548/posts/default/525463459570317621'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4094035554361722548/posts/default/525463459570317621'/><link rel='alternate' type='text/html' href='http://anothertechnicalblog.blogspot.com/2009/07/prueba-de-formatos.html' title='Publishing HTML code'/><author><name>Francisco Javier Cabezas V.</name><uri>http://www.blogger.com/profile/14048957893641121418</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4094035554361722548.post-5621836983349060018</id><published>2009-07-24T09:42:00.034-04:00</published><updated>2009-10-16T11:21:24.936-03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='FF'/><category scheme='http://www.blogger.com/atom/ns#' term='Internet Explorer'/><category scheme='http://www.blogger.com/atom/ns#' term='IE'/><category scheme='http://www.blogger.com/atom/ns#' term='jquery'/><category scheme='http://www.blogger.com/atom/ns#' term='CSS'/><category scheme='http://www.blogger.com/atom/ns#' term='FireFox'/><category scheme='http://www.blogger.com/atom/ns#' term='style'/><title type='text'>Internet Explorer and CSS classes</title><content type='html'>&lt;span style="font-family: verdana;"&gt;Programming with jQuery an interactive menu to my work website, I realize a curious behavior of Internet Explorer(IE), why not.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;Everytime that you &amp;nbsp;use jQuery code like this:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;code style="font-family: arial;"&gt;  $(this).addClass("clicked");&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;You will see an erratic behavior. If the element (this) have more than one class, the IE have problems to resolve the heritance and procedence to finaly apply the desired style. But this works with others browsers like Firefox(FF) or Chrome.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;The only way I know to avoid this, it is use the &lt;i&gt;css &lt;/i&gt;jQuery function. In facts, this function does a &lt;i&gt;style &lt;/i&gt;attribute definition in the element. By example,  suppose a li element like the following:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;code style="font-family: arial;"&gt;&amp;lt;li id="li_0" class="classLi otherClass andOtherClass"&amp;gt;&lt;br /&gt;&amp;lt;a href="#"&amp;gt;Testing element&amp;lt;/a&amp;gt;&lt;br /&gt;&amp;lt;/li&amp;gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;and run this jQuery code:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;code style="font-family: arial;"&gt;$("#li_0").css( &lt;span style="color: #cc0000;"&gt;{    'background-color' : '#C0C0C0',    'color': '#FFFFFF'}&lt;/span&gt; );&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;The li element inside the DOM will be setting like this:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;code style="font-family: arial;"&gt;&amp;lt;li id="li_0" class="classLi otherClass andOtherClass" &lt;span style="color: #cc0000;"&gt;style="background-color: #C0C0C0; color: #FFFFFF;"&lt;/span&gt;&amp;gt;&lt;br /&gt;&amp;lt;a href="#"&amp;gt;Testing Element&amp;lt;/a&amp;gt;&lt;br /&gt;&amp;lt;/li&amp;gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;And because the style attribute of an element has dominance over every previous CSS definitions, you will get the desired effect. Using this, IE and FF can have the same final behavior.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;Useful link: &lt;a href="http://www.visualjquery.com/"&gt;http://www.visualjquery.com/&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4094035554361722548-5621836983349060018?l=anothertechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://anothertechnicalblog.blogspot.com/feeds/5621836983349060018/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4094035554361722548&amp;postID=5621836983349060018&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4094035554361722548/posts/default/5621836983349060018'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4094035554361722548/posts/default/5621836983349060018'/><link rel='alternate' type='text/html' href='http://anothertechnicalblog.blogspot.com/2009/07/internet-explorer-y-las-clases.html' title='Internet Explorer and CSS classes'/><author><name>Francisco Javier Cabezas V.</name><uri>http://www.blogger.com/profile/14048957893641121418</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4094035554361722548.post-3379044013314827701</id><published>2009-07-23T17:09:00.005-04:00</published><updated>2009-10-23T13:33:28.303-03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='jquery'/><category scheme='http://www.blogger.com/atom/ns#' term='GUI'/><title type='text'>jQuery</title><content type='html'>This entry doesn't need any comment. If somebody is writing a lot of javascript, try with jQuery. &amp;nbsp;This tool is &amp;nbsp;very powerful &amp;nbsp;because has selectors and useful predefined functions.&lt;br /&gt;&lt;br /&gt;The official website is &amp;nbsp;&lt;a href="http://www.jquery.com/"&gt;http://www.jquery.com&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;I recomended to take a look to UI website too, &amp;nbsp;&lt;a href="http://jqueryui.com/"&gt;http://jqueryui.com/&lt;/a&gt;.&lt;br /&gt;I resolved to use jQuery because exists a widget called datepicker that solves many problems that I have with other similar javascript artifact to give support to IE 6.0.&lt;br /&gt;&lt;br /&gt;When you feel comfortable, visit this &lt;a href="http://blog.themeforest.net/tutorials/7-things-i-wish-i-had-known-about-jquery"&gt;7 things I wish I had know about jQuery&lt;/a&gt;, and this  &lt;a href="http://www.learningjquery.com/2008/03/working-with-events-part-1"&gt; Working with Events part 1&lt;/a&gt;, and if you want to check some blogs, look at this: &lt;a href="http://www.webresourcesdepot.com/15-blogs-to-follow-for-jquery-lovers/"&gt; 15 blogs to follow for jQuery lovers&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Others important links:&lt;br /&gt;&lt;a href="http://plugins.jquery.com/"&gt;http://plugins.jquery.com/&lt;/a&gt;&amp;nbsp;site with a lot of jQuery's plugins.&lt;br /&gt;&lt;a href="http://jquerylist.com/"&gt;http://jquerylist.com/&lt;/a&gt;&amp;nbsp;a list with plugins and useful widgets.&lt;br /&gt;&lt;a href="http://www.visualjquery.com/"&gt;http://www.visualjquery.com/&lt;/a&gt;&amp;nbsp;very useful site to search jQuery functions references.&lt;br /&gt;&lt;a href="http://www.addedbytes.com/cheat-sheets/download/javascript-cheat-sheet-v1.png"&gt;http://www.addedbytes.com/cheat-sheets/download/javascript-cheat-sheet-v1.png&lt;/a&gt;&amp;nbsp;&amp;nbsp;An useful "cheat sheet" to whom knows javascript programming lenguage and just needs a memory help.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4094035554361722548-3379044013314827701?l=anothertechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://anothertechnicalblog.blogspot.com/feeds/3379044013314827701/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4094035554361722548&amp;postID=3379044013314827701&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4094035554361722548/posts/default/3379044013314827701'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4094035554361722548/posts/default/3379044013314827701'/><link rel='alternate' type='text/html' href='http://anothertechnicalblog.blogspot.com/2009/07/jquery.html' title='jQuery'/><author><name>Francisco Javier Cabezas V.</name><uri>http://www.blogger.com/profile/14048957893641121418</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4094035554361722548.post-1758322165863637932</id><published>2009-07-23T14:06:00.001-04:00</published><updated>2009-10-15T15:03:22.794-03:00</updated><title type='text'>Another Technical Blog</title><content type='html'>This is another technical blog, but this blog doesn't aspire to be cited by a lot of programmers o designers. Just it is a help to my memory like a notebook, and if somebody else thinks that this is useful, great!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4094035554361722548-1758322165863637932?l=anothertechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://anothertechnicalblog.blogspot.com/feeds/1758322165863637932/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4094035554361722548&amp;postID=1758322165863637932&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4094035554361722548/posts/default/1758322165863637932'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4094035554361722548/posts/default/1758322165863637932'/><link rel='alternate' type='text/html' href='http://anothertechnicalblog.blogspot.com/2009/07/otro-blog-tecnico.html' title='Another Technical Blog'/><author><name>Francisco Javier Cabezas V.</name><uri>http://www.blogger.com/profile/14048957893641121418</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
