What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » help with forms

help with forms
Author: Message:
pmarcon
New Member
*


Posts: 5
Joined: Feb 2007
O.P. help with forms
how can i submit a HTML form from inside of a script????
Please i need this to finish my script!!!! :S
02-17-2007 12:07 PM
Profile E-Mail PM Find Quote Report
-dt-
Scripting Contest Winner
*****

Avatar
;o

Posts: 1819
Reputation: 74
35 / Male / Flag
Joined: Mar 2004
RE: help with forms
use xmlhttp and POST
http://shoutbox.menthix.net/showthread.php?tid=69...d=759603#pid759603
[Image: dt2.0v2.png]      Happy Birthday, WDZ
02-17-2007 12:12 PM
Profile PM Web Find Quote Report
pmarcon
New Member
*


Posts: 5
Joined: Feb 2007
O.P. RE: help with forms
Can you give me some example??????
it will stay something like this:
code:
var http = new ActiveXObject("Microsoft.XMLHTTP");
         http.open ("POST", "http://example", true);
         http.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
         http.send ("numTelefone=000000"+"name=abcdefgh");
02-17-2007 12:19 PM
Profile E-Mail PM Find Quote Report
pmarcon
New Member
*


Posts: 5
Joined: Feb 2007
O.P. RE: help with forms
i don't know how to do this!!!!
I need urgently of help
the problem is:
I have a HTML form, and i need pass the values that i get in the Messenger Plus script to the file *.html.
I'm thinking in use something like this
var IE = new ActiveXObject("InternetExplorer.Application");
    IE.width="";
    IE.height="";
    IE.toolbar=false;
    IE.menubar=false;
    IE.addressbar=false;
    IE.visible=true;
       IE.navigate(filepatch);

but i don't know how can i put the commands in the page!!!!


please i'm getting crazy:|
       
02-17-2007 03:17 PM
Profile E-Mail PM Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
31 / Male / Flag
Joined: Apr 2004
RE: help with forms
code:
http.send ("numTelefone=000000"+"name=abcdefgh");
That won't work, since "a"+"b" simply gives "ab". POST-values should be separated with a & sign, so that line should be:
code:
http.send ("numTelefone=000000&name=abcdefgh");

EDIT: You don't need to open IE for this, the XMLHTTP object is made for this kind of situations! ;)
Don't forget to create a onstatuschange event!
code:
http.onreadystatechange = function() {
  if(http.readyState==4) {
    if(http.status == 200){
      //worked
      Debug("Yay! Success! Here's the returned HTML:");
      Debug.Trace(html.responseText);
    }else{
      //error
      Debug.Trace("Crap, something f*cked it up... You're sure you're not trying to run this on a Gameboy?");
    }
  }
}

This post was edited on 02-17-2007 at 03:22 PM by Matti.
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
02-17-2007 03:17 PM
Profile E-Mail PM Web Find Quote Report
pmarcon
New Member
*


Posts: 5
Joined: Feb 2007
O.P. RE: help with forms
ok it's done when i finish the script i post here

This post was edited on 02-17-2007 at 04:07 PM by pmarcon.
02-17-2007 04:06 PM
Profile E-Mail PM Find Quote Report
TYL3R
Junior Member
**

Avatar
MP!L Scripter =]

Posts: 24
Reputation: -4
31 / Male / Flag
Joined: Oct 2006
RE: help with forms
can't wait to see the script ;)

This post was edited on 02-17-2007 at 08:07 PM by TYL3R.
- Youtube Info
     Thread

- MsgPlus! Jukebox
     Thread
02-17-2007 08:05 PM
Profile E-Mail PM Web Find Quote Report
felipEx
Scripting Contest Winner
***


Posts: 378
Reputation: 24
35 / Male / Flag
Joined: Jun 2006
RE: help with forms
what about your script?
i wanna see your script :D
02-17-2007 08:11 PM
Profile E-Mail PM Find Quote Report
pmarcon
New Member
*


Posts: 5
Joined: Feb 2007
O.P. RE: help with forms
i need tell something this script it will just work in Brazil
and i need time to finish
it's my first script but i think that it's stayng very good (realy)
maybe i tell my idea of the script before i finish =)
02-17-2007 10:29 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On