Hi All,
I've got a method that returns a List for a DataSet table
public static List<string> GetListFromDataTable(DataSet dataSet, string tableName, string rowName)
{
int count = dataSet.Tables[tableName].Rows.Count;
List<string> values = new List<string>();
// Loop through the table and row and add them in...
Hello all,
I'm writing a simple scripting language on top of Java/JVM, where you can also embed Java code using the {} brackets. The problem is, how do I parse this in the grammar? I have two options:
Allow everything to be in it, such as: [a-z|a-Z|0-9|_|$], and go on
Get an extra java grammar and use that grammar to parse that small ...
I've got a button and when it's pushed this code launches:
var nrDivs = "1"
var neuDiv = document.createElement("div");
neuDiv.setAttribute("Id","theDiv" + nrDivs);
neuDiv.innerHTML = "Text";
$('#allDivs').append(neuDiv);
newfeed.draw(neuDiv);
I know that right now the script creates a new div with the ID: ...
Hi all,
I am trying to build a layout dynamically which display some text and image for the most part, but has a series of buttons placed next to each other in the bottom.
I have a linear layout that carries the text, another linear layout that carries the image. And yet another linear layout that carries the buttons that get created ...
just wondering if anyone knows anything of using javascript to set html to new content instead of linking to new pages, if this is generally a bad idea or if it kind of hurts SEO(which im kind of new to)
Basically the home page displays given content, and the links to like contact pages and stuff, just change the body content to what wo...
I have an html page that is generated by a CMS. I cannot modify the page, but can add JavaScript.
Each time the page loads, a JavaScript function (that I cannot modify) dynamically inserts a paragraph onto the page.
How can I use JQuery to .remove() that paragraph whenever it is loaded?
For example, when the page first loads, it look ...
The app I am working on requires dynamic loading of CSS and JS, right now the solution is as follows:
myapp.loadCss = function(css){
$("head").append("<link>");
cssDom = $("head").children(":last");
cssDom.attr({rel: "stylesheet",
type: "text/css",
href: css
});
...
hey guys, im having some trouble...
i'm able to capture the first button on the page, but there are a total of 10 buttons. When I click on any of those 10 buttons, only the first button's value is called and the other ones don't update. is there a way to capture all of the buttons so they each have their own independent value and update ...
How can I do this with the JS replace() method:
Make \n\n change to <p>$1</p>
Change single \n to <br>
Then back again. I think I have this part, see the JS at the bottom.
Example HTML:
<p>Hello</p><p>Wor<br>ld</p>
The <textarea> would look like:
Hello
Wor
ld
So, how can I achieve this? It's an AJAX form where when you click o...
I want to create dynamic forms on a MVC page that will generate something like this.
onclick="
var f = document.createElement('form');
f.style.display = 'none';
this.parentNode.appendChild(f);
f.method = 'POST';
f.action = this.href;
var s = document.createElement('input');
s.setAttribute('type', 'hidden...
I have the following class (abreviated for simplicity). The app it multi-threaded so the Set and Get are a bit more complicated but should be ok.
namespace News.RSS
{
public class FeedEngine : DependencyObject
{
public static readonly DependencyProperty _processing = DependencyProperty.Register("Processing", typeof(bo...
Already developed few websites on top of CakePHP but now ran into a brick wall. To make things simple, here's the scenario:
Database Schema:
USERS
- id
- name
RECORDS
- id
- user_id
- timestamp
RECORD_FIELDS
- id
- name
RECORD_DATA
- id
- record_id
- record_field_id
- value
Basically it's an control panel for staff that...
I am currently using datasets for my data access layer. I currently store the connection string in the web.config file. I need the ability to change the connection to another database before any queries are processed. Is there an event that is triggered or a base class that can be modified that intercepts the process of retrieving the...
I've seen a very interesting post on Fabio Maulo's blog. Here's the code and the bug if you don't want to jump to the url. I defined a new generic class like so:
public class TableStorageInitializer<TTableEntity> where TTableEntity : class, new()
{
public void Initialize()
{
InitializeInstance(new TTable...
in a wpf datagrid,
if we have 2 rows. and each have 2 columns ... in the following format
A, B, C, D are text columns
row1: A B
row2: C D
when ever i type value in A, I want to change value in D and continue typing in A
Thank you in advance for your ideas
...
I have been trying to put together something that allows me to extract points from a ListPlot in order to use them in further computations. My current approach is to select points with a Locator[]. This works fine for displaying points, but I cannot figure out how to extract numerical values from a construct with head Dynamic[]. Below...
Been looking through a number of other related posts relating to flowchart software.
I have been asked to put together a document outlining some of the typical problems our users encounter with our software product.
What I would like to do, is create an interactive/online flowchart that lets users choose from 4-5 overall headings on wha...
Do you think the new dynamic type for C# is a serious drawback regarding the advantages of a strong typed language or do you think the advantages (like getting around those heavily reflections) outweigh the risks?
...
Code for asp.net page
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="trainingupload.aspx.vb" Inherits="trainingupload" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server">
<title...
I would like to write something similar to the following:
// I will pass in a number of "properties" specified as strings that I want modified
string[] properties = new [] { "AllowEdit", "AllowDelete" };
// Casting the component I'm using to a dynamic object of some sort ?
dynamic d = myGridComponent;
// Iterate over the strings an...