|
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>
|
|
|
|
|
I have a drop-down with 4 values. Depending upon the value i select from this drop down i am populating the values in the other drop down. On selecting the 4 th value ,i want to open up text box/textfield where i can overwrite the 4 th value of the drop down and add the same in another dropdown list. can anyone suggest me the best way to do it.
Thanks,
angel
|
|
|
|
|
Using DHTML
capture the onchange of the SELECT
element...and determine it's selectedIndex
If the selectedIndex = 4 then using innerHTML replace the SELECT with an equivilent INPUT type="text" .
It's frustrating being a genius and living the life of a moron!!!
|
|
|
|
|
I need to set up a monitoring system for a number of sites. I've been playing around with Microsoft's WebApplicationStressTool. It's useful, in a way, but not able to save dynamic pages or access more than one site per script.
Does anyone know of a tool that may be useful for my project?
Much Thanks,
Aubrey
|
|
|
|
|
Hi,
In a JSP page, how to pass a HTML INPUT text variable to a Javascript function?
Pls help.I'm new to web development.
For example : I have a INPUT TEXT in a HTML page as
<html:text property="lastName"> How to pass this lastname varible to Javascript function.
Pls help
Ram
|
|
|
|
|
var myVal = document.forms(0).lastname.value;
It's frustrating being a genius and living the life of a moron!!!
|
|
|
|
|
you need to have an event - like , click of button and then on click of the event pass the variables top the function in JS.
|
|
|
|
|
Hey,
On my forum i would like to default peoples font colour to different colours, i am using an invisionfree forum, but... meh, i cant find anything, think any of you could help? please try, ermm, if you give it a go, could you code it so that the users name is tidus, and i'll set it up for each member from there.
Thanks
|
|
|
|
|
how to develop it in asp.net with vb.net coding
|
|
|
|
|