Sponsored Content
Top Forums Programming Run two CGIs simultaneously and Ajax to read updated value from CGI1 Post 302428989 by xs2punit on Friday 11th of June 2010 12:06:03 PM
Old 06-11-2010
Oh ok . I will try this.Thanks
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

run serveral loops simultaneously?

Hello everyone, say I have the following script, which contains serveral loops, if I run the script, it executes the loop one by one (after the a loop, it goes to b loop, then c, then d) I figured I should be able to run all the loops at same time, but I don't know how, can anyone help a little... (2 Replies)
Discussion started by: fedora
2 Replies

2. Shell Programming and Scripting

Run a command in bg simultaneously with

Hi, I want to run the command below in the background: tail -f file.txt | grep "pattern" The file file.txt will start getting its contents written after this command has started getting run. So the flow will be like this tail -f file.txt | grep "pattern" #The line below will write data... (0 Replies)
Discussion started by: King Nothing
0 Replies

3. Shell Programming and Scripting

[Help] script how to run 2 commands simultaneously

#!/bin/sh firefox index.html firefox secondpage.html hey guys, im not able to open up two pages at the same time... it always open up index.html first, and only after i close it, then the 2nd page pops up... is there any way i can run both commands at the same time? i appreciate any... (2 Replies)
Discussion started by: funnyguy123
2 Replies

4. UNIX for Dummies Questions & Answers

Read same file simultaneously with two different programs

Hi all, I was just wondering if there are any consequences, or if its a problem to have a multiple scripts parsing (reading) the same file simultaneously. For example, I have file.txt with lots of information. cat script1.sh grep "awesome" file1.txt > awesome.txt cat script2.sh grep -v... (4 Replies)
Discussion started by: torchij
4 Replies

5. Shell Programming and Scripting

Read Line is not Updated

Hi, Is there a way to reflect the recent changes in the file being read when using "while read line" loop? Thanks! script: while read line do echo $line cat x.dat|sed 's/2/6/g' > x.dat.temp mv x.dat.temp x.dat done < x.dat The results is still getting below, even... (2 Replies)
Discussion started by: zzavilz
2 Replies

6. Shell Programming and Scripting

Read file and run a command

Hi I have jobs (some 1000) defined in a file and I want to read those jobs and run a a command. For example: jobs.txt abc efg I want to read the entire file and run the following command Delete -JOB "abc" Deleteing abc... Delete -JOB "efg" Delete efg... Can somebody help me... (4 Replies)
Discussion started by: karan8810
4 Replies

7. Shell Programming and Scripting

Run 2 shell scripts simultaneously from one script

i Run 2 scripts on all of around 50 nodes every day. 1.Mod_1.sh 2.Mod_2.sh eg.. i run file with specific node no like Mod_1.sh NODE_(node number) Mod_2.sh NODE_(node number) I want to run both file by using single script with unique node number. Eg.. Mod_new.sh NODE_(node... (11 Replies)
Discussion started by: Ganesh Mankar
11 Replies

8. Shell Programming and Scripting

Shell script has to run until the status value is updated

Hi All, Need some help like how to exit from the script after updating the column in data base. db2 connect to DB STATUS=$(db2 "SELECT STATUS FROM XYZ ) echo $STATUS Initially the status value will be '4' or 'NOT YET RUN'. The Shell script has to run until the status value is updated... (7 Replies)
Discussion started by: sumanmca2006
7 Replies

9. Shell Programming and Scripting

How to run feeding each other processes simultaneously?

Hello, I need to run multiple shell processes simultaneously and output of the first process shall be the input of the second process but first process is never ending so both should be running in parallel. I do not wish to wait the end of the first process. I am under ubuntu 16.04. ... (3 Replies)
Discussion started by: baris35
3 Replies
HTML::Prototype::Js(3pm)				User Contributed Perl Documentation				  HTML::Prototype::Js(3pm)

NAME
HTML::Prototype::Js - prototype library, embedded in perl SYNOPSIS
our $prototype = do { package HTML::Prototype::Js; local $/; <DATA> }; DESCRIPTION
This is the actual Prototype library embedded in a perl __DATA__ section, for easy inclusion in HTML::Prototype. NEW SYNTAX
The prototype library provides some functions and classes which effectively change the basic syntax of the JavaScript you write. $(element) This function takes an element / element list and gets all string elements using document.getElementbyId. This is probably one of the most common functions when using javascript for web development, so it will save you a lot of typing. Class This uses fucntion references to allow namespace-like Class structures in javascript. Object.extend Simple inheritance for javacsript. Will set all properties of the child in the parent. Function.bind Allow function refs to be full object method references, through the use of extend and apply Try.these Simple try/catch for a list of functions, will return the return value of the first that doesn't throw an exception. Array.push implement push for arrays. returns number of elements in result. Function.apply Call a function on a given object, using eval. JS OBJECTS
The Prototype library provides a number of classes you can use to improve interaction with the end user. Ajax Provides one useful function, getTransport. This function will return a XMLHttpRequest object suitable for your browser. Ajax.Base An abstract base class for the Ajax objects described below. Sets some common options for Ajax objects; method: http method, defaults to post. asynchronous: process in the background, true/false, defaults to true. parameters: extra parameters, defaults to blank. Ajax.Updater a subclass of Ajax.Base, this class uses Ajax.Request to populate a container in your web page. Takes container, url and Ajax.Base options as paramters. Ajax.Request This object represents a plain ajax request. It extends base to add a constructor, as well as some events to handle events. The constructor takes an url, as well as the options described in Ajax.Base. Currently handles the following events: 'Uninitialized', 'Loading', 'Loaded', 'Interactive', 'Complete' Effect.Appear Takes an element, and makes that element appear through a fade. Effect.ContentZoom Takes an element, and zooms the content of that element. Effect.Fade Takes an element, and makes that element fade out and disappear. Effect.Highlight Takes an element, and does a highlight of that element. Effect.Puff Takes an element, and makes that element "blow up" and disappear. (As in disappear in a puff of smoke). Effect.Scale Takes an element, and a size, in percent, and scales that element to the given size. If it's a div, the initial size will have to be given in EM. No such restrictions for pictures. Effect.Squish Takes an element, and shrinks that element until it disappears. Element A collection of functions related to basic elements. takes one or more elements. toggle: Toggles the element display style. hide: Turns off the element's display style. show: Turns on the element's display style. remove: Delete this element from the DOM. getHeight: Get the element height. Also provides a convenience object, Toggle, with one method display which aliases to toggle, so you can call it as Toggle.display(element) Field Adds some useful functions to HTML Fields with several elements: clear: remove all content. focus: Give the element focus. present: returns true if all arguments are filled in, false otherwise. select(element): Select the given element in a form. activate(element): give the selected element focus, and select it. Form Some useful utilies for HTML Forms. all of these take a form element as sole argument. serialize: returns a URL serialized version of a given form. getElements: returns all elements in the form. disable: blurs and disables every element in the form. focusFirstElement: Give first element in the form focus. reset: reset all form elements. Form.Element Some useful objects for Form Field Elements. These take an element as the sole argument. serialize: url encode the element for use in a URI string. getValue: returns the value of the given element. Form.Element.Observer Form.Element.Serializers Serializers for various element types. Takes the input element as argument. input: determines the element type, and chooses the right serializer. inputSelector: serialize checkbox/radio. Form.Element.Observer Insertion This can be used in place of a innerHTML, to insert the content into the dom. Insertion.Before Puts content before a given dom node. Insertion.Top Puts content at the top of a given dom node. Insertion.Bottom Puts content at the bottom of a given dom node. Insertion.After Puts content after a given dom node. PeriodicalExecuter This object takes two parameters, a reference to a callback function, and a frequency in seconds. It will execute the callback every <frequency> second. SEE ALSO
HTML::Prototype, Catalyst::Plugin::Prototype <http://prototype.conio.net/> AUTHOR
Sebastian Riedel, "sri@oook.de" Marcus Ramberg, "mramberg@cpan.org" Built around Prototype by Sam Stephenson. Much code is ported from Ruby on Rails javascript helpers. 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 2009-12-02 HTML::Prototype::Js(3pm)
All times are GMT -4. The time now is 01:52 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy