Click here to Skip to main content
16,016,535 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I want to post object from one page to the other page

FirstForm.html

HTML
<OBJECT id=objFP style="LEFT: 60px; WIDTH: 149px; TOP: 0px; HEIGHT: 182px" height=182 
		width=149 classid="CLSID:D547FDD7-82F6-44e8-AFBA-7553ADCEE7C8" name=objFP VIEWASTEXT>
	<param name="CodeName" value="1">
	</OBJECT>


SecondForm.html

JavaScript
<script LANGUAGE="JavaScript">
function getParams(){
var idx = document.URL.indexOf('?');
var params = new Array();
if (idx != -1) {
var pairs = document.URL.substring(idx+1, document.URL.length).split('&');
for (var i=0; i<pairs.length; i++){
nameVal = pairs[i].split('=');
params[nameVal[0]] = nameVal[1];
}
}
return params;
}
params = getParams();
id = unescape(params["person_id"]);
findex = unescape(params["f_index"]);
min = unescape(params["min"]);


document.write("Person Id = " + id + "<br>");
document.write("Fingerprint Index = " + findex + "<br>");
document.write("Fingerprint Data = " + min + "<br>");


The above data want to post.I am not having idea how to do this. please can anyone help me....

What I have tried:

I want to post data along with thee object.I m able to post data but I cant able to post that object data
Posted
Updated 7-Jun-16 23:26pm
v2
Comments
Jinesh N 8-Jun-16 5:38am    
have you try this? https://api.jquery.com/jquery.post/
Member 12130512 8-Jun-16 9:30am    
How i can post activex control object?
Richard Deeming 8-Jun-16 9:09am    
1) ActiveX objects are only supported in Internet Explorer on Windows, and depending on the control, might require the user to change their securits settings to allow "unsafe" ActiveX objects.

2) ActiveX objects don't generate any data to post to the server. You'll need to check the API documentation for the control to see how you can extract the data you want to post. Since you haven't told us what the control is, there's no way we can do that for you.
Member 12130512 8-Jun-16 9:31am    
I am using activex object to display image using class id.how i can send that same image to another html page.If you know please tell me

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900