Index · Preferences · Help
Announcements · BYOND Features · Bug Reports · Fixes and Features · Developer How-To · Code Problems · Design Philosophy · Creations · Classified Ads · Gaming · Computers & Technology · Community
Forum Search:

[Advanced Search]

[Messages in this Thread] [Show All (8)] [Return to Developer How-To]

Author:Tsfreaks [Posts]
Date:11/4/09 5:46 pm [Last edited: 11/4/09 6:47 pm]
Topic:Re: Whats the best way to submit large amounts of data over
Post ID:725726
Parent ID:725606
Next ID:725609
This should be pretty close to a working example.

<script>
function foo()
{
    document.all.si.value = "example"; // Insert large amount data here
    document.all.sf.submit();
}
</script>

<BUTTON onclick="foo()">Click Me</BUTTON>
<FORM id="sf" style="visibility: hidden" ACTION="byond://?" METHOD=POST>
    <INPUT id="si" name="mydata" type="text" value=""></INPUT>
</FORM>

When the above gets submitted, it will show up in client/topic like thus...
client
{
    Topic(href, href_list[])
    {
        world.log << href_list["mydata"];
    }
}

As a result, "example" will show up in the world.log.

ts

Messages in this Thread: [Show All (8)]

  Whats the best way to submit large amounts of data over web Tsfreaks (11/3/09 12:02 pm)
      Re: Whats the best way to submit large amounts of data over Tsfreaks (11/3/09 1:12 pm)
          Re: Whats the best way to submit large amounts of data over Schnitzelnagler (11/4/09 2:57 am)
              Re: Whats the best way to submit large amounts of data over Tsfreaks (11/4/09 5:46 pm)
              Re: Whats the best way to submit large amounts of data over digitalmouse (11/4/09 3:29 am)
      Re: Whats the best way to submit large amounts of data over Jeff8500 (11/3/09 12:15 pm)
          Re: Whats the best way to submit large amounts of data over Tsfreaks (11/3/09 12:21 pm)
              Re: Whats the best way to submit large amounts of data over Stephen001 (11/3/09 1:44 pm)