Javascript help...

Soldato
Joined
31 May 2006
Posts
4,239
Location
127.0.0.1
Hi all

Sorry for the vague title but im not sure of the name of what I want!

I have a form on page x. The user clicks on a link and this opens a popup (page y). From page y the user makes a selection and the selection populates part of the form on page x. Page y disappears when the selection is made.

So it's a bit like how a date and time picker would work.

Any links or suggestions of examples would be appreciated.

Thanks in advance!
 
I would revise the way you're thinking of doing this. What if someone who's not using javascript comes along? Do they not get to use your form? What if their popup blocking settings are high? A non-techie user might not trust you enough to let you show popups.

It's a better practice to develop assuming that your user doesn't have javascript enabled, get everything working that way and then add sexy javascript.
 
The site is an intranet based site where control of javscript and pop up blockers are not an issue but out of interest what other way can this be done then if not by javascript?
 
The site is an intranet based site where control of javscript and pop up blockers are not an issue but out of interest what other way can this be done then if not by javascript?

even so, I develop without javascript anyway. What if you have someone start at your company who uses a screen reader? I'm not 100% on them but have always assumed that they don't deal with javascript well.

Without javascript and popups, the button you click would
send you to a different page instead of a popup.
 
even so, I develop without javascript anyway. What if you have someone start at your company who uses a screen reader? I'm not 100% on them but have always assumed that they don't deal with javascript well.

Without javascript and popups, the button you click would
send you to a different page instead of a popup.
Indeed.

Popups are extremely bad. If I want to "hide" things away, I have a collapsible div. If you render this div in the same z-index as the rest of the page, as far as I'm aware screen readers etc.. cope.
 
Ok guys take off the broken record... forget the popup... how do you populate a form by clicking something else on a page? i.e.:

Form input is populated by clicking a date on a claendar on the same page...

Thanks
 
Back
Top Bottom