|
Hi, everyone!
I want to know the usage and function of span tag in html.
I have searched a lot of material but failed.
Who can give me an explanation? Better give me an example.
Thanks in advance,
George
|
|
|
|
|
George2 wrote:
Who can give me an explanation?
From the W3C on HTML Structure:
The DIV and SPAN elements, in conjunction with the id and class attributes, offer a generic mechanism for adding structure to documents. These elements define content to be inline (SPAN) or block-level (DIV) but impose no other presentational idioms on the content.The DIV and SPAN elements, in conjunction with the id and class attributes, offer a generic mechanism for adding structure to documents. These elements define content to be inline (SPAN) or block-level (DIV) but impose no other presentational idioms on the content.
http://www.w3.org/TR/html4/struct/global.html#h-7.5.4[^]
For an example, I use SPAN's in my MineSweeper[^] game.
Wally Atkins Newport News, VA, USA
|
|
|
|
|
Thanks, Wally buddie!
George
|
|
|
|
|
Hi there - I have this problem: including files. I have index.html and need to include the file header.html, and am trying to use
<br />
<!--#include virtual="header.html"--><br />
but this for some reason doesn't work. MSDN also says this should work, but I haven't been able to get it to work. I've also tried using the tags EMBED, LINK, etc, but nothing wants to work
Help would be appreciated
Paul
The following statement about your geekness is true. The previous statement about your geekness is not true. - Douglas HofstaderSonork ID: 100.33943
modified 18-Jul-18 11:59am.
|
|
|
|
|
Okay sorry guys, my problem seems to have been fixed by renaming the file to *.asp
Cheers
Paul
The following statement about your geekness is true. The previous statement about your geekness is not true. - Douglas HofstaderSonork ID: 100.33943
modified 18-Jul-18 11:59am.
|
|
|
|
|
you have to give it a .asp or .shtml extension.
/\ |_ E X E GG
|
|
|
|
|
(secreatly I already know that you figured it out yourself, but I just wanted to sound smart...)
/\ |_ E X E GG
|
|
|
|
|
Hi
how do you update a frameset when a button has been clicked in another frame?
thanks
|
|
|
|
|
You can reference a frameset with JavaScript:
For example:
top.FrameSetName
Here is a reference[^] to a similar question.
Wally Atkins Newport News, VA, USA
|
|
|
|
|
Hi!
I have a Web service runing in IIS (developed using the VS.net wizard)
Now C# clients use the web service. How Can I mentain session information. The EnableSession Tag works when the web service is invoked through IE but fails when called from a C# client. May be its because IE uses the HTTP POST and GET methods (and hence session is mentained) and the C# client uses SOAP.
Can anyone help me?
Thanks!
|
|
|
|
|
Don't you have to do something to the global.asx file? Wait, nevermind forget I even said anything... I spaced out half way though your post anyways...
/\ |_ E X E GG
|
|
|
|
|
Hello
I'm trying to set back values that user entered when i redirect them back to the page in case of an error, but it is not working on TEXTAREA can any one help?
>
when i print Session("Comment") to the screen it has value in it.
Thank you
Ilya
|
|
|
|
|
Try this:
<%=Session("Comment")%>
Wally Atkins Newport News, VA, USA
|
|
|
|
|
It works now
Thank you very much!!!!
ilya
|
|
|
|
|
I developed a ASP component which can create process,I want it run a program which will product some files,but the problem is the ASP component created process and didn't product files.
the code is follow:
STDMETHODIMP CWebExam::CompileFile()
{
AFX_MANAGE_STATE(AfxGetStaticModuleState())
// TODO:
STARTUPINFO si;
PROCESS_INFORMATION pi;
ZeroMemory( &si, sizeof(si) );
si.cb = sizeof(si);
ZeroMemory( &pi, sizeof(pi) );
// Start the child process.
if( !CreateProcess( NULL, // No module name (use command line).
"e:\\web2\\exam\\cl.exe /Fee:\\web2\\exam\\ /Foe:\\web2\\exam\\ e:\\web2\\exam\\test2.cpp", // Command line.
NULL, // Process handle not inheritable.
NULL, // Thread handle not inheritable.
FALSE, // Set handle inheritance to FALSE.
0, // No creation flags.
NULL, // Use parent's environment block.
"e:\\web2\\exam\\", // Use self starting directory.
&si, // Pointer to STARTUPINFO structure.
&pi ) // Pointer to PROCESS_INFORMATION structure.
)
{
error=1;
//MessageBox(NULL,"create process wrong",NULL,MB_OK);
}
else
{
error=0;
}
// Wait until child process exits.
WaitForSingleObject( pi.hProcess, INFINITE );
// Close process and thread handles.
CloseHandle( pi.hProcess );
CloseHandle( pi.hThread );
return S_OK;
}
|
|
|
|
|
Though the code is inside a COM component, it still runs with Internet Guest Account (IUSR_MachineName) permissions. So if the folder where you are trying to create files doesn't have write permission for that account, your component will not be able to create files. I guess same goes to a processes started by your componeny - they just started with same account
Philip Patrick
Web-site: www.stpworks.com
"Two beer or not two beer?" Shakesbeer
|
|
|
|
|
sorry!I think I didn't write the problem clearly!
In this component ,I have a property named "Error",it will return a value which points out the process is created or not.
To test this component ,I set the IIS web account as administrator,also I create a asp page,created the component,run the method,after this,I checked the "Error"'s value ,to my superise,I found it created a process successed. but it didn't product any outfiles.
I doubt that it maybe has something to do with the environment of the process running.
Thank your reply!
|
|
|
|
|
hmm... well, having administator(o such) rights on your web directory, you can run processes without an external component But nevermind..
Have you tried to execute the same command line from windows itself? Will it produce any files?
Philip Patrick
Web-site: www.stpworks.com
"Two beer or not two beer?" Shakesbeer
|
|
|
|
|
Yes,I have test it with windows2k's cmd,and also test it with a VB application,both produce two files.I doubt that the asp component has produce files,but these files cann't be stored in disk.
leon
|
|
|
|
|
TITLE: configuring IIS - virtual directory / ASP.NET
Hi, I just reinstall my machine. I copied all asp.net projects (previously backed up on a CD) to the new IIS/website named "somecompany" under webroot. I also move the project solution sln file under "My Document".
When I compiled again, I got this error:
------------------------------------------------------------------------------
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
Source Error:
Line 36: "Passport" and "None"
Line 37: -->
Line 38: <authentication mode="Windows" />
Line 39:
Line 40: <!-- APPLICATION-LEVEL TRACE LOGGING
--------------------------------------------------------------
So, I add a "new virtual directory" using the management console. After which, the error message became "Page Cannot Be Displayed"
Can anyone tell me how to configure my project directory as a virtual directory? Am I doing anything wrong that I just create a "new virtual directory" and map it to my project folder (containing the bin and aspx...etc)??
I have a feeling that there's more you need to do.
Thanks a bunch.
norm
|
|
|
|
|
norm wrote:
I have a feeling that there's more you need to do.
You have to make the Virtual Directory a Web-application as well.
Try this:
- Go into the IIS console
- Navigate to your virtual directory
- Right click and select Properties
- At the bottom of the screen that pops-up there is an Application Settings frame
- If there is a button saying "Remove" then you already have an application and I don't know what your problem is
- If there is a button saying "Create", then click it. A default app will be created and your project should now work
Hope that helps.
Paul Watson Bluegrass Cape Town, South Africa
Macbeth muttered:
I am in blood / Stepped in so far, that should I wade no more, / Returning were as tedious as go o'er
Want a job?
|
|
|
|
|
Quote: "If there is a button saying "Remove" then you already have an application and I don't know what your problem is"
Yes, "Romove" is there.
But two more tips:
1. there's no compilation error. Not even runtime error registered by VS.NET. Just "Page cannot be displayed" on internet explorer.
2. I have another problem if I just type the URL of the aspx directly: "You are not authorized.."
3. If the page is referred to by another page, the page is loaded SUCCESSFULLY!!?
This is a simple ASP page that refer to the aspx application via POST/form submit.
Hope to hear from you soon.
norm
|
|
|
|
|
You have to enable 'Windows Authentication'.... I hope im not wrong and sound dumb infront of all these smarties....
/\ |_ E X E GG
|
|
|
|
|
So the powers that be have decided that all their apps should be web-based from now on.
Any links, books or other info about making complex u/i within a HTML based app. Particularly interested in displaying lists of data and allowing an item to be selected. (ListView alike)
Michael
Wonder Woman, Wonder Woman.
All the world's waiting for you,
and the power you possess.
In your satin tights,
Fighting for your rights
And the old Red, White and Blue.
|
|
|
|
|
Michael P Butler wrote:
Any links, books or other info about making complex u/i within a HTML based app. Particularly interested in displaying lists of data and allowing an item to be selected. (ListView alike)
Billions of links, articles, books and opinions on the topic. Best is to post specific questions on the topic. e.g. How do I make a table of data select the whole line? etc.
Basically what you will have to do is learn CSS, JavaScript and the DOM (document object model.) Those three coupled together will let you create feature rich UIs. CSS is what styles everything, makes it look nice. JavaScript lets you manipulate the DOM.
Best way to learn is to look at examples, best example is: OddPost Go into the trial version and check out the soruce code. Stunning stuff.
Paul Watson Bluegrass Cape Town, South Africa
Macbeth muttered:
I am in blood / Stepped in so far, that should I wade no more, / Returning were as tedious as go o'er
Want a job?
|
|
|
|