|
Sorry I didn't see the upper one.
--------------------------------------------------------------------------------------------------
Hiral Shah
India
If you think that my question is good enough and can be helpful for other then don't forget to vote.
|
|
|
|
|
Hi:
For an auction process, I am doing an Web application and I need to put an stopwatch in a Web page to synchronously show the seconds, minutes and hours decreasing from an established time hh:mm:ss to 00:00:00.
What is the best alternative taking in account that I have VS2005 as the tool to develop the application? i.e. to run this stopwatch in the server or the client?, which programming language to use?
Thanks for you attention.
|
|
|
|
|
You can find help in the link given below.Regarding the programming language you can use either VB.NET or C#.NET
http://www.csharphelp.com/archives2/archive368.html[^]
Kaushik Baruah is presently working as a Programmer Analyst in Cognizant Technology Solutions,Kolkata,India
|
|
|
|
|
I just Installed Apache Server on a Windows XP Professional, Apache Server is running properly but when installing php, the server is uploading the files but not running the php scripts within the files.
I configured apache server by the book, it recognizes the PHP file so it reads the HTML tags inside it but it just skips the PHPscripting parts,
Any Ideas about how to solve this problem?
Regards,
Luke
|
|
|
|
|
Solved.... Downloaded a file called wamp, it installs everything needed in just 2 mins and everything works fine, if any one wants to try it its on
www.wampserver.com
Regards,
Luke
|
|
|
|
|
In VS2005 Beta the oersonal web kit is available, I have loaded and CTR+F5 the I closed the page and tryed to add a user as it says in the doc, the page is loaded and after I click the Security tab this error is shown:
"There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not being enabled. Click the button below to be redirected to a page where you can choose a new data store.
The following message may help in diagnosing the problem: Exception has been thrown by the target of an invocation."
How can I FIX THIS?
"Tow things are infinite,
the Universe and human stupidity,
and I am not so sure about the former!"
Albert Einstein
|
|
|
|
|
When you upload afile via your browser using HTTP how does this all happen?
I imagine the browser constructs some fancy HTTP headers with the name of the file on your local hard drive and when sent the browser then knows to begin uploading that file?
The reason I ask is becuz I am using the XmlHttpRequest object and cannot figure out if file upload is possible???
I know you can send any header you wish to the server via XmlHttpRequest but I can't see what I describe above as being acceptable for security reasons...
Cuz then you could use XmlHttpRequest on any web site to steal files from a users local machine - which can't be a good thing
So if this isn't possible, does anyone know if it's possible to upload files via XmlHttpRequest without the use of another IE proprietary activeX like ADODB - which i've read you can use to stream local file data, sending it inside a FORM's textarea...
So...is this possible???
It's frustrating being a genius and living the life of a moron!!!
|
|
|
|
|
|
I've tried using this code but do not receive any information back except for the table header. My network is Windows 2000 ver 5.0.2195 and we utilize active directory. Any suggestions?
Life's a Beach, soak up the rays!
|
|
|
|
|
Hi,
I am trying to have to div tags next to each other. In the style propery for each I wwither made float: left, or float:right. And I gave it a width of 50% each. This doe not work in IE. It seems to make each DIV bigger than the allocated 50% and therefore aligns the DIVs below each other. How do I solve this?
And secondly. Lets say I want to display First Name, Last Name, and Email Address for each customer on one line. I do not want to use tables for this. Must a put eack value in a sepeate DIV? Maybe give first name and last name a width of 25% each, and then 50% for email address.
Please can someone help.
Regards
|
|
|
|
|
First of all, make sure that you have a doctype tag as the first line in the document. You can't put an xml tag in the document, or IE will ignore the doctype tag. If you don't have a doctype, the browser will work in 'Quirks Mode', which will make the browser interpret the html code as browser specific as possible, e.g. like ancient versions of the browser would interpret it.
If you have padding and borders on the elements, their size is added to the specified size, so if you specify a width of 50% and have padding and/or borders, the total width will be more than 50%.
There is a bug in IE where it in some cases will need three extra pixels in the width of the containing element for the elements inside it to fit.
For the customer, put each customer in an element, and each property in an element inside it. Quite similar to how you would do it in xml.
<div class="Customer">
<div class="FirstName"></div>
<div class="LastName"></div>
<div class="Email"></div>
</div>
Now you can format this any way you like, using css. Example:
.Customer { clear: both; height: 20px; }
.Customer div { float: left; }
.Customer .FirstName { width: 100px; }
.Customer .LastName { width: 100px; }
.Customer .Email { width: 150px; }
---
b { font-weight: normal; }
|
|
|
|
|
I'm trying to change the position of the IE toolbars, in order to save some space on the screen. When i'm closing the browser and then reopen it, the toolbars are moving back to their default coordinates. Do you know how should i solve this issue?
I'm running IE 6.0 with SP1, on a Win2K machine.
"tous les sifflets des trains, toutes les sirènes des bateaux
m'ont chanté cent fois la chanson de l'Eldorado"
rechi+
|
|
|
|
|
Hi,
How can I control mouse over event in the server-side code that send Javascript code to the client as follows:
Chart1.Series[0].MapAreaAttributes = "onmouseout=\"javascript:document.body.style.cursor='default';\" onmouseover=\"javascript: document.body.style.cursor='hand'; window.location='WebForm1.aspx?pointIndex=#INDEX';\"";
I only like to happen something when I move the mouse pointer over specified area, but only for the first time. For example, when I move mouse pointer over some element on the web page, some code should be executed:
onmouseover=\"javascript: document.body.style.cursor='hand'; window.location='WebForm1.aspx?pointIndex=#INDEX';\
and some flag should be set(?). When I do the same (mouse over) later, that code should be blocked by flag.
But, how can I declare some global variable in the situation above?
Or, is there any other method I can use to resolve this?
I need urgent help.
Thank you in advance.
Goran
|
|
|
|
|
On the server side, once you get a postback, you can write a javascript to declare a flag variable which will be checked by your onmouseover. Any javascript variables declared outside a function is considered global for that page.
Ed
|
|
|
|
|
Hi All,
I JUST starting in JS, so pardon my obvious ignorance. I have a little CBM experience, so some of the code structure may look a little funky.
I am trying to clear the screen in a very simple script, but so far all of my research has not found a "native" method.
Is it even possible under JS?
I have tried several methods from various sites, none of which manage to clear the screen ready for the next set of entries.
This IS a problem set by my TAFE tutors, but what I am trying to do is beyond what they have asked for. The program is complete, I just thought it would be nicer to clear the screen if the confirm loop is repeated, instead of scrolling down the page after each operation.
My Code is as follows:
<b><html>
<head>
<title> problem 13 </title>
</head>
<body bgcolor=silver>
<script language=JavaScript>
var mark=0, student=" ", total=0, level=0, avg=0, again=1;
var grade=[[49,"FAIL"],[59,"PASS"],[69,"CREDIT"],[70,"DISTINCTION"],[83,"HIGH DISTINCTION"],[100,"TOP"]];
mess1="Student Name:";
mess2="Marks in Subject ";
mess3="<u>Total Marks</u>: ";
mess4="<u>Average</u>: ";
mess5="<u>Grade</u>: ";
var show0="</b></font>";
var show1="<font color=red><b>";
var show2="<font color=black><b>";
var show3="<font color=purple><b>";
var show4="<font color=blue><b>";
var show5="<font color=green><b>";
while (again>=1) {
var mark=0, student="Student", total=0, level=0, avg=0;
document.write("<font face=times><center><h1>Problem 13</h1><hr size=7 width=50%></hr><font face=arial>") ;
student=prompt(mess1,"Student");
document.write("<table><tr><td width=200>"+mess1+"</td><td>"+student+"</td><tr>")
for ( x=1; x<=6; x++ ) {
mark=prompt(mess2+x,0);
total=parseInt(total)+parseInt(mark)
document.write("<td><b>"+mess2+"</b>"+x+": </td><td>"+mark+"</td><tr>")
}
avg=parseInt((total/6)*100)/100
document.write("<td>"+mess3+"</td><td>"+total+"</td>")
document.write("<tr><td>"+mess4+"</td><td>"+avg+"</td>")
document.write("<tr><td>"+mess5+"</td><td width=200>")
if (avg<=100&&avg>=83) { document.write(show5+grade[4] [1]+show0) }
if (avg<=82&&avg>=71) { document.write(show4+grade[3] [1]+show0) }
if (avg<=70&&avg>=61) { document.write(show3+grade[2] [1]+show0) }
if (avg<=60&&avg>=50) { document.write(show2+grade[1] [1]+show0) }
if (avg<=49&&avg>=0) { document.write(show1+grade[0] [1]+show0) }
document.write("</td></table><br>")
again=confirm("Enter Another Students Details?");
}
</script><p>
THANK YOU!
</center></font>
</body>
</html></b>
Thanks, Moggers69
I'm new here, so please forgive my ignorance.
|
|
|
|
|
You are using the web page in a quite peculiar way. You are using it as if it were a console window, not a web page. There is no way to clear the screen, at least not the way you are thinking of.
The normal way for a web page to operate is that the entire page is created, then the user interacts with it. If you want to change the contents of the page as the user interacts with it, you create elements and add them into the document structure of the page. You can also hide or remove objects from the document.
---
b { font-weight: normal; }
|
|
|
|
|
Thanks Guffa,
I had thought as much. That was the method the TAFE lecturer asked us to use. You are right, once the page is written, it has to stay there.
Again, thank you for your time and advice.
Moggers69
I'm new here, so please forgive my ignorance.
|
|
|
|
|
In line with what you said, how then would I make the page display a renewable console that opens, displays the results, waits for confirmation of closure or repetition? This is at the moment, beyond my experience.
If it's too much inconvenience, thanks for your time all the same, I do appreciate any help.
Moggers69
I'm new here, so please forgive my ignorance.
|
|
|
|
|
Here's a little example. It's a place holder and a form. When you press the button the text is added in an element in the place holder.
<html>
<head>
<title>Demo</title>
<script type="text/javascript">
function Add(text) {
var placeHolder = document.getElementById('List');
var obj = document.createElement('div');
obj.innerHTML = text;
placeHolder.appendChild(obj);
}
</script>
</head>
<body>
<div id="List"></div>
<form>
<input type="text" name="Text">
<input type="button" value="add" onclick="Add(this.form.Text.value);this.form.Text.value='';">
</form>
</body>
</html>
---
b { font-weight: normal; }
|
|
|
|
|
Many thanks Guffa,
Your code is not what I was thinking about, but it solves 3 of my other problems before I even ask... are you psychic?
muy gracias muchacho ,
l8r
Moggers69
I'm new here, so please forgive my ignorance.
|
|
|
|
|
I'm not sure if I understand the problem correctly but here goes my 2c
You could put the whole page in a <table> like this:
<body><br />
<table id="some_name"><br />
put your stuff here in tr/td..<br />
</table><br />
</body>
and in JS, just do something like
getElementById('some_name').visible = false;
That should do it..
---
http://sprdsoft.cmar-net.org - We Sprd You Softly
Our site features contents and several images. All of this is very weird.
http://sprd.12.forumer.com
Our forum features..err..nothing. You're welcome to contribute.
In the end, war is not about who's right, it's about who's left.
|
|
|
|
|
Thanks Titan,
That comes a lot closer to the mark than my efforts.
I appreciate your help
Moggers69
I'm new here, so please forgive my ignorance.
|
|
|
|
|
Hm.. I'm not sure this will work, but you might try it anyway:
<table id="the_table"><br />
-your stuff inside-<br />
</table>
and in JS, maybe you could do something like:
document.getElementById('the_table').innerHtml = "";
and then start writing in it again, with something like:
document.getElementById('the_table').innerHtml += "<tr><td>stuff</td></tr>";
It's just a theory, but do let me know if it works
---
http://sprdsoft.cmar-net.org - We Sprd You Softly
Our site features contents and several images. All of this is very weird.
http://sprd.12.forumer.com
Our forum features..err..nothing. You're welcome to contribute.
In the end, war is not about who's right, it's about who's left.
|
|
|
|
|
To Guffa, T1TAN, et al:
Many thanks for your interest, attention and VERY helpful hints and directions. I have gained a better understanding of the language, its limitations and capabilities, all due to your splendid help.
In broad answer, the TAFE course involves JavaScript. This will show you just how dumb some guys (pointing at myself here) can be. I had no knowledge that there was even a difference between JavaScript and JScript... yeah, I know, REAL blonde....
Again, thanks,
I shall try not to waste everyones time with such trivial questions in the future
appreciatively yours,
Moggers69
I'm new here, so please forgive my ignorance.
|
|
|
|
|
Hi, there,
I would like to know how to Highlight the items in the listbox during onmouseover event. I want it to look the same as the choice list box, in which the mouseover will highlight the item.
when I hold on left mouse button and move cursor over list box, the mouseover will highlight the item. How can I do it without holding the left mouse button?
Is there a way to do this?
Thank you very much.
bin
|
|
|
|
|