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

Recent content by robertsclark

  1. robertsclark

    How to turn JavaScript into function and call

    Found what they problem was - didin't realise that I had to remove the <script></script) when the function was in the .js file Robert
  2. robertsclark

    How to turn JavaScript into function and call

    OK, thanks for the advice! I've now turned my script definition (within <head></head>) to <script language=&quot;javascript&quot; src=&quot;gcmemail.js&quot;></script> Unfortunately, now when I then call it within the page it doesn't return anything. Do I have my syntaxt wrong for the call...
  3. robertsclark

    How to turn JavaScript into function and call

    adam0101 Sorry, I'm not clear on that. Are you saying that it would be better to include it in each page, link to it, ot that it doesn't make any difference?
  4. robertsclark

    How to turn JavaScript into function and call

    Hmm Yes, I think I agree with you. One concern I had was that by linking it I would be (in effect) opening another connection to the server, but if it is coded on each html page I don't have that overhead. Robert
  5. robertsclark

    How to turn JavaScript into function and call

    HellTel Someone has suggested that if I am using this script in multiple pages that I should use <SCRIPT TYPE=&quot;JavaScript&quot; SRC=&quot;yourScript.js&quot;> </SCRIPT> Given the small size of this script, what do you think? Robert
  6. robertsclark

    How to turn JavaScript into function and call

    Brill - many thanks! Now working as I want (until I come up with another requirement)!
  7. robertsclark

    How to turn JavaScript into function and call

    The page loads, but doesn't give the desired result: I get the warning Line: 18 Char: 1 Error: Object Expected Code: 0 This is my complete page: <!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;> <html> <head> <title>mailto generation test</title> <!-- <script...
  8. robertsclark

    How to turn JavaScript into function and call

    Thanks for the reply. Where should I define the function - in the <head> section? How I call the function within my main html page (so that it generates the appropriate anchor)? Robert
  9. robertsclark

    How to turn JavaScript into function and call

    Hi! Firstly, I'm not a JavaScript programmer, so hence the request for help! I have several web pages with multiple anchor mailto links. I am concerned that these may be 'harvested' by spammers, so want to create a level of protection. I have managed to find a piece of javascript that I can...

Part and Inventory Search

Back
Top