only show something(form) if javascript-enabled

2006-02-20 Thread gabor
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

Re: only show something(form) if javascript-enabled

2006-02-20 Thread Graham King
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('
'); but the CSS ve

Re: only show something(form) if javascript-enabled

2006-02-20 Thread Jason Huggins
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 --~--~-~--~~-

Re: only show something(form) if javascript-enabled

2006-02-20 Thread Amit Upadhyay
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

Re: only show something(form) if javascript-enabled

2006-02-20 Thread Lachlan Cannon
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

Re: only show something(form) if javascript-enabled

2006-02-21 Thread Brett Parker
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

Re: only show something(form) if javascript-enabled

2006-02-21 Thread Gábor Farkas
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.

Re: only show something(form) if javascript-enabled

2006-02-21 Thread Jason F. McBrayer
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

Re: only show something(form) if javascript-enabled

2006-02-21 Thread gabor
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

Re: only show something(form) if javascript-enabled

2006-02-21 Thread Jason F. McBrayer
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

Re: only show something(form) if javascript-enabled

2006-02-21 Thread gabor
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 >