Javascript include reading cookies across domains?

We use Netsuite for our CRM/ERP System.  Our Contact form on our website is actually served up from Netsuite (https://forms.netsuite.com/app/site/crm/externalleadpage.nl?compid=TSTDRV353218&formid=3&h=c9cfe3394a58a39a833e&category=3&leadsource=99995).

That form, while hosted at Netsuite, refers to a javascript include on our site.  This javascript reads a cookie and sets the phone number based up on the referring site.  The cookie is not being found from the javascript.

Is there any way for a cookie to be read across domain names?  I had thought since the include file is on our domain - it would read the cookie.  I guess not.

Thanks.

Jennifer
carecorejenAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

dwaynecharringtonCommented:
Cookies cannot be read from another server. This is a security limitation of JavaScript and you'll have to go around it another way. There are definitely other ways to do this. Cookies can only be accessed by the domain they're created on.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.