Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Javascript break point?

Posted on 2013-06-11
3
Medium Priority
?
394 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 10

Accepted Solution

by:
Ishaan Rawat earned 2000 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 10

Expert Comment

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

Featured Post

PowerShell Core for Advanced Linux Administrators

Understand advanced principals around Powershell Core with a focus on the Linux Administrator.  This course covers how to administer numerous environments across multiple platforms including Linux, Azure, AWS, and Google Cloud from a single shell instance.

Question has a verified solution.

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

Introduction JSON is an acronym for JavaScript Object Notation.  It is a text-string data transport mechanism, capable of representing simple or complex data structures in a consistent and easy-to-read manner.  Similar in concept to XML, but more e…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
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…
Suggested Courses

715 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