faqts : Computers : Programming : Languages : JavaScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

1 of 1 people (100%) answered Yes
Recently 1 of 1 people (100%) answered Yes

Entry

my script works perfectly in IE, but it gives error on opening when I send it via email

Apr 6th, 2008 19:56
ha mo, Colin Fraser, Mohammad Siddique,


Interpretation 1. 
The question there is how are you sending it? If you use something like
MS-Outlook, or Eudora, can you be sure those programs are capable of
using Javascript. (I would not know here, I dont use any of those
programs, and I really do not care for them anyway). Javascript was
designed for Web pages, not for emails. (This is the question you asked
btw)...
Interpretation 2.
The other interpretation is that when you send the text of the script
via email, somehow it magically transform to a mess that does not work
when someone else pastes it to their web page. The answer here may be
quite simple, are you using the same browsers? Scripts sometimes will
not work using different manufacturer's browsers, you may have some
browser specific code that will simply not work in another browser.
Another consideration is versions. If you are using IE 6 and the
recipient is using IE 5 then you may have written some code or used an
object or method that has not been implemented in the earlier version.
Your problem is more likely found here than in problems with the email
you are sending. 
To  get around this problem, simply have lots of different browsers on
your computer and test out your code in each of them. If this is
impractical then send your code to friends who can test it for you, if
it does not work then you have a problem in the code. 
This is starting to sound a lot like a recursive function..:) 
Anyway, good luck.
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com