Advertisement

06.15.2008 at 06:47AM PDT, ID: 23486172
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.4

Submit not functioning right

Asked by jeremyBass26 in JavaScript, PHP Scripting Language, ActionScript

Tags:

Hello, I have a form that is flash that mirrors it's self to an html form but also sends a Post to a php.  In this case seeing the submit button is not an option for the HTML form...though the button is in the HTML form. The HTML form is set display:none not hidden, so I created a submit function from the w3school and all was well... but for some odd reason it is not working anymore... but if I take display:none off the HTML form and click the submit button it does.. and post just fine... thing is, it does the php first post via flash just fine... but when it comes to the second post via JS it's like the post data is gone or it doesn't now were it is going... Dose anyone have an idea? I'm sure I'm just over looking something... or if it is that the post is empty, I just need to figure out how to full it again before flash call the JS that submits that form... Thanks for the help... hope to hear back soon cause Im finding nothing... and I was on a roll :) but this happens..

this is the landing page text
Internet Explorer cannot display the webpage

the HTML
<form id="m7moduleform_2" method="post" action="index.php" enctype="multipart/form-data"><div class="hidden"><input type="hidden" name="mact" value="FrontEndUsers,m7,do_userchangesettings,1" /><input type="hidden" name="m7returnid" value="93" /><input type="hidden" name="page" value="93" /></div>
<input type="hidden" name="m7feu_hidden_username" value="username;0;30;3" />
<font color="blue">Username*</font>
              <input type="text" name="m7feu_input_username" id="m7feu_input_username" value="TestAPP" size="20" maxlength="20" disabled="disabled" />
 <input type="hidden" name="m7feu_input_returnto" value="interactive-job-application" />
<input name="m7feu_submit" value="Submit" type="submit" />
<input name="m7feu_cancel" value="Cancel" type="submit" />

</form>Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
//////////////the JS
function formSubmit()  {   
alert("submiting now");
var x=document.getElementById("m7moduleform_2")
x.action="index.php"
x.enctype="multipart/form-data"
x.method="post"
x.submit()
 }
 
 
 
////////////////////////the AS
Bar.Send.onRelease = function() {
	var FullArray:String = "{name:value}";
	for (var i = 0; i<fieldArray.length; i++) {
		switch (fieldArray[i].type) {
			case "textInput" :
				fieldArray[i].mc.addEventListener("change",onSelect_text);
				var pos = testIfSelected(this._name);
				outPutArray.splice(pos,1);
				if (pos == -1) {
					outPutArray.push(fieldArray[i].mc._name+":"+fieldArray[i].mc.text);
				}
				FullArray = FullArray+",{"+outPutArray+"}";
				//trace(outPutArray);
				clickSend();
				break;
			case "checkBox" :
				fieldArray[i].mc.addEventListener("click",onSelected);
				var pos = testIfSelected(this._name);
				if (fieldArray[i].mc.selected == true) {
					outPutArray.splice(pos,1);
					if (pos == -1) {
						outPutArray.push(fieldArray[i].mc._name+":"+fieldArray[i].mc.label);
					}
					FullArray = FullArray+",{"+outPutArray+"}";
					trace(outPutArray);
				} else if (fieldArray[i].mc.selected == false) {
					outPutArray.splice(pos,1);
					if (pos == -1) {
						outPutArray.push(fieldArray[i].mc._name+":na");
					}
					FullArray = FullArray+",{"+outPutArray+"}";
					//trace(outPutArray);
				} else {
					if (pos>=0) {
						outPutArray.splice(pos,1);
					}
					FullArray = FullArray+",{"+outPutArray+"}";
					//trace(outPutArray);
				}
				clickSend();
				break;
			case "comboBox" :
				fieldArray[i].mc.addEventListener("change",onSelect_cbItemPicked);
				var pos = testIfSelected(this._name);
				outPutArray.splice(pos,1);
				if (pos == -1) {
					outPutArray.push(fieldArray[i].mc._name+":"+fieldArray[i].mc.selectedItem.data);
				}
				FullArray = FullArray+",{"+outPutArray+"}";
				//trace(outPutArray);
				clickSend();
				break;
			case "Date" :
				fieldArray[i].mc.addEventListener("change",onSelect_Date);
 
				var pos = testIfSelected(this._name);
				outPutArray.splice(pos,1);
				if (pos == -1) {
					outPutArray.push(fieldArray[i].mc._name+":"+fieldArray[i].mc.selectedDate);
				}
				FullArray = FullArray+",{"+outPutArray+"}";
				//trace(outPutArray);
				clickSend();
				break;
			case "YES_NO" :
				var ya:Object = null;
				var na:Object = null;
				body = fieldArray[i].mc._name;
 
				var NStage1 = strip_Y(body);
				var FINResult = strip_N(NStage1);
 
 
				ya = FINResult+"_Y";
				na = FINResult+"_N";
				fieldArray[i].mc.addEventListener("click",onSelectedPath);
				if (fieldArray[i].mc.selected == true) {
					if (fieldArray[i].mc._name == ya) {
						outPutArray.splice(pos,1);
						if (pos == -1) {
							outPutArray.push(fieldArray[i].mc._name+":Yes");
						}
						FullArray = FullArray+",{"+outPutArray+"}";
						//trace(outPutArray);
						clickSend();
					} else {
						outPutArray.splice(pos,1);
						if (pos == -1) {
							outPutArray.push(fieldArray[i].mc._name+":No");
						}
						FullArray = FullArray+",{"+outPutArray+"}";
						//trace(outPutArray);
						clickSend();
 
					}
				} else {
 
				}
				break;
		}
	}
	//trace(FullArray);
	
	
	
	
	/*var emailResponse:LoadVars = new LoadVars();
    emailResponse.onLoad = function(success:Boolean) {
    if (success) {
            debug_txt.text = this.result;
				ExternalInterface.call("formSubmit");
	trace("Submited");
	trace(postVars.dataArray);
    } else {
            debug_txt.text = "error downloading content";
    }
    };*/
 
 var postVars:LoadVars = new LoadVars();
    postVars.dataArray = FullArray;
    postVars.sendAndLoad("../Core_files/PDFgenerator/tcpdf_php4/examples/example_011.php", dataReceiver, "POST");
 
	
 
	
};	
	dataSender = new LoadVars();
	dataReceiver = new LoadVars();
	dataReceiver.onLoad = function() {
   if (this.response == "invalid") {
      alert_txt.text = "Please check from."
   } else if (this.response == "error") {
      alert_txt.text = "Please check from."
   } else if (this.response == "passed") {
	   alert_txt.text = "Please check from."
      ExternalInterface.call("formSubmit");
   }
}
 
 
function clickSend(eventObj:Object):Void {
	var jsArgument:String = outPutArray;
	var result:Object = ExternalInterface.call("getTextFromFlash", jsArgument);
	ObjectToPass = "m7feu_input_"+result;
	trace("sent");
}
onEnterFrame(load);
{
	var FullArray:String = "{name:value}";
	//_global.FullArray = new Array();
	_global.outPutArray = new Array();
	_global.testIfSelected = function(t) {
		for (i=0; i<outPutArray.length; i++) {
			if (outPutArray[i] == t) {
				return i;
			}
		}
		return -1;
	};
};
 
Loading Advertisement...
 
[+][-]06.15.2008 at 08:56AM PDT, ID: 21788920

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.15.2008 at 01:19PM PDT, ID: 21789609

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.15.2008 at 06:49PM PDT, ID: 21790437

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.17.2008 at 08:32PM PDT, ID: 21809799

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.18.2008 at 02:36PM PDT, ID: 21817502

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.18.2008 at 09:06PM PDT, ID: 21819129

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]06.19.2008 at 12:59AM PDT, ID: 21820129

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.19.2008 at 01:00AM PDT, ID: 21820134

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.19.2008 at 07:17AM PDT, ID: 21822342

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.19.2008 at 07:35AM PDT, ID: 21822523

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.20.2008 at 08:47AM PDT, ID: 21832310

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.22.2008 at 05:42PM PDT, ID: 21842835

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: JavaScript, PHP Scripting Language, ActionScript
Tags: javascript, php, actionscript
Sign Up Now!
Solution Provided By: jeremyBass26
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628