Jump to content

raimo

Members
  • Posts

    132
  • Joined

  • Last visited

raimo's Achievements

Member

Member (2/7)

0

Reputation

  1. The reason is input is NOT valid child element of form in XHTML 1.1But input IS valid child element of div.Check valid child elements of form element:http://learningforlife.fsu.edu/webmaster/r.../forms/form.cfmNo input there.And then check valid child elements of div element:http://learningforlife.fsu.edu/webmaster/r...gs/text/div.cfmYes, there is input.
  2. To know how many checkboxes You have You shoud do something like:<form id="AlterarExcluirForm" action="#"><input type="checkbox" /><input type="checkbox" /><input type="checkbox" /></form><script type="text/javascript">var cnt = 0;var inp = document.getElementById("AlterarExcluirForm").elements; // all inputsfor (var i = 0; i < inp.length; i++) if (inp[i].getAttribute("type") == "checkbox") cnt++;alert(cnt); //there is 3 checkboxes now</script>
  3. Without knowing what sFrameName is in Your case, I think:var oDiv = top.sFrameName.document.getElementById('divXX'); but can't be sure without seeing more code. if sFrameName is parent window try: var oDiv = window.opener.document.getElementById('divXX'); Anyway, it must allways be document.getElementById
  4. raimo

    perl & cgi

    I don't like it that's the reason I'm not using it. By the way, Perl is very similar to C++, borned from it.PHP is borned from Perl actually http://fi2.php.net/historyPerl is part of Linux-OS so I can build programs with it, or what ever needed to www-pages. PHP has some good things, but Perl is filled with beuatiful stuff.
  5. You can view and edit the source with Firefox. install Web Developer extension.Push Options button of WD toolbar and select View source -> programs (notepad )can be added there.http://chrispederick.com/work/webdeveloper/
  6. raimo

    perl & cgi

    I'm using only Perl, not PHP at all .. don't like syntax of PHP, but Perl is beautiful and cool.
  7. There is STILL 2 head sections in Your page! Days are gone, and otherone is still there.If You wonder why it wont work as it should work You should first fix that thing, in my opinnion... If You include with PHP, don't include that other head part (or other harmful things), only part of text or code needed.1st. advice: if there is something seeing "wrong way" anytime with some browser check Your code is in good condition, now it is not.
  8. "The editor" is Tea http://tea.linux.kiev.ua/Tons of features, but still very fast and very lightweight. I think it's best evermade Linux HTML etc. editor.Try it: apt-get install tea
  9. MSIE is getting confused somehow with application/xhtml+xml and application/xml (if I remember correct?),but try text/xml, I think it should work better with MSIE and it can be used with XHTML 1.1Look what W3C says:http://www.w3.org/TR/xhtml-media-types/#summary
  10. thirdly, here is very simple but good script to do it var elms = document.getElementsByTagName('a'); for (var i = 0; i < elms.length; i++){ elms[i].target = elms[i].getAttribute('rel'); } Save code to external javascript file (name as target.js or something) and include that JS-file just before </body> tag. (after last a-element of Your document).Include tag:<script src="target.js" type="text/javascript"></script>modify Your links like:<a rel="_blank" href="http://www.google.ru">Google</a>and Your links will open in new window. (rel = target)
  11. raimo

    HTML

    If user agent is not changed to MSIE or "My Browser". You can change it whatever You want. :)With this extension it's easy to do: http://chrispederick.com/work/useragentswitcher/Anyway:if (navigator.userAgent.toLowerCase().indexOf('firefox') != -1) alert('Oh yes, FIREFOX!');
  12. I think it depends of what we need to get changed, only value of one text node or array of html tags.innerHTML is very good if there is many tags or should I say nodes. But if only need is change text value of one element DOM is not bad at all.innerHTML:document.getElementById('id').innerHTML = 'gerbils are not rats!'; DOM: document.getElementById('id').firstChild.nodeValue = 'me tarzan you jane?'; OK, with DOM firstChild must exists, innerHTML wrotes is there nodes inside of element or not,but that is not a big problem, I think.
  13. Look CSS max-width, min-width, max-height and min-height.I'd just tested those yesterday with Opera 9 (and Firefox 1.5.0.2) .. works fine with both.edit:<style type="text/css">#ifr1{width: 100%;height: 50%;max-width: 800px;min-width: 500px;min-height: 150px;}</style><iframe id="ifr1"></iframe> iframe is "scaling" to 100% only if width of it is between 500px and 800px.And height will stay in 50% until 150px height limit comes, that point it will stop scaling. Cool, I think? (but quessing here .. it won't work with MSIE?)
  14. Where You get that? Hex idtenfier MUST be there! It does not mean if it works with MSIE without that identifier, it can be throwed out of the code! Test it by pushing hereInvalid number : color c0c0c0 is not a color value : c0c0c0If HEX colors are used there MUST be always # -mark with value.
  15. raimo

    Open file dialog

    You can do it only by hide original file-input field and then create visible "fake input field" with text input and button or image.Look: http://www.quirksmode.org/dom/inputfile.html
×
×
  • Create New...