Trying to get the field value to be dynamic. Any help much appreciated.
function update(name, value) {
window.opener.document.my_form.field[name].value = value;
}
Haven't seen much info on this. Basically I am nested several functions that will return a final result. Any consequences of doing it this way? Performance?
I have not see any examples like so. I understand perl is flexible. But in many cases 'flexible' doesn't mean correct.
Example:
my...
I really hate IE.. Their support of the DOM truely sucks.
Trying to globalize the window.event so I can keep the functions seperate from each other. Anyone know why this doesn't work? or a CLEAN solution?
<script type="text/javascript">
//<![CDATA[ load the calendar using the XML object
var...
O.K. I have this code..
var capitals = new Array();
capitals("New Delhi") = "India";
capitals("Beijing") = "China";
capitals("London") = "Britain";
capitals("Paris") = "France";
var s_capitals = new Array("New Delhi", "Beijing", "London", "Paris");
s_capitals.sort();
for(i = 0; i <...
O.K. Here is the code I have.. The content of the <iframe> even though it exists doesn't return squat.
Any help on this would be most excellent.
<textarea name="content" style="height:250;width:448"></textarea>
<iframe id="hidden" style="height:30;width:100"...
Got a problem with query output using perl
my $query = "SELECT id, handle, DATE_FORMAT(insert_date, '%l:%i:%S %p') FROM session ORDER BY insert_date";
my $sth = $dbh->prepare($query);
$sth->execute;
my $data = $sth->fetchrow_hashref;
print "$data->{insert_date}";
The issue is that when I...
Got a problem with query output
my $query = "SELECT id, handle, DATE_FORMAT(insert_date, '%l:%i:%S %p') FROM session ORDER BY insert_date";
my $sth = $dbh->prepare($query);
$sth->execute;
my $data = $sth->fetchrow_hashref;
print "$data->{insert_date}";
The issue is that when I query the...
Hello all,
Been puling my hair out regarding this. Maybe someone can help me with this. Basically I have a form:
<form name="this_form">
Item A<br>
<input type="radio" name="pick1" value="1"> 1<br>
<input type="radio" name="pick1" value="2"> 2<br>
<input type="radio" name="pick1"...
Basically I have this script that when the page loads random html in the page disappears.
Example: <input type="hidden" nme="blah" value="again">
Fails when it shouldn't:
<script language="javascript">
<!--//
function changeDir(parent) {
var d = document.this_form...
Built several classes in OO perl that require the 'Exporter' to globalize common methods as a hashref for use within several classes.
MyStuff.pm
MyStuff/A.pm
MyStuff/B.pm
index.cgi accesses method from the A.pm and B.pm classes. MyStuff.pm is the base class accessed by the A.pm and B.pm. It...
Just made the move from using the adjacency list model (id, parent) to using the nested set model (id, lft, rgt).
Currently running MySQL 4.17
My goal is to create a virtual directory.
The question I have is:
Is it possible to limit the results of a SELECT to only return the next level in...
This works as a script but fails on the command line
Any suggestions?
perl -pi -e "s/\'win\',\'width=(.*),height=(.*)\'\);/\'win\',\'width=$1,height=$2,resizable=1,scrollbars=1\'\);/gi" *htm
What is in bold fails
http://unixjunky.com
Hello all,
I have written this javascript below. What the script does is checks the quantity entered by the user (on the fly) and compares the input to the increments required.
1 thru 47 *must order increments of 2
48 - 96 *must order increments of 48
96++ *must order in increments of...
I am looking to extract javascript's from a string like the example below. I know there are several modules out there that will do this, but this is not an option for me.
my $variable = qq|
<html>
<head>
<title>test</title>
<script language="javascript">
alert('welcome');
</script>
<script...
Need to remove the javascripts from the html example below and assign them (javascript's) to a variable to be processed later on.
Thanks in advance..
[EXAMPLE]
<html>
<head>
<title>test</title>
<script language="javascript">
alert('welcome');
</script>
<script language="javascript">...
Is it possible to REGEX (search & replace with nothing) a pattern by letter order..
The pattern would be the word 'script' either split by characters or spaces. Also the data is in a single string.
But could be written in different ways..
document.write('<' + 's' + 'c' + 'r' + 'i' + 'p' + 't'...
I know this is a little off topic.. I am looking for an 'open source' solution that measures up to the functionality of the MAS 90/200 Business accounting system.
Any suggestions are greatly appreciated..
Thanks for your time..
M. Brooks
X Concepts LLC
http://xconcepts.com
I know this is a little off topic.. I am looking for an 'open source' solution that measures up to the functionality of the MAS 90/200 Business accounting system.
Any sugestions are greatly appreciated..
M. Brooks
X Concepts LLC
http://xconcepts.com
I need to sort the contents of an array of hashes by 'distance'.. I have attached the code below.
-----------------------------------------------------------
# Get the list of stores by zip
my $select = "SELECT * FROM stores ORDER BY store_id DESC";
my $db_data = $lib->sql_arrayref($select)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.