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. Dvarkholm

    Open Executable from VBScript

    I use: Set WshShell = CreateObject("WScript.Shell") ReturnCode = WshShell.Run ("%windir%\notepad.exe", 1, TRUE) which works fine in MS Dev Env but not when I launch the html file in IE...
  2. Dvarkholm

    Getting the cookie value

    This function works ie it returns the cookie value correctly. function CookieExist() dim sValue msgbox("products") sValue = Document.All.myScriptlet.GetCookieKey("products") msgbox(sValue) end function BUT, if I remove the first msgbox (obviously I don't...
  3. Dvarkholm

    Expected end of line error

    the reason for the error is because the line <a href=&quot;&quot; class=&quot;barbutton1&quot; onmouseover=&quot;MouseOver('Back')&quot; onmouseout=&quot;MouseOut('Back')&quot; onmousedown=&quot;saveForm(); saveCookie('Products'); location='index.html'&quot;><img src=&quot;backb.jpg&quot...
  4. Dvarkholm

    Expected end of line error

    I can't believe the hassle I'm getting with vbscript. Please would someone tell me what on earth is wrong with the following code as I keep getting the error: line 53 expected end of line. <HTML> <HEAD> <LINK REL=&quot;StyleSheet&quot; HREF=&quot;index.css&quot; TYPE=&quot;text/css&quot...
  5. Dvarkholm

    dynamic html with vbscript, non?

    Hang on a minute, my comment starting &quot;no it doesn't work&quot; came in after your comment starting &quot;take this script I wrote&quot;. Ok, I have tried your code and yes thats the effect I'm getting where doing a simple document.write removes the two buttons on the screen. And yes, it...
  6. Dvarkholm

    dynamic html with vbscript, non?

    No it doesn't work. I want to use it from a vbscript function and this is quoted from the MS site: 'You should not use the write or writeln methods on the current document after the document has finished loading unless you first call the open method, which clears the current document's window...
  7. Dvarkholm

    dynamic html with vbscript, non?

    Thanks for responding. But, no, response.write is server side. I'm only interested in client side. Document.write in vbscript creates a new page (or writes to a new page hence obliterating everything that existed in the present document). Whereas in javascript document.write writes to the...
  8. Dvarkholm

    dynamic html with vbscript, non?

    I must be a complete thicky. It seems to me that what you can do with javascript, you cannot do with vbscript. And that is simply dynamically modifying (updating) a browser document (or web page) or dynamically creating a browser document. Using document.write in javascript allows you to do both...
  9. Dvarkholm

    Vbscript fails to update the screen

    if you can't use document.write or .writeln for general dhtml, what CAN one use in vbscript?
  10. Dvarkholm

    vbscript is fustrating

    Thanks for your help chaps. In the Message &quot;Vbscript fails to update screen&quot; or thread 329-205466, dilettante states that document.write is not intended for general dhtml but rather for 'pre-pageload' scripting or for creating a fresh page. So as I'm a relative newbie to vbscript...
  11. Dvarkholm

    vbscript is fustrating

    Of course, that make not work because I read somewhere that document.write in vbscript creates a new page so effectively getting rid of everything (including the reference to the style, functions etc). So if that is correct... how the heck do I do what I did in javascript with document.write...
  12. Dvarkholm

    vbscript is fustrating

    Just checked and its thus: <LINK REL=StyleSheet HREF=&quot;index.css&quot; TYPE=&quot;text/css&quot; MEDIA=screen> I put &quot;&quot; around the REL and MEDIA values, but nope, no change :-(
  13. Dvarkholm

    vbscript is fustrating

    Interesting! If I replace those three img src code lines with: document.write(&quot;<IMG STYLE='position:absolute; top:0; left:0; z-index:-1' SRC='leftmain.jpg'>&quot;) document.write(&quot;<IMG STYLE='position:absolute; top:0; left:400; z-index:-1' SRC='rightmain.jpg'>&quot;)...
  14. Dvarkholm

    vbscript is fustrating

    sorry, typo in msg, the code in the lines: document.write(&quot;<IMG src='leftmain.jpg'>&quot;) document.write(&quot;<IMG SRC='Title2.jpg'>&quot;) document.write(&quot;<IMG SRC='rightmain.jpg'>&quot;) should include (and do in real life) the class reference. Mark.
  15. Dvarkholm

    vbscript is fustrating

    Thanks for responding. Basically there is an onload=&quot;InitiatePage()&quot; bit in the <BODY> tag. Inside that function are several lines eg., document.write(&quot;<IMG src='leftmain.jpg' class='Logo'>&quot;) document.write(&quot;<IMG SRC='Title2.jpg' class='Title'>&quot;)...
  16. Dvarkholm

    vbscript is fustrating

    Sorry I should have said that this is simply client side scripting and I'm a vbscript newbie (and have never done vb). Mark.
  17. Dvarkholm

    vbscript is fustrating

    Why is it so easy to write to an existing page in javascript (using document.write) but impossible to get right in vbscript? I'm trying to write to an existing page in vbscript but obviously I'm missing something pretty important. Using document.write in vbscript does write to the page but it...

Part and Inventory Search

Back
Top