IE6 looks is escaping all the code whenever there is a space or " it
is replacing it with %20 & %22 to make it URL friendly. I will see if I
can work around this.
When you have it installed you can then just go to any website with a
form in it, ie google.com, and click the link. It should create all
the actionscript for you. I have added a contribute video to the site
to show how to do this.
http://weblogs.t8design.com/upload/form2AS.htm
If you have any feedback on how you would make this better I would
really appreciate it. We are always making flash RIA that need to login
or connect to a legacy cgi GET/POST scripts. We created this tool to
help with the tedious task of re-creating the form. Once this is done
the developer just has to drag enough input-fields to the stage and
label them properly.In the future we hope to connect this to mtasc for
actually making the UI dynamically.
Here is the code that it generate for google.com
// create a new listener object;
submitObj = new Object();
// handle button click events;
submitObj.click = function() {
this.submitForm();
}
// handle enter key events;
submitObj.enter = function() {
this.submitForm();
}
// method to submit our form;
submitObj.submitForm = function() {
// post variables;
var post_lv:LoadVars = new LoadVars();
post_lv["hl"] = "en";
post_lv["q"] = "";
post_lv["btnG"] = "Google Search";
post_lv["btnI"] = "I'm Feeling Lucky";
// The document location is http://www.google.com/
// The form action is /http://www.google.com/search
url = "http://www.google.com/http://www.google.com/search";
// Submit the form in a new window. Test that the form method is
correct
post_lv.send(url,"_blank","GET");
}
// Reference to instance name of form submission button.
submit_btn.addEventListener("click", submitObj);
// Reference to last field in form that users presses enter in.
password_txt.addEventListener("enter",submitObj);
Wade
On Nov 18, 2005, at 10:25 AM, Marc Hoffman wrote:
Doesn't work in I.E. 6 -- right-clicking gives no option to save as
bookmark. Dragging to toolbar doesn't work either. What browser is
this designed for?
At 05:58 AM 11/18/2005, you wrote:
I have updated the HTML form to AS code generator bookmark-let. If you
run into a form that this does not work on please let me know!
http://t8design.com/weblogs/?p=6
On Nov 17, 2005, at 10:17 PM, Wade Arnold wrote:
Can you send me the URL to the form. I can have it for you in a
couple
seconds. Go get this bookmarklet!
http://t8design.com/weblogs/?p=6
On Nov 17, 2005, at 1:45 PM, Marc Hoffman wrote:
I need to convert a currently-working webmail form from html to
Flash. I've created Flash webmail forms sending to ASP, but I'm not
able to figure it out in this case. Maybe in part because it was
built in FrontPage :)
The current html page uses this, which works:
<form method="POST" action="_vti_bin/shtml.exe/contact_us.htm"
onSubmit="" webbot-action="--WEBBOT-SELF--">
So far, I'm using this from Flash (also tried it without the domain
path):
//
btnSubmit.onRelease = function() {
loadVariablesNum("http://www.clientDomain.com/_vti_bin/shtml.exe/
contact_us.htm", 0, "POST");
};
//
but that's not doing it, even when I try to send all variable
declarations I can find on the html page. There are some checksum
values being passed and I'm not sure if that's throwing everything
off. Also not sure how to declare something like "webbot-action" in
AS, which doesn't like the hyphen (I tried this["webbot-action]).
Anybody see what I'm doing wrong here, or willing to look at the
html
page to help me? I'm pretty blind when it comes to non-ActionScript
programming.
thanks,
Marc
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders