|
The simple answer. You can not.
<big>The recommended answer. You should not.</big>
Workaround (anyway): <script>history.forward()</script>
|
|
|
|
|
hi,
i need to implement ffmpeg in c#.net 2.0 application . can somebody pls. guide me exactly what files do i need to include in my project and do i need MinGW and MSys for this.
What is MinGW and MSys? Do i need them inorder to implement ffmpeg in c#.net 2.0 application?
When i simply run ffmpeg through command line, then ffmpeg works fine. I'm running it on windows.
Thanks,
Harry.
|
|
|
|
|
I have a dropdown list or say htm tag.
I have written onchange event.
Its works fine in IE by accessing with mouse or keyboard.
The issue is in Firefox. In that it works fine if you select an item through mouse but if you select an item from keyboard or you change an item from keyboard the event does no fired.
Here is a sample code.
one
two
three
Thank You
|
|
|
|
|
Interstingly enough if you hit ENTER after then it DOES fire the event - you could get away with adding an onkeup attribute too, calling the same function
select onchange="javascript:alert('changed');" onkeyup="javascript:alert('changed');"
though whether that's the best solution or not I wouldn't like to guess...
|
|
|
|
|
divyesh1432 wrote: The issue is in Firefox. In that it works fine if you select an item through mouse but if you select an item from keyboard or you change an item from keyboard the event does no fired.
The event doesn't fire while you are changing the value, but when you are done and move to the next field. This is the same way that the onchange event works on a text field.
divyesh1432 wrote:
The javascript: protocol is only used when you put script in an url. It has no meaning anywhere else.
<select onchange="alert('changed');">
---
single minded; short sighted; long gone;
|
|
|
|
|
Guffa wrote: The javascript: protocol is only
But including it is just superflous. It does not harm or create negative effects either.
|
|
|
|
|
Vasudevan Deepak Kumar wrote: But including it is just superflous. It does not harm or create negative effects either.
It's not superflous, as it's not ignored. It's harmless just because it happens to become a label instead.
---
single minded; short sighted; long gone;
|
|
|
|
|
Thank you Guffa for enlightening on the issue. Since, I think, the web browser defaults to JavaScript engine, it automatically understands the same. For Netscape and other single-script engines, I don't this should be a problem at all. Isn't it?
|
|
|
|
|
Vasudevan Deepak Kumar wrote: Since, I think, the web browser defaults to JavaScript engine, it automatically understands the same. For Netscape and other single-script engines, I don't this should be a problem at all. Isn't it?
The javascript: protocol only has a meaning in an url. If you put it anywhere else, it's not a protocol any more. Instead, it happens to become a label instead, so it's just a name.
You could put most anything in a label:
onclick="vbscript:alert('Still Javascript');"<br />
<br />
onclick="ignore:alert('Not ignored');"<br />
<br />
onclick="onmouseover:alert('Still onclick');"
It's still just a label, and the name doesn't mean anything.
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi,
I am having problem on the upload page.
Everytime I will uploaded a file, then clicked on my upload button it will process twice, why is it?
How can I control the process to have only 1 process everytime I clicked on the upload button?
Thanks
hifiger2004
|
|
|
|
|
You might be in debug mode or check same thing on different browsers.
Thank You
|
|
|
|
|
Did you check for IsPostBack check?
|
|
|
|
|
I have a simple HTML file and would like to be able to insert a link to a folder. However, the path contains the users Windows logon account name, for example:
C:\Program files\some folder\[account name]\some folder
is it possible to dynamically determine the account name, so that the link is relative for each user?
Regards.
James
|
|
|
|
|
If your web application is written in ASP.NET and is integrated with windows-authentication and anonymous access disabled, you get the current user name by using User.Identity.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Thanks for the update.
I am afraid that it is just a very simple HTML file that I need to update with the specified link. It is not written in ASP.NET.
Thanks anyway.
James.
|
|
|
|
|
Then as a simple HTML file there is nothing you can do to dynamically change any information. You will need some kind of processing to be performed when the file is served, which implies something like ASP.
|
|
|
|
|
It is not possible to do in HTML... but maybe.. Try to use ActiveX object in Javascript.... but it might work only Internet explorer. and it is not good practice.. so, i never done this before..
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
|
Thank you very much to all who responded.
|
|
|
|
|
Hello. I'm not sure about how to do that. It seems simple. I have two elements that have two excluding values, A and B. What I need is that if I select A option in one, B is set in the other, and if I set B, the other is set with A.
How can I do that?
Regards,
Diego F.
|
|
|
|
|
|
Thank you, but I'm not sure if that is what I need. I find examples from one select loading another select. But I have two select that have the same two options, and any of them can be selected, so the other takes the other value.
Regards,
Diego F.
|
|
|
|
|
Diego F. wrote: the other takes the other value.
Meaning it should NOT be the same as the one in the first dropdown? You may need to actually iterate through the options array to achieve the same and unselect in case of violation?
|
|
|
|
|
What I need is that:
select1: options A and B
select2: options A and B
Select1 is set to A --> Select2 is set to B
Select1 is set to B --> Select2 is set to A
Select2 is set to A --> Select1 is set to B
Select2 is set to B --> Select1 is set to A
Maybe the above explanation wasn't clear enough.
Regards,
Diego F.
|
|
|
|
|
Is this what you're after?
<html>
<head>
<script language="javascript">
<!--
function s(a,b){
var sel1 = document.getElementById(a);
var sel2 = document.getElementById(b);
if (sel1.selectedIndex==0) {
sel2.selectedIndex=1;
} else {
sel2.selectedIndex=0;
}
}
//-->
</script>
</head>
<body>
<select id="s1" onchange="s('s1','s2')">
<option value="1">One</option>
<option value="2">Two</option>
</select>
<select id="s2" onchange="s('s2','s1')">
<option value="1">One</option>
<option value="2" selected>Two</option>
</select>
</body>
</html>
|
|
|
|