For example, in this piece of code:
<a href="www.some.html" onclick="...">www.some.html</a>
What I have write instead of three dots if I want to store the url (www.some.html) in variable (var MyURL) after click on link?
...
Dear all,
Under what circumstance would you use field variable instead of local variable? I found it a bit hard to decide when a variable is used in 2 or more methods in a class. I tend to use local variables and pass them to another method.
Thanks,
Sarah
...
Hi! I have following problem in PHP:
print_r says its the same, gettype says same type..
but the last output works not for both cases... although they should be the same!!
this looks very strange for me...
code and output:
$docdatau = get_object_vars(json_decode($docdata));
$docdatau2 = (array)json_decode($docdata);
echo "1\n";
echo...
This piece of code produces a page with two vertical columns:
<frameset id="set" cols="*,*">
<frame id="frame1" src="index.html">
<frame id="frame2" src="index2.html">
</frameset>
However, I want to be able to set the cols value independantly like this:
function setvalue(){
var framewidth=prompt("Enter the default ...
I got the following code to work with .animate, but it won't with standard css properties, could anyone tell me why?
var xMove = 200;
$("#clickhere").click(function() {
$("#object").css({left: '+='+xMove});
});
Got a few similar working approaches now and learnt a bit about syntax along the way, good show people, Ta!
...
How to pass a php json encoded variable to a jquery function using codeigniter? My code
$data['customerlist'] = $this->customerlist->customerchart();
//print_r($data['customerdata']);
$data['encoded_data'] = json_encode($data);
//print_r($data['encoded_data']);
if(empty($data['encoded_data']))
{
$data['comment...
I migrated from iphoneOS3.1.2.sdk to iphoneOS4.0.sdk and had to re-reference all frameworks.
The old OpenAL reference is getting stuck in the build script as I see the new one but the old one is also there:
Ld build/Debug-iphonesimulator/AweTrainGameEngine.app/AweTrainGameEngine normal i386
cd /Users/yuri/Desktop/AweTrainGameEngine
...
Hello!
I want to be sure, that there are no children of children in my datatable.
So if I have a parent item A, and a child item B (B.parent = A), and I try to insert a child item C to the item B (C.parent = B), this trigger have to prevent it and set the parent_id of C to A (C.parent = A). I need only 2 levels in my table (parent-chil...
I have created a function to showing a title text in a separate div, its wotks perfectly, but a have problems with "title" attribute, so i wonna delete it after tooltipp wenn be displayed. And on mouse ou show it agaiin, but the variable tooltipptext is empty... same one an idea?
var tooltipptext;
$(".infoimg").hover(function(event)...
Hi,
How can I make the code below into a function?
# split the string by string on boundaries formed by the string delimiter will split the value into an array like the example below,
# Array
# (
# [0] => pg_cat_id=1
# [1] => tmp_id=4
# [2] => parent_id=2
# )
$array_parent = explode("&", $string);
//print_r($array_parent);
...
I read somewhere that interfaces can have member variables.
Static final constants only, can use
them without qualification in classes
that implement the interface. On the
other paw, these unqualified names
pollute the namespace. You can use
them and it is not obvious where they
are coming from since the
qualification i...
Hi,
I think this is probably a very simple but I can get my head around! How can I put each of the loop result in one variable only? for instance,
$employeeAges;
$employeeAges["Lisa"] = "28";
$employeeAges["Jack"] = "16";
$employeeAges["Ryan"] = "35";
$employeeAges["Rachel"] = "46";
$employeeAges["Grace"] = "34";
foreach( $employeeAge...
If I want to take an action if php if a variable isn't 0,1, or 2, how would I do that? my if statement isn't working. Thanks!
...
This is a two part question, but I want to make sure the first is actually achievable.
Firstly, can you get access variables set by img src? I am attempting jQuery, including MySQL UPDATE etc, but this I needed to make sure would work?
<a href="#" class="chnge"><img src="filename.jpg?id=1&open=1" /></a>
The jQuery would then have ...
The below code works as far as I can tell except for the var tid and var open section. They are being submitted from an image href:
$("#chngeHref").click(function() {
var tid = $('tid').attr('value'); // VARIABLES DONT WORK
var open = $('open').attr('value'); // VARIABLES DONT WORK
$.ajax({
type: "POST",
...
I am trying to have the function toggleClick return powerData. I need to store powerData in a variable and have it passed to another function to do calculations.
Inside the function toggleClick, I am assigning powerData to houseArray[e.currentTarget.name.toLowerCase()];
var powerData:int = houseArray[e.currentTarget.name.toLowerCas...
I am trying to create a "meter bar" in Flash. I am creating an interactive house in Flash. Inside the house are objects that consume power. (ie. light bulb, computer, stove, etc...) Those objects are toggle buttons (created using MovieClips). (The objects can be toggled ON/OFF.) When ON--there is a "power value" associated with each hous...
Using PHP, I'm trying to give each specific text its own variable. I believe this can be achieved by using the explode list function in php. Something similar to the code below:
list($user, $pass, $uid, $gid, $gecos, $home, $shell) = explode(":", $data);
However, the above code separates the text by using a colon (:). The text I'd lik...
Hello
I am loading a SWF file in a UIWebView and need to communicate with the Flash file and set its flash values. How would I do this?
Thanks
...
I'm sure this is incredibly common with as OOP centered as Java is. In java is there a way to make a base type variable that accepts all inherited subtypes? Like if I have;
class Mammal {...}
class Dog extends Mammal {...}
class Cat extends Mammal {...}
class ABC {
private Mammal x;
ABC() {
this.x = new Dog();
...