BEGIN FUNCTION(s) OUTPUT
----------------------------------------
----------------------------------------
Temporary Testing Hyperlinks:
Permalink - eBay Func Devel (Alert Debug)
----------------------------------------
For TESTING, add Function to test for arguments (direct link), if no args,
redirect to same page with sample GET parameters.
URL Arguments using JQuery:
http://jquery-howto.blogspot.com/2009/09/get-url-parameters-values-with-jquery.html
This code is a collection of functions designed to break up parameters passed
using the GET method of navigation and form submissions.
Add:
Code to create associative array (or collection) on load and available to
all window.document code.
object oriented coding:
ua = new urlargs()
ua.param('id').name
ua.param('id').value
Need:
Need to develop code to read an existing webpage that is already loaded and
retrieve a specific variable which "may" be used more than once in different
functions using protective scopes.
Information:
http://www.troubleshooters.com/codecorn/littperl/perlreg.htm
An uparrow (^) at immediately following the opening square bracket means "Anything but these characters", and effectively negates the character class.
http://www.amk.ca/python/howto/regex/
Pay careful attention to the difference between * and +; * matches zero or more times, so whatever's being repeated may not be present at all, while + requires at least one occurrence.
There are two more repeating qualifiers. The question mark character, ?, matches either once or zero times; you can think of it as marking something as being optional.
The most complicated repeated qualifier is {m,n}, where m and n are decimal integers. This qualifier means there must be at least m repetitions, and at most n. For example, a/{1,3}b will match "a/b", "a//b", and "a///b". It won't match "ab", which has no slashes, or "a////b", which has four. You can omit either m or n; in that case, a reasonable value is assumed for the missing value. Omitting m is interpreted as a lower limit of 0, while omitting n results in an upper bound of infinity
Some may notice that the three other qualifiers can all be expressed using this notation. {0,} is the same as *, {1,} is equivalent to +, and {0,1} is the same as ?. It's better to use *, +, or ? when you can, simply because they're shorter and easier to read.
Groups are marked by the "(", ")" metacharacters. "(" and ")" have much the same meaning as they do in mathematical expressions; they group together the expressions contained inside them. For example, you can repeat the contents of a group with a repeating qualifier, such as *, +, ?, or {m,n}. For example, (ab)* will match zero or more repetitions of "ab".
javascript specific:
http://www.javascriptkit.com/javatutors/redev.shtml
http://www.javascriptkit.com/javatutors/redev2.shtml
http://www.javascriptkit.com/javatutors/redev3.shtml
--------------------------------------------------------------------------------
Inline Function Development for Favelets:
--------------------------------------------------------------------------------
Permalinks:
Cabelas Permalinks:
Cabelas ID Only:
http://www.cabelas.com/cabelas/en/templates/product/standard-item.jsp?id=[id]
http://www.cabelas.com/cabelas/en/templates/category/category.jsp?id=[id]
Cabelas Products
http://www.cabelas.com/cabelas/en/templates/product/standard-item.jsp?_DARGS=/cabelas/en/common/catalog/item-link.jsp_A&_DAV=MainCatcat21424-cat20011-cat20049_TGP&id=0046758417989a&navCount=8&podId=0046758&parentId=cat20049&masterpathid=&navAction=push&catalogCode=UK&rid=&parentType=index&indexId=cat601233
http://www.cabelas.com/cabelas/en/templates/product/standard-item.jsp?id=0046758417989a
http://www.cabelas.com/cabelas/en/templates/product/standard-item.jsp?id=[id]
id=0046758417989a
http://www.cabelas.com/p-[id].shtml
http://www.cabelas.com/p-0068170418829a.shtml
Permalink - Cabelas Product
Permalink - Cabelas Product (Alert Debug)
Cabelas Category:
http://www.cabelas.com/cabelas/en/templates/category/category.jsp?id=cat20712&cmCat=MainCatcat20712&navAction=jump&cm_re=store*left*cat20712
http://www.cabelas.com/cabelas/en/templates/category/category.jsp?id=cat20712
http://www.cabelas.com/cabelas/en/templates/category/category.jsp?id=[id]
Permalink - Cabelas Catagory
Permalink - Cabelas Catagory (Alert Debug)
Cabelas Catagory - Problem Example:
http://www.cabelas.com/cabelas/en/templates/links/link.jsp?type=pod&cmCat=MainCatcat20712-cat20726-cat20841&id=0014389
creates (doesn't work):
http://www.cabelas.com/cabelas/en/templates/category/category.jsp?id=0014389
working:
http://www.cabelas.com/cabelas/en/templates/links/link.jsp?type=pod&id=0014389
Notes:
if link.jsp, use link.jsp, if category.jsp, use category.jsp
create function with logic to decifer (include standard-item.jsp)?
eBay Permalinks:
eBay:
Need to document each type of browse and how url parsing is accomplished...
browse1:
http://cgi.ebay.com/NEW-MILITARY-ISSUE-OTIS-5-56-CLEANING-KIT-FITS-IN-GRIP_W0QQitemZ220566037344QQcmdZViewItemQQptZLH_DefaultDomain_0?hash=item335ac2a360
http://cgi.ebay.com/ ... QQitemZ220566037344QQcmdZViewItemQQ ... ?hash=item335ac2a360
seperators:
QQ[paramter]
Z[value]
QQparameterZvalue
QQitemZ220566037344QQ
220566037344
browse2:
http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=220566037344&ru=http%3A%2F%2Fshop.ebay.com%3A80%2F%3F_from%3DR40%26_trksid%3Dp3907.m38.l1313%26_nkw%3D220566037344%26_sacat%3DSee-All-Categories%26_fvi%3D1&_rdc=1
http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=220566037344 (remove remaining, look for pattern or &item= )
220566037344
http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=220566037344
Permalink - eBay Func Devel 1
Permalink - eBay Func Devel 1 (Alert Debug)
browse3 (04/24/2010):
http://cgi.ebay.com/NEW-OTIS-Compact-Marksman-Micro-Gun-cleaning-Kit-NEW-/320521785547?cmd=ViewItem&pt=LH_DefaultDomain_0&hash=item4aa09650cb
320521785547
...