[jQuery] Re: loading an array via Ajax

2008-11-08 Thread Brad

This thread contains the answer to my question:

http://groups.google.com/group/jquery-en/browse_thread/thread/db0fb4fabce6630b/5eb2c5ac8b7f46f7?lnk=gstq=getJSON#5eb2c5ac8b7f46f7

On Nov 7, 4:40 pm, Brad [EMAIL PROTECTED] wrote:
 I have a case where I need to have a few global arrays and/or objects
 which will be used by numerous scripts. One example would be as a
 local lookup source for an autocompleter, while the same data might be
 used to populate a selection menu. The data isn't likely to change
 during a user's session, but might.

 I can get this data remotely every time I need it, but I'm hitting
 some performance problems in doing so.

 What I'd like to do is load these arrays/objects on page load, but
 make them globally accessible to other scripts for fast lookup. I also
 would like to do this in a generic fashion that would allow me to
 reload those arrays or objects if needed.

 I'm stumped on how to do this though?

 .getJSON? One of the other jQuery Ajax functions?

 Where I'm lost is that the array or object would be populated in a
 callback. Do to scoping, I don't see how to make it global?


[jQuery] Re: loading an array via Ajax

2008-11-08 Thread Waseem Javed

hi The affiliation program enables any active member to recieve
rewards on the purchases of your affiliates. It is easy to earn money
promoting Fotolia, simply send a link with your partner id and
encourage everyone to join. This page contains many ideas and links to
help you earn money. Recommend Fotolia to your friends and associates.
please sign up this link Contact us to learn more about the Fotolia API.
Click here to learn more about the Fotolia API
http://www.fotolia.com/partner/200850913

GREAT WAY TO EARN HUGE MONEY FROM ONLINE affilated sites please join
and earn money urgently urgently. Welcome to A.W.Surveys!
We would like to thank you for being part of A.W.Surveys. With your
help we are one of the fastest growing survey companies in the world.
We are proud that our Web Site Evaluations are helping change how the
web looks. We believe we have the best survey takers in the world,
which is why we value and pay so much for your evaluations.
The $500 Monthly Bonus cash prize for October has ended. The winner
for October is GinaMa! Congratulations!
11/1/2008 - The November Bonus Contest has started. Please remember
you receive $1 for completing this survey and will also be entered
into our $500 Monthly Contest.

http://www.AWSurveys.com/HomeMain.cfm?RefID=waseem 123
a href=http://www.AWSurveys.com/HomeMain.cfm?RefID=waseem 123
$6.00 Welcome Survey After Free Registration!/a
Hi if u guys love to read interesting stories so check out my site
http://www.elbowfriends.com.
 There are many nice and interesting love stories over there.And if u
guys want to add a new story of ur ownthen u can send ur own created
stories on my site contact tab.

ReferForex is a top in-house Forex affiliate program, offering
affiliates the opportunity to earn commission by referring traders to
our sites, www.finexo.com and www.forexwebtrader.com.
The Forex market is thriving with an estimated daily turnover of 3
trillion U.S. dollars. The earning potential of a Forex affiliate is
tremendous. Join our program and be rewarded for promoting the Forex
market's finest trading platforms.
Our program ensures that affiliates receive highly lucrative
commissions through our various commission structures. We provide our
affiliates every tool necessary for a productive and profitable
partnership.

Become a ReferForex Affiliate today, and join ranks with the program that pays!
!-- Affiliate Code Do NOT Modify--a
href=http://system.referforex.com/processing/clickthrgh.asp?btag=a_5389b_3148;
 target=_blankFall into Foreximg
src=http://system.referforex.com/processing/impressions.asp?btag=a_5389b_3148;
width=0 height=0 border=0/a!-- End affiliate Code--

!-- Affiliate Code Do NOT Modify--a
href=http://system.referforex.com/processing/clickthrgh.asp?btag=a_5389b_3200;
 target=_blankJPost Popunderimg
src=http://system.referforex.com/processing/impressions.asp?btag=a_5389b_3200;
width=0 height=0 border=0/a!-- End affiliate Code--

andAssociates Alerts
New Improved Associates Central
Welcome to the new Associates Central! We've been listening to your
feedback over the last year and we hope you'll find these changes
improve your experience as an Amazon Associates customer and help you
increase your ability to make money through the Amazon Associates
program.
What's new:
Site Stripe: Site Stripe lets you build Associates links directly from
the Amazon.com website so you can update your website more frequently,
with fewer clicks and less time. Next time you go to Amazon.com you
will see the Site Stripe at the top of any Amazon page you visit.
Linking to Amazon.com and Endless.com: Explore a variety of links and
widgets with our new design that helps you discover products to
advertise that will work best for your website and your customers,
including product links and banners.
A new look: Our improved website design makes it easier for you to
navigate through the Associates Central website to find the
information you need with fewer clicks.
Click on the Get Started Tour now, or explore the site on your own!
And as always, we'd love to hear your feedback.


a 
href=http://www.amazon.com/gp/redirect.html?ie=UTF8location=http%3A%2F%2Fwww.amazon.com%2Fcomputer-video-games-hardware-accessories%2Fb%3Fie%3DUTF8%26node%3D468642%26ref%255F%3Dsa%255Fmenu%255Fcvg1tag=elbowfriends-20linkCode=ur2camp=1789creative=390957;Name
Your Link/aimg
src=https://www.assoc-amazon.com/e/ir?t=elbowfriends-20amp;l=ur2amp;o=1;
width=1 height=1 border=0 alt= style=border:none !important;
margin:0px !important; /