Sponsored Content
Top Forums Shell Programming and Scripting Javascript or HTML to retrieve apache username Post 302537940 by linuxadmin on Monday 11th of July 2011 06:16:05 AM
Old 07-11-2011
if you use HTML / Javascript in your program , you can Use AJAX.

Ajax exactly does your need.
 

8 More Discussions You Might Find Interesting

1. BSD

Problem userdir ~username on apache

i have problem user cannot add or edit file on their directory i mean /home/user/public_html i have httpd.conf like this : ................ # UserDir Include etc/apache22/extra/httpd-userdir.conf and httpd-userdir.conf ................ # UserDir public_html UserDir disabled... (2 Replies)
Discussion started by: moslemovic
2 Replies

2. Programming

Using a script to check the login and username (html)

I made this named "confirm.sh":#/bin/sh #username and password are already given by the login form if ; then realpass=`cat /home/alex/Desktop/Myfirstsite/allpasses/$username` if ; then #continue with index.html else echo "Bad password" fi else echo "Unknown username" fi because I wanted... (4 Replies)
Discussion started by: hakermania
4 Replies

3. Web Development

Help with passing HTML values in to JavaScript

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

4. Programming

Looking For the Best Way to Rotate an Image: JavaScript, PHP, HTML etc

Hey All, What I'm looking for is a way to rotate an image by non 90 degree angles (ie 90, 180, 270, 360). I am able to do it in PHP, but there are errors in the image, some pixels end up colored incorrectly and the image ends up resized and I lose transparency. I've done my share of searching on... (1 Reply)
Discussion started by: pmd006
1 Replies

5. Shell Programming and Scripting

Retrieve information Text/Word from HTML code using awk/sed

awk/sed newbie here. I have a HTML file and from that file and I would like to retrieve a text word. <font face=arial size=-1><li><a href=/value_for_clients/Tokyo/abc_process.txt>abc</a> NDK Version: 4.0 </li> <font face=arial size=-1><li><a... (6 Replies)
Discussion started by: sk2code
6 Replies

6. Shell Programming and Scripting

Retrieve the username which got authenticated by the apache

I have an apache 2.2 setup with LDAP auth enabled. The html form in the front end takes some values and processes them using perl script in the background. Is there a way I can get the username which is submitting the values in that perl script. I am planning to track who is doing what(with the... (1 Reply)
Discussion started by: Tuxidow
1 Replies

7. Web Development

Web development learning thread(Javascript, HTML, CSS, angular, vue.js).

Hello All, After getting inspired from Neo, I have started a bit of JS learning these days. Whenever I learn something I will try to post it here(as of now my learning is NOT exactly bookish where I am going chapter by chapter etc, it could be more like small-small project vice kind of), I... (25 Replies)
Discussion started by: RavinderSingh13
25 Replies

8. UNIX for Beginners Questions & Answers

Why does "ps -[u|U] username" not list processes when username is numeric?

Greetings, The title pretty much says it all. I've snooped everywhere and can't find anything on this. Since our organization went to numeric usernames, using the u|U option for ps returns no processes. Example passwd entry: 320074:DjZAJKXun8HBs:10129:6006:Joe Y:/cadhome/analysis/jy:/bin/bash... (4 Replies)
Discussion started by: crimso
4 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 07:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy