Hello, my problem is that the parameter that gets bound to the function call wrapped by addEvent is always the last value set on the variable passed.
I have an example on mooshell here :
http://mootools.net/shell/S2GxT
Can someone please explain why this doesn`t work (and maybe a workaround), as in server side languages this would be a...
I've seen numerous arguments that using a return value is preferable to out parameters. I am convinced of the reasons why to avoid them, but I find myself unsure if I'm running into cases where it is unavoidable.
Part One of my question is: What are some of your favorite/common ways of getting around using an out parameter? Stuff alon...
I have to make a call to a different url in one of my controllers on my site. The problem is that with all the parameters the other site requires I'm overflowing the url. Is there anyway to call another url from the controller and send all of the parameters using a POST?
I'm not expecting a response from the other site. Also, I think...
So I have a couple classes defined thusly:
class StatLogger {
public:
StatLogger();
~StatLogger();
bool open(<parameters>);
private:
<minutiae>
};
And a child class that descends from it to implement a null object pattern (unopened it's its own null object)
class NullStatLogger : public StatLogger {
public:
NullStatLogger...
I've got a R script for which I'd like to be able to supply several command-line parameters (rather than hardcode parameter values in the code itself). The script runs on Windows.
I can't find info on how to read parameters supplied on the command-line into my R script. I'd be surprised if it can't be done, so maybe I'm just not using...
Does PHP has such a feature?
...
Before using String.Format to format a string in C#, I would like to know how many parameters does that string accept?
For eg. if the string was "{0} is not the same as {1}", I would like to know that this string accepts two parameters
For eg. if the string was "{0} is not the same as {1} and {2}", the string accepts 3 parameters
How...
The company I work for is using MacolaES for an ERP system. The SQL Server database is structured such that when things are no longer considered active, they are moved from a set of "active" tables to a set of "history" tables. This helps to keep the "active" tables small enough that queries return quickly. On the flip side, the history ...
A project I'm currently working on has a sort of proxy functionality where users can browse to another URL through the site. I was hoping the URL could be something like this:
www.mydomain.com/browser/[URL here]
However I'm having trouble capturing a URL as a parameter like this. I think my inexperience with regex is failing me her...
Hi,
I have the following regular expression in PHP
$url = 'http://www.amazon.com/dp/B002JCSBE4/ref=sr_1_1?ie=UTF8&s=tv&qid=1264738369&sr=1-1/';
$url=preg_replace(
'/http:\/\/[^>]*?amazon.(.*)\/([^>]*?ASIN|gp\/product|exec\/obidos\/tg\/detail\/-|[^>]*?dp)\/([0-9a-zA-Z]{10})[a-zA-Z0-9#\/\*\-\?\]*/i',
'http://www.amazon.$1/dp/$3/?tag='.'...
I'm trying to create a simple search form in Rails, but I think I'm missing something.
I have a named route for search:
map.search ":first_name/:last_name", :controller => "home", :action => "search"
I'm trying to use that in my search form:
<% form_tag(search_path, :method => 'get') do %>
<%= text_field_tag(:first_name) %>
<%= ...
How can I pass the event handler TextBlock_MouseDown_Test1 or TextBlock_MouseDown_Test2 to SmartGrid so that the TextBlocks which it creates will execute this event handler when they are clicked?
The code below gets the error:
The best overloaded method match for
'TestDel234.SmartGrid.SmartGrid(TestDel234.Window1,
System.Collec...
I am trying to pass the parameter constraint to PDO from an array i.e.
public function write($sql,$bindparams=''){
try{
$stmt = $this->db_connection->prepare($sql);
if($bindparams != '' && is_array($bindparams)){
foreach($bindparams as $k){
$b = $k[0]; //parameter to bind to
...
I'm writing an Asp.Net WebForms app where I am calling an edit page an passing in the data about the record to be edited using query string parameters in the URL.
Like:
http://myapp.path/QuoteItemEdit.aspx?PK=1234&DeviceType=12&Mode=Edit
On a previous page in the app, I have presented the user with a GridView of screened item...
I've got a little stuck here. My boss has asked me to look into the possibilities of RSS feeds, to use them to show updates of a website. If it was just how to create a simple RSS feed, I would have done it already, no trouble there.
But, he wants some more specific functionalities, as I've so far have had a hard time finding any usable...
Hi All,
I am using jquery Carosellite and Cycle to display images like frames. How to pass values to the properties like speed, visible ect from codebehind(c#).
Ex html code:
<script type="text/javascript" language="javascript">
$(function() {
$(".anyClass").jCarouselLite({
btnNext: ".next",
btn...
Often I will have a JavaScript file that I want to use which requires certain variables be defined in my web page.
So the code is something like this:
<script type="text/javascript" src="file.js"></script>
<script type="text/javascript">
var obj1 = "somevalue";
</script>
But what I want to do is:
<script type="text/javascript"
...
Hi all,
I have a simple function that I want to pass the value of a node to.
<xsl:function name="f:getdatetimetype" as="xs:string">
<xsl:param name="code" as="xs:int"/>
<xsl:choose>
<xsl:when test="$code = 137">
<xsl:text>DocumentMessageDateTime</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl...
I have a problem executing two parameterized questions in one batch using SqlCommand in ADO.NET. (I want to reduce round-trips and avoid pinging)
Since I don't want execution plan pollution I expect ADO.NET to transform my CommandText from
"stmt1; stmt2" with all parameters belonging to stmt1 and stmt2 added to SqlCommand.Parameters
t...
I have this template :
template <class SourceFormat, class DestFormat, void (*convert)(DestFormat, SourceFormat)>
static void _draw(...);
And these functions :
template <class Class1, class Class2>
inline static void convertNone(Class1& dest, Class2& source) {
dest = source;
};
inline static void c...