Jump to content

miksel

Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Everything posted by miksel

  1. Make a .bat-file that does: echo . > logfile and run the bat-file in windows scheduler You will get an empty logfile with just one "." (dot) in it.
  2. [b]Change this:[/b] <input class="mediumbutton" type="button" value="Q P/L" onClick=popQIPLWindow(02132006205725) title="Query Parts and Labor"> [b]to this [/b](send a string to the onClick function): <input class="mediumbutton" type="button" value="Q P/L" onClick=popQIPLWindow("02132006205725") title="Query Parts and Labor"> [b]AND change this:[/b] function popQIPLWindow(rcvnum) { var varrcvnum=parseInt(rcvnum); : : [b]to this:[/b] function popQIPLWindow(rcvnum) { var varrcvnum=rcvnum; : : I think that would give you the right value.. /micke
  3. Ahh.. ok, you didn't tell me that you had more then one row... make the table look like this and keep the script. [code] <table><tr> <td> <input name="r1" type="radio" value="Y" onClick="toggleT('divt1','s')">Yes     <input name="r1" type="radio"  value="N" selected onClick="toggleT('divt1','h')">No</td> </tr> <tr><td> <table id="divt1" style="display:none;">     <tr>    <td rowspan="4" align="right" valign="top" bgcolor="#E1E1E1" class="Redtext style4">blah blah</td>    <td rowspan="4" bgcolor="#E1E1E1" class="Name"></td>    <td align="right" valign="top" bgcolor="#E1E1E1" class="Text">      Date:    </td>    <td valign="top" bgcolor="#E1E1E1">        <input name="date" type="text" class="Text" title="Date" value="01/31/2006" size="20" maxlength="30" alt="blank">   </td> </tr> <tr>   <td align="right" valign="top" bgcolor="#E1E1E1" class="Text">Lender's Name:</td>   <td valign="top" bgcolor="#E1E1E1">   <input name="Lender_Name" type="text" class="Text" title="Lender_Name" value="John Smith" size="20" maxlength="30" alt="blank">    </td> </tr> <tr>    <td align="right" valign="top" bgcolor="#E1E1E1"><span class="Text">Lender's address: </span></td>    <td valign="top" bgcolor="#E1E1E1">    <input name="Lender_Address" type="text" class="Text" title="Lender_Address" value="Lender's Address" size="20" maxlength="30" alt="blank">    </td> </tr> </table></td></tr> </table> [/code] /micke
  4. Hi, You need to take away the <div> from the table. You can't have it there. Instead you can use the <tr>-tag to hide and show. Change the <tr>-tag that you had inside the <div>, to this: [code] <tr id="divt1" style="display: none;"> ... [/code] Change the javascript to this to make it work in IE and in FireFox [code] function toggleT(_w,_h) {     oDiv = document.getElementById(_w);     oDiv.style.display=(_h=='s')?'block':'none'; } [/code] /micke
  5. I know that you can do that in Unix too but I never heard about it in javascript. and I can't think of anything like it that you can use... sorry
  6. Ok, maybe this is what you're looking for.. [code] function set_selection() {    box = document.all("publicSelection");    for(x=0; x<box.length; x++)    {       box[x].selectedIndex=ary[x];    } } [/code] it works for an unknown number of selectboxes as long as they are all named "publicSelection", and the array (ary[]) got a value. I'm sure you can modify it to meet your needs.. I've tested it in IE and FireFox. /micke
  7. Hi, I asume that you have a form named "formTwo" and a selectbox named "publicSelection". You don't have to loop the options.. just replace the loop with this [b]document.formTwo.publicSelection.selectedIndex=5;[/b] The index start counting at 0, so a 5 will select the 6th option.... /micke
  8. yes, I didn't know what your selectbox looked like.. you can fix this in one of two ways. Change the "selection" variable to grab the text of the options instead of the value. Or set the value param on every option in you selectbox. like this: [code] var selection = document.userselection.selection.options[idx].text; [/code] or like this: [code]     <option value="1"> 1     <option value="2"> 2     <option value="3"> 3 [/code] /micke
  9. Hi, to get the variable usernameselected correct change it to this: [code] idx = document.userselection.usernameselected.selectedIndex; var usernameselected = document.userselection.usernameselected.options[idx].value; [/code] You should move your javascript to the <head>-section of your html-code. Put a <div id="imgplace"></div> where you want the image to show up and then add this to the javacode, to put it there: [code] oImg = document.getElementById("imgplace"); oImg.innerHTML='<a href="userdetails.php?username=' + usernameselected + '<img src="pic.jpg"></a>'; [/code] /micke
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.