javascript
-
lastChild is null in FireFox works in IE invalid nodeType javascript c# asp .net
This issue alluded me at first as it works in IE but not in FF. See code below. In you’re interested in reviewing other approaches to styling your table cells, see my similar article here. Continue reading
-
change last row cell style in css and javascript cross browser compatibility issues
There are various approaches to achieve this functionality with equally different levels of compatibility across browsers. Here are some of the ways. Javascript Approach (most compatible. you may recognize this code from another one of my articles.): HTML col tags… Continue reading
-
Serialize C# object to JSON JavaScriptSerializer .Net
References MS Blogs, http://blogs.microsoft.co.il/blogs/pini_dayan/archive/2009/03/12/convert-objects-to-json-in-c-using-javascriptserializer.aspx JSON.org, http://www.json.org/js.html C# Cross-Site Page Access, http://stackoverflow.com/questions/6290053/setting-access-control-allow-origin-in-asp-net-mvc-simplest-possible-method PHP Cross-Site Page Access, http://rayfd.wordpress.com/2007/03/28/why-wont-eval-eval-my-json-or-json-object-object-literal/ JS Eval string to JSON Object, http://rayfd.wordpress.com/2007/03/28/why-wont-eval-eval-my-json-or-json-object-object-literal/ Continue reading
-
Get Current URL in Javascript
JS (JQuery): JS (standard): Continue reading
-
JQuery Grid Themes
Useful links to JQuery grids utilizing (mostly) standard UI themes and/or very little code. Google! http://jquery-ui.googlecode.com/svn/branches/labs/grid/tests/static/grid/default.html Datatables.Net: http://www.datatables.net/styling/themes/smoothness Ke-Cai: http://www.ke-cai.net/2010/01/theme-your-table-with-jquery-ui.html Trirand: http://www.trirand.com/blog/jqgrid/jqgrid.html Stackoverflow: http://stackoverflow.com/questions/2613632/jquery-ui-themes-and-html-tables Continue reading
-
JQuery and Partial Postbacks
I recently came across an issue where JQuery bindings no longer functioned after a partial postback and stumbled upon some code that was helpful in most cases. Javascript (JQuery): And alternatively.. This code will not always work however, as was… Continue reading
-
JQuery and Frames
Although there is definitely some room for debate in the web development and design community on where the usage of frames is necessary, there are some situations where they cannot be avoided. Manipulation of data within these frames can be… Continue reading
-
JQuery AJAX Reference
Keep in mind when using code below if requesting a page that requires login/restricted access, users login session is not carried over. Snippet below is sample code usage illustrating two different methods of achieving similar result. See references for more… Continue reading