Solved

Javascript break point?

Posted on 2013-06-11
3
384 Views
Last Modified: 2013-06-11
I have this code below and my manager said to do this:

do a javascript break point prior to where you do the lazy load call... See if you can see the images NOT being loaded, that will be a good test.    

I think the JS code needs to go before <script> below but not sure what a JS break point is...is it an alert??

Not sure how to do this...this is the code I have

<body>
<html>
.....

<img src="http://site/m0gl3_nb_02_i?$dw_prodtile_md$" class="lazy" alt="990v3, Grey with White" title="M0GL3">

<script>$("img.lazy").lazyload();</script>
</body>
</html>

Open in new window

0
Comment
Question by:Camillia
  • 2
3 Comments
 
LVL 9

Accepted Solution

by:
Ishaan Rawat earned 500 total points
ID: 39237802
Check this video...

http://www.youtube.com/watch?v=htZAU7FM7GI

See how to add breakpoints...

After you have learnt how to add breakpoints add break point before an image which is loaded by lazy load...

and if the image is not loaded that means you r plugin is working perfectly...
0
 
LVL 7

Author Comment

by:Camillia
ID: 39238240
Good video but it says the page has to be erorr free. Another developer is working on it to fix the bugs. I did put an alert ("test"); in the lazyload jquery and it does get called. I was afraid it's not being called at all but it does. So, i think this is working...

I did try large images but because this is a vendor app...i couldnt get the images to load.
0
 
LVL 9

Expert Comment

by:Ishaan Rawat
ID: 39238549
Ok.. !!
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

There are a couple ways to attach a JavaScript function to dynamically created elements. You can make a new script for each element as it’s created or you can use delegation. Delegation allows a single script that is added at page creation to mat…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now