Technical Learnings - CGI-PERL Sl. No. Key words
Learnings
Descriptions
Contributor
MIME header, Inline image, multipart, 1 content id
Sending mails with inline image
While sending HTML formatted mails with embedded image (.gif or .jpeg), use MIME type as multipart/related which defines different parts of the message that are made up of independent data types (HTML and images). Specify the content id for images in MIME header which identifies individual parts of the message. Bharathi
2 Cookie, Cookie enabled browser
Checking For Cookie Enabled Browser
To check, if browser accepts cookie, we should set and access the cookie in the separate screens.
Shreenath
We allow users to download xls files through an hyper link on the web page. Ideally,on click of the hyper link ,user is prompted to open or save the file (File dialog box). But for some users,the xls file opened in the same browser without showing File Dialog box. In Order to get back File Dialog box pop up:
3 File dialog box
4 URL encoding, Query string
File Dialog box popup
Go to Windows Explorer-> Tools->folder-> options-> file types -> select XLS(file type)-> advance-> select open -> check confirm open after download (check box).
URL Encoding
If query string contains special characters (%,$,space etc.) then do the URL encoding. URL-encoding of a character is done by taking that character's 8bit hexadecimal code and prefixing it with a percent sign ("%"). Shreenath
Bharathi
"Use CURL command. Eg: If application named process.pl is on a remote server (URL: www.wipro.com) and accepts parameter 'name' then to get data from that application we can execute curl command from client as follows. $return_data = curl -d ""name=test"" http://www.wipro.com/process.pl?" 5 Remote process execution, UNIX
6 Scrollable tables, Javascript, CSS
Execution of a process on a remote server We can get required data by parsing the HTTP response on UNIX platform. contained in $return_data.
Scrollable HTML tables
Shreenath
HTML record tables can be made scrollable (both horizontal and vertical) by using CSS DIV tag and javascript. Put all headers in a table under