Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by cLFlaVA

  1. cLFlaVA

    Show/Hide Help?

    There are several ways you can do this ranging from quick and dirty to elegant. The two easiest ways are as follows: 1. Change the style attribute for each of the div objects to be hidden by default. This is probably preferred to the second option because you don't need to utilize JavaScript...
  2. cLFlaVA

    Form instead text in JavaScript

    It may be helpful for you to put a line of debugging code in there. Also, you shouldn't give a name or ID to any HTML element using a reserved keyword (e.g., "select"). Rename your select element to something like "selOption" and add an alert() within your change function to be sure the value...
  3. cLFlaVA

    Show/Hide Help?

    Hi. Take a look at your JavaScript function: function show_hide (obj) { var el = document.getElementById(obj); if ( el.style.display = 'block' ) { el.style.display = 'none'; } else { el.style.display = 'none'; } } A couple of things to note:To test for...
  4. cLFlaVA

    Value from radio button changes property of text box to "required"

    Define "required". If you have some code for requiring certain fields, you will need to share that with us. If you only want to change the value of the text box, that can easily be done with an onclick event. ----
  5. cLFlaVA

    Ajax search

    It is very hard to tell from this code, and you haven't provided a working example, but I'd suggest calling the form's submit event immediately after you call the code that populates the text box. ----
  6. cLFlaVA

    Window.Close in IE 7

    did you try function loadSummary() { window.open("SummaryMain.html"); window.close(); } ----
  7. cLFlaVA

    Window.Close in IE 7

    Have you tried window.open(...) before window.close();? You'd need to open a new window before closing the window that's trying to open it. ----
  8. cLFlaVA

    buttons onclick

    I'd avoid the all collection at all costs. You could use the click() function of the button after referring to it properly, or you could simply call the submit() function of the form itself. ----
  9. cLFlaVA

    Urgent - Simple: How to close browser after print?

    There is no way to explicitly be sure that your user successfully printed the page using JavaScript. You could potentially write some ActiveX to do this, but it's not worth the effort. window.close() will close the browser window. Note that the user will be prompted with a "the browser is...
  10. cLFlaVA

    Find Dialog box

    Why can't you use the browser's native search functionality? ----
  11. cLFlaVA

    Simple Question.

    You might also consider applying styles to a:active, a:hover, a:link, a:visited to avoid JavaScript altogether. http://www.w3schools.com/CSS/css_pseudo_classes.asp ----
  12. cLFlaVA

    Are tables a thing of the past?

    I respectfully disagree with vacunita. You don't need to use divs for anything necessarily, unless specific need arises. The same example provided above could just as easily be done as below. This would also be more semantically correct. <img id="logo" src="../logo.gif" alt="My Logo" ... />...
  13. cLFlaVA

    Are tables a thing of the past?

    You should develop your content with appropriate HTML elements first, in a logical order (logo, then menu, then title, then content, for example), and then apply style to it all when the content is complete. Your page should look readable if you remove the CSS completely (albeit plain). Take a...
  14. cLFlaVA

    how to time page download in an iframe

    You should be able to achieve this using a global javascript variable. You can set the variable initially when the user clicks the load button (using the onclick event of the button), and then compare it to the current time using the onload event of the iframe. ----
  15. cLFlaVA

    &quot;something&quot;+this.value

    Yours is a nested quotes issue. Try this: <select onchange="dsProj.setURL('../sources-xml/et_lists.php?'+this.value); dsProj.loadData();" > ----

Part and Inventory Search

Back
Top