473,386 Members | 1,736 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Follow Hyperlink

ARC
Hello all,

I'm trying to put a buy button in my app, and using the follow hyperlink
command.

If I take the address below and copy/paste into IE, it correctly adds the
item to the shopping cart. However, if I use the statement below on a
button, it opens the page, but says "There are no items in your shopping
cart".

I wonder if it's getting hung up on the special characters like the ? or the
&?
Application.FollowHyperlink
"https://www.keysecure.com/pcesoft.com/cart.cgi?item=IBILL01&cart=pcesoftshopping"
Sep 25 '08 #1
2 7739
On Sep 25, 11:20*am, "ARC" <PCES...@PCESoft.invalidwrote:
Hello all,

I'm trying to put a buy button in my app, and using the follow hyperlink
command.

If I take the address below and copy/paste into IE, it correctly adds the
item to the shopping cart. However, if I use the statement below on a
button, it opens the page, but says "There are no items in your shopping
cart".

I wonder if it's getting hung up on the special characters like the ? or the
&?

Application.FollowHyperlink
"https://www.keysecure.com/pcesoft.com/cart.cgi?item=IBILL01&cart=pces..."
&'s are sometimes interpreted to mean you're going to define which
letter is a default alt-key combo.

You could try replacing with the %xx equivalents. (i.e. %20 = space.)
http://www.blooberry.com/indexdot/ht...rlencoding.htm

Or, you could have a security setting set that's stopping you.

Jon
Sep 26 '08 #2
ARC
Thanks, Jon.

I actually stumbled upon a solution. If I use the Shell command rather than
followhyperlink, it works fine.

Such as:
General Declarations
----------------------
Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA"
(ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String,
ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As
Long) As Long

Public Const SW_HIDE = 0
Public Const SW_SHOWNORMAL = 1
Public Const SW_SHOWMINIMIZED = 2
Public Const SW_SHOWMAXIMIZED = 3
Public Const SW_SHOW = 5

Public Function FollowBuy() As Boolean
On Error Resume Next
Dim addr As String
addr =
"https://www.keysecure.com/pcesoft.com/cart.cgi?item=INSCUSTDEV&cart=pcesoftshopping"
ShellExecute 0, "open", addr, 0, 0, SW_SHOWNORMAL
'retval = Shell(addr, 1)
End Function

Sep 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Badboy36 | last post by:
Hello user from googlegroups, i made a microsoft access database with front and backend. i created the backend in microsoft access97. for the frontend i made two versions (one for microsoft...
0
by: Ryan Harvey | last post by:
Hi all, I have written a web user control that contains a repeater control. the ItemTemplate for this control is basically 6 Hyperlinks in a row, that are dynamically allocated one of 7 gif...
5
by: Martin Dew | last post by:
Having some problems getting a hyperlink object to work in my repeater control, It displays the text I have asked it to for the hyperlink, but it does not act as a link. My repeater code is below...
10
by: david | last post by:
Hi, all: I need a help from you about DataGrid control. I created a DataGrid, dg, in design view of .NET visual Stadio and use the builder to add a Hyperlink column to dg. I want to try to assign...
8
by: Nathan Sokalski | last post by:
I have several System.Web.UI.WebControls.HyperLink Controls which I want to display as rollover images. I know how to make these manually using the <a> and <img> tags or the <a> tag and a...
0
by: Andy_Khosravi | last post by:
I'm having an issue with a hyperlink I've inserted into one of my A97 subforms. I have a continuos form which has three columns; hyperlink, a description, and a command buttons. I've made the...
0
by: woodglass | last post by:
I want to use object.hyperlink.Follow to follow a hyperlink to a web page. The web page requests a username & password. Can I programmatically supply both instead of having to type them in ?....
20
by: tshad | last post by:
I had posted this problem earlier and just noticed that the Hyperlink is the problem. Apparently, it doesn't figure out the path correctly. It uses the path of the file it is in, even if it is...
10
by: sierra7 | last post by:
I'm trying to create a form where a user enters a document reference number and then clicks a command button to add a hyperlink to the document, via a file picker. Thanks to Adezii's excellent...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
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,...
0
jinu1996
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 using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.