Wrox Programmer Forums
|
BOOK: Beginning JavaScript and CSS Development with jQuery
This is the forum to discuss the Wrox book Beginning JavaScript and CSS Development with jQuery by Richard York; ISBN: 9780470227794
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning JavaScript and CSS Development with jQuery section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 13th, 2011, 01:45 PM
Registered User
 
Join Date: Jul 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 7, Figure 5

Richard,

Great book! I enjoyed reading it and learning from it!

I've been playing around with Chapter 7-5 and have encountered an issue: the drop-down click functionality works perfectly in Mozilla, but not in Chrome.

As I found it in the book and from your site, here is the JQuery for the function:

Code:
function() {
    $('img.hFinderTreeHasChildren').click(
      function() {
        if (!$(this).next().children('ul').length) {
          $(this).next().load(
            'AJAX%20Request%20Documents/' +
              $(this).prev().attr('id').split('-').pop() + '.html',
            function() {
              $(this).show();
              $(this).prev().attr(
                'src',
                '../../../Images/Finder/Down.png'
              );
            }
          );
        } else {
          $(this).next().toggle();

          $(this).attr(
            'src',
            '../../../Images/Finder/' +
              ($(this).attr('src').indexOf('Down') != -1? 'Right' : 'Down') + '.png'
          );
        }
      }
    );
$(this).prev().attr('id').split('-').pop() is collecting the correct ajax file in Chrome and appending it properly, but the data isn't out-putting.

Has their been any updates or something that Ive missed since this was created?
 
Old July 14th, 2011, 03:29 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

http://stackoverflow.com/questions/4...allow-for-file

This gives details of how to change chrome to allow this type of file to file interaction.
__________________
/- Sam Judson : Wrox Technical Editor -/

Think before you post: What have you tried?
 
Old July 14th, 2011, 03:34 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

Note in this link http://stackoverflow.com/questions/2...iles-in-chrome it also mentions to make sure all Chrome windows have been closed else the command line flag is ignored.
__________________
/- Sam Judson : Wrox Technical Editor -/

Think before you post: What have you tried?
 
Old July 15th, 2011, 02:17 AM
Registered User
 
Join Date: Jul 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by samjudson View Post
http://stackoverflow.com/questions/4...allow-for-file

This gives details of how to change chrome to allow this type of file to file interaction.
Yes. This wouldn't render locally. I just FTP'd it to save time and it worked. Cheers.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 4: Can't get Figure 4-7 ykc BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 3 March 10th, 2010 03:50 AM
_MACOSX? and chapter 1 Figure 1-1 DS_store blackhorse66 BOOK: Beginning JavaScript and CSS Development with jQuery 2 August 7th, 2009 05:31 PM
FYI: Chapter 8, Figure 8-5, page 240 peace95 BOOK: Beginning Oracle Application Express ISBN: 9780470388372 0 June 24th, 2009 02:29 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.