|
Sir, I am not a learned person like you. Can you please provide a link where you dump all of your knowledge specially on Javascript?? Thanks in advance.
|
|
|
|
|
I store it here[^]
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
great link.
and may b you forgot to share this link
modified on Saturday, March 5, 2011 6:11 PM
|
|
|
|
|
Stop it, the pair of you. There is no excuse for this form of behaviour in the forums. Please refrain from these attacks - they are not clever.
|
|
|
|
|
|
over my head, Sir
Help people,so poeple can help you.
|
|
|
|
|
Good Answer, Monjurul.
100
Help people,so poeple can help you.
|
|
|
|
|
Thanx
|
|
|
|
|
Is it possible to access local machine form webpage without IE/ActiveX? For example, can I execute an exe file on a local machine? Or, If viewer's machine hosts a webservice, can i invoke it through webpage?
|
|
|
|
|
No. Think about it. Would you want some website, written by an unknown party, to run an application on your local systems, say "format c:"
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Since the OP asked "without IE/ActiveX" what relevance does this have to the question? And BTW, no it can't
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
ok, sir.
I was rush, but the good point is that i asked you before posting an answer. i wish that Manfred didn't see it (i'll kill you if you told him)
Help people,so poeple can help you.
|
|
|
|
|
|
manikumar_gutti wrote: in href link why they didnt take the url.
What href? Who are they?
manikumar_gutti wrote: Thank you for the answer i asked before. it is great. i have the same problem
If you have the same problem you should ask in the same context, or at least reference the previous questions/answers.
Remember, we are not sitting at the same desk as you, we don't see the same thing you do, so you can't asked a question without some frame of reference or giving a complete description of the problem.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
I get the feeling that you have taken someone else's code and are working through it step by step trying to figure out what is happening. I would suggest you get a good Javscript book or online tutorial, and get comfortable with the language before addressing some more complex issues.
I must get a clever new signature for 2011.
|
|
|
|
|
Richard MacCutchan wrote: I get the feeling that you have taken someone else's code
Sir, I believe that every student do the same thing, because they think they are making a better time. but the truth is that they are wasting their time and also other's.
Help people,so poeple can help you.
|
|
|
|
|
Ali Al Omairi(Abu AlHassan) wrote: they are wasting their time and also other's.
I think that may or may not be the case; I have learned lots of useful things by taking someone else's code and working through it. However, I usually start by studying the basics of the language in question.
I must get a clever new signature for 2011.
|
|
|
|
|
hi,
I have a problem with this code. if you understand this please send me the explantion.
I dont understand the variable intialization. could u please tell me what it means.
var openImage = ""
function getPath(url)
{
lastSlash = url.lastIndexOf("/")
return url.substring(0, lastSlash + 1)
}
regards
manikanta
|
|
|
|
|
Assuming url contains something like "dir/subdir/filename" then you will get the following:
openImage = <IMG SRC="filenamedg
closeImage = .gif" HEIGHT=21 WIDTH=16>
<IMG SRC="filenamedg.gif" HEIGHT=21 WIDTH=16>
I must get a clever new signature for 2011.
|
|
|
|
|
var openImage = "<IMG SRC=\"" + getPath(location.href) + "dg"
var closeImage = ".gif\" HEIGHT=21 WIDTH=16>"
function getPath(url)
{
lastSlash = url.lastIndexOf("/")
return url.substring(0, lastSlash + 1)
}
The code uses location.href, so I think it's looking for a file name dg.gif in the same folder as the web-page being referenced.
Richard MacCutchan wrote:
I think (assuming my page is 'http://mywebdomain/myfolder/mypage.html') this would be:
<IMG SRC="http://mywebdomain/myfolder/dg.gif" HEIGHT=21 WIDTH=16>
"It was when I found out I could make mistakes that I knew I was on to something."
-Ornette Coleman
"Philosophy is a study that lets us be unhappy more intelligently."
-Anon.
|
|
|
|
|
You are right of course, I misread the getPath() function.
I must get a clever new signature for 2011.
|
|
|
|
|
Hi
Thank you for your answer that i last time i asked. Now i want the phone number validation in javascript. How can we validate a phone number. if i give a invalid phone number it gives an error mesage. eg: 000000000
|
|
|
|
|
manikumar_gutti wrote: Thank you for your answer that i last time i asked
In fact you were shown some Google links; perhaps you could learn to do the same for yourself now you know how simple it is.
I must get a clever new signature for 2011.
|
|
|
|
|
Sir, be easy with him.
Sometimes thirsty people need some one to tell them to drink.
100
Help people,so poeple can help you.
|
|
|
|
|
Thirsty people standing in a stream shouldn't need to be told to drink. Even if they stumble they will drink.
I know the language. I've read a book. - _Madmatt
|
|
|
|