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 Mike Lewis 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: *

  • Users: JA3395
  • Order by date
  1. JA3395

    I can't get onKeyPress or onKeyDown to work in Firefox

    Thanks so much, I knew it would be quicker to ask in Tek-Tips! Some things are just not well documented...
  2. JA3395

    Apostrpohe and quote nightmare!

    Personally I don't bother with escaping (backslashing) quotes in this type of usage, I find it much harder to maintain in the long term, especially if someone else has to maintain the code! I use concatenation techniques: document.write("<a href=" + '"' + "javascript:navigateto('" + loc + "'"...
  3. JA3395

    Object doesn't support Property or Method Error

    Apart from the getElementByID error, you could try using the style visibility property instead, it seems to work better cross-browser. document.getElementById( 'txtScore' ).style.visibility = "visible"; document.getElementById( 'txtScore' ).style.visibility = "hidden";
  4. JA3395

    how to change url onclick??? please help me

    Check that the id="docLink" exists. It's case sensitive, so make sure you have the exact ID name. IE is more tolerant of these mistakes.
  5. JA3395

    I can't get onKeyPress or onKeyDown to work in Firefox

    I'm having real problems with Firefox and the onKeyPress / onKeyDown event handlers. Just for a change, both work fine in IE! <script language="Javascript"> function capLock(divID,e){ kc = e.keyCode; if (kc == 0) kc = e.charCode; if(kc >= 65 && kc <= 90) {...
  6. JA3395

    Calendar Control 2003

    OK, I've found somewhere, having no luck with regsvr32 right now, but I've got the OCX... http://www.fontstuff.com/mailbag/qvba01.htm
  7. JA3395

    Calendar Control 2003

    Any ideas, anyone, where I can download the Microsoft Calendar Control 11.0 (MSACAL.OCX) from? I have 12.0, but I'm doing a bit of work for a client who uses Office 2003.
  8. JA3395

    Calendar Control 2003

    Does anyone out there know what version of the Calendar Control is included with Office 2003? I've got 2007 and Calendar 12.0, but it doesn't seem to be compatible with 2003...
  9. JA3395

    Checkbox control in Word

    I've ended up using the InlineShape object. I did have a big example here, but my connection keeps collapsing and I only get seconds to send things....
  10. JA3395

    Checkbox control in Word

    I have checkbox controls embedded (InlineShape) in a word document. Depending on values in these and other controls, sections of the document gets deleted. My problem is, is that once sections are deleted, then the controls embedded in those sections no longer exist, so I can't use the control...
  11. JA3395

    Javascript and FireFox / Chrome

    This was the ONLY way FireFox would process the line, so, yes there is every reason to reference them as an array item. No other way (apart from using the numeric array element) works. As for invalid code. It's not invalid, it's just not compliant to some arbitrary "standard", it's perfectly...
  12. JA3395

    pass varibles with javascript maybe php??

    Name your file something.php <?php start_session(); function getRealIpAddr() { if (!empty($_SERVER['HTTP_CLIENT_IP'])) { //check ip from share internet $ip=$_SERVER['HTTP_CLIENT_IP']; } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { //to check ip is pass from proxy...
  13. JA3395

    Javascript and FireFox / Chrome

    OK, ignore me... I had to get really specific. FireFox doesn't like the shortcuts This works: f.elements['Task'].value = DoWhat; Stoopid mozilla!!
  14. JA3395

    Javascript and FireFox / Chrome

    OK, I've bashed myself upside my head and made a correction... function SubmitForm(What,DoWhat) { var f=document.getElementById(What); f.Task.value = DoWhat; f.submit(); return true; } later... <form name="modForm1" id="modform1" action="etc"> <input type="button"...
  15. JA3395

    Javascript and FireFox / Chrome

    I've firebugged this script and it's not the value that's the problem function SubmitForm(What,DoWhat) { var f=document.getElementById(What); f.Task.value = DoWhat; f.submit(); } f is equal to null after the getElementById. Why won't this work in FireFox? Do I have to use some...
  16. JA3395

    pass varibles with javascript maybe php??

    if (ipaddr == '63.131.12.999') { window.location="videoindexgoodip.htm"; }; // get rid of this semi-colon else { window.location="videoindexbadip.htm"; ; } %%IP%% is just a place holder tag. You need to replace it with something. Normally a bit of REGEX would do the job.
  17. JA3395

    populate a dropdown issue

    Just as a suggestion, I've lately been using Matt Kruse's DynamicOptionLists from http://www.javascripttoolbox.com. After a bit of monkeying around it works great. I'm generating the linked lists using PHP from a mySQL database, but I suppose any scripting would work, even hard-coding...
  18. JA3395

    Help with javascript code

    Try this <a href="javascript:void(0)" onclick="javascript:open_url('page-1.html','my_site_content');">Announcement 1</a><br> make sure that "page-1.html" is in the current folder, otherwise, tell the function where the file is.
  19. JA3395

    Javascript and FireFox / Chrome

    Has anyone meet this before I have this Javascript function that is supposed to change a value before submitting the form. The form name is dynamic, so is the value function SubmitForm(What,DoWhat) { var f=document.getElementById(What); f.Task.value = DoWhat; // <<<<<< FireFox fails on...
  20. JA3395

    How to Move Macros from one workbook to another

    If you right-click on a module you can export the module to a BAS file. You can then import this BAS file into any workbook you want.

Part and Inventory Search

Back
Top