Find Jobs
Hire Freelancers

Help with an AJAX Request in JQuery

$30-250 USD

Completed
Posted almost 12 years ago

$30-250 USD

Paid on delivery
I have a JavaScript file that writes an ID to a cookie value. I'd like to use Ajax to lookup and retrieve the title of the ID. Here is what I have but don't know how to do the Ajax request. Any help would be appreciated. The Ajax call should replace ProductArray[x] below. function loadCookieList () { var CookieValString = $.cookie(CookieName); var TheHTML = '<li class="nav-header">Saved Listings</li>'; if (CookieValString) { var ProductArray = [login to view URL]('|'); [login to view URL](); for (var x in ProductArray) { $.ajax({ type:'GET', url:'/js/[login to view URL]', data:{ProductArray[x]}, success: function(data) { alert('success'); } ); TheHTML += '<li style="margin-bottom:6px;"><a style="display:inline;" href="[login to view URL]'+ProductArray[x]+'">'+ProductArray[x]+'</a> <span class="Delete" id="'+ProductArray[x]+'"><i class="icon-remove-sign"></i></span></li>'; } $('.span3 .sidebar-nav').show(); } else { $('.span3 .sidebar-nav').hide(); }
Project ID: 1700362

About the project

4 proposals
Remote project
Active 12 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Professional web developer is ready get started right now. Please read my private message for more information.
$50 USD in 1 day
5.0 (94 reviews)
6.5
6.5
4 freelancers are bidding on average $39 USD for this job
User Avatar
I could get it done within an hour, let start now
$35 USD in 1 day
4.8 (153 reviews)
6.6
6.6
User Avatar
Dear. I can handle & finish this fo you
$30 USD in 0 day
4.9 (16 reviews)
4.3
4.3
User Avatar
I have done this loads of times!
$40 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
New York, United States
5.0
20
Payment method verified
Member since Jun 9, 2012

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.