I have a script that I reuse in lots of different places. The script has several image paths specified, and I want to make it easier to implement by setting one 'path' variable at the start then calling the variable in place of the full url. e.g.
jQuery(document).ready(function($){
var path = "http://www.mydomain.com/images/";
$(".me...
Hi All, and thanks in advacne for your help large or small.
A bit of a newbie to the powershell world and I'm trying to count the contents of a folder on a remote server.
I know that:
Get-ChildItem \\ServerName\c$\foldername -recurse | Measure-Object -property length -sum
works a treat.
However I'm trying to make the server name a...
Is there a way to make all variables global?
...
I searched for javascript byte type variables and I can't find byte type variable???
Thanks.
...
Hello,
I want to pass javascript variables to php using hidden input of a form.
But i have met a problem here, the $salarieid can't get the value from $_POST['hidden1']. Is there something wrong?
Here is the code:
<script type="text/javascript">
// view which the user has chosen
function func_load3(name){
var oForm = document...
How do all!
I want to be able to access a value in a class using the variable passed to a procedure.
e.g. _results.projection[2].Current.FundDC to become something like
_results.projection[2].termId.varName
where termId can be Current, Future or Percent
and varName can be a large list :)
Any suggestions?
Answers on a postcard plea...
Hello,
i am trying to read a tree structure file in python.
I created a class to hold the tree objects. One of the members
should hold the parent object.
Since the parentObject member is of the same type as the class itself,
I need to declare this as an empty variable of type "self".
How do I do that in python?
Thank you very much ...
I was trying to make cat1.txt as a variable ($2) so that it will be inserted in sql select statement. Is there a way to do this?
my cat1.txt
1111
2334
2234
3333
4444
....
....
etc.
my SQL Statement
set echo off linesize 280 pagesize 0 newpage 0 feedback 1 verify off head off trimspool on
alter session set sort_area_size=10485760...
Hi
Is it possible to set a variable in the system which is not for each user unique?, who access the page?
Ex.
I access the page and in codebehind something like that:
// create variable over all
if (sysstring != null || "")
SystemString sysstring = DateTime.now;
So if another user already accessed the page, I receive the value of ...
Hi folks,
I am new to python and would appreciate a little help.
How does one do the following:
Having converted each line within a file to a nested list,
e.g. [['line 1', 'a'], ['line 2','b']] how do I flatten the list so that each line is associated with a variable. Assume that the first member in each list, i.e. i[:][0], is known...
Does not work, the $1-value is lost when calling the function:
echo preg_replace('"\b(http://\S+)"', '<a href="$1">'.findTopDomain('$1').'</a>', $text);
Works fine, outputs: stackoverflow.com
echo preg_replace('"\b(http://\S+)"', '<a href="$1">'.findTopDomain('http://stackoverflow.com/questions/ask').'</a>' , $text);
I need t...
I have a string variable
static String[] genrename;
I am assigning values to it in one of my method and then displaying its content.
It does store the value fine. But when I am accessing the String variables directly or from a getter method(). It shows a null value in the string.
Any ideas?
public class GenreParsing {
static int...
I am creating a game web site using PHP and I want to just use one page for the game rather than have a bunch. I want to have the info entered like this:
`?swf=[path to .swf]&name=[name of game]&description=[Description of Game]&instruction=[Instructions for game]``
The problem is that if there is no data entered in the URL it returns ...
Hello, I'm migrating from SQL Server to PostgreSQL. I've seen from http://stackoverflow.com/questions/1490942/how-to-declare-a-variable-in-a-postgresql-query that there is no such thing as temporary variables in native sql queries.
Well, I pretty badly need a few... How would I go about mixing in plpgsql? Must I create a function and th...
background info;
an application is installed on many different PCs, W2000 and XP pro and for multiple users, let's call it foobar, note there is no msi or silent uninstall for this app. therefore, we would like to remove its' entry manualy;
If in the registry environment (path line) we have path=c:\windows;c:\windows\system32;c:\foobar...
This may sound confusing:
$myVar = "Helloooo!";
$text = "myVar";
How could i call $myVar from just the fact $text is filled with the variable name, perhaps this ? (it doesnt work though)
echo $($text);
All help appreciated!!
...
I got this code:
<script>window.onload = function () {
var container, i;
for (i = 0; i < 10; i ++) {
container = document.createElement ("div");
container.innerHTML = i;
container.style.border = "1px solid black";
container.style.padding = "10px";
container.onclick = function () {
alert (i);
}
document.body....
Hello all,
I'm trying to pass local variables to an inline function in javascript and have that (inline) function manipulate those variables, then be able to access the changed variable values in the containing function. Is this even possible? Here's a sample of the code I'm working with:
function addArtists(artist, request, origE...
I come across this code
int n1 = 10;
int n2 = (int &)n1;
I don't understand the meaning of this casting, n2 is not reference since modifying n1 doesn't reflect n1. Strangely this code throws compiler error in gcc where as compiles fine in VC++.
Anybody know the meaning of this casting?
...
How long does it take to declare a variable in C, for example int x or unsigned long long var? I am wondering if it would make my code any faster in something like this.
for (conditions) {
int var = 0;
// code
}
Would it be faster to do this, or is it easier not to?
int var;
for (conditions) {
var = 0;
// code
}
Tha...