User Profile
Collapse
-
http://techeyes.blogsp ot.com/2007/11/making-html-select-readonly.html -
This'll work in any major browser:
---------------------------------------------------------------------------------------
[HTML]<style type="text/css">
textarea#doc_so urce {
position:fixed; z-index:1000; bottom:10px; right:20px; width:600px; height:300px; display:none; overflow:scroll ;
}
input#doc_butto n {
position:fixed; z-index:1000; top:10px; right:20px; width:120px;...Leave a comment:
-
rails and sqlite3 error
I am trying to install SQLite3 for my rails app. However I keep getting this error:
Any ideas?Code:./sqlite3.dll: 127: The specified procedure could not be found. – Init_sqlite3 (LoadError)
-
-
First, since your site is in the buggy quirks mode, I would add this to the top of every page in your site:
Then I would change this line:Code:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
to this and test it out:...Code:frame.style.minHeight = document.height - height;
Leave a comment:
-
This code will show it in the page:
Could print thatCode:<input type="button" onclick="document.getElementById('source').value = documentElement.innerHTML;" value="View Source" /> <textarea id="source" style="width:900px;height:700px;"></textarea>Leave a comment:
-
This should give you a start:
http://www.matts411.co m/webdev/creating_form_e lements_with_ja vascriptLeave a comment:
-
That's not what I'm getting. Are you in quirks mode?
I made a test file:
[code=html]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Get width/height - Test Page</title>[/code]
[code=javascript]
<script type="text/javascript">...Leave a comment:
-
If has a display value of none I return 0. I don't check the offsetWidth unless it has a display value of block or something != none
[CODE=javascript]
if(el.currentSt yle["display"] == "none")
return 0;
[/CODE]
also clientWidth will return 0 in IE when the div's width is not set or is set to 'auto'
try this with the functions I wrote:...Leave a comment:
-
Try these two functions out:
http://www.matts411.co m/webdev/width_and_heigh t_getter_functi ons_for_html_el ements
Just wrote them. Should work but have yet to do enough testing to prove that they work 100% of the time.Leave a comment:
-
Leave a comment:
-
This line probably isn't flying well with Internet Explorer:
There's a way around this by using
StudentFirstnam e.setAttribute( 'Name', 'Student2_First name');
and after appending every child redrawing the DOM:
parentElement.i nnerHTML = parentElement.i nnerHTML
For more information: http://www.matts411.co m/webdev/creating_form_e lements_with_ja vascript...Leave a comment:
-
Here's a good link:
Creating Form Elements with Javascript:
http://www.matts411.co m/webdev/creating_form_e lements_with_ja vascript...Leave a comment:
No activity results to display
Show More
Leave a comment: