Solved

Javascript break point?

Posted on 2013-06-11
3
385 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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 …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)
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…

919 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

13 Experts available now in Live!

Get 1:1 Help Now