|
Here are two examples of how your code should look ...
<html><head><script>
init = function()
{
var1="hello";
alert(document.getElementById("HddElement").value)
document.getElementById("HddElement").value = var1;
alert(document.getElementById("HddElement").value)
}
</script></head><body onload="init()">
<input id="HddElement" type='hidden' value='hi'></input>
</body></html>
<html><head><script>
init = function()
{
var1="hello";
f = document.forms[0];
alert(f.HddElement.value)
f.HddElement.value = var1;
alert(f.HddElement.value)
}
</script></head><body onload="init()">
<form>
<input name="HddElement" type='hidden' value='hi'></input>
</form>
</body></html>
|
|
|
|
|
Please remember to format (using pre or code tags) any code you include in your posts.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Well for starters your hidden element should look like this: <input type="hidden" name="HddElement" id="HddElement" />
|
|
|
|
|
http://validator.w3.org/check">http://validator.w3.org/check
this validates ...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>
ValidationTest
</title>
</head>
<body>
<div><span>hi</span>
<p><input name="HddElement" type='hidden' value="hi"></p>
</div>
</body>
</html>
this gives warning ...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>
ValidationTest
</title>
</head>
<body>
<div><span>hi</span>
<p><input name="HddElement" type='hidden' value="hi" /></p>
</div>
</body>
</html>
here is the warning ...
The sequence <FOO /> can be interpreted in at least two different ways, depending on the DOCTYPE of the document. For HTML 4.01 Strict, the '/' terminates the tag <FOO (with an implied '>'). However, since many browsers don't interpret it this way, even in the presence of an HTML 4.01 Strict DOCTYPE, it is best to avoid it completely in pure HTML documents and reserve its use solely for those written in XHTML.
|
|
|
|
|
Please remember to format (using pre or code tags) any code you include in your post.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Because, you are not supplying the "ID" in the element.
Regards,
Nick Kowalewicz
Web: www.nk-inc.com
|
|
|
|
|
Hi,
I am trying to edit the html of my web pages in IE 8. I went to developer tools [F12] and set the default tool to Notepad. When I save the changes they are not getting saved. Any advice why?
|
|
|
|
|
How do you know they are not getting saved? Have you reloaded the page from the saved file?
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
IE doesn't allow you to edit the server version. It allows you to edit the local cached version.
|
|
|
|
|
Thanks for your replies.
I was actually desktoping into the remote m/c and due to some access issue it wasn't getting saved.
Strangely though it never pop-up a message window regarding access denied or not saved etc.!!!
Thanks.
|
|
|
|
|
Since it IE is loading a "URL", notepad opens a temp file.
Regards,
Nick Kowalewicz
Web: www.nk-inc.com
|
|
|
|
|
Hi,
Want to Create An ATM Sofware Where we would be able
to not only withdraw money but we'd be able to
Deposite Money too.
Please Give me Some Required Solution................
|
|
|
|
|
There are large companies that their entire business is developing ATMs. No one is going to give you thousands of dollars worth of software for free in a forum. And even if they did, I wouldn't trust the security or quality and I would be worried that they built in a back door.
|
|
|
|
|
Hi!
I work in a government institution and we developed an ASP.NET application for one of the departments and they now need to access the application offline. I'm currently researching the ASP.NET MVC and Silverlight 4. I am a newby to these technologies. Could you please advice on which technology will meet my requirements?
ojaytee
|
|
|
|
|
|
It depends on the requirements and what is meant by "offline". Since both Silverlight and ASP.NET MVC are web based the users will still need to connect to a web server. For a true offline application you would need a desktop app that could cache data and update when online.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hiii
I have one password blocking requirement as
After 3 bad login attempts an id should be locked for 10 minutes
After 3 additional bad login attempts, the id should be locked until reset
For errors when no user is found, the password does not match, or the account is locked; display “Incorrect Email/Password Combination.
Passwords are case sensitive. Please check your CAPS lock key.
But there are many constraints....Have any help articles about the above or Sample programs...Please reply.....
Advance Thanks...
Pradeep
|
|
|
|
|
So what part are you having difficulties with? The no user found case is very easy.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hiiiii
Especially in the 3 consecutive bad login attempts blocking...and i m working with JSP .
Thanks for ur reply.......
Pradeep
|
|
|
|
|
Without telling us the technology you are using it is tough to give you good answers. Someone could give you a sample in C#, but if you are using PHP that probably won't help you much at all.
|
|
|
|
|
hiii
I am working with JSP and code needed for that one. Especially in the
3 bad login attempts blocking.
Thanks for ur reply.....
Pradeep
|
|
|
|
|
In Javascript I am trying to create a new window, write some html into it, and then bring up the print dialog for this newly created window automatically.
The follow code demonstrates what I am trying to do, the new window appears and is successfully written to but the print dialog does not show up.
What gives?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>Printing Example</title>
<script type="text/javascript" language="javascript">
function HelloPrint()
{
var winPrint = window.open("", "");
winPrint.document.write("<H3>Hello World</H3>");
winPrint.print();
}
</script>
</head>
<body>
<a href="" onclick="HelloPrint()">Go</a>
</body>
</html>
|
|
|
|
|
Replace
winPrint.print();
with this
winPrint.document.execCommand("Print");
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Yes sir!
Thank you, exactly what I needed
|
|
|
|
|
Here is a way that works in more browsers ...
winPrint.document.close();
winPrint.print();
|
|
|
|