Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 25 of 500
Search took 3.70 seconds.
Search: Posts Made By: glenngv
Forum: JavaScript programming 05-14-2013, 06:54 AM
Replies: 4
Views: 171
Posted By glenngv
Is there any reason why you don't want to use...

Is there any reason why you don't want to use input type="password"?
Forum: JavaScript programming 05-14-2013, 06:43 AM
Replies: 9
Views: 209
Posted By glenngv
Try doing a form reset on page load. That will...

Try doing a form reset on page load. That will always reset the form elements to default state.
Forum: JavaScript programming 05-14-2013, 06:39 AM
Replies: 1
Views: 90
Posted By glenngv
z-index will only work on an element whose...

z-index will only work on an element whose position property has been explicitly set to absolute, fixed, or relative. Does the div containing the embed have the position set?
Forum: JavaScript programming 05-14-2013, 06:28 AM
Replies: 10
Views: 235
Posted By glenngv
Are you doing a server-side (PHP) validation only...

Are you doing a server-side (PHP) validation only without client-side (JS) validation? I suggest you do both as much as possible. With JS validation, the page will never be refreshed and the...
Forum: JavaScript programming 05-14-2013, 04:06 AM
Replies: 10
Views: 235
Posted By glenngv
Remove the quotes around true and false. It...

Remove the quotes around true and false. It should be a boolean not string.
Forum: JavaScript programming 05-14-2013, 03:52 AM
Replies: 10
Views: 235
Posted By glenngv
Wait, I didn't know that the id refers to tr not...

Wait, I didn't know that the id refers to tr not to the form control.

Why don't you just refer to 'cpf' and 'cnpj' ids to disable the fields?

document.getElementById("cpf").disabled = true;
...
Forum: JavaScript programming 05-14-2013, 03:50 AM
Replies: 10
Views: 235
Posted By glenngv
document.getElementById("fisica").disabled =...

document.getElementById("fisica").disabled = true;
Forum: JavaScript programming 05-13-2013, 04:11 PM
Replies: 4
Views: 197
Posted By glenngv
Add return false at the end of the function as...

Add return false at the end of the function as Old Pedant mentioned.
Forum: JavaScript programming 05-10-2013, 10:28 PM
Replies: 12
Views: 218
Posted By glenngv
Old Pedant's solution is good as it doesn't need...

Old Pedant's solution is good as it doesn't need any counter variable at all. You could even set the demo div as blank (instead of 0) by default and the code will still work.
Forum: JavaScript programming 05-10-2013, 08:30 PM
Replies: 12
Views: 218
Posted By glenngv
Because you initialize i to 0 every time myTimer...

Because you initialize i to 0 every time myTimer is called.
Forum: JavaScript programming 05-10-2013, 06:37 PM
Replies: 3
Views: 165
Posted By glenngv
Try this without making linkDest global: ...

Try this without making linkDest global:

setTimeout(
(function(){
var url = linkDest;
return function() {
location.href = url;
};
})()
, 10000
Forum: JavaScript programming 05-10-2013, 06:11 AM
Replies: 10
Views: 224
Posted By glenngv
You can take just the ajax_post out of the...

You can take just the ajax_post out of the anonymous function and keep the rest.

(function() {
...
})();

function ajax_post(keyid) {
...
}
Forum: JavaScript programming 05-10-2013, 02:41 AM
Replies: 5
Views: 163
Posted By glenngv
WolfShade, Instead of using...

WolfShade,


Instead of using document.URL, you can simply use location.search. That contains just the querystring part of the URL.
Using decodeURIComponent is more preferred than unescape.
...
Forum: JavaScript programming 05-09-2013, 04:20 PM
Replies: 27
Views: 394
Posted By glenngv
You don't need ASP. You are using client-side...

You don't need ASP. You are using client-side VBScript and not server-side VBScript.

<script language="vbscript">

</script>
Forum: JavaScript programming 05-09-2013, 08:35 AM
Replies: 4
Views: 187
Posted By glenngv
function postToPopup( uname, pwd ) { var...

function postToPopup( uname, pwd )
{
var form = document.getElementById("hiddenForm");
form.username.value = uname;
form.password.value = pwd;
form.target = 'MYPOPUP';
window.open("",...
Forum: JavaScript programming 05-09-2013, 08:18 AM
Replies: 27
Views: 394
Posted By glenngv
Try this: ...

Try this:

http://helpx.adobe.com/dreamweaver/kb/change-add-recognized-file-extensions.html
Forum: JavaScript programming 05-08-2013, 07:32 PM
Replies: 27
Views: 394
Posted By glenngv
You can also use VBScript instead of/along with...

You can also use VBScript instead of/along with Javascript if you know VBScript.
Forum: JavaScript programming 05-08-2013, 07:30 PM
Replies: 27
Views: 394
Posted By glenngv
You can still use a db in HTA by using ADO object.

You can still use a db in HTA by using ADO object.
Forum: JavaScript programming 05-08-2013, 07:27 PM
Replies: 8
Views: 174
Posted By glenngv
Without regex, we could also use indexOf and...

Without regex, we could also use indexOf and lastIndexOf string methods.
Forum: JavaScript programming 05-08-2013, 07:16 PM
Replies: 27
Views: 394
Posted By glenngv
Yes. But it has to be pure HTML and JavaScript....

Yes. But it has to be pure HTML and JavaScript. No PHP. You need to use FileSystemObject which Old Pedant linked in post #8 (http://www.codingforums.com/showpost.php?p=1334504&postcount=8)
Forum: JavaScript programming 05-08-2013, 06:54 PM
Replies: 8
Views: 174
Posted By glenngv
Or: function validate(textbox) { var...

Or:

function validate(textbox) {
var str = textbox.value,
operator = (str.match(/^%/) || str.match(/%$/)) ? 'LIKE' : 'EQUALS';

....
}
I assume textbox is the reference...
Forum: JavaScript programming 05-08-2013, 06:40 PM
Replies: 2
Views: 155
Posted By glenngv
Why not just use an iframe instead of div?

Why not just use an iframe instead of div?
Forum: JavaScript programming 05-08-2013, 06:34 PM
Replies: 27
Views: 394
Posted By glenngv
If you want GUI, make an HTA. ...

If you want GUI, make an HTA.

http://msdn.microsoft.com/en-us/library/ms536496(v=vs.85).aspx
Forum: JavaScript programming 05-06-2013, 07:58 PM
Replies: 3
Views: 200
Posted By glenngv
<input type="submit" name="Delete" value="Delete"...

<input type="submit" name="Delete" value="Delete" onclick="return confirm('Do you want to continue?')" />
Or:
<form ... onsubmit="return confirm('Do you want to continue?')">
Of course, it is good...
Forum: JavaScript programming 05-06-2013, 09:13 AM
Replies: 8
Views: 228
Posted By glenngv
I think what nca wants is this: var field =...

I think what nca wants is this:
var field = document.getElementById("field4");
field.focus();
field.select();
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT +1. The time now is 01:09 AM.