Welcome To Snipplr


Everyone's Recent Snippets



1 ... 409 410 411 412 413 ... 553
Wordpress has a built in class that you can style to style the down nav state for the page you are on. Adjust div name accordingly.
1 1958 posted 16 years ago by kstetson
Self-updating copyright
1 1420 posted 16 years ago by fabi
This is a @property to take care of jsonp stuff if you're using CherryPy. In your Javascript, (you're using JQuery, right?) you can do ` $.ajax({url:"localhost:8080/MyMethod", data:{'arg1':'foo'}, dataType:"jsonp", success:onMyMethodComplete}); `...
0 1278 posted 16 years ago by ndnichols
2 1707 posted 16 years ago by randyjhunt
1 2666 posted 16 years ago by benjaminpearson
0 1964 posted 16 years ago by dividespace
This is just something very simple that I needed to do. It outputs an xml without any change at all.
1 1402 posted 16 years ago by gryzzly
Use this function to print out all the rows in a table. Specify columns to show using the columnstring parameter: tablulardata(tablename, columnstring); ie: tabluardata("users","username=Username|fname=First Name|lname=Last Name");
1 1617 posted 16 years ago by kilrizzy
Use this function to pull all columns from a single database field. getrowdata(tablename,rowid,prefix); You would call this function like: getrowdata("users",$_SESSION['user'],"user_"); The prefix is the prefix you want for the array names,...
1 1813 posted 16 years ago by kilrizzy
This code within your CakePHP Controller to include a Model.
0 1420 posted 16 years ago by jdbartlett
0 1302 posted 16 years ago by samir
0 2541 posted 16 years ago by kokikr
Bind the DropDownList like normal (set DataSourceID, DataTextField, DataValueField), and <%BIND%> the SelectedValue field. AutoPostBack should be enabled. In the OnSelectedIndexChanged:
0 1931 posted 16 years ago by jink
Use this code to pull a DotNetNuke URL from a tab name. We use this to replace "?tabname=blah" type URLs which do NOT transfer language info.
0 1807 posted 16 years ago by jink
Basic example of calling a web service from code using GET. You can pass parameters in as query vars. Assumes return type of service is "String". Example return xml: <?xml> <string>US</string> @SNIPPLR TEAM: Please let me put xml at...
3 2354 posted 16 years ago by jasonseney
Essentially, you need to tell Visual Studio to generate an XML file with documentation, then use a separate tool to create a help file (usually .chm) out of that XML file. The tool to use is MS's Sandcastle. You'll also want a GUI for Sandcastle, whi...
0 1947 posted 16 years ago by pckujawa
0 1696 posted 16 years ago by atr000
just testing snipplr.com
0 1363 posted 16 years ago by cfleschhut
I use this to scan an entire repository for an issue number and print out all of the revisions that reference it. XSLT is far faster now then it was in the old days. Xalan (not known as the fastest engine) can run this on my 10mb log file in under...
1 1541 posted 16 years ago by nitehawk
what was taking an embarrassingly long time in Spry took 2 lines in PHP
0 1633 posted 16 years ago by rwczippy
Used to share between a single instance of jQuery through iFrames. Do note, the iFrame content must originate from the same domain, or this plugin will NOT work as expected.
4 2178 posted 16 years ago by garside
i love those ternary expressions, they really make things clear, don't they? found in org.eclipse.jface.action.Action
0 1037 posted 16 years ago by guetux
Assign this class to any element that needs to have layout (hasLayout=true) and it will get it. ...with the style placed inside IE conditional comments, it will be ignored by the validator, which removes the only obstacle to using zoom:1 - which has...
2 1663 posted 16 years ago by jessibird
1 ... 409 410 411 412 413 ... 553