Find Jobs
Hire Freelancers

Advice on Angular J , JQuery issue needed

$10-30 USD

Completed
Posted over 8 years ago

$10-30 USD

Paid on delivery
Issue in Angular J , JQuery Our issue is that we can not load images inside the loop in jquery and angularJs. There is problem is that when we load first image, there is some time in between loading first image, in this time next function executed for second function gets called. Our aim is that we have to wait for all execution of first image and thenexecution goes to second image and all other images same. I case of multiple pages in PDF let us consider we have 10 pages in that PDF, while loading our PDF in canvas we have to convert it into image one by one page. Now consider we have editing first page, We have to write first page image on Canvas and then we write content of that page on that canvas but here problem is that we load first page on canvas it takes some more time in between that time another function automatically gets called which need not to get called before completing above process. if you want to check actual piece of code for (var i = 0; i < 10; i++) { var b_canvas1 = [login to view URL]("printcanvas"); var canvasContext = [login to view URL]("2d"); [login to view URL](0, 0, [login to view URL], [login to view URL]); var img = new Image(); [login to view URL] = function () { [login to view URL](img, 0, 0, [login to view URL] * 0.65, [login to view URL] * 0.65); //here also we having lot of functionality and after that having 1500-2000 lines and then we made image from that canvas like following var img1=new Image(); img1.onload=function(){ //here we made images from canvas $("#print_images").append("<img src='" + [login to view URL] + "' width='713' height='434'/>"); } img1.src=[login to view URL](); } [login to view URL] = imggg[i]; } JG
Project ID: 8921918

About the project

5 proposals
Remote project
Active 8 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
Hi, Your code is working as it is written so your problem is logical NOT technical. Here is my solution try if it works in your case. var isCurrentImageLoaded = false; for (var i = 0; i < 10; i++) { var img = new Image(); isCurrentImageLoaded = false; [login to view URL] = function () { // Do all your image related processing here. isCurrentImageLoaded = true; } [login to view URL] = function () { // Log error and make flag to TRUE so that loop can go ahead. isCurrentImageLoaded = true; } [login to view URL] = imggg[i]; while(!isCurrentImageLoaded){ // just wait until your current image loaded. } } I understood your high level requirement. I am interested to work on this project. I have 7+ years experience in software development and customization using wide range of Microsoft technologies (C#, ASP.NET, MVC,WPF, Window form, Sql Databases, Azure, Sync framework etc.) and few open source like PHP,Java,JabbR. Since i have previous experience in such applications, so I think it will help in this project, if selected. About my previous work, you can visit my profile to see feedback from previous employer. You can also see my recent work on MVC, Azure at [login to view URL] and [login to view URL] Let me know, If you find me suitable for this project and share complete details. If you want more details, we can discuss over chat/ skype. Regards, Shashi Bhushan
$30 USD in 0 day
4.8 (24 reviews)
4.9
4.9
5 freelancers are bidding on average $29 USD for this job
User Avatar
I have more than 8 years of experience in Asp.net, C#, VB.Net and Sql server. I have good proficiency over MVC, MVVM, Web Service, Windows Service, Web API, Jquery, Ajax, Java Script, HTML, CSS3, Boot Strap,WPF, Xamarin, Entity. Reports : RDLC, Crystal Report and SSRS. We are very much interested in working in this job. Please call us for the interview, we are ready to start working with you.
$25 USD in 1 day
5.0 (18 reviews)
4.7
4.7
User Avatar
With around 4+ years of experience in IT field B.E. in IT M.Tech. in CS But without looking at the actual requirement I can't commit the timeframe/budget required to complete this task. I am good in this kind of applications and can help you in it.
$30 USD in 1 day
5.0 (1 review)
1.0
1.0
User Avatar
A proposal has not yet been provided
$25 USD in 1 day
0.0 (1 review)
0.0
0.0

About the client

Flag of UNITED STATES
Lawrenceville, United States
5.0
18
Payment method verified
Member since Jan 23, 2007

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.