Hello,
I am trying to output my Flash application's trace to the firebug console. After some Goggling I have found that other are doing something like this:
public static function debug(text: Dynamic):Void {
trace(text);
ExternalInterface.call("console.log", text.toString());
}
My Firebug console never out...
I am doing Presence1 in Assignment which require me builds a multiple screens application.
I have two ViewController, vc1 and vc2. In vc1, i have two buttons. I use a same method for them and the title of them are same.
My question is How can i know which button is clicked in vc1 when i change to vc2?
There are a topic show me that I ...
All the examples I can find about Func<> and Action<> are simple as in the one below where you see how they technically work but I would like to see them used in examples where they solve problems that previously could not be solved or could be solved only in a more complex way, i.e. I know how they work and I can see they are terse and ...
In the below example, how can I easily convert eventScores to List<int> so that I can use it as a parameter for prettyPrint?
Console.WriteLine("Example of LINQ's Where:");
List<int> scores = new List<int> { 1,2,3,4,5,6,7,8 };
var evenScores = scores.Where(i => i % 2 == 0);
Action<List<int>, string> prettyPrint = (list, title) =>
{
...
Hi
I have an MVC application used with CWAB. It is a modular MVC application and using CWAB to dynamically load the MVC modules. I wan to access the current action of an MVC module within CWAB. CWAB project also reference System.Web.Mvc dll. Any suggestions?
...
Hello Friends,
I have a main movie clip that loads the appropriate swfs based on the button click. The buttons and the corresponding swfs are loaded through XML. The method I adapted to achieve this can be found here : Sample Code
Now, this seems to be working just fine. But, my problem is instead, of calling a separate SWF for each bu...
Hi,
I am facing an issue in handling an object in session.
I store an object in the session like this.Assume object is the name of the object.I do this in my action class
if(object!=null)
{
session.settAttribute("objectName",object);
return mapping.findForward("success");
}
else
{
return mapping.findForward("failure");
}
I map both...
I originally started this question in another thread, but that thread was sorta, kinda answered, and now I primarily want to know how to specify another form action... I tried using the code below, but the form action, when output, remains unchanged, although looking at the print_r($form), it's correctly changed... Why isn't it picking ...
Given the code below:
void LookupBox_Load(object sender, EventArgs e)
{
Action d = delegate
{
if (!_p.AutoClose)
CloseLookupBox();
};
if (this.ParentForm.MdiParent != null)
this.ParentForm.MdiParent.Deactivate += delegate { d(); };
else
this.ParentForm.Deactivate +...
For some reason the top half of the my action sheet is not opaque. I have created the view and action sheet using the code below:
//allocate the view
self.view = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]];
UIActionSheet *popupQuery = [[UIActionSheet alloc]
initWithTitle:nil
delegate:self
...
Hi,
I have an issue.I need to run a query to get a data say test from a table t.The query currently runs in an action class.Its taking 20 seconds to run.Now my problem is not all times t is going to have value and the users will be annoyed if I make them wait to check whether t exists or not.
select t from table
if(t!=null&&!(.equal...
I have a unit with a lot of actions, some actions have shortcuts and some have even the same shortcut. This is because they belong to different modules in applications and they are not in context at the same time.
Now I have a global nonmodal dialog (called objectinspector) that can be started anytime anywhere. It have some actions wit...
Is it possible to disable a certain action parameter from retaining its value across requests?
[HttpPost]
public ActionResult MyAction(string value1, string value2)
{
if(value1=="hi")
ModelState.AddModelError("value1", "Can't have hi");
//do stuff
if(ModelState.IsValid)
return RedirectToAc...
I have a List and the item renderer displays an image and text from xml (news rss).
Not all news have an image. Whenever you scroll the list, and the item renderer refreshes, it move images of news of a position, so the news "1" have the image of news "2", and the news "2" have the image of news "3" ecc., but the text (the title of news...
I would like to check on which actionEvent has occurred with 'ActionEvent e' and 'e.getSource'. Can I use a switch case for this?
public void actionPerformed(ActionEvent e){
switch(e.getSource()){
case radius:
double r = validate(radius.getText());
break;
case height:
double h = validate(height.getText());
break;
...
I'm not doing any fancy route patterns yet, just the basic controller, action, id style.
However, my actions never seem to be passed the id. When I stick a breakpoint in any one of my actions, the value of the id parameter is null. What gives?
Global.asax.cs:
public class MvcApplication : System.Web.HttpApplication
{
public static...
I created a table view that is populated with a custom UITableViewCell (like this). Each of the cells contains two UIButtons. I assign the action to the button like this:
[decreaseButton addTarget:self action:@selector(decrease) forControlEvents:UIControlEventTouchUpInside];
Is this the right way?
Anyway, it works, but in my "decreas...
hi
I am trying to post data from a website (non-zend) to my zend based website.
i use the php post method to post from the non-zend website which is
e.g.
$data=Array('testkey'=>'testvalue');
$query = http_build_query($data);
$host="localhost/index.php/default/proc/procnew";
$rr=post($host,$query);
function post($host,$query,$others='...
I'm taking a crack at writing my first DSL for a simple tool at work. I'm using the builder pattern to setup the complex parent object but am running into brick walls for building out the child collections of the parent object. Here's a sample:
Use:
var myMorningCoffee = Coffee.Make.WithCream().WithOuncesToServe(16);
Sample with cl...
Hi,
Any one explain, how flex is support Internationalization and how to use it in flex mxml or actions cript?
Please explain with example.
Thanks,
Ravu
...