ryuko Posted January 24, 2009 Share Posted January 24, 2009 my last post i needed help with the same thing i figured it out by myself but its not very good its using cookies so if there cookies get deleted or there not the ones who posted it doesnt save so i was wondering if there was any xml or anything to save the data heres my old post HEREheres my new code<html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252"><title>Test</title><script language="vbscript"> Option Explicitsub window_onload() Dim objTable : Set objTable = window.document.getElementById("tbl1") Dim objRow : Set objRow = objTable.insertRow() Dim intCount, objCell For intCount = 0 To 0 Set objCell = objRow.insertCell() objCell.innerHTML = document.cookie & "<br>name:" & document.forms(0).name.value & "<br>" & document.forms(0).text.value & "<hr>" Next document.cookie = (tbl1.innerhtml)end sub Sub AddRow() Dim objTable : Set objTable = window.document.getElementById("tbl1") Dim objRow : Set objRow = objTable.insertRow() Dim intCount, objCell For intCount = 0 To 0 Set objCell = objRow.insertCell() objCell.innerHTML = "<br>name:" & document.forms(0).name.value & "<br>" & document.forms(0).text.value & "<hr>" Next document.cookie = (tbl1.innerhtml)End Sub sub clearcookies()document.cookie = ""location.reload() end sub</script><style type="text/css">body { background-color: #191B1C; overflow: auto; color: #FFFFFF; }a { color: #FFFFFF; }textarea { overflow: auto; width: 200; height: 100; }</style><div align="center"><h1>Test</h1></div><br> <table id="tbl1" width="100%" border="0"> <tr> <th> </th> </tr> </table><form><input type="text" name="name" value="username"><br><textarea name="text" > </textarea><br> <br><input type="button" value="Add Row" onclick="AddRow()"></form><a onclick="clearcookies()">Clear cookies</a></body></html>messy but i need a response asap please post comments even if you dont know!!!!!!! Link to comment Share on other sites More sharing options...
ripken204 Posted February 2, 2009 Share Posted February 2, 2009 why can't you use php?what languages are you able to code this in aside from VBScript? Link to comment Share on other sites More sharing options...
ryuko Posted February 3, 2009 Author Share Posted February 3, 2009 why can't you use php?what languages are you able to code this in aside from VBScript?i do not know>?php is kinda hard for mei could use silverlight or aspbut the codes im used to are window nat so i think of sticking to iti think the other reason is its a challenge im willing to face wih a little helpVBS is easy and basicPHP needs sql DB and all this other stuff and php itself is hard enoughim not a web programmer at most its JAVA but thats itso if you guys could helpand if at all its not possible please tell em before my head explodessorry for bad grammer Link to comment Share on other sites More sharing options...
jcarle Posted February 12, 2009 Share Posted February 12, 2009 I would suggest if you wish to do something that's exclusively client side script based that you move to using Javascript instead of VBScript. What you're doing may work perfectly fine in IE, but unfortunately, client side scripting using VBScript is only supported by IE. Javascript, however, is cross browser.If you want to do server side scripting, you could look at using ASP which allows you to code using VBScript on the server side and still maintain cross browser compatibility. Link to comment Share on other sites More sharing options...
ryuko Posted February 13, 2009 Author Share Posted February 13, 2009 i greatly apreciate your help.with the asp i have not done a ton of research about asp running in xphome except nativly you need bus or proim working on something that would be used for my clients in an HTAsec i was thinking of using xml such as<comment "rnd * 786"><name>blahblah</name><data>blahblah</data></comment>if you could tell me of anything to practice my asp on windowsxp home i would apreciate it i already know most of the coding but its hard using a eserveri tried abyss but its a little confusing as of using itwell thanks and feel free to replyi see i have alot of views yet 2 responses thank you Link to comment Share on other sites More sharing options...
jcarle Posted February 14, 2009 Share Posted February 14, 2009 If you're on a limited budget, I'd suggest that you sign up for a free hosting account at http://www.nofeehost.com/ where you'll be able to properly learn how to write server side ASP pages without having to figure out how to run it locally. Link to comment Share on other sites More sharing options...
ryuko Posted February 14, 2009 Author Share Posted February 14, 2009 hey man thanks for the sitei know asp and i have a webserver supporting it but its realy difficult with a dial up connectioni live in a small village in colorado that doesnt have satulite even so thats my difficultywell realy my question wasnt answered but i did get some help on going to asp for thisi didnt realy think of it.THANKS!! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now