Closed

Fix jquery/javascript/colorbox error on ajax/dynamically generated element

This project received 14 bids from talented freelancers with an average bid price of $33 USD.

Get free quotes for a project like this
Employer working
Project Budget
$10 - $30 USD
Total Bids
14
Project Description

Demo: [url removed, login to view]
The above is an infinite scroll page, with 2 photos initially loaded. When you hover at the pictures, you will see the checkbutton, and when you hover to the checkbutton, it will change opacity.
i) When not login
When you click the checkbutton, colorbox will show login page. When you click the picture, colorbox will show the picture details.
ii) When login
When you click the checkbutton, the location details will be added to your bucketlist, and javascript will change the checkbutton to cross button. When you click the cross button, the location details will be deleted from your bucketlist, and javascript will change the cross button to check button. When you click the picture, colorbox will show the picture details.
The above function works well before I introduce the infinite scrolling page (I am using ajax to call the dynamics element when I scroll to the max of the page)
After I introduce the infinite scrolling, problems happen to the dynamic/ajax generated element (I am using firefox on windows 7):
1) During both login and not login, if haven’t reach the end of the page, and when I click on the colorbox of the newly generated element, the colorbox will show up two times. (When reach end of the page, this won’t happen). I declare colorbox once in document ready and also during ajax call of the new element.
2) When login, the check button is not functioning well, i.e. addto/deletefrom bucketlist function runs two times. The addtobucketlist js function I declare once in document ready block, and also during the ajax call of the new element.
3) In mac firefox, infinite scrolling stops working after I clicked on any of the colorbox.
Interested bidding party please briefly summarize what you think the problem is, get abit technical so that I know you can solve it well. I prefer to work on teamviewer instead of ftp. Term of payment can be negotiated, I have worked with freelancer sonviet before, this is my 2nd job.

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online