dynamic

d3.js noob : How to pass dynamic variable as data

╄→гoц情女王★ 提交于 2019-12-13 02:37:42
问题 I'm trying to change the data set via a variable passed from the clicked button. Here's an example of what I'm doing so far: http://jsfiddle.net/earlybirdtechie/qmC9E/ d3.selectAll('button.decadeBtn') .on("click", function() { var currentDecadeName = $(this).attr('data-decade'); console.log('currentDecadeName: '+ currentDecadeName); svg.selectAll("rect.bars") .data(currentDecadeName, function(d) { return d.id }) .transition() .duration(1499) .ease("bounce") .attr({ height: function(d,i) {

Execute coldfusion code stored in a string dynamically?

只愿长相守 提交于 2019-12-13 02:36:36
问题 I have an email body stored as a string in a database, something like this: This is an email body containing lots of different variables. Dear #name#, <br/> Please contact #representativeName# for further details. I pull this field from the database using a stored proc, and then I want to evaluate it on the coldfusion side, so that instead of "#name#", it will insert the value of the name variable. I've tried using evaluate, but that only seems to work if there's just a variable name. It

Adding User Control Dynamically in ASP.NET

走远了吗. 提交于 2019-12-13 02:35:55
问题 I know this question was asked many times, but still my problem is not solved, I'm trying to iterate on a list of objects, and fill a template "user control" with that object, like result list of a search. in these user controls there is a linkButton which should redirect to another page, when I click on that linkButton nothing happens, I googled it but no satisfying answer. here is the code, I'll illustrate with button instead of a user control: protected override void OnInit(EventsArgs e) {

Wordpress get_post_meta not working inside a .php file that is written for dynamic php?

♀尐吖头ヾ 提交于 2019-12-13 02:28:48
问题 I want to tie in jquery functions with post meta options, so I have created a PHP file with jQuery code inside the PHP tags. <?php echo " function dynamicAdjust() { jQuery('#main-home').css('margin-top', jQuery(window).height()); } "; ?> Maybe there is a better way to create dynamic PHP (let me know if there is) with post meta options, but the jQuery here works fine, I enqueued in in my functions.php as a javascript file, and the jQuery funciton works fine. The issue and the whole point of

BizTalk 2010 Dynamic FTP Send Port Output Directory and File Name Issue

一世执手 提交于 2019-12-13 02:06:10
问题 I have a rather complex requirement - that I have to drop a very specifically named file in an FTP location, and the trick here is that I would often have to drop it into a new location and with a new file name each time (both directory name and file name depending on the year, month, date and time). Obviously, for this purpose I chose to use a Dynamic Send Port, which I have configured using a MessageAssignment Shape. A file will be generated each day. I need to drop it in a remote location

AngularJS load tabbed content directive dynamicly

為{幸葍}努か 提交于 2019-12-13 02:01:17
问题 I have a tabbed navigtion in my webapp that looks like this Now I want to Change the directive each time the user clicks on one of the Navigation points. My Idea was to init the page with the first template. $scope.currentDirective = $compile('<div order-Sale></div>'); Then when the user clicks on a tab, I wanted to change and compile the content again with a new directive in it. But for some reason this is not working. How would you proceed in order to archive this dynamic content loading? I

Creating a dynamic table

橙三吉。 提交于 2019-12-13 01:49:40
问题 I'm working with C# to develop my skills. I am trying a tutorial that I have found online: http://geekswithblogs.net/dotNETvinz/archive/2009/03/17/dynamically-adding-textbox-control-to-aspnet-table.aspx but when I try the code and add the Generate table method it tells me that the type or the namespace name for Table table = new Table(); could not be found.. does anyone know what namespace I should use for this. This is the rest of the code: private void GenerateTable(int colsCount, int

ClassNotFoundException during Dynamic Class loading in android

狂风中的少年 提交于 2019-12-13 00:41:18
问题 I am creating an app, where i am supposed to receive data through web service. Here i am having a class, stored in the main package. I need to load data of this class dynamically i.e at run time, whenever something is received from the web service. But i am getting excepion of classNotFound. Here is my code for dynamic loading of class, try { Class myClass = ClassLoader.getSystemClassLoader().loadClass("com.myPackage.it.ClassToLoad"); Log.d("Dynamic class Loading", "1"); Object DPMInstance =

Resize a QWidget containing a QVBoxLayout in runtime when contents are partially Hidden

谁说胖子不能爱 提交于 2019-12-13 00:31:58
问题 In this application, a list of HBoxLayouts is generated and put into a VBoxLayout in order to form a dynamically filled list of commands. There is a button above each sub-list which has the capability to hide the controls below it. The problem: when a sub-list is hidden, the widget which contains the broadest VBoxLayout does not change in size! The VBoxLayout then stretches to compensate. I want the container widget to shrink when it contains fewer items! It looks like this: The problem is,

Dynamically allocating array of objects

ε祈祈猫儿з 提交于 2019-12-13 00:18:07
问题 I need a double pointer of type DizzyCreature (my class) to point to an array of DizzyCreature pointers. When I run it I get "Access violation reading location 0x...". I can make a DizzyCreature* and call its member functions just fine, but when cannot run through the array and do the same thing for each obj. I am following these instructions: http://www.cplusplus.com/forum/beginner/10377/ Code Server.h: class Server { public: Server(int x, int y, int count); ~Server(void); void tick();