|
HI guys
how can i check whether java installed or not in client machine when page is being loading
using Javascript, bcz i have html page and using applet in this page to show something.
basically need to check if java installed show apple tag else hide that.
Thanks in adv
Shafiq
|
|
|
|
|
|
I Need to get the value attribute to change to different numbers that I want to change in script parts based on user input so that the form will post a message to a different place depening on what they choose, but whatever I try it won't change, or at least not in time so that it posts right
<br />
<form id='commentForm' action='http://www.urlhere app=members&module=profile§ion=comments&do=add_new_comment' method='post'><br />
<br />
<fieldset><br />
<br />
<input type='hidden' name='member_id' id='number' value='***' /><br />
<script type="text/javascript"><br />
document.getElementBytagName("member_id").value="40603";<br />
</script><br />
<div id='post_comment' class='clear row2'><br />
<br />
<textarea class='input_textarea' cols='0' rows='0' id='comment_text' name='comment_text'>Hello.</textarea><br />
<br /><br />
<input type='submit' class='clear input_submit' value='Post' id='comment_submit' /><br />
<br />
<br />
</div><br />
</fieldset><br />
</form>
|
|
|
|
|
document.getElementsByTagName
try it this way
(it will probably work but there is no gaurentee
that the dom will be ready, you should move the script
block to the end ot the page)
<input type='hidden' name='member_id' id='number' value='***' />
<script type="text/javascript">
document.getElementById("number").value="40603";
</script>
|
|
|
|
|
Thanks a lot, it worked.
One more question.. varibles..
Tried asigning it one like this:
int num = 4321;
document.getElementById("number").value=num;
but that way didn't do it..
|
|
|
|
|
Declare the variable as :
var num;
|
|
|
|
|
Hmm thought thats what I did the first time without getting anywhere.. Was 2 am though. Thanks.
|
|
|
|
|
hi,
i developed login page with model popup extender and my problem to open login window with out Menu bar.
How can i solve it and suggest me better way.
Thanks & Regrads,
Vishnu.
|
|
|
|
|
|
hi,
Actually We Used The Modalpop extender but the problem is not with that.
i designed a login page. in that i should not have the menu bar when i run the page in ie6.
so please suggest b better way to hide the menubar in ie6.
thanks in advance
|
|
|
|
|
You can set the page window property and automatically the toolbar will hide or another way you can open a new window and set the parameters
|
|
|
|
|
hi,
i cant open a new window.in the startup page itself the menubar should be hidden or closed. and im using ie6 so i cant set the window properties.
Thank you.
|
|
|
|
|
Hello,
I want to know about the Javasript that after disabling JS from the browser, will js functions execute in asp.net web application? For instance, I have made an asp.net website. In this , I have made the validations using Javascript. Infact, a lot more Javascript is used in my application. So, When any user disables the Javascript from the client browser before using my website , then Will the Javascript Validations work? Will other js functions work after js is disabled from the client browser ?
Please help ...
Regards,
Amit
|
|
|
|
|
No, They will not work. That is why it is called Disable javascript
Wout Louwers
|
|
|
|
|
thanks for your reply..
then..if it won't work, what's the benefit of using JS functions over asp.net validation controls??
|
|
|
|
|
The benefit is that the valiidation is done on the client side whithou a roundtrip to the server.
I don't think there are many user who disable javascript in there browser. I the do, they cannot use more than half of the web.
Wout Louwers
|
|
|
|
|
JavasScript is also usefull when you are using Ajax into your code
|
|
|
|
|
Please stop posting. This blantly obvious statement adds no value to the conversation and is well know by anyone with modirum of knowledge.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
I think either you do not know the thing in regards to dotnet and sharepoint or you donot want to accept the things. I have only posted that thing which i have done.
|
|
|
|
|
Don't get cocky son. I think you'd better have a look around before making such a statement.
Please stop posting until you have some value to add.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
I hope for the same.. But even though it is better to stop it here and again i would like to say thanks....
|
|
|
|
|
How to we carry out Validations using JAvascript
|
|
|
|
|
What have you tried? How did that work? What specific issues did you have?
There are a myriad articles both here and through Google that will help you with a general question.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
are you trying to implement the JS validation functions in asp.net application?
If Yes,
try this one..
use the Js function in the section
function CheckValidation() {
if (document.getElementById('<%=txtString.ClientID %>').value == '') {
Msg = "Enter string..! \n"
}
}
and use the method in the asp.net textbox control as follows:
<asp:textbox id="txtString" onblur="CheckValidation(this)" runat="server">
|
|
|
|
|
hi guys
can javascript read usb device like flash disks?
|
|
|
|