How to display Steam Inventory on Website - json

I just want to add a users inventory (specific, just one inventory) on a webpage.
I see this:
http://api.steampowered.com/ISteamApps/GetAppList/v0001/
but it doesn't help.

This one is what you're looking for:
http://steamcommunity.com/profiles/{SteamID64}/inventory/json/{appid}/2
You may also use the following, but due to the fact that not every user has set up a custom URL, I'd advice against it:
http://steamcommunity.com/id/{customURL}/inventory/json/{appid}/2

Related

Adding custom text onto UPS shipping label?

I want to add a SKU number and Order ID onto the label. Is this possible with UPS's Developer API?
You can achieve that by filling the ReferenceNumber element in the shipment request. You may find the list of available codes in Appendix I in the Shipping documentation.
You can use the /ShipmentRequest/Shipment/Description container.
The result will look like something like this:

How to set focus on tab in tabcontrol in URL

I am trying to call a page in my customers webapplication (Exact Synergy Enterprise)
This is the link: http://someserveridontdisclose/Synergy/docs/CSCANEduCourseCard.aspx?ProjectNr=ACPGINTV
Within this page is an Ajax TabContainer with several TabPanels. One of them is called 'Doelgroepen'
I dont have the source for this application, as i am not the developer of it. We only develop custom extentions to it.
Here's the question: Is it possible to focus on one of the tabs USING ONLY AN URL? If so How?
Thank you very much for your thoughts about this.
try to set with javascript. you'll have to write your own js to get index number you want from url, then set like this
$find('<%=TabContainer1.ClientID%>').set_activeTabIndex(2);
http://forums.asp.net/t/1127834.aspx
http://www.aspforums.net/Threads/420684/ASPNet-AJAX-TabContainer-Set-Active-Tab-Client-side-using-JavaScript/
If you do not have access to the code and if this is not part of the requirement / design specification for the application you are using (ie: what you asked the developer to do), then the answer is No.
The control does not have "native" support for URL tab selection. There needs to be specific code in the application in order to handle this.
It is however very easy to implement, if you absolutely need it, it shouldn't take much time (about 15-30 lines of code, depending on how many tabs/urls combination you need).
You can find a running sample of the AjaxControlToolkit Tabs control at the following link (the available functionnalities are described in there):
http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/Tabs/Tabs.aspx
If the TAB has an ID you could make it visible by adding '#tabid' to the URL.

Copycopter - different flag instead of t

I want copycopter to recognize a blurb only when I specifically pass in some sort of copter flag or something like that. I do not want it to offer a blurb for every t call. How do I do this?
I came up with a very messy solution for anyone who wants to try it out, but I really don't think it is ideal. I basically went into the copycopter's server code and in the ProjectsController under the method show at the bottom I added
#localizations = #localizations.joins(:blurb).where("blurbs.key ~* ?",".copter")
which then takes all the localizations and cuts down the ones that don't have ".copter" in their key. Now all you need to do in your client is add ".copter" in the key for any localizations you want to show up. It's hacky but it works.

Selector box question

What is the name of the html tool used for creating a list of objects from a select field. It usually looks like two boxes with an arrow in the middle. An example would be if you were creating a group and box A had a list of users and you would click on a name and then click the arrow in the middle. It would then add it to box B creating a unqiue group list. I am trying to find the name of this so I can find some examples online. Anyone know the name or where I can find some good examples?
It's called Picklist. Google gives good examples with that keyword: http://google.com/search?q=html+picklist. Good luck.
try this
Multi select transfer script
or this
Option transfer
HTML does not have this control built in. But many other environments provide it. Sometimes its called a doubleselect(struts2).

can i insert my own option in select tag

which tag to use if i want to select an option from dropdown as wel as i can insert my own option.
using jsp can i do it? i m able to fetch the complete list to serve as option but i want to insert my own option as wel. what is the convenient technique using jsp? i mean like the way we insert into text box. i have seen in some sites that they provide options to choose and in one of the option you can fill ur own value plz help
I think I understand this question.
You are saying you have a select populated from server side JSP, but once the list is populated you would like to be able to add more options manually, by typing them in, almost like a combo-box?
There is a Microsoft Active X control that does this, but I would avoid this at ALL costs, simply because its not cross browser compatible.
You could try roll your own control, or look at the following:
Pay special attention to that last link, it uses jQuery so should be easy enough to implement. Ofc you're going to have to use some custom JSP to populate the control, but it should give you the desired effect.
http://steveorr.net/articles/combobox.aspx
http://www.codeproject.com/KB/custom-controls/combobox.aspx
http://www.thunderguy.com/semicolon/2009/07/16/simple-combo-box-jquery-plugin/