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 Mike Lewis 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. AvarPentel

    HTA VBscript and JavaScript Popup showModalDialog

    <a href="javascript:Toggle('mgmt');"> <a href="#" onclick="Toggle('mgmt');return false;">
  2. AvarPentel

    setAttribue and Events on IE

    You cant set event handlers as attributes when you are generating a table using DOM methods. There are attachEvent method in IE and addEventListener method supported by other browsers. But in your case - as much as i understand it - the old-fashion object.event=function works fine. // so...
  3. AvarPentel

    JS newbie problem (remove element from a list)

    You have to call removeElement with string argument. Right now the code generated by newdiv.innerHTML looks like onclick='removeElement(my3Div)'. But it has to be onclick='removeElement("my3Div")' newdiv.innerHTML = 'Element Number '+num+' has been added! <a href=\'#\'...
  4. AvarPentel

    Need some help parsing text

    If the number is always in the same place (second character in string) just use the substr() function: $st="s5tgn"; $nr=substr($st,1,1); # substr(string,starting offset,length) Avar Pentel
  5. AvarPentel

    Save file?

    If you cant use server side script then one workaround might be playing with data URI scheme. Here is a modification which is supposed to work on FF and Opera too, but not in the same way as on IE: function WriteToFile(sText){ with(document){ ir=createElement('iframe'); ir.id='ifr'...
  6. AvarPentel

    using form inputs with java script

    Actually you can deliver your form data to another page purely with client-side JS but the question is what will you do with that data on next page... However, exploiting HTTP get method you can pass form values to URL and then reat them on other page --first page-- <code> <form...
  7. AvarPentel

    Save file?

    While you are using ActiveX it is IE-only solution anyway and for that case I propose more foolproof solution belowe. But I don't believe there is any crossbrowser client-side solution for that. function WriteToFile(sText){ with(document){ ir=createElement('iframe'); ir.id='ifr'...

Part and Inventory Search

Back
Top