|
Well, you've asked a rather broad question that cannot possibly be answered fully in 1 post. There is huge amounts of information online about the Hypertext Transfer Protocol (HTTP) which is what you are after.
In brief, a web browser works along these lines:
1) User types a URI in the address line, or perhaps clicks on a URI.
2) The browser sends a request to that URI for the content.
3) The content is returned to the browser
4) The browser attempts to parse and display the returned data.
It is this request-response mechanism that makes the web work.
One of my favourite websites for this sort of thing is www.howstuffworks.com
Current blacklist
svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour
|
|
|
|
|
Sounds like a homework question to me....try google
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
I have made a custom control , inhereted from
System.Web.UI.Control
I want to add a collection property in this control
but i can't do it ...
If any one have some peice of code help me ........
public class MyCollection: System.Web.UI.Control, INamingContainer
{
System.Collections.ArrayList _item ;
public MyCollection()
{
_item = new System.Collections.ArrayList ;
}
public System.Collections.ArrayList Items
{
get{
if (_add==null)
this._add = new System.Collections.ArrayList ();
return _add;
}
set
{
this._add = value;
}
}
}
|
|
|
|
|
Any ideas?
Thanks.
|
|
|
|
|
Ideas? Tons...
Look into Huffman compression, as it's fairly easy to implement...
It's frustrating being a genius and living the life of a moron!!!
|
|
|
|
|
Hi,
I have created a page in which i am showing a image and some details.
This page is displayed as a popup window on the click of a link, and there is also a print button on the popup window. I want to show a print dialog which should inturn print the page but not th button.
I have placed all the thinks in two different Div Tags (Forst div for buttons and second div for Content).
A peice of code snipped will definately help more to achive it.
Thanks in advance.
Deepak Surana
|
|
|
|
|
script.js
function getPrint(print_area)
{
//Creating new page
var pp = window.open();
//Adding HTML opening tag with … portion
pp.document.writeln('<title>Print Preview')
pp.document.writeln('<base target="_self" />')
//Adding Body Tag
pp.document.writeln('');
//Adding form Tag
pp.document.writeln('');
//Creating two buttons Print and Close within a table
pp.document.writeln('');
//Writing print area of the calling page
pp.document.writeln(document.getElementById(print_area).innerHTML);
//Ending Tag of , and
pp.document.writeln('');
}
*****************************************************************************
NOTE:
I was facing problem during print. Print was not working when 1st time clicked. I solved that problem by reload
location.reload(true);
getPrint(print_area)Function take DIV Id which section you want
to print. Then, it creates a new page object and it writes necessary HTML tags
and add print and close button and finally it writes print_area
content and closing tag.
And call the following way from the aspx page. Here,
getPrint('print_area') has been added for printing print_area
DIV section. print_area is the DIV id of DataGrid and rest
of two will work for others DIVs.So, whatever areas that you want to print must
be defined inside of DIV tags.
And include Script.js
file in the aspx page.
'calling getPrint() function in the button onclick event
btnPrint.Attributes.Add("Onclick", "getPrint('print_area');")
Arpita
|
|
|
|
|
Hi Friends,
I am trying to Execute an Exe File in Struts Framework.But the system gets Hanged up.Can u Provide me the solution soon.I have pasted the code below.
Runtime rt = Runtime.getRuntime();
Process proc = rt.exec("notepad.exe");
InputStream stdin = proc.getInputStream();
InputStreamReader isr = new InputStreamReader(stdin);
BufferedReader br = new BufferedReader(isr);
String line = null;
System.out.println("");
while ( (line = br.readLine()) != null)
System.out.println(line);
System.out.println("");
int exitVal = proc.waitFor();
System.out.println("Process exitValue: " + exitVal);
This code works well when i compiled it in jdk1.5.0 well in command prompt.
But the same gets hanged up when i tried it in struts framework.
Please Provide your suggestions ,
Regards,
Ruban
|
|
|
|
|
Hi all,
I have a web application written in c# and I am trying to export an HTML formatted message to Lotus Notes. Here's is the code I am using
SendEMail sendEmail = new SendEMail();
sendEmail.From = "EMailSender@whatever.com";
sendEmail.To = "EMailReceiver@whatever.com";
sendEmail.Subject = "Completed and Scheduled Changes";
sendEmail.Body = sMessage;
sendEmail.Send(sMessage);
The sMessage is in HTML, however that doesn't work.
Any help will be much appreciated
Thanks
Tony
|
|
|
|
|
How do you mean with "that doesn't work"? You get an error? The layout isn't what you want in lotus notes? Lotus notes translates the html to text? ...
|
|
|
|
|
I dont get an error but lotus notes does not translate my html. It returns the HTML as it was typed. Like ....etc. What I want is the content of it.
Thanks
Tony
|
|
|
|
|
hi,
I create a asp.net page for image upload & same page use for the editing purpose When i edit mode of this page then i show the previous image on the page as view of images now i modify the image by input type file control and then i save this edited data all thing is work fine. but when i want delete previous image then this give the error like image use in another proccess
if u have any help regarding this then give feedback as soon as possile.
thanks
hi_arv
|
|
|
|
|
how can we split a string in java script....?
adarsh
|
|
|
|
|
|
hi....
i have a dropdownlist and listbox having same items(string)... when i select an item frm dropdownlist ,the same item(string) should be removed from the listbox......i need java script coding since its client side.......
adarsh
m_squared
|
|
|
|
|
Hi there, a whole lot of code (for once i made an example out of it). You'll see it does work!
<html><head><script language="Javascript">
function go() {
var optionCounter;
var smalllist = document.getElementById('smalllist');
var biglist = document.getElementById('biglist');
var selectedValue = smalllist.options[smalllist.selectedIndex].value;
for(optionCounter = 0; optionCounter < biglist.length; optionCounter++) {
if(biglist.options[optionCounter].value == selectedValue){
alert(biglist.options[optionCounter].text + " will be removed");
biglist.options[optionCounter] = null;
}
}
}
</script></head><body><form><table width="100%"><tr><td>
<select id="smalllist" name="smallist" onChange="go()">
<option value="1">one</option>
<option value="2">two</option>
<option value="3">tree</option>
<option value="4">four</option>
<option value="5">five</option>
<option value="6">six</option>
<option value="7">seven</option>
<option value="8">eight</option>
<option value="9">nine</option>
<option value="10">ten</option>
</select>
</td><td>
<select multiple="multiple" size="4" id="biglist" name="biglist">
<option value="1">one</option>
<option value="2">two</option>
<option value="3">tree</option>
<option value="4">four</option>
<option value="5">five</option>
<option value="6">six</option>
<option value="7">seven</option>
<option value="8">eight</option>
<option value="9">nine</option>
<option value="10">ten</option>
</select></td></tr></table></form></body></html>
|
|
|
|
|
Hi friends,
I tried to execute a EXE File through Struts Framework.It works fine when I compiled the java program individually through command prompt.
But it is not working when i tried in struts framework.Can u friends please provide me the solution soon.
bye
|
|
|
|
|
I have a script , running under ColdFusion 6,1,0,63958. and MySQL as Database Engine
<cfprocessingdirective pageencoding="utf-8">
<cfset setencoding("form","utf-8")="">
<cfcontent type="text/html; charset=UTF-8">
<cfif isdefined("code")="">
<cfquery datasource="db" name="InsSQL">
Insert into test_unicode SET mem='#code#'
<cfquery datasource="db" name="SelSQL">
SELECT * FROM test_unicode
<cfoutput query="SelSQL">
#ID#, #mem#
But when i try to submit Japan characters it returns :
Error Executing Database Query.
[Macromedia][SequeLink JDBC Driver][ODBC Socket][MySQL][ODBC 3.51 Driver][mysqld-4.0.26-standard]You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ''„' at line 2
The error occurred in C:\...\unicode\index.cfm: line 10
8 : <cfquery datasource="db" name="InsSQL">
9 : Insert into test_unicode
10 : SET mem='#code#'
11 :
12 :
--------------------------------------------------------------------------------
SQL Insert into test_unicode SET mem='的最 臨的最'
DATASOURCE db
VENDORERRORCODE 1064
SQLSTATE 42000
Please try the following:
Check the ColdFusion documentation to verify that you are using the correct syntax.
Search the Knowledge Base to find a solution to your problem.
HELP ME PLEASE , WHY ??? HOW find a solution ?
|
|
|
|
|
I'm trying to display a PDF image when a number of a details is typed in a textbox and the search button is pushed.
does any one have any ideas or help?
boldeagle
|
|
|
|
|
What are the advantages of moving from the traditional table layout style of a web page to the new CSS layout?
Any disadvantages or reasons not to move to CSS?
|
|
|
|
|
econner wrote: What are the advantages of moving from the traditional table layout style of a web page to the new CSS layout?
:: You can make pages with half the code (or less), which gives faster downloads.
:: You can separate the markup from the layout, which simplifies construction and maintanence.
:: Correct usage of html tags makes search engines index your pages better, and makes it possible for disabled persons to access your site. It also makes your page usable with any browser, ancient or future, even if they don't display it correctly.
econner wrote: Any disadvantages or reasons not to move to CSS?
Table layouts works better with browsers that partially, and inaccurately, support css, like Netscape 4 and contemporaries.
---
b { font-weight: normal; }
|
|
|
|
|
Thanks.
I will take a closer look at CSS. Is Visual Studio 2005 Web Edition editor a good place to start? Or, are there any other editors you would suggest?
|
|
|
|
|
Visual Studio 2005 works fine to make CSS layouts.
I suggest that you use Firefox to test the designs while working. Visual Studio uses the same rendering engine as Internet Explorer for previews, and IE 6 has some rendering bugs.
---
b { font-weight: normal; }
|
|
|
|
|
Always one to look for an argument, me:
Guffa wrote: :: You can make pages with half the code (or less), which gives faster downloads.
Oh yeah? You can markup a basic header / 3-coloumn / footer page layout using HTML tables in a dozen lines of code. Try doing that in CSS! Au contraire, you can find whole websites devoted to this one signle topic. Or problem, to be more accurate. And the solutions they come up with involve a lot of code.
Guffa wrote: :: You can separate the markup from the layout, which simplifies construction and maintanence.
Oh yeah? How easy is td bgcolor=#cccccc compared to td class=fred now then where is my definition of fred, oh yeas it's in xyz.css which is in abc folder right got that now then where the hell is my fred class... somewhere down at line 533 I think...
Guffa wrote: :: Correct usage of html tags makes search engines index your pages better, and makes it possible for disabled persons to access your site. It also makes your page usable with any browser, ancient or future, even if they don't display it correctly.
OK, I'll give you that - but emphasize the words "Correct usage" - otherwise your page will look a right mess. And don't forget to write half a dozen CSS pages for all the different browsers out there....
But - and it's a big butt (no that's not a typo) - fact is CSS is the way it's going so you - and I - are just going to have to get used to it. And yes, of course I am being a bit disingenuous, because a site laid out with CSS will be much easier to make global changes to; eg, once your client decides they want to re-brand themselves and use orange throughout instead of blue, you'll be glad you used CSS. Site maintenance is easier if you've used CSS, but you need to be organised, and one trouble with CSS is it's inherent lack of internal order. USE COMMENTS EXTENSIVELY in your CSS. The very fact that your markup and your CSS are seperated means you have to keep track of what relates to what in some other way.
Like all web-technologies CSS suffers from the fact that every browser does things differently and while the guardians at W3C like to think they're the arbiters of standards (did I ever vote for them?) fact is we already had a standard - it was called HTML.
Nevermind - hey, I LOVE CSS/XHTML XXXX (Is there an arse-lick emoticon anywhere?) I use it all the time now. (Really, I do.)
Good luck
P
-- modified at 17:37 Monday 22nd May, 2006
|
|
|
|
|
Phil Uribe wrote: Oh yeah? You can markup a basic header / 3-coloumn / footer page layout using HTML tables in a dozen lines of code. Try doing that in CSS! Au contraire, you can find whole websites devoted to this one signle topic. Or problem, to be more accurate. And the solutions they come up with involve a lot of code.
That specific example may be more difficult to accomplish using floating elements, but just because there are people that are confused about it doesn't prove that it can't be done.
Phil Uribe wrote: Oh yeah? How easy is td bgcolor=#cccccc compared to td class=fred now then where is my definition of fred, oh yeas it's in xyz.css which is in abc folder right got that now then where the hell is my fred class... somewhere down at line 533 I think...
Yes, if you look at one single element and want to find out it's properties, it's easier if the properties are in the element itself. That will be very helpful when you want to change the background color of all ten thousand table cells that are scattered across a hundred web pages...
Phil Uribe wrote: And don't forget to write half a dozen CSS pages for all the different browsers out there....
Or you can use methods works in all modern browsers, and write a single CSS file. It takes a bit of learning-by-doing to get the hang of what you have to do to make it work with the quirks in IE, though.
Phil Uribe wrote: The very fact that your markup and your CSS are seperated means you have to keep track of what relates to what in some other way.
True. Descriptive naming of elements and classes play a large role in that. "#Links .Header" works much better than ".blkbldhdr".
Phil Uribe wrote: (Is there an arse-lick emoticon anywhere?)
:P3
---
b { font-weight: normal; }
|
|
|
|