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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Clientlets: dynamic HTML written by client-side JavaScript.

Status
Not open for further replies.
yes wullie
then its better to leave the onchange
but doing a <form action=&quot;..&quot;> also will be more 'user friendly'
wmail.jpg


someone knowledge ends where
someone else knowledge starts
 
Actually, I deliberately avoided using the form's action... Here's why:

Older browsers may lose track of which anchor you're at, upon submitting the form. That may mean that you jump up to the top of the page, even if you didn't want to.
 
then at least make a button &quot;view this year&quot;
wmail.jpg


someone knowledge ends where
someone else knowledge starts
 
Where would you place such a button?

I have attempted to make this component rather compact so that it co-exists nicely with other web page elements.
 
this up to u
maybe at the right of the year text input ? ---------------------------------------
wmail.jpg


someone knowledge ends where
someone else knowledge starts
 
NEVERSLEEP: Does it work under IE6/Win2Kpro as designed? Namely, can you change the month, day, and year with a correct display?
 
wullie: Thank you for your input (no pun intended). If I am not mistaken, the update I have on works under IE/NS/Op 4/5/6 [except for Op4] !!

I look forward to designing more sophisticated pages/sites using clientlets.
 
Hi mate,

I have just formatted this machine so at present I can only test this in IE5.5. If you want I will test this again in a few hours with other browsers.

First thing I notice is that on the page loading, the buttons are out of shape. I better explain what I mean here. When the page loads, the buttons are not all the same size. When I click on the button, they are all uniform.

Secondly, the point that Neversleep made about the years is still happening.. Is this updated page supposed to solve this?

Hope this helps Wullie

 
offline its working...
except the faq that users might be tempted to hit enter
when they change the year value ---------------------------------------
wmail.jpg


someone knowledge ends where
someone else knowledge starts
 
In your browser, save to your own local file system. Then if you are bold enough to edit dynamicHTML3.js, look for
Code:
function calendarFn
(this builds the calendar). At the bottom of this function, after the
Code:
.form(name)
I have inserted
Code:
.action(&quot;javascript:&quot;+newWeek)

Does that make it work for pressing ENTER? If you can solve this problem, that'd be quite handy! Thanks for any effort...
 
If you resave to your local file system, I think you'll find that it works (ENTER included) for all browsers (including IE6). I made two significant changes to dynamicHTML3.js

After
Code:
.form(name)
I inserted
Code:
.action(&quot;javascript:&quot;+newWeek)
and after
Code:
.textfield(&quot;year&quot;,4,Y).onchange(newWeek)
I added
Code:
.onblur(newWeek)

That should handle all of the relevant cases...
 
[2thumbsup]

that nice ! and user friendly

can i make another sugjestion ?
its now time for estetical code
like centering all <input>'s
using nice css to make it nice

anyways
[cheers] ---------------------------------------
wmail.jpg


someone knowledge ends where
someone else knowledge starts
 
Thanks! Feel free to re- File|Save As... from onto your own system and play around with it. Let me know if you like it...

Code:
&quot;Richard Edwards&quot;.link(&quot;mailto:&quot;+/*NO*/&quot;redwards&quot;+/*SPAM*/&quot;@&quot;+/*THANKS*/&quot;afsa.com&quot;).write()
 
another sugjestion
upon loading your page your <input>'s are not the same size
but after a execution its does
maybe putting it all the same size , always
---------------------------------------
wmail.jpg


someone knowledge ends where
someone else knowledge starts
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top