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!

Search results for query: *

  1. RichardEdwards

    Newbie question: A web page with a password protected??

    Here's how I implemented a javascript-based login page: function imgError() { alert('Sorry, that is not correct.'); :-( document.enter.password.value=''; } function imgLoad() { window.location=this.password+'.html'; }); :-) function tryit() { var I = new Image(1,1) I.onerror=imgError...
  2. RichardEdwards

    document.write Shortcut

    I went one better than that... I defined a .write() method on the String.prototype object. You can see it at http://www.uuclb.org/Calendar.html (you'll find my navigable calendar component there too!). Function writeFn(doc) { if(!doc)doc=document; doc.write(this); return (this); }...
  3. RichardEdwards

    opening popup window from external .js file

    I have already implemented a javascript navbar component (among many, many others). You can see it at http://www.uuclb.org/Calendar.html in the horizontal orientation. (you'll find my navigable calendar component there too!) Basically, you create an array -- just .split() a String -- and tack...
  4. RichardEdwards

    Date calculation

    Use the Date object's .valueOf() function which returns the milliseconds elapsed since the base date. (today.valueOf()-registered.valueOf())/(1000*60*60*24) Once you have the millisecond difference between dates, convert it to days. Then you can Math.round() it if you want.
  5. RichardEdwards

    Interested in date script ?!

    I've already created a navigable calendar component (in JavaScript) which accounts for the week-of-month. Take a look at http://www.angelfire.com/ca/redwards/Calendar.html and notice how easily you can select the "2nd Sunday" or "last Tuesday" As you navigate the calendar...
  6. RichardEdwards

    Button not rendering in Netscape 4.7 !

    Help! Help! I've created a solid cross-browser navigable calendar (http://www.angelfire.com/ca/redwards/Calendar.html), but the first button won't display in Netscape 4.7 !!?! Everything else still works, but the Su (Sunday) button doesn't appear in Netscape 4.7 --- but I have tested it...
  7. RichardEdwards

    Clientlets: dynamic HTML written by client-side JavaScript.

    Thanks! Feel free to re- File|Save As... from http://www.angelfire.com/ca/redwards/Calendar.html onto your own system and play around with it. Let me know if you like it... "Richard...
  8. RichardEdwards

    External JS from external JS file

    I have discovered that huge complex pages can be rendered by javascript, if invoked by a single .write() statement. Consider my navigable cross-browser calendar component at http://www.angelfire.com/ca/redwards/Calendar.html Once the supporting 26K dynamicHTML3.js library is cached, only (new...
  9. RichardEdwards

    Calendar

    I have revised my calendar component http://www.angelfire.com/ca/redwards/Calendar.html to include next/prev day/month/year. From your browser, you can do File|Save As... to play with it yourself. The relevant code is (new Date()).calendar().write()
  10. RichardEdwards

    Clientlets: dynamic HTML written by client-side JavaScript.

    NEVERSLEEP: Per your suggestion, I added a "Today" button. I added prev/next day/month/year buttons too. Take a look... http://www.angelfire.com/ca/redwards/Calendar.html
  11. RichardEdwards

    Clientlets: dynamic HTML written by client-side JavaScript.

    If you resave http://www.angelfire.com/ca/redwards/Calendar.html 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 .form(name) I inserted...
  12. RichardEdwards

    Clientlets: dynamic HTML written by client-side JavaScript.

    In your browser, save http://angelfire.com/ca/redwards/Calendar.html to your own local file system. Then if you are bold enough to edit dynamicHTML3.js, look for function calendarFn (this builds the calendar). At the bottom of this function, after the .form(name) I have inserted...
  13. RichardEdwards

    Clientlets: dynamic HTML written by client-side JavaScript.

    wullie: Thank you for your input (no pun intended). If I am not mistaken, the update I have on http://www.angelfire.com/ca/redwards/Calendar.html works under IE/NS/Op 4/5/6 [except for Op4] !! I look forward to designing more sophisticated pages/sites using clientlets.
  14. RichardEdwards

    Clientlets: dynamic HTML written by client-side JavaScript.

    NEVERSLEEP: Does it work under IE6/Win2Kpro as designed? Namely, can you change the month, day, and year with a correct display?
  15. RichardEdwards

    Clientlets: dynamic HTML written by client-side JavaScript.

    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.
  16. RichardEdwards

    Clientlets: dynamic HTML written by client-side JavaScript.

    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.
  17. RichardEdwards

    Clientlets: dynamic HTML written by client-side JavaScript.

    Actually, you (NEVERSLEEP) found a IE6-specific bug... Try it from http://www.angelfire.com/ca/redwards/Calendar.html and let me know if it works for you... (I inserted a ".onblur(newWeek)" into it).
  18. RichardEdwards

    Clientlets: dynamic HTML written by client-side JavaScript.

    In your f.html file, insert ".source()" just before the ".write()" and view it in the browser. That'll show you what the browser is attempting to render. BTW: Why do you say not to use onchange? I use that to update the calendar during navigation.
  19. RichardEdwards

    Clientlets: dynamic HTML written by client-side JavaScript.

    Actually, there is a type(=text) specified. But why remove the onchange event? That's what makes the calendar navigable.
  20. RichardEdwards

    Clientlets: dynamic HTML written by client-side JavaScript.

    Try this change: Point your browser to &quot;http://home1.gte.net/uuclb/dynamicHTML3.js&quot; and download it onto your desktop. Modify the f.html file to read... <script language=JavaScript src=file:///C:/Documents%20and%20Settings/Administrator/Desktop/dynamicHTML3.js>;</script> <script...

Part and Inventory Search

Back
Top