Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

date picker 1

Status
Not open for further replies.

Kendel

Programmer
Apr 24, 2002
1,512
US
Hi All,

Does anyone has an example of date picker using DIV instaed of popup window that works with jsp? Thank you so much.
 
Given you posted in a Javascript forum - I don't see what relevance the mention of JSP has at all. There are so many things you haven't bothered to mention in your question (please consider more useful questions in the future)... the best I can come up with is to suggest you look at a site like for something that suits.

Cheers,
Jeff


[tt]Jeff's Page [!]@[/!] Code Couch
[/tt]

Make sure your web page and css validates properly against the doctype you have chosen - before you attempt to debug a problem!

FAQ216-6094
 
Jeff,

Thank you for the link. How come I didn't see this link when I google it? Anyways, I like this one, Popup Calendar IE5+ Opr7+, a lot but it won't work with FF. This one, Xin's Popup Calendar FF1+ IE5+ Opr7+, will work for bot IE & FF but it doesn't DIV. Well, thank you for your help anyway. Let try me to search for some more.
 
Thank you Feherke. I did try out Matt Kruse's examples. They work great with ASP and Dynamic web project JSP but for some reasons they won't work with my JSF portlets.
 
Whether you use ASP, JSP, JSF portlets, or PHP - the web is really just HTML. Those server side languages just get translated to create plain old HTML for the client. So I would say that you can get Matt Kruse's scripts to work if you find the appropriate way to include the .js files. The including seems to be the area that most users of off the shelf scripts have difficulty with.

Good luck.

Einstein47
For best results: hand wash in cold, tumble dry low.
For not so good results: drag through puddles, pound on rocks, air dry on tree branch.
[[]Starbase47.com]
 
Thank you for your help. That's exactly what I thought too.
And yes, I'm including the script in my jsp. Here is the problem: there is no attribute "name" in my form or any form's element. Portlet use "id" not "name". I've tried to replace the document.formname.elementname with document.getElementById('id') or document.getElementById('formId:fieldId') without success. I have tri 5 different example and all the error I got are related to my input text field, saying that my text field is undefined, not accessible .....
 
I see what you mean - yeah, most of Matt Kruse's scripts say you need both the ID and name attributes set. Can you force the portlet to produce the name attribute too? I don't know if you can add the name attribute to an existing element.

Einstein47
For best results: hand wash in cold, tumble dry low.
For not so good results: drag through puddles, pound on rocks, air dry on tree branch.
[[]Starbase47.com]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top