I'm having a problem displaying data from a function to text box within a tab.
If you run the code and click "Select Tab 2 and Fill..." I get an error;
"TypeError: Error #1009: Cannot access a property or method of a null object reference."
I'm guessing this is because "Tab 2" is/was not rendered yet. Now if I run the code,
select "Tab 2" then select "Tab 1" and click "Select Tab 2 and Fill..." it works
the way I would like. Dose any one know a way around this problem.
----Full Flex 4/Flash Builder Code just copy paste----
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo"
creationComplete=" ">
<fx:Script>
<![CDATA[
public function showtab2():void
{
mytextbox.text="I made it!";
tn.selectedIndex=1;
}
]]>
</fx:Script>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<mx:Panel title="TabNavigator Container Example" height="90%" width="90%"
paddingTop="10" paddingLeft="10" paddingRight="10" paddingBottom="10">
<mx:Label width="100%" color="blue"
text="Select the tabs to change the panel."/>
<mx:TabNavigator id="tn" width="100%" height="100%">
<!-- Define each panel using a VBox container. -->
<mx:VBox label="Panel 1">
<mx:Label text="TabNavigator container panel 1"/>
<mx:Button label="Select Tab 2 and Fill with Text" click="showtab2()"/>
</mx:VBox>
<mx:VBox label="Panel 2">
<mx:Label text="TabNavigator container panel 2"/>
<s:TextInput id="mytextbox" />
</mx:VBox>
</mx:TabNavigator>
<mx:HBox>
</mx:HBox>
</mx:Panel>
</s:WindowedApplication>
Hello,
I created application which uses wxWidgets library using visual studio 2008. Now I would like to create version which may be run on other machine.
Because right now when I want to run It on another machine there is an error:
the application failed to start because its side-by-side configuration is incorrect.
What can I do to make It work ?
I have some kind of "data engine" between multiple "data consumer" processes and multiple "data storage" sources. I'd like to provide Linq capabilities to the "data consumer" and forward the query to the "data storage". The forwarded query should be some structured query (like, let's say, NHibernate Criteria).
Is there any existing structured query library that could allow me to "just" translate a Linq Expression to such a structured query?
If I'm alreadu using jquery library on site then should i use origional sifr or jquery plugin.
What are cons to use jquery sifr plugin over origional sifr 3?
jQuery sIFR Plugin
http://jquery.thewikies.com/sifr/known-issues
This one has me stumped, I need to re-write all requests to the javascript folder (js) to a special library handler system.
e.g.
rewrite http://localhost/admin/js/bar.js --> http://localhost/_lib/=admin/js/bar.js
Any ideas? I have tried the following which creates an error
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteRule ^(.*)$ /%1/_lib/$1 [NC]
(36)File name to long: cannot map GET /admin/js/bar.js to file
I'm writing a shell for a project of mine, which by design parses commands that looks like this:
COMMAND_NAME ARG1="Long Value" ARG2=123 [email protected]
My problem is that Python's command line parsing libraries (getopt and optparse) forces me to use '-' or '--' in front of the arguments. This behavior doesn't match my requirements.
Any ideas how can this be solved? Any existing library for this?
Hey guys! I'm using ASP.NET MVC to develop an application for a library with Nhibernate. I've already used Repository and I'll add the Injection dependency. I'd like to know what are the different steps and what should I add to convert my app into a 3-tiered architecture? Thanks a lot for your help :).
Is there some library which I could wrap so I could call it from the commandline and run refactorings like extract method from Textmate or Vim? I am mainly thinking about on the Mono framework.
Is there a library/software which can accept a number of keypoints and matches of them between images and produce a morph? Or any ideas/algorithms on how to do it?
I'm writing a PropertiesMustMatch validation attribute that can take a string property name as a parameter. I'd like it to find the corresponding property by name on that object and do a basic equality comparison. What's the best way to access this through reflection?
Also, I checked out the Validation application block in the Enterprise Library and decided its PropertyComparisonValidator was way too intense for what we need.
If I have have some overloaded ostream operators, defined for library local objects, is its okay for them to go to std namespace? If I do not declare them in std namespace, then I must use using ns:: operator <<.
As a possible follow-up question, are there any operators which should go to standard or global namespace?
I need to create a PDF containing some tables.
When looking on google/stackoverflow the most frequent API seems to be iText but that's under the AGPL licence and thus not desirable for my purposes.
I also frequently see apache pdfbox but that does not seem to have native support for tables (although a slightly hacky way was posted at Apache PDFBox Java library - Is there an API for creating tables? )
Does anyone have any recommendations?
I am searching for an expression builder GUI (like the one used in Microsoft Access). It can be plain Javascript or JQuery plugin. I am loathe to build my own and reinvent the wheel if one already exists - and yet, a search on Google does not find anything remotely useful.
Is anyone aware of any such library/plugin or article that covers this?
Hi,
I stumbled upon http://www.kettletime.com.au/chance where the user needs to drag and drop a box with a number into another box to prove that he is human.
How do you implement this? Any free library to do this?
Thanks
Hi,
Is there a built-in way to create vCard files in the .NET Compact Framework?
If not, what is a good library for this?
I have found this one which after some adaptations would seems to be able to do the job on the Compact Framework:
http://thoughtproject.com/Libraries/vCard/index.htm
But I'm not sure if there is not a build-in or more standard way to do it.
Regards,
Will
I have a function which takes a custom struct as the argument. how can I figure out what the argument should be? I know it is a date format of sorts... (C library imported to Objective-C...)
I know, that modern compilers can do procedural integration not only with functions defined inline, but also with functions residing in object files. But is this also true when you compile your program against shared library (especially dll)? Roughly speaking: will function code be copied into executable from dll, if that's desirable?
The idea is to have a PHP script parse a given .patch file and will apply the given patch accordingly. Assume that the script has no access to command line so the script will have to do the parsing itself. Is there a library somewhere?
I am programming a process monitoring tool which is written in C++, windows application. Is there anyway to send out alert email when the tool find the process go down? Any library support this? or any solution is fine. Thanks.
I am looking for a way to implement "View as HTML" (as seen in e.g. GMail) for Microsoft Office and Adobe PDF documents stored in an intranet. Can anyone recommend approaches for this?
The intranet consists of multiple .NET sites, so I would prefer a .NET library (one that doesn't launch MS Word on the server) for this capability, but any kind of arrangement is welcome.
There was an article here:
http://msdn.microsoft.com/en-us/library/Ee817667%28pandp.10%29.aspx
The first part of tut implemented this pattern with abstract classes. The second part shows an example with Interface class. But nothing in this article discusses why this pattern would rather use abstract or interface.
So what explanation (advantages of one over the other) would you give ? Not in general but for this precise pattern.
Is there any library other than RPXNow which provides single sign on for all major email servers?
Are there any asp.net web forms based samples for RPXNow?
hi,
I am creating a line in canvas tag using jquery drawing library. After the line drawn the
<div id="cool"><canvas id="canid"></canvas></div>
Then on click the below code executed.
$('#canid').remove();
What happens in IE after removing, dom with canvas end tag and also line is not removed.
Please help me out!.