can someone explain why this jquery selector is not working, I've worked around the issue but for my sanity would like to know what I've got wrong
I have a form with multiple textareas, each gets an id like f_id_DSC000001.JPG where the last part is a photograph number, the textarea has an onblur event that uses post to send its contents...
Hi,
I would want to display a certain message on a php page at a let's say 15 displayed pages. So it displays the message once and after 15 again and so on. I should need a varaible that keeps it's value between pages reload.
Can I do that with PHP?
thanks.
...
If I have a proc that needs to return an array to its caller, what is the best way to do this?
I following code does not work in Tcl due to inability to $ an array variable:
proc mine {} {
array set foo { red 1 blue 2 green 3 }
$foo
}
tcl> set foo [mine]
Error: can't read "foo": variable is array
Alternatively this doesn't work ...
I need to use the same variable name to declare the connection string.
But when i do this, i will have further error.
I declared "SqlConnection sqlCon = new SqlConnection(strCon);" for the first variable, can i use it again?
According to my teacher, i should use the same variable.
string strCon = Database.GetConStr();
SqlConnection...
I need to remove system variables from client workstation and my clients are 500+ so I want to provide batch file to user to run himself to delete the system variables.
...
I'm working in an embedded system (RTXC) where I need to disable the debugger functionality which is enabled through a #define command. However, when I change the #define to undefine, compilation goes off fine, but when the linker runs, it encounters an error about a symbol not existing that belongs to the debug code (which should have ...
Hey, I'm trying to create a basic program that will generate a number based on variables entered by the user. The formula is
a = b / (c * d)
This is a formula for finding specific heat, whereas b=energy, c=mass, and d= change in temperature.
So my problem is that I'm not making this program for myself, otherwise I could just assign ...
Hello, I am new to Ruby and currently trying a few examples from the Ruby book I am using as a guide:
class Account
attr_accessor :balance
def initialize(balance)
@balance = balance
end
end
class Transaction
def initialize(account_a, account_b)
@account_a = account_a
@account_b = account_b
end
def debit(account,amount)
a...
With an instance variable myArray:
@interface AppController : NSObject
{
NSArray *myArray;
}
Sometimes I see myArray initialized like this:
- (void)init
{
[super init];
self.myArray = [[NSArray alloc] init];
return self;
}
and sometimes I see it with a more complicated method:
- (void)init
{
[super init];
N...
Hey guys - im using var passing links like this to jump around a site...
<a href = "index.php?content=about.html">
...problem is, i have all the ugly var info visible in the url. I would usually hide it by using the post method, but i dont have any form tags, so is it even possible?
Thanks!!!!!!!
...
I am new to bash but have done lots of PHP, and Javascript.
Is there some sort of equivilent to this PHP?
$default = 10;
$var = (!$var) ? $default : $var;
Thanks
...
Is it safe to return the pointer to a local struct in C? I mean is doing this
struct myStruct* GetStruct()
{
struct myStruct *str = (struct myStruct*)malloc(sizeof(struct myStruct));
//initialize struct members here
return str;
}
safe?
Thanks.
...
See http://stackoverflow.com/questions/1468522/xslt-to-operate-on-element-value-before-displaying for the original XML and XSL. I got an answer to my question there.
My other question on this same XML/XSL is: if I would like to capture the value of an element (such as the "title" element) in an XSL local variable, and then operate on it...
Hey guys, here's what I'm attempting:
I'd like to make it so I can turn all url variables and values into folders, all with one rule. I was expecting to find some way to do this:
www.example.com/var1/val1/var2/val2/varN/valN
In an ideal world I could get rewrite to this:
www.example.com/index.php?var1=val1&var2=val2&varN=valN...
I've been struggling for a couple of days now with the following...
I'm trying to find a way to instantiate a number of objects which I can name via a raw_input call, and then, when I need to, look at its attributes via the 'print VARIABLE NAME' command in conjunction with the str() method.
So, to give an example. Let's say I want to ...
I make a jquery .ajax call and I'm expecting a json result.
The catch is, if there are say 5 authors, I'll get author_details_0, author_details_1, author_details_2, etc.... How can I dynamically construct the name of the variable to retrieve from json ? I don't know how many authors I'll get, there could be hundreds.
$.ajax({
type: "POS...
I'm a little bit new to Actionscript, but I can't figure this one out. I've done a lot of searching on this topic and haven't found a clear answer. I've tried the following solutions that people posted online but none of them work.
All the following solutions give the error: 1120: Access of undefined property myVariable
Suggestion #1:
...
This is a real beginner question (I'm still learning the Java basics).
I can (sort of) understand why methods would return a List<String> rather than an ArrayList<String>, or why they would accept a List parameter rather than an ArrayList. If it makes no difference to the method (i.e., if no special methods from ArrayList are required),...
Through tutorials I had learned that you can define two variables in the same statement, e.g.:
In [15]: a, b = 'hello', 'hi!'
In [16]: a
Out[16]: 'hello'
In [17]: b
Out[17]: 'hi!'
well how does that apply to here?
fh, opened = cbook.to_filehandle(fname, 'w', return_opened = True)
I prodded further:
In [18]: fh
Out[18]: <open fil...
The following code gives an error message:
#!/usr/bin/perl -w
foreach my $var (0, 1, 2){
$var += 2;
print "$var\n";
}
Modification of a read-only value attempted at test.pl line 4.
Is there any way to modify $var? (I'm just asking out of curiosity; I was actually quite surprised to see this error message.)
...