Forum Moderators: open

Message Too Old, No Replies

Passing Value to an ASP URL on Another Site

Looking for help formatting a URL to preselect a dropdown box value

         

AIDSorg

12:43 am on Mar 18, 2006 (gmt 0)

10+ Year Member



Our organization's fiscal sponsor (nonprofit) is providing us with a means to collect donations using a generic page using <an online giving/donation service>:

[subdomain.example.org...]

This link translates to this:

http://www.example.org/AutoGen/Simple/Donor.asp?ievent=149093&en=gqJHIVMBJ5LGKZPxF5JPJ1OFKhLKJ2OBLfIRJ2PMJuE

On the donation page, donors are required to find a drop down box, expand it, and select <our name> out of a list of about 150 entries.

I'd like to make this easier for our donors, and pass a URL to the service that PRESELECTS <our name>

I don't know anything about ASP, but it MIGHT be in this kind of format:

[subdomain.example.org...]

Again, I don't know ASP, and have been unable to get an answer to this. Can anyone out there help us with this?

Thanks,
Gary

<Sorry, no site specifics.
See Terms of Service [webmasterworld.com]>

[edited by: tedster at 5:45 pm (utc) on Mar. 19, 2006]

carguy84

4:36 pm on Mar 19, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



[example.org...]

or if URLS get stripped by a mod, just add this to the end:
&BeneficiaryID=340721

Chip-

[edited by: tedster at 5:46 pm (utc) on Mar. 19, 2006]

AIDSorg

5:52 pm on Mar 19, 2006 (gmt 0)

10+ Year Member



Thank you SO very much for taking the time to help us with this, Chip! It works like a charm. We're forever indebted to you.

Thanks again,
//Gary

carguy84

5:37 pm on Mar 20, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



No prob, glad I could help.

AIDSorg

6:03 pm on Mar 20, 2006 (gmt 0)

10+ Year Member



One more thing, if that's ok:

You said:

<<< .. or if URLS get stripped by a mod, just add this to the end: &BeneficiaryID=340721 >>>

Does this mean that I can also just append &BeneficiaryID=340721 to the end of the shorter URL? Would this shorter format work? I'd like to share this with their other projects, and would prefer to make it as simple as possible for them (rather than have them use a longer URL):

<SNIP>

I'm sure this isn't correct, but would something similar to this work just as well as the longer URL format?

Thanks again. This stands to help a lot of us, and I really do appreciate your advice.

//Gary

[edited by: engine at 6:53 pm (utc) on Mar. 20, 2006]
[edit reason] No URLs, thanks. See TOS [webmasterworld.com] [/edit]

txbakers

6:50 pm on Mar 20, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



leave out the ampersand and see if that works.

carguy84

7:01 pm on Mar 20, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



When I tried it on the shorter URL it didn't work. When the shorter URL redirected to the longer one, it didn't carry over the querystring.

Chip-

AIDSorg

11:47 pm on Mar 21, 2006 (gmt 0)

10+ Year Member



Hi again. Me again, Chip ...

Using what you have shown me, I also tried to preselect the "payment type" (as well as preselecting the payee) for the URL you have been helping me with. After selecting a payment option such as "Online Check (ACH)," the URL in the address bar only appends "#Payment" but has no value (type of payment). I have been unsuccessful thus far in trying to preselect these. I have experimented quite a bit using the guidance you have already offered me.

http://www.example.org/AutoGen/Simple/Donor.asp?ievent=149093&en=gqJHIVMBJ5LGKZPxF5JPJ1OFKhLKJ2OBLfIRJ2PMJuE&BeneficiaryID=34721#Payment

For the Online Check option (for example), I tried these:

&BeneficiaryID=34721#payment=ACH
&BeneficiaryID=34721#paymenttype=ACH
&BeneficiaryID=34721&paymentTypeselector=ACH

The four options are: Credit/Debit, Fax or Mail In form, Online Check, and Paypal.

None of these work, although I feel "THIS" close. Once I get this sorted out, we should be all set. My apologies for not noticing this other option sooner so I didn't have to bug you again. But again, your help would be most appreciated.

Thanks again!,
//Gary

carguy84

1:10 am on Mar 22, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I don't think you're going to be able to do it with Payment. It's calling a JavaScript function to reload the page once an option is selected.

I don't know of any way to invoke that function from the querystring unfortunately. But if it was going to work like the other one, you'd just have to add:

PaymentTypeSelector=ACH

to the end of the URL.

Chip-