Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Error while using gFeedFetcher.js

  1. #11
    Join Date
    Apr 2014
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Would you be able to help me out with constructing a regular expression, so that I can capture and replace every ERROR message with a single rule?

    All of them which are thrown start with the message "ERROR: .........."

    So far I have the following but it doesn't seem to be working:


    newsfeed.addregexp(/^ERROR.*$/, 'Loading...', 'titlefield')

  2. #12
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    That would do it unless there's preceding whitespace and/or formatting (preceding and/or trailing) from HTML, either of which which there might be. Try:

    Code:
    newsfeed.addregexp(/\s*ERROR: [^<]*/, 'Loading...', 'titlefield')
    Last edited by jscheuer1; 04-24-2014 at 12:54 PM. Reason: tested
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #13
    Join Date
    Apr 2014
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Thanks I'll give it a go

  4. #14
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I was playing around with this over the weekend and discovered a better RegEx - one that's less prone to false positives. I also was playing around with the idea of being able to add transitions. A byproduct of that was I noticed that with the custom ERROR message, sometimes the ticker area was blank, and that the added code allowed for a way to prevent that from happening. So, using the updated code:

    gajaxticker.js

    I changed:

    Code:
    newsfeed.addregexp(/\s*ERROR: [^<]*/, 'Loading...', 'titlefield')
    to:

    Code:
          newsfeed.onitemload = function(item){if(!item){this.feedcontainer.innerHTML = '<a href="" class="titlefield">Loading...</a>';}};
          newsfeed.addregexp(/^\s*ERROR: .*$/, 'Loading...', 'titlefield')
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #15
    Join Date
    Apr 2014
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Sorry for the very late reply, I was just preparing to launch the site live and was still having a couple of issues with the replacing of some of the error messages, and checked back in on the thread.
    The new code you have posted is working like a charm and the 'Loading...' message is now static which is a much better visual, thanks again

  6. #16
    Join Date
    Jul 2015
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default feed43 ERROR: Timed out waiting for data to be extracted.

    I dont know if its the right place to ask... But i could not find another discussions dealing with this topic.

    I use feed43 and then proxy it through feedburner to push feeds into my Flym news reader (android). Even after being a paid customer there's very limited support from the feed43 website itself.

    Now a days i get this "ERROR: Timed out waiting for data to be extracted. If the problem persists, try simplifying your search patterns." When I check the feed in the browser there's no problem; all feeds show fine and theres no error feeds. It happens only in phones which are connected to internet through the day. Theres no ERROR feeds in phones that fetches once in a while, say twice a day.

    Wheres the problem? Is it with feed43? Is there a way i can get rid of this annoying error feeds. Any help in this regard is greatly appreciated.

Similar Threads

  1. gfeedfetcher substring, need help
    By hofleverancier in forum Dynamic Drive scripts help
    Replies: 4
    Last Post: 08-18-2013, 10:09 AM
  2. I need gfeedfetcher help
    By pappa74 in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 02-06-2013, 08:49 PM
  3. gfeedfetcher issue
    By gendos in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 07-17-2012, 03:53 PM
  4. gfeedfetcher problem
    By takethecake in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 05-19-2012, 02:35 AM
  5. gfeedfetcher description
    By danskkr in forum Dynamic Drive scripts help
    Replies: 7
    Last Post: 05-16-2011, 08:59 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •