Jump to content

Caligo

Members
  • Content Count

    96
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Caligo

  • Rank
    Newbie
  • Birthday 04/07/1987

Contact Methods

  • Website URL
    http://
  1. Caligo

    Custom Print Drivers

    Hey, thanks for the help! The article is indeed a good starting point. I'll also look into 'Assember,' as you say.
  2. Caligo

    Custom Print Drivers

    Ok, I know this isn't really the place for it, but I thought perhaps (at least from what I know) that being VB is related to C/C++, someone here might know. I am looking to write a custom printer driver. For basics, I would say, like to control the part that holds the ink using the arrow keys on my keyboard. Is that even possible? Any information on how to go about creating a driver at all would be of great interest, and much appreciated.Thanks in advance.
  3. Caligo

    Dropdowns And Population

    Thank you both for the help, much appreciated. I have since figured out how to all of what I was asking, but what you have said will help me improve it. I am working on some other things with it, and I will, I'm sure, have more questions in the near future.
  4. Caligo

    Favourite html editors...

    "Crimson Editor will be superceded by Emerald Editor. "
  5. Caligo

    Html Editor Recommendations

    http://w3schools.invisionzone.com/index.php?showtopic=760 - check out here, a topic solely on HTML editors.
  6. Caligo

    Dropdowns And Population

    Ok, I have redone the whole thing without the use of .innerHTML, but I have some questions now.Which of the following is better to use? document.createElement('option'); new Option(); Next, I would like the "selectTwo" to have multiple options when a selection in "selectOne" is made, how do I do that? All I can seem to have is one option. Third, a question on my "if" statement. How can I cause "selectTwo" to be cleared of all options, instead of just the first option in the list? (currently I use x.remove(x) which only removes one option)HTML: <html><head><script language="Javascript" type="text/javascript" src="JavaScript/insertOption.js"></script></head><body><form><select id="selectOne"><option value="">Choices</option><option value="0">Apple</option><option value="1">Pear</option><option value="2">Banana</option><option value="3">Orange</option></select><select id="selectTwo"></select></form></body></html> JS: window.onload = initSubmit;function initSubmit() { document.getElementById("selectOne").selectedIndex = 0; document.getElementById("selectOne").onchange = insertOption;}function insertOption() { var selectedOneOpt = this.options[this.selectedIndex].value;/* var createOption = document.createElement('option'); */var createOption = new Option();var x = document.getElementById("selectTwo"); if (selectedOneOpt == "") { try { x.remove(x); } catch(ex) { x.remove(x); } } else if (selectedOneOpt == 0) { createOption.text = 'Option0'; try { x.remove(x); x.add(createOption,null); } catch(ex) { x.remove(x); x.add(createOption); } } else if (selectedOneOpt == 1) { createOption.text = 'Option1'; try { x.remove(x); x.add(createOption,null); } catch(ex) { x.remove(x); x.add(createOption); } } else if (selectedOneOpt == 2) { createOption.text = 'Option2'; try { x.remove(x); x.add(createOption,null); } catch(ex) { x.remove(x); x.add(createOption); } } else { createOption.text = 'Option3'; try { x.remove(x); x.add(createOption,null); } catch(ex) { x.remove(x); x.add(createOption); } }}
  7. Caligo

    Dropdowns And Population

    I thank you, I shall look at it.I have since changed the code, but it still may be the same issue that is causing it not to work.HTML: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>v8:ColdSteel</title><link rel="stylesheet" href="css/style.css" /><meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /><script language="Javascript" type="text/javascript" src="JavaScript/js_testing3.js"></script></head><body><form action"#">Select a plan: <select id="selectOne"> <option value="">---</option> <option value="0">Option 1</option> <option value="1">Option 2</option> <option value="2">Option 3</option> </select> <select id="selectTwo"> <option value="">---</option> </select></form></body></html> java script: window.onload = initAll;function initAll() { document.getElementById("selectOne").selectedIndex = 0; document.getElementById("selectOne").onchange = populateSelectionList;}function populateSelectionList() { var selectedOptOne = this.options[this.selectedIndex].value; if (selectedOptOne = "") { document.getElementById("selectTwo").innerHTML = "<option value=''>---</option>"; } else-if (selectedOptOne = "0") { document.getElementById("selectTwo").innerHTML = "<option value='0'>Price a1</option><option value='0'>Price a2</option><option value='0'>Price a3</option>"; } else-if (selectedOptOne = "1") { document.getElementById("selectTwo").innerHTML = "<option value='0'>Price b1</option><option value='0'>Price b2</option><option value='0'>Price b3</option>"; } else (selectedOptOne = "2") { document.getElementById("selectTwo").innerHTML = "<option value='0'>Price b1</option><option value='0'>Price b2</option><option value='0'>Price b3</option>"; } return true;} I am still trying to accomplish the same thing, but since the first way wasn't working, I tried it a bit differently, which this one seems a little cleaner, I believe. Again, it may still be the same problem as before, but if you could offer any other advice, I'd be very grateful!
  8. Caligo

    Dropdowns And Population

    The HTML document <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>v8:ColdSteel</title><meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /><script language="Javascript" type="text/javascript" src="JavaScript/js_testing3.js"></script></head><body><form action"#"> <table> <tr> <td> Select a plan:</td> <td> <select id="selectOne"> <option value="">---</option> <option value="0">Option 1</option> <option value="1">Option 2</option> <option value="2">Option 3</option> </select> </td> <td> <select id="selectTwo"> </select> </td> </tr> <tr> <td> </td> </tr> </table></form></body></html> The js_testing3.js window.onload = initAll;function initAll() { document.getElementById("selectOne").selectedIndex = 0; document.getElementById("selectOne").onchange = priceDisplay;}/* Output what they select */function priceDisplay() { var selectedOptOne = this.options[this.selectedIndex].value; document.getElementById("selectTwo").innerHTML = populateSelectionList + selectedOptOne +(); return false;}/* Getting the selections */function populateSelectionList0() { document.getElementById("selectTwo").innerHTML = "<option value='0>Price a1</option><option value='0>Price a2</option><option value='0>Price a3</option>"; return true;}function populateSelectionList1() { document.getElementById("selectTwo").innerHTML = "<option value='0>Price b1</option><option value='0>Price b2</option><option value='0>Price b3</option>"; return true;} Ok, first, I know this is a big mess, but I'm trying to learn, which is why I'm here :)Second, what's going on. When the user makes a selection in the first <select> (document.getElementById("selectOne").onchange = priceDisplay;), then the options are populated inside the second <select> (document.getElementById("selectTwo").innerHTML = "whatever I want to put as options" based on the choice that was made in the first <select>. Right now, this script does not work, and I need, it seems, lots of help to get it to work.
  9. Caligo

    Css Styling

    Yes, your assumptions were right. I'm sure there was a much better way to do what i did, also, but I am very new to JS, and am trying to figure stuff out. If i recall correctly, in the initPageTwo function, I simply needed "return true;" before the closing curly bracket.I changed the whole thing around, anyhow, and get everything works as I need to. Thank you for trying to help, though
  10. Caligo

    Css Styling

    Hello, all. I am trying to figure out some things for my personal site, and I've run into a hopefully small block. I have the following HTML: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>v8:ColdSteel</title><link rel="stylesheet" href="css/style.css" /><meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /><script language="Javascript" type="text/javascript" src="page2.js"></script><style id="cssStyle"></style></head><body><div class="pic_select_images_inner"> <ul> <li><img src="images/thumb_terp_wood.gif" height="72px" width="72px" /></li> <li><img src="images/thumb_docos_poster.gif" height="72px" width="72px" /></li> <li><img src="images/thumb_aol_site.gif" height="72px" width="72px" /></li> <li><img src="images/thumb_rip_samurai.gif" height="72px" width="72px" /></li> <li><img src="images/thumb_paint_hand.gif" height="72px" width="72px" /></li> <li><img src="images/thumb_ae.gif" height="72px" width="72px" /></li> </ul></div> <div class="page_select"> < <span>1 </span><a href="" id="page2">2 </a><a href="#">3 </a><a href="#">4 </a><a href="#">5 </a> <a href="#">></a></div></body></html> and my page2.js looks like: window.onload = initAll;function initAll() { document.getElementById("page2").onclick = initPageTwo;}function initPageTwo() { document.getElementById("cssStyle").innerHTML = ".pic_select_images_inner ul {margin-left:-173px;)";} My question is how do I keep the page from reloading back to its original state when I click on the link (id="page2")? In otherwords, how do I keep the changes made by page2.js?
  11. Caligo

    New Window

    Hey, thanks! I hadn't realized you could do it like that!
  12. Caligo

    New Window

    Well, I can get the function to work, but only one part at a time. For instance, I can either get the image to to show up or I can get the button to show up, but not both. Nor can I get the button to actually work. So, really, it would be much more useful to have html and JS, etc in the new window, but I have no clue how to do that. I have tried to do that, but again, I don't know how. So, if you could show me an example or something, that would be great.
  13. Caligo

    New Window

    Hey, guys. I'm getting myself into some JavaScript, nothing big, but I need help. I want to make it so i can click on an image (or link if the case may be) and a new window appears. Within the window I would like an image and a button to close the window. I have the code to do both, i have them both working separately, with the exception of I can't get the new window to close, but I do have a button there. I can get the button to work without creating a new window, so I know that code works. (I have looked around the w3schools site, that is how I learned to create the code, along with a book I have.)So I need:1) A new window2) An image in the window and3) A button in the window that closes the new window when clickedThanks for the help. Below is the code im working on. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>JS Testing</title><meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /></head><script type="text/javascript">window.onload = displayImgFull;function displayImgFull() { for (var i=0; i<document.links.length; i++) { if (document.links[i].className == "displayImg") { document.links[i].onclick = newWindow; } }}function newWindow() { var imgWindow = window.open("images/gallery/landscape_1.jpg", "img", "height=300, width=300") imgWindow.document.write(images/gallery/landscape_1.jpg + function closeWindow() { window.close()} + "<input type='button' value='close' onclick='closeWindow()' />") return false;}</script><body><a href="#" class="displayImg" ><img id="image" src="images/gallery/landscape_1.jpg" /></a></body></html>
  14. Caligo

    HTML Image Loading

    What are you trying to do? Like a link mouseover/hover?
  15. Caligo

    Finding a colour scheme

    I'm sure adobe will appreciate it
×