I have to send a user to a 3rd party site. Basically I am thinking I need a
linkbutton with an onclick event. The even handler would populate the
necessary values (userid, encryptedid, usergroup) and then I need to post
this information to a 3rd party site (in a new window).
From the user perspective:
User clicks on a hyperlink and a new window pops up that is the 3rd party
site and they don't have to log in.
Anybody know how to accomplish this?
Thanks
~James
--
James Coleman
Technical Director
AGENCY.COM [Chicago] 5 1542
Hi James,
If you have the necessary values (userid, encryptedid, usergroup) as client
side (hidden form) fields you can open a new window with JavaScript.
Something like:
onClick="window.open('http://www.3rdPartySite.com?params...
Andrew
"James Coleman" <Ja**********@discussions.microsoft.com> wrote in message
news:02**********************************@microsof t.com... I have to send a user to a 3rd party site. Basically I am thinking I need a linkbutton with an onclick event. The even handler would populate the necessary values (userid, encryptedid, usergroup) and then I need to post this information to a 3rd party site (in a new window).
From the user perspective: User clicks on a hyperlink and a new window pops up that is the 3rd party site and they don't have to log in.
Anybody know how to accomplish this?
Thanks ~James -- James Coleman Technical Director AGENCY.COM [Chicago]
Hi James,
You might be able to achieve this by setting the target of a standard
client-side form, for example:
<form action="thirdPartySite.aspx" method="post" target="_blank">
<input type="hidden" name="userid" value="..." />
<input type="hidden" name="encryptedid" value="..." />
<input type="hidden" name="usergroup" value="..." />
</form>
You could then use a bit of client-side JavaScript on your hyperlink's
onclick event to set the hidden values and submit the form.
Hope this helps,
Chris
If the third party website has designed their web page to accept QueryString
parameters input then it would have probably defined the parameters for you.
Such as had already been mentioned in another post.
If on the other hand you are attempting to do that without the knowledge or
the design of the other website then you might as well not do it. Any change
in the other website would render your application inoperable. It would be
easier to redirect the Response to the new website and let them enter the
information there.
--
HTH,
Phillip Williams http://www.societopia.net http://www.webswapp.com
"James Coleman" wrote: I have to send a user to a 3rd party site. Basically I am thinking I need a linkbutton with an onclick event. The even handler would populate the necessary values (userid, encryptedid, usergroup) and then I need to post this information to a 3rd party site (in a new window).
From the user perspective: User clicks on a hyperlink and a new window pops up that is the 3rd party site and they don't have to log in.
Anybody know how to accomplish this?
Thanks ~James -- James Coleman Technical Director AGENCY.COM [Chicago]
If the third-party website is using asp.net then an attempt to cross-site
posting to that form would come back with an exception if the ValidateRequest
property of that page is set to true: http://msdn2.microsoft.com/en-us/lib...terequest.aspx
--
HTH,
Phillip Williams http://www.societopia.net http://www.webswapp.com
"Chris Fulstow" wrote: Hi James,
You might be able to achieve this by setting the target of a standard client-side form, for example:
<form action="thirdPartySite.aspx" method="post" target="_blank"> <input type="hidden" name="userid" value="..." /> <input type="hidden" name="encryptedid" value="..." /> <input type="hidden" name="usergroup" value="..." /> </form>
You could then use a bit of client-side JavaScript on your hyperlink's onclick event to set the hidden values and submit the form.
Hope this helps,
Chris
it has to be a post instead of a get. I was thinking last night I would
build the hyperlink dynamically that opens a page on my site in a new window
that passes the values to it. I could then take the querystring values and
populate the form values and automatically post to the third party. The new
window would then be the 3rd party site.
Thanks for kicking around ideas with me guys.
~James
--
James Coleman
Technical Director
AGENCY.COM [Chicago]
"Andrew" wrote: Hi James,
If you have the necessary values (userid, encryptedid, usergroup) as client side (hidden form) fields you can open a new window with JavaScript. Something like: onClick="window.open('http://www.3rdPartySite.com?params...
Andrew
"James Coleman" <Ja**********@discussions.microsoft.com> wrote in message news:02**********************************@microsof t.com...I have to send a user to a 3rd party site. Basically I am thinking I need a linkbutton with an onclick event. The even handler would populate the necessary values (userid, encryptedid, usergroup) and then I need to post this information to a 3rd party site (in a new window).
From the user perspective: User clicks on a hyperlink and a new window pops up that is the 3rd party site and they don't have to log in.
Anybody know how to accomplish this?
Thanks ~James -- James Coleman Technical Director AGENCY.COM [Chicago] This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Display Name |
last post by:
the customer I'm developing a site for uses a canned form-parsing page that
allows her to have an email subscription opt-in page add emails to a list
she can manage using a link that you point your...
|
by: Tom |
last post by:
I have created the following code for a product select/payment form (don't know if there is a better
way) and I have been trying to make the following changes (unsuccessfully so far):
1) ...
|
by: Astra |
last post by:
Hi All
I know I may sound like an IE waif, but I am trying to get my web sites to
be more compatible especially with browsers such as Netscape, Safari,
Mozilla, etc.
In a nutshell, could...
|
by: Noozer |
last post by:
We have a web based tool used to report issues in our office. Many times the
users do not enter the required information to deal with the issue.
Unfortunately we don't have control of this...
|
by: Eli |
last post by:
How can I POST a form into a new window where I control the size and
other attributes of the new window?
Also. Are there any implications, perhaps due to browser security
(Interne Explorer?)...
|
by: Alex |
last post by:
Hi!!
i have a major problem, and i've been searching for a solution for
about 2 weeks, but havent found one.
i have to do a POST-Request to a server, but the server shouldnt know
my referrer....
|
by: Philippe C. Martin |
last post by:
Hi,
I am trying to change the data in a form field from python. The following
code does not crash but has no effect as if "form" is just a copy of the
original html form.
Must I recreate the...
|
by: Mike |
last post by:
Hi! I posted this question in browser_ctl group as well but got no results.
I have a form with embedded WebBrowser. Upon clicking on a link in the embedded webbrowser that calls JavaScript's...
|
by: jwlum |
last post by:
I have the following problem under Internet Explorer only:
1. User fills out form data (myform.php) and clicks a button that fires
myFunction()
2. myFunction() spawns a "hello, world" popup page...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
| |