How to call AS2 method from NextFrame(or any other frame) in Flash?
Say you have Action Frame on frame 3, and another one on frame 4, how do you call methods on frame 4 when you are on frame 3.
I'm curious how this works. In MVC you can call View() and pass a model as a parameter, but RedirectToAction (one of its incarnations at least) takes a 'routeValues' object, which appears to be the closest match.
If your model is passed in this parameter will that model type be available in the subsequent action method? Or are there caveats involved that might prevent accurate translation in some circumstances?
A php script is giving this array (which has been passed through json_encode())
[{name:"a1",path:"b1"},{name:"a2",path:"b2"}]
I use the following function to retrieve the array to jquery:
$.ajax({
type: "POST",
url: "functions.php",
data: "action=" + something,
cache: false,
success: function(response) { alert(response); }
});
The problem is I get the array back as a string:
(new String("[{name:"a1",path:"b1"},{name:"a2",path:"b2"}}]"))
How can I get it to be a javascript array?
Help would be much appreciated.
Hello every body:
We are trying to develop an application that send messages to a service, but we only have send message between two applications. We are developing in Delphi 7, Windows XP.
We need the service send back a message to the application, depending on the result of the action that the application sent to do to the service.
I am sorry about my english...
Thanks.
This question was inspired by Bob's comment to my answer here.
On boot, windows writes files to the hard drive (I imagine this to be the case, as it has a way of detecting if the boot was previously interrupted by a hard power-off, and I am sure many other things).
But assuming that there is a "smooth" boot, where there are no error, etc, and no logon scripts that run, and things like that, about how much (a few KB, a few MB, a few GB) data gets written to the drive?
For simplicity's sake, assume that:
hibernation is turned off
windows 7
pagefile is turned off (does this matter right at boot, or only later?)
How could one go about measuring this? Are there resources that have this information?
Hi!
There is an email service ExactTarget with web service API.
There are samples (in php though) for sending email to whole list instantly, or to single subscriber by triggered action.
It's pretty hard to get in it's documentation, and I couldn't find explanation how to send email to a single subscriber instantly without having some triggering actions.
Any help or advice will be great.
Thanks.
assuming i create a method which is passed an object, and that method would perform an action depending on the object passed. how should i identify the object?
i thought of using the class name to identify the object, but may be impractical since i could easily change the class name of objects, and generate headaches during future development. am i right?
Hi All,
I am facing an issue while handling multiple buttons in a form using struts.
I have three buttons add,delete and go .I have made forward as hidden and on click of a button i would get the name of the button.
The problem is with go button on click of that i want to call a javascript and then call the action and return to the same page .
I somehow cannot achieve that the a-tag looses its default action when clicking it:
<a href="#" class="button dismiss">dismiss</a>
$(document).ready(function() {
$('.dismiss').click(function(e) {
e.preventDefault();
$('#output').empty();
$('#MyUploadForm .button').show();
});
});
When I click the button, the browser window scrolls to the top. What is wrong here?
Hi, I need replace the same value for variables {place} and {other_place} in the record op.
#op{
action = [walk, from, {place}, to, {other_place}],
preconds = [[at, {place}, me], [on, floor, me],
[other_place, {place}, {other_place}]],
add_list = [[at, {other_place}, me]],
del_list = [[at, {place}, me]]
}
But erlang don´t share variables. Is there any data type for that?
After the following comment on my last question, I'm thinking about upgrading my RAM:
I got a 160 GB Scorpio Blue a couple
months ago for my 1501. It's nice.
That + 2 GB Crucial RAM have rather
revived my notebook (meaning a very
nice speed and storage boost). I was
outgrowing it... – Nathaniel
What would be the best choice to add more RAM? I've already got 2 GB, but I'm not sure what their speed is. What are the size, type and speed limitations for RAM on my particular laptop?
I know this is probably a somewhat 'dumb' question :)
I have an AWS (small) instance and I just noticed that there is a ~150gb volume attached at /mnt, is this normal?
It kinda freaked me out, I was thinking maybe someone was trying to capture whatever I mount in /mnt, there is the entry in my fstab too (and I found that others have this by googling)... the entry is as follows
/dev/xvdb /mnt auto defaults,nobootwait,comment=cloudconfig 0 2
I don't have any volumes this large in my AWS volumes section though. I was just trying to understand this and be sure that someone is not trying to 'get in'... as there are many attempts daily.
Thanks
<form enctype="multipart/form-data" method="post" action="mailto:[email protected]" accept-charset="UTF-8">
Is there a problem if mails are sent this way .. i wanna avoid using PHP codes..
Does Android broadcast an intent when the network state has changend, i.e. from GSM to Wifi? And if so what permission do I need and what is the intent action called?
I thought I was being slick by having movieclips that I export for actionscript and then addChild later. I've made this one movieclip that loads html text through as, and it works fine when I drag it to the stage; but if I do
var trackListingBox:trackListingScreen = new trackListingScreen();
addChild(trackListingBox);
it either doesn't run the actionscript, or it's somehow broken. Can children not run their own action script?
I know that I can assign an onclick action to <input type="button"-style buttons. But is it possible to let it behave like an <a> without using JavaScript? I ask because I'm in a situation where technically I'm better off using <a>'s, but buttons look nicer.
Hi,
We render SSRS reports through the Web Services API.
For some reason when I get the HTML back any toggle functionality is missing.
I see that ReportingExecutionService has an option called ToggleItem however I don't see any way of getting the item's ID.
How can I discover toggle items and enable an action to be called on one?
I am working with an insert trigger within a Sybase database. I know I can access the @@nestlevel to determine whether I am being called directly or as a result of another trigger or procedure.
Is there any way to determine, when the nesting level is deeper than 1, who performed the action causing the trigger to fire?
For example, was the table inserted to directly, was it inserted into by another trigger and if so, which one.
I use a lot word with in outline view.
In that view it is not possible to see images (while it was possible in 2007).
When I paste an image in structure view it automatically changes the view to Print Preview.
Is this a limitation introduced in 2010?
If not how to get rid of it? I tried to read all the options, but I didn't find a matching checkbox.
NOTE FOR BOUNTY:
I started a bounty because this problem is really annoying for me. Please read the existing answer(s) and comment(s) before answering. Thanks.
In continuation off of this question, what are the PHP statements I need to accomplish this:
curl -is -F 'J:A-login=BTDT::Action::Login' -F 'J:A:F-address-login=EMAILADDRESS' -F 'J:A:F-password-login=PASSWORD' http://hiveminder.com/splash | grep -o 'JIFTY_SID_HIVEMINDER=[0-9a-f]\+'
The flags and fields are still mysterious, and I've not the time presently to swim through docs to figure out how this translates. I do at least understand the | grep ... portion, though.
Just taking a simple example.
We have a question on stackoverflow and while posting a question we want to validate title_of_question, description_of_question that they should be present. Now we have a another model tag having habtm relationshio with question model. How to validate that while saving the question. Means question must have some tags.
here the code:--
Models:--
class Question < ActiveRecord::Base
belongs_to :user
has_and_belongs_to_many :tags
has_many :comments, :as => :commentable
has_many :answers, :dependent => :destroy
validates_presence_of :title, :content, :user_id
end
class Tag < ActiveRecord::Base
has_and_belongs_to_many :questions
validates_presence_of :tag
end
Form for entering question and tag
<div class="form">
<% form_for :question ,@question, :url => {:action => "create" } do |f| %>
<fieldset>
<%= f.error_messages %>
<legend>Post a question</legend>
<div>
<%= f.label :title %>:
<%= f.text_field :title, :size => 100 %>
</div>
<div>
<%= f.label :content ,'Question' %>:
<%= f.text_area :content, :rows => 10, :cols => 100 %>
</div>
<div>
<%= label_tag 'tags' %>:
<%= text_field_tag 'tag' ,'',:size=> 60 %> add multiple tag using comma
</div>
<div>
<%= submit_tag "Post question" %>
</div>
</fieldset>
<% end %>
</div>
From Controller.. (Right now question will be saved without validating tag)
def create
@question = Question.new(params[:question])
@question.user_id=session[:user_id]
if @question.save
flash[:notice] = "Question has been posted."
redirect_to question_index_path
else
render :action => "new"
end
end
questions_tags table has been created.
One approach is creating a virtual column using attribute accessors.
another approach is validate associated.
right now assuming new tags can be created.(but not duplicate).
I need to add one parameter to the default REST route for the show action for SEO purposes:
resources :neighborhoods, :only => [:index, :show]
neighborhood_url(neighborhood) # => /neighborhoods/lower-east-side
I want something like the following:
neighborhood_url(city, neighborhood) # => /neighborhoods/manhattan/lower-east-side
What would be the easiest way to do this without using nested routes and without breaking Rails REST conventions?