04-12-2010
http headers are supposed to be \r\n terminated, not just \n (which is what your echo statements are doing). Probably unrelated to your javascript question, but it may save you debugging time.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I would like to know how to pass a variable inside a variable to a function.
sample code below
--------------
for x in 1 9
do
check_null $C$x ##call function to check if the value is null
if
then
echo "line number:$var_cnt,... (2 Replies)
Discussion started by: KingVikram
2 Replies
2. Shell Programming and Scripting
Hi All,
I need to pass a variable to perl script from bash script, where in perl i am using if condition. Here is the cmd what i am using in perl
FROM_DATE="06/05/2008"
TO_DATE="07/05/2008"
"perl -ne ' print if ( $_ >="$FROM_DATE" && $_ <= "$TO_DATE" ) ' filename"
filename has... (10 Replies)
Discussion started by: arsidh
10 Replies
3. Shell Programming and Scripting
Any help would be great. I know this is a dumb way of doing this, but I would like to know if there is a solution doing it this way. I'm very new at this and I'd like to learn more. Thanks! :D:D
count=0
while ; do
echo "enter your name"
read name_$count
let count=count+1
done
... (2 Replies)
Discussion started by: reconflux
2 Replies
4. Web Development
Hi everybody,
Firstly, this would be the first time I'm using JavaScript. My background is mainly Perl. Nevertheless, here's my problem.
So I've created a function
function linkout(url){
setTimeout("window.open(url)",5000) //in milliseconds
}
However because the variable "url" is... (0 Replies)
Discussion started by: z1dane
0 Replies
5. Web Development
Not sure if this is the right place to ask this but here goes. I am creating a cheat sheet for co-workers. The concept is that you pick wire size and conduit size and the amount of wires that will fit is displayed. I haven't used alot of drop downs and can't quite figure out the way the get id... (3 Replies)
Discussion started by: zero3ree
3 Replies
6. Shell Programming and Scripting
Would really appreciate it if someone could point out my mistake in this line of code, i've been staring blankly at it trying everything i can think of some time now and coming up with nothing.
#!/bin/bash
echo "Enter Username"
read Username
awk -F: -v var=${Username} '/^var:/... (9 Replies)
Discussion started by: Nostyx
9 Replies
7. Shell Programming and Scripting
I'm trying to write a basic bash script that takes input you give (what directory, if any, what name, if any ....) and passes the information to find.
I'm trying to just create a string with all variables and then pass it to find. So far I have this extremely simple:
#!/bin/bash -f
... (2 Replies)
Discussion started by: Starting_Leaf
2 Replies
8. UNIX for Advanced & Expert Users
I have a below syntax its working fine...
var12=$(ps -ef | grep apache | awk '{print $2,$4}')
Im getting expected output as below:
printf "%b\n" "${VAR12}"
dell 123
dell 456
dell 457
Now I wrote a while loop.. the output of VAR12 should be passed as input parameters to while loop and results... (5 Replies)
Discussion started by: sam@sam
5 Replies
9. Shell Programming and Scripting
Hi All,
I need to pass a variable from bash script to perl script and in the perl script i am using those variables in the sql query but its giving
error :
Use of uninitialized value $ENV{"COUNTRYCD"} in concatenation (.) or string at /GIS_ROOT/custom/tables/DBread_vendor.pl line 50.
Can ... (6 Replies)
Discussion started by: NileshJ
6 Replies
10. Web Development
I am totally new to PHP and I am trying to create a script that will as a user for a hostname and then use the "hostname" variable to generate a report using REST API.
I am able to create the html script and php script to GET the "hostname" but I am having trouble passing the hostname variable... (10 Replies)
Discussion started by: kieranfoley
10 Replies
LEARN ABOUT DEBIAN
html::widget::container
HTML::Widget::Container(3pm) User Contributed Perl Documentation HTML::Widget::Container(3pm)
NAME
HTML::Widget::Container - Container
SYNOPSIS
my $container = $form->element('foo');
my $field = $container->field;
my $error = $container->error;
my $label = $container->label;
my $field_xml = $container->field_xml;
my $error_xml = $container->error_xml;
my $javascript_xml = $container->javascript_xml;
my $xml = $container->as_xml;
# $xml eq "$container"
my $javascript = $container->javascript;
DESCRIPTION
Container.
METHODS
as_xml
Return Value: $xml
_build_element
Arguments: $element
Return Value: @elements
Convert $element to HTML::Element object. Accepts arrayref.
If you wish to change the rendering behaviour of HTML::Widget; specifically, the handling of elements which are array-refs, you can specify
"container_class" in HTML::Widget::Element to a custom class which just overrides this function.
build_single_element
Arguments: $element
Return Value: $element
Convert $element to HTML::Element object.
Called by "_build_element".
If you wish to change the rendering behaviour of HTML::Widget; specifically, the handling of an individual element, you can override this
function.
build_element_error
Arguments: $element
Return Value: $element
Called by "build_single_element".
If you wish to change how an error is rendered, override this function.
build_element_label
Arguments: $element, $class
Return Value: $element
Called by "build_single_element".
If you wish to change how an element's label is rendered, override this function.
The $class argument is the original class of the element, before "build_element_error" was called.
as_list
Return Value: @elements
Returns a list of HTML::Element objects.
element
field
Arguments: $element
"field" is an alias for "element".
element_xml
field_xml
Return Value: $xml
"field_xml" is an alias for "element_xml".
error
Arguments: $error
Return Value: $error
error_xml
Return Value: $xml
javascript
js
Arguments: $javascript
Return Value: $javascript
"js" is an alias for "javascript".
javascript_element
Return Value: $javascript_element
Returns javascript in a script HTML::Element.
javascript_xml
js_xml
Return Value: $javascript_xml
Returns javascript in a script block.
"js_xml" is an alias for "javascript_xml".
AUTHOR
Sebastian Riedel, "sri@oook.de"
LICENSE
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.1 2007-03-01 HTML::Widget::Container(3pm)