Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 23/11/2024 Black Friday 2024

    BIG SALE, 30% discount for all our extensions. Use BF24 coupon code. Hurry up the discount is valid till 3 December.

  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Button in column
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: Button in column
#31076
Re:Button in column 12 Years, 3 Months ago Karma: 760
It looks fine in your first post if "TrackingNumber" field are selected by the query, but the query from this post doesn't contain "TrackingNumber" field.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#31078
Re:Button in column 12 Years, 3 Months ago Karma: 0
I fixed that by updating my code to use the "Alt Tracking" column. But, I'm having trouble figuring out the code that is being generated. The button is not performing any action.

When using FireBug, the code that is showing for the button is showing as follows:
Code:

<input type="submit" href="http://wwwapps.ups.com/WebTracking/processInputRequest?sort_by=status&tracknums_displayed=1&TypeOfInquiryNumber=T&loc=en_US&InquiryNumber1=1Z254R110362456990" _blank"="" onclick="location.href='http://wwwapps.ups.com/WebTracking/processInputRequest?sort_by=status&tracknums_displayed=1&TypeOfInquiryNumber=T&loc=en_US&InquiryNumber1=<a target=" value="UPS">
1Z254R110362456990'" />



Column Settings:
ID: Alt Tracking
Alias: [empty]
Format:
Code:

<input type="submit" value="UPS" onClick="location.href='http://wwwapps.ups.com/WebTracking/processInputRequest?sort_by=status&tracknums_displayed=1&TypeOfInquiryNumber=T&loc=en_US&InquiryNumber1={$columns:Alt Tracking}'"  />


Query:
Code:

SELECT itemcode as 'Item Number', itemdescription as 'Item Name', Quantity as 'Qty Ordered', Price as 'Unit Price', CONCAT( '<a target="_blank" href="http://www.fedex.com/Tracking?language=english&cntry_code=us&tracknumbers=', `TrackingNumber`,'">', `TrackingNumber` , '</a>' ) AS 'FedEx Tracking', CONCAT( '<a target="_blank" href="http://wwwapps.ups.com/WebTracking/processInputRequest?sort_by=status&tracknums_displayed=1&TypeOfInquiryNumber=T&loc=en_US&InquiryNumber1=', `TrackingNumber`,'">', `TrackingNumber` , '</a>' ) AS 'Alt Tracking'
FROM `thisnameisbeinghidden`
WHERE docnum = {$REQUEST:currentPo}
AND UserID = {$UserLogin}

Last Edit: 2012/08/28 18:39 By timtenn.Reason: Added photo
The administrator has disabled public write access.
 
#31079
Re:Button in column 12 Years, 3 Months ago Karma: 760
It seems this is a problem with "Alt Tracking" value which is used for "InquiryNumber1" parameter in onclick handler for submit button. HTML code which is used in "Alt Tracking" breaks code for button.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#31080
Re:Button in column 12 Years, 3 Months ago Karma: 0
Should the HTML for "Alt Tracking" create an output like this?
Code:

<a href="http://wwwapps.ups.com/WebTracking/processInputRequest?sort_by=status&tracknums_displayed=1&TypeOfInquiryNumber=T&loc=en_US&InquiryNumber1=1Z3213213213213213


or like this:
Code:

http://wwwapps.ups.com/WebTracking/processInputRequest?sort_by=status&tracknums_displayed=1&TypeOfInquiryNumber=T&loc=en_US&InquiryNumber1=1Z3213213213213213
The administrator has disabled public write access.
 
#31086
Re:Button in column 12 Years, 3 Months ago Karma: 760
What sense to use "Alt Tracking" parameter in onclick handler for submit button?

Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 12