Get Environment Variables

Jul 20, 2005

I need help in access the Username/Domain environment variable from javascript.
Could someone tell me how to get the contents of this variable?

View 1 Replies


ADVERTISEMENT

Wrong Environment Var

Oct 15, 2005

i accidentally set up my path variable instead of classpath and now my
computer can't find any of the executable files. it would be great if
anyone knew what really should stand by the path variable. i don't
suppose there's something like 'set all to default?

View 4 Replies View Related

Files In A Production Environment?

Jan 21, 2011

I am moving from a development environment to a production environment and would like to know the best way to handle javascript/jquery files on the production server. I have looked at Packer and also searched this forum for ideas but the only threads I came up with were a year old and I would prefer some comments more recent than that I think.

Obviously I would at the very least like to strip out comments, etc. and would also like to minimize them as much as possible if that makes a performance difference. Any input is welcome at this point.

View 4 Replies View Related

Barcode Printing In A Production Environment

Jul 23, 2005

Just wondering if anyone has any ideas on how to solve a particular
problem. A client wants to print barcode labels from their (web/php
based application). The barcode labels are very small, so I'm guessing
that doing a screendump via a standard inkjet isn't going to work
(i.e. might need somehow to print to a barcode printer!)

Any ideas where to start?

View 6 Replies View Related

JQuery :: Looking For Decent Environment To Develop

Sep 2, 2010

I am extremely frustrated with my current setup developing jquery as I am in Dreamweaver. I've installed the add ons but they dont help enough. My biggest beef is with something that auto-indents to make the structure of the code legible. That and decent colouring. Can anyone recommend something that does all that and potentially even reloads the page on save....and previews in browser...and debugs?

View 11 Replies View Related

JQuery :: Causing Blank Page In ASP .NET Master Page Environment

Jul 20, 2010

I have a page that's built using ASP.NET and using a master page.Page contents shows up for a moment then I get a blank page - when I run it. If I remove the jQuery code from my page - then I get the contents.

I tried putting the following in the master page.

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js" >
</script>

View 2 Replies View Related

Get Variables Into PHP Variables Or MySQL Database?

Apr 2, 2009

Anyone know how to get Javascript variables into PHP variables or a MySQL database? Full question in the PHP section.

View 2 Replies View Related

Setting Html Variables To URL Variables

Feb 3, 2011

I have some JavaScript which is splitting out the different variable elements from the URL.Now, how do I set the internal variables?Then I want to set the variable ScriptHeading to be Change and the variable ScriptType to be NewThread.I keep finding all sorts of lovely code showing how to split out the various sections in many different ways, but I can't find anything on how to actually set these variables.

View 1 Replies View Related

PHP Variables To Javascript Variables

May 6, 2006

I have a program written in Javascript and fully functioning which takes a user-selected directory name and then displays all the photos in that directory in a certain format.

I am now wanting to expand the program to allow users to optionally enter their own strings and the program will use all the photos from www.flickr.com which use that string as a tag.

I have a PHP interface to flickr (called PHPflickr) which collects all the relevant photo urls. I now need to get these images back into my Javascript so I can process them using the existing functions (rather than rewrite all my functions in PHP code and have two sets of functions in the program). I found on another thread a means to do this for a date variable:

var jsArray = new Array(
<?php
$length = count($monthDataArray);
for ($i = 0; $i < $length; $i++)
{
echo '"' . addslashes($monthDataArray[$i]) . '"' . (($i < $length - 1) ? ',' : '') . "
";
}
?>

but being completely new to PHP I'm not sure what "addslashes" might be or what formatting will be necessary if I am starting with an array of urls. Code:

View 1 Replies View Related

2 Variables In An URL

Apr 4, 2006

I thought it was possible to send two variables in an URL like this:

print" <script type='text/javascript'>
document.location.replace('http://127.0.0.1/add_task.php?tk_request_name={$req_name}?tk_req_id ={$maxValue}');
</script>";

but I can't get them separately in add_task.php

is there something wrong with script?

I use this code in some other PHP code.

View 1 Replies View Related

Using Variables As Variables

Apr 9, 2007

Lets say I have a variable declared as such:

var newVariable="opener";

How can I then use this variable to access the opener of 'window' ?

Meaning, I dont want to access it as such:

window.opener

but as: window.+newVariable

So it uses the contents of newVariable to access the opener.

I need this because I have a couple of variables which I need to concat to eachother as a string,
and this string in turn is the variable I need to access from window.opener.varSomething
where varSomething is the variable that stores the variable I need to access.

View 5 Replies View Related

Using ASP Variables

Jul 20, 2005

I use ASP to obtain data from a database and I have a piece of javascript
code I use on my website. I want to use the database variables in my
javascript. I'm not very familiar with javascript, but here is some info
similar to what I'm trying to do.

<%
strFirstName=session("FirstName")
strLastName=session("LastName")
%>

The javascript code I want to use the variables in.
Items[1]=["First Name", strFirstName,""]
Items[2]=["Last Name", strLastName,""]

Please help or point me to a website with this solution. Thanks much for
your help.

View 16 Replies View Related

Getting URL Variables

Jul 20, 2005

if the url was thispage.htm?day=4

how does one grab the day value?

View 2 Replies View Related

Getting Variables From PHP?

Feb 22, 2011

Not sure if php is the best solution or maybe javascript. ( or both.)

I am writing a litle script that will go to my mysql table and take out 20 rows ( from about 10,000 rows ) based on the WHERE statement.

Then I want to step through these 20 rows displaying just two filds in this fashion:

First, I want to display one field in a "box" ( using divs and css ) then wait for a form input. Then while keeping the first displayed box and field display the second field in a similar box a fee lines below. Wait for a form input update some data.

Then onto the next row.

If I use javascript then I could keep all the processing on one page and not have
to have server refreshes.

But how do I get these those array elements from $row['field1'] and $row['field2'] into javascript vars ?

Is this the best way to do this ?

Or would php and having a couple of extra trips to the server for form processing be better ?

View 5 Replies View Related

Getting The Sum Of Two Variables?

May 24, 2009

I would like to multiply combo_1 and combo_2 to give an outcome and display it in the textbox of txt_price using javascript.

f['txt_price'].value = (f['combo_1'].value).toFixed(2);

This is something I was working on but no results so far.

<form>
<select name="combo0" id="combo_0" onChange="change(this);" style="width:200px;">
<option value="0">-select-</option>
<option value="1">Canada</option>

[Code]....

View 2 Replies View Related

How To Get Sum Of Two Variables

May 24, 2009

I would like to multiply combo_1 and combo_2 to give an outcome and display it in the textbox of txt_price using javascript.
f['txt_price'].value = (f['combo_1'].value).toFixed(2);

This is something I was working on but no results so far.
<form>
<select name="combo0" id="combo_0" onChange="change(this);" style="width:200px;">
<option value="0">-select-</option>
<option value="1">Canada</option>
<option value="2">States</option>
</select><BR><BR>

<!-- I would like to Multiply this field -->
<select name="combo1" id="combo_1" onChange="change(this)" style="width:200px;">
<option value="1"></option>
</select><label></label>
<BR><BR>
<!-- and this field -->
<select name="combo2" id="combo_2" onChange="change(this);" style="width:200px;">
<option value="1"></option>
</select>
<BR><br>
<!-- To present an outcome to this field -->
<input type="text" name="txtPrice" id="txt_price" onChange="change(this);" style="width:200px;">
<BR></form>

View 4 Replies View Related

Dynamic Variables

Jul 23, 2005

I need to create a variable out of nothing. From a database I extract an
item with a certain id. With this id I want to create a new variable.
For example:

id = 36;

"item"+id = new Array();

Now I get the message "Illegal left hand assignment".

I tried:

eval("item"+id) = new Array();

Is it possible to create a variable out of nothing?

View 4 Replies View Related

Undefined Variables

Feb 21, 2006

Looking for clarification of undefined variables vs. error in
JavaScript code.

e.g.
<script>
alert( z ); // this will be an error, i.e. an exception
</script>

<script>
alert( this.z );
alert( window.z ); // both equivalent, no error, but window.z is
'undefined'
</script>

why is it that 'z' alone without the global object generates an error,
shouldn't it also be undefined? for example if i did

z = 0;

the javascript interpreter knows to create a global variable z

View 17 Replies View Related

System Variables

Oct 6, 2006

I need a javascript that will display all system variables (e.g. HTTP_REFERER). I am not a programmer, so if you could post all of the html and stuff that would be great. Code:

View 5 Replies View Related

Creating Variables On The Fly

Jul 20, 2005

how you would piece
together a variable name and then assign it a value. I want to create a
hidden field and assign it a value based on the value of another variable

Right now it looks like:

("document.all.SM_MARK_10" + dateNumber + ".value")

where dateNumber is an already defined integer. What I want is to say

document.all.SM_MARK_1001.value="XX"
document.all.SM_MARK_1002.value="X2"

etc.

based on that value of dateNumber. Any way to do this easily?

View 22 Replies View Related

JQuery :: Getting The Variables Of The URI?

Sep 12, 2011

I want to get the variables of my own php file, e.g:index.php?s="div1" So I want to recuperate the s' value and then show the div given.

View 1 Replies View Related

JQuery :: Use Variables In Get ?

Jun 2, 2010

Is it possible to use variables in place of round1 below? If yes, how?

View 2 Replies View Related

Possible To Have Two Variables Upon One Select?

Jan 10, 2011

Can I have 2 variables upon one select? The code below is created dynamically with php from a database, and displays a dropdown select box, the only thing is that the values: Oliver Franchis, Pedro pastor, Maria China... have unique ID's and when the name is selected I would like the ID allso to be.

<!-- Populate list with friends START-->
var newTextbox = document.createElement('select');
newTextbox.className = 'fn-select';
newTextbox.name = "opcion";

//First user in the populated select menu is the person Loged in
var op1 = new Option("", "Oliver Franchis");
newTextbox.appendChild(op1);
var txt1 = document.createTextNode('Me | Oliver Franchis');
op1.appendChild(txt1);

//Next users are my friends in the database
var op1 = new Option("", "Pedro pastor");
newTextbox.appendChild(op1);
var txt1 = document.createTextNode('Pedro pastor');
op1.appendChild(txt1); .....

View 2 Replies View Related

Store Value To Several Variables?

Jun 4, 2011

Is there a way in Javascript to store a value to different variables in 1 command, something like code...

What I try to do is avoid errors by typing the value only once in code. I could do the following, but thought there might be a more direct way code...

View 8 Replies View Related

Variables In GetElementById

Jan 23, 2007

Is it just me, or do variables not work in getElementById? For example:
document.getElementById("div"+divnumber)...

View 5 Replies View Related

Using JS To Pull Url Variables.

May 18, 2005

url example:

whatever.com/index.html?name=username&password=password&gender=male&age=18


function getE(){
var url_string = String(document.location);
var url_array1 = url_string.split('?');
if(url_array1[1]){
var e_array = url_array1[1].split('&');
for(i=0;i<=20;i++){
if(e_array[i]){
pullE(e_array[i]);
}
}
}
}
function pullE(val){
var useVal = val.split('=');
alert(useVal[0]+" == "+useVal[1]); //display purposes
}

this would alert in order:
name == username
password == password
gender == male
age == 18

where useVal[0] is the element name and useVal[1] is the value.

View 14 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved