Jump to content

Forum Board


Recommended Posts

:thumbup 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 HERE

heres my new code

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Test</title>
<script language="vbscript">
Option Explicit

sub 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

  • 2 weeks later...

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 me

i could use silverlight or asp

but the codes im used to are window nat so i think of sticking to it

i think the other reason is its a challenge im willing to face wih a little help

VBS is easy and basic

PHP needs sql DB and all this other stuff and php itself is hard enough

im not a web programmer at most its JAVA but thats it

so if you guys could help

and if at all its not possible please tell em before my head explodes

:)

sorry for bad grammer :thumbup

Link to comment
Share on other sites

  • 2 weeks later...

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

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 pro

im 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 eserver

i tried abyss but its a little confusing as of using it

well thanks and feel free to reply

i see i have alot of views yet 2 responses thank you

Link to comment
Share on other sites

hey man thanks for the site

i know asp and i have a webserver supporting it but its realy difficult with a dial up connection

i live in a small village in colorado that doesnt have satulite even so thats my difficulty

well realy my question wasnt answered but i did get some help on going to asp for this

i didnt realy think of it.

THANKS!!

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...