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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. michelledebeer

    Bring window to front

    I have one main-window that opens a window named "myWindow". If you click in the main-window, myWindow is hidden behind it. Can I bring myWindow on top of the main-window, using a link? My process: function checkWindowOpen() { if (myWindow == open) { bringToFront } } Any...
  2. michelledebeer

    Layer question

    I have this function that prints a text to a layer without reloading the page. function print_text(text) { if(document.layers) { with(document.layers['myLayer']) { document.open(); document.write(text)...
  3. michelledebeer

    Passing "" to function

    I would like to pass quotes (&quot;&quot;) into a function. I have tried escaping them with \&quot;, but all I get is &quot;undetermined string constant&quot;. Without the quotes, all is well. function printQuotes(html) { alert(html); } ... <body onload=&quot;javascript:printQuotes('<a...
  4. michelledebeer

    replace \n with &lt;br&gt;

    I have a text-area and when you submit it, the \n (enter) should be replaced with a <br>. How do I do this? Example: TEXT: Text with some enters that should be replaced by &quot;<br>&quot; REPLACED TEXT: Text with some<br>enters that should be replaced<br>by &quot;<br>&quot;
  5. michelledebeer

    Bound keyboard key to JS-function

    I would like to take control over a key on the keyboard, namely F1. Can I with JavaScript call a function that opens a new window when someone hits this button like that annoying mouse-right-button-click that usually says &quot;Don't mess with the source&quot;? The only difference is that this...
  6. michelledebeer

    closing one window from another window

    Case 1: If I open a new window (B) from window A, I know I can close B from A. Can I close A from B? Case 2: I open window B from window A. Then I open window C from A. Can I close B from C and C from B? Hope you followed my trail of letters... Any thoughts? // Michelle
  7. michelledebeer

    IE write to layer

    I want to update a layer without reloading the page. I have previously recieved this function, but it only works with Netscape. How can I make it work for IE? function print_picture(picture) { with(document.layers['myLayer']) { document.open(); document.write('<img...
  8. michelledebeer

    IE update layer

    I want to update a layer without reloading the page. I have previously recieved this function, but it only works with Netscape. How can I make it work for IE? function print_picture(picture) { with(document.layers['myLayer']) { document.open(); document.write('<img...
  9. michelledebeer

    Timed image-change in layer

    I want to change an image in a layer every minute. I have an idea of the codeflow: FUNCTIONS: var remember = 0; var minutepicture = array('1.gif','2.gif' etc...); timer() { //activate pick_picture() every 6000 ms setTimeout('pick_picture()',6000); } function pick_picture() { if...
  10. michelledebeer

    Hide layers onMouseOut

    I have a pop-up menu system that uses layers to show the different sections. I have noticed on other web sites that when the mouse-pointer exits the layer, the menus are hidden automatically. In my script I have solved this by just setting a timeout to 5 second if there has been no activity...
  11. michelledebeer

    executing function with window.opener

    In my first window I have a function called test(). I open a new window with window.open() and names the first window &quot;main&quot;. I want to access the test()-function in the main-window from my new window, but I can't seem to get it right. I tried playing around with...

Part and Inventory Search

Back
Top