Hi,
I need to pass variables from one ASP(Classic ASP) to another ASP page. I am using javascript (window.open()) to open the second ASP page. I should not pass the variables in the URL like window.open('second.asp?first_name=sdf&last_name=asdas');
I have number of buttons in first ASP page,on click different buttons-different pages wil...
I'm trying to fill a JSON object with a list of items from the database when the page first loads. This list of items comes from the database. Right now, I've strongly typed the View and am looping through the list of items to build an HTML unordered list, and then in the JavaScript building the JSON object from what's been output in the...
0/1 can be flexible and can add options such as "2, 3, 4" in the future.
Does TinyINT in MySQL take up more space than boolean?
Personally, I use 0 and 1 for everything.
You can answer this question in the context of regular programming (or mysql, whichever you like)
...
I write this code in one variable in the IReport :
$F{wbsWbkRef.wbkStdRef.stdBlRtntp.blCode} != null ?
ReportUtil.getFirstEntity($P{JPA_ENTITY_MANAGER},
"SELECT "+
"CASE WHEN std.stdBlRtntp.blCode IN ('UNIVGRANT' , 'BEHYAR','TEACHER','GRANTED','EXTGRANTED','EXTGRANTED') THEN "+
"DECODE (std.stdBlAcctp.blCode , 'UNIVGRANT' ,'داخل'...
I want to echo a string with the variable inside including the ($) like so:
echo "$string";
I dont want it to echo the variable for string, I want it to echo '$string' itself, and not the contents of a variable. I know I can do this by adding a '\' in front of the ($), but I want to use preg_replace to do it. I tried this and it doesn...
This may be more of a scoping question. I'm trying to set a JSON object within a $.getJSON function, but I need to be able to use that object outside of the callback.
var jsonIssues = {}; // declare json variable
$.getJSON("url", function(data) {
jsonIssues = data.Issues;
});
// jsonIssues not accessible here
A similar question...
In my C# app, I am programmatically installing an Oracle client if one is not present, which requires adding a dir to the PATH system environment variable. This all works fine, but it doesn't take effect until the user logs out/in to windows, or reboots. How can I get my app to recognize and use the new PATH var without this step? Eve...
Is there such a thing as local, private, static and public variables in PHP? If so, can you give samples of each and how their scope is demonstrated inside and outside the class and inside functions?
...
Hi,
I have the following form which allows a user to select dates/rooms for a hotel reservation.
<form action="booking-form.php" method="post">
<fieldset>
<div class="select-date">
<label>Arrival Date</label>
<select name="arrd" class="day">
<option value="1" >1</option>
... snip ...
<option va...
Hello,
I am using some method to autoload helper files with functions
The only problem I am having now, is how to call the variables in that class.
Because I am not instantiating it as an object $this won't work.
But what will??
class some_helperclass {
var $some_variable = '007';
public static function some_func()
{
//ret...
Hi, I write a ASPX c# page, and I MUST use a global variable like this;
public static Decimal _Total;
protected void Page_Load(object sender, EventArgs e)
{
if (Page.IsPostBack == false)
{
_Total=0;
}
}
public void ShowCekBanka()
{
_Total= 10 * 5;
}
public void ShowNaki...
var var1 = 1,
var2 = 1,
var3 = 1;
This is equivalent to this:
var var1 = var2 = var3 = 1;
I'm fairly certain this is the order the variables are defined: var3, var2, var1, which would be equivalent to this:
var var3 = 1, var2 = var3, var1 = var2;
Is there any way to confirm this in JavaScript? Using some profiler possibl...
Hi I'm new to ObjectiveC / IPhoneSDK and I'm informally trying to study it on my own. What I'm basically trying to do is from one view there are 12 zodiac signs. When a user clicks one, it proceeds to the second view (with animation) and loads the name of the zodiac sign it clicked in a UILabel, that's it.
Here are my codes:
Lovescopes ...
This code works - It takes an array of full txt file paths and strips them so that when $exam_nums[$x] is called, it returns the file name
for (0..$#exam_nums)
{
$exam_nums[$_] =~ s/\.txt$//; #remove extension
$exam_nums[$_] =~ s/$dir//g; #remove path
}
When I try to do this for a single variable, it doesn't work. I'm calling a sub...
I have a fairly complex query that will be referencing a single date as a start or stop date multiple times throughout. I'm going to have to run this query for 3 different fiscal years, and don't want to have to hunt down the date 17 times in order to change it throughout my query.
Is there a way to set a variable at the beginning of my...
I was wondering if there is a known technique for saving and using variables in an SqlLite database.
I am looking for something like the $something variables one can find under Oracle
...
Hi folks,
I got the following Request Queue implementation from this blog:
http://dsgdev.wordpress.com/2006/10/28/building-a-javascript-http-request-queue/
and want to wrap it with a object variable. Unfortunately the variable initialization inside doesn't work.
Hope someone can help me with this stuff. Thanks in advance
var reque...
Am stuck here!
$part_one = "abc";
$v = "one";
echo $part_???; // should output "abc"
How do I modify ??? to reference $v?
Thanks!
...
If i have a variable $num = 50 how can i put numbers 1-50 into an array?
(50 is an example.. i wont know how many questions)
...
On one PHP server I have two files. One file (the name is "first.php") contains this code:
<html>
<head>
<title>First Page</title>
</head>
<body>
Please enter your password and age:
<form action="pass.php" method="post">
Name: <input type="text" name="fname" />
Age: <input type="text" name="age" />
<input type="submit" />
</form>
</body...