|
Firstly, where do you get the data to do the calculations?
Flora81 wrote:
Is it possible for me to use Dreamweaver to create interface and ASP to calculate the distance?
You could do this if you want.
Flora81 wrote:
What is ASP actually?
ASP (active server pages) is basically a script that runs on a web server that returns HTML to the web user.
ASP is typically written in VBScript, although you can also use JScript.
Cheers,
Simon
sig :: "Don't try to be like Jackie. There is only one Jackie.... Study computers instead.", Jackie Chan on career choices.
article :: animation mechanics in SVG blog:: brokenkeyboards "Most of us are programmers, but a few use VB", Christian Graus
|
|
|
|
|
hi all,
I am creating a javascript puzzle game. I need to capture the mouuse down event on div tag only.
we have mouusedoen event for document, button, link, i need for DIV tag. how to do?. I want to call a fuction on the mouse down event. If possib;e please send me a code for that.
Thanks in advance.
Venky
|
|
|
|
|
How about just using the onmousedown event for the div? Here's a sample:
<html>
<body>
<div id="myDiv1" onmousedown="alert('myDiv1 mousedown');">This is myDiv1.</div>
<br /><br />
<div id="myDiv2" onmousedown="alert('myDiv2 mousedown');">This is myDiv2.</div>
</body>
</html>
|
|
|
|
|
Hi,
I have a file stored on the client machine which I need to capture and pass to a web service, preferably as a string. (currently using web service to get file, but this is on my local machine) How can I accomplish this using Javascript? If not js then any other suggestions or references?
Thanks in advance.
|
|
|
|
|
hell for all
i want code for forume design by asp lunguag
|
|
|
|
|
|
Hi all,
I can't use the templates created by DreamweaverMX in FrontPage 2003.
For details, I created new .htm file and apply the template created by Dreamweaver MX. I got message : this template has no editable region.
How can I solve this problem ?
Thank !
To love in vain more than love no one.
|
|
|
|
|
how can I disable the browser's "Back" button ? if can't what are the other options
:confused
keepSmile
|
|
|
|
|
keepsmile wrote:
how can I disable the browser's "Back" button ?
You cannot.
keepsmile wrote:
if can't what are the other options
Depends on your application. One idea is that if your pages have a logical sequence then on each page load you store some sort of page sequence number in the Session object If the user pressed the back button and you detect the page loading a page out of sequence you can then redirect them to the correct page.
Does this help?
Do you want to know more?
WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and Forums
|
|
|
|
|
hi ..
see.. i found a solution it is (window.history.forward(1))..
which delete the history of prev. page and replace it with the new one .. is that ok!!!!!!
keepSmile
|
|
|
|
|
keepsmile wrote:
which delete the history of prev. page and replace it with the new one
Strictly speaking, that isn't disabling the back button, it is replacing the history. Also, some people (and increasing number of people) have javascript turned off so your solution will not work for them.
You should realise however, that doing this will most likely irritate the users - they don't like it when web pages change the way they expect their browser to behave and I still recommend the solution I gave before as it does not change the browser behaviour. For instance if they press the back button to get off your web site.
Do you want to know more?
WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and Forums
|
|
|
|
|
how do you add multiple users to one page and have them all in the same group
|
|
|
|
|
hi all,
please tell me how to download pdf file in asp 3.0
rite now I am using .
---------------------------------------------------------------
Response.AddHeader "Content-Location", strFile
Response.AddHeader "Content-Disposition", "attachment;filename=" & strFileName
---------------------------------------------------------------
file gets downloaded but on 0 byte only .
please help .. this is pretty urgent
Ashu
|
|
|
|
|
I did this in ASP.NET a few months ago. I can't check the code because I'm at home, but I believe you have to open the file and after outputting the header, write the full contents of the file.
Check this thread on the ASP.NET to see how I did it:
Protecting non-ASP.net files[^]
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
|
|
|
|
|
Hai..
I am creating a web appln in ASP not asp.net. I am creating a folder in a particular asp page.Is there any that I can a timer with this folder and once the timer expires I want to delete that folder...
Is there any way I can accompilish this in asp???
Thanks a lot in advance.
|
|
|
|
|
Hello everyone... Im new here, and kindda need some help please. Im trying to make a program in C code to download web page and store contents to a file. I have the socket creation and rule definition partfor Client done, but im not sure how to insert the get function, and about the syntax of the function.
#include <sys/types.h><br />
<br />
#include <sys/socket.h><br />
#include <netinet/in.h><br />
#include <arpa/inet.h><br />
#include <string.h><br />
#include <unistd.h><br />
#include <stdlib.h><br />
#include <stdio.h><br />
#include <netdb.h><br />
<br />
int main (int argc, char *argv[] )<br />
{<br />
int s, n;<br />
struct sockaddr_in sin; struct hostent *hptr;<br />
char msg[80] = "Hello World!";<br />
if ( argc < 3 ) {<br />
printf ("%s host port\n", argv[0] ); <br />
return -1;<br />
}<br />
if ( (s = socket(PF_INET, SOCK_STREAM, 0 ) ) < 0) { <br />
perror("socket"); <br />
return -1;<br />
}<br />
sin.sin_family = PF_INET; <br />
sin.sin_port = htons(atoi(argv[2])); <br />
if ( (hptr = gethostbyname(argv[1]) ) == NULL){<br />
fprintf(stderr, "gethostname error: %s", argv[1]);<br />
return -1;<br />
}<br />
memcpy( &sin.sin_addr, hptr->h_addr, hptr->h_length);<br />
if (connect (s, (struct sockaddr *)&sin, sizeof(sin) ) < 0 ){<br />
perror("connect"); return -1; <br />
}<br />
if ( write(s, msg, strlen(msg) +1) < 0 ) { <br />
perror("write"); return -1; <br />
}<br />
if ( ( n = read(s, msg, sizeof(msg) ) ) <0) { <br />
perror("read"); return -1; <br />
}<br />
printf (" %d bytes: %s\n", n, msg); <br />
<br />
if (close(s) < 0) { <br />
perror("close"); <br />
return -1;<br />
}<br />
return 0;<br />
}<br />
I need the code for the request from the Client, and the response from the Server.
Please, help me ASAP... thanks to you in advance.
Please feel free to point out any errore in my code.
|
|
|
|
|
Hi all !!
I want to embed several MediaPlayer objects into the same page. I mean if I could play different mpg's at the same time in the same page. I've tried and the result is that the first MediaPlayer plays all of the mpgs at the same time (mixing all of them or somenthing like that) and the others remain as black boxes.
Is it possible to do?
|
|
|
|
|
Hello
When i login to my.msn.com i really happy to see the working of drag and drop popup window so i have been get the script of open and close popup window but dgrag and drop is not downloadable so if any body know how to build this then describe please
Thanks
Regards from Tariq
Thanks
Regards form Tariq
|
|
|
|
|
that is not dedicated Javascript..
check this URL...
http://www.eggheadcafe.com/forums/ForumPost.asp?ID=17828&INTID=6
and view the replys.
Regards
sriram
|
|
|
|
|
I know very litte about JavaScript. I'm trying to use the following script to show / hide elements on a page:
<br />
with (document)<br />
{<br />
write("<STYLE TYPE='text/css'>");<br />
write(".hiddentext {display:none} .outline {cursor:hand; text-decoration:underline}");<br />
write("</STYLE>");<br />
}<br />
<br />
function expandIt(whichEl)<br />
{<br />
whichEl.style.display = (whichEl.style.display == "block" ) ? "none" : "block";<br />
}<br />
The script gets called with an onClick="expandIt(item)" event where item is the ID of the table / div / content that you would like to show/hide.
Works like a charm in Internet Explorer and Mozilla Firefox. Does not work in Netscape Navigator 7.2. Any ideas?
Chris LaQuerre
eBusiness Projects Leader
|
|
|
|
|
Netscape uses a different way to point to page elements. In order to make it less browser-specific, try using "getElementById". Your script would look something like document.getElementById(whichE1).style.display and so on.
|
|
|
|
|
hello,
I want my application to send a request to search engine(Yahoo.com ,Excite,Altavista,msn) and the search engine should return the URLs of the top 10 sites that match the keywords I sent to the search engine.
I have found google.com contain an API for developers but the other search engines does not provide a similar API or web service.
Thanks in advance
|
|
|
|
|
How can I Get Image's ID that user click taht?
|
|
|
|
|
by clicking on it and starring into the mirror...you ask:
Mirror Mirror on the wall...which image ID is the fairest of them all...
And the mirror should explain he has no IDEA WHAT THE HE*L your talking about so it can't help you...
Cheers
It's frustrating being a genius and living the life of a moron!!!
|
|
|
|
|
Wow, Hockey needs to lay off the coffee. If I understand your question correctly, you want to know how to read which picture a person has clicked on. Here is one way to do it:
<script>
function findId(myid){
alert(myid)
}
</script>
<a href=javascript:findId(1)><img src=pic1.gif border=0></a>
<a href=javascript:findId(2)><img src=pic2.gif border=0></a>
|
|
|
|