Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
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?
Reply With Quote
  #2 (permalink)  
Old July 14th, 2011, 03:29 AM
samjudson's Avatar
Friend of Wrox
Points: 8,687, Level: 40
Points: 8,687, Level: 40 Points: 8,687, Level: 40 Points: 8,687, Level: 40
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 2,133
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?
Reply With Quote
  #3 (permalink)  
Old July 14th, 2011, 03:34 AM
samjudson's Avatar
Friend of Wrox
Points: 8,687, Level: 40
Points: 8,687, Level: 40 Points: 8,687, Level: 40 Points: 8,687, Level: 40
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 2,133
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?
Reply With Quote
  #4 (permalink)  
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.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 02: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



All times are GMT -4. The time now is 04:32 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.