hi,
what is the standard way to only show a form if the user has
javascript-enabled?
i have a form which's "integrity" relies on some javascript stuff,
so i really don't want the user to submit it with javascript-disabled.
so is there a way to only show some part of the webpage (or the whole
You could make the form invisible using css:
#theFormId {
display: none;
}
then use Javascript to change this to display = block. If they don't
have Javascript the form won't appear.
Or you could use Javascript to write the form out, as in:
document.write('
gabor wrote:
> so is there a way to only show some part of the webpage (or the whole
> webpage) if javascript is enabled?
Use javascript to build up the form and its visual elements on
pageload. A user without Javascript enabled would see a blank page. :-)
-Jason
--~--~-~--~~-
On 2/21/06, gabor <[EMAIL PROTECTED]> wrote:
what is the standard way to only show a form if the user has_javascript_-enabled?Use id="integrity_form" style="display:none" in the form, and then document.getElementById("integrity_form").style.display = "block", ofcourse this won't happen unless _java
gabor wrote:
> hi,
>
> what is the standard way to only show a form if the user has
> javascript-enabled?
You could have the form in the page, and have it set to display: none; which is
undone with js. Of course if someone has css disabled they'll see it...
--
Lach
Personal: http://illuminosi
On Mon, Feb 20, 2006 at 10:36:38PM +, Graham King wrote:
>
> You could make the form invisible using css:
>
> #theFormId {
>display: none;
> }
>
> then use Javascript to change this to display = block. If they don't
> have Javascript the form won't appear.
>
> Or you could use J
Brett Parker wrote:
> On Mon, Feb 20, 2006 at 10:36:38PM +, Graham King wrote:
>> You could make the form invisible using css:
>>
>> #theFormId {
>>display: none;
>> }
>>
>> then use Javascript to change this to display = block. If they don't
>> have Javascript the form won't appear.
Gábor Farkas <[EMAIL PROTECTED]> writes:
>
> at the end, i did the followin:
>
> - no javascript-visibility tricks
> - the form's submit buttons are written out using document.write
> - i added a tag to warn the user to enable javascript
>
> this way, if javascript is disabled, the user cannot s
Jason F. McBrayer wrote:
> Gábor Farkas <[EMAIL PROTECTED]> writes:
>
>> at the end, i did the followin:
>>
>> - no javascript-visibility tricks
>> - the form's submit buttons are written out using document.write
>> - i added a tag to warn the user to enable javascript
>>
>> this way, if javascri
On Tue, 2006-02-21 at 23:52 +0100, gabor wrote:
> i wanted to have in the user-manager form a way to do the normal
> password-thing (2 password fields, check if they are equal, and so on).
>
> so, i created a page-template, put it to the right place so that it
> overrides the django-users-mana
Jason F. McBrayer wrote:
> On Tue, 2006-02-21 at 23:52 +0100, gabor wrote:
>
>> i wanted to have in the user-manager form a way to do the normal
>> password-thing (2 password fields, check if they are equal, and so on).
>>
>> so, i created a page-template, put it to the right place so that it
>
11 matches
Mail list logo