Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7190987
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:38:00+00:00 2026-05-28T19:38:00+00:00

I have a website which includes this RSS JavaScript. When I click feed, it

  • 0

I have a website which includes this RSS JavaScript. When I click feed, it opens same page, but I don’t want to do that. How can I open with blank page? I have my current HTML and JavaScript below.

HTML CODE

<tr>
    <td style="background-color: #808285" class="style23" >

        <script type="text/javascript">
            $(document).ready(function () {
                $('#ticker1').rssfeed('http://www.demircelik.com.tr/map.asp').ajaxStop(function () {
                    $('#ticker1 div.rssBody').vTicker({ showItems: 3 });
                });
            });
        </script>     

        <div  id="ticker1" >                                                         
            <br />
        </div>                                                                                     
   </td>
</tr>

JAVASCRIPT CODE

(function ($) {
    var current = null;
    $.fn.rssfeed = function (url, options) {
        // Set pluign defaults
        var defaults = {
            limit: 10,
            header: true,
            titletag: 'h4',
            date: true,
            content: true,
            snippet: true,
            showerror: true,
            errormsg: '',
            key: null
        };
        var options = $.extend(defaults, options);
        // Functions
        return this.each(function (i, e) {
            var $e = $(e);
            // Add feed class to user div
            if (!$e.hasClass('rssFeed')) $e.addClass('rssFeed');
            // Check for valid url
            if (url == null) return false;
            // Create Google Feed API address
            var api = "http://ajax.googleapis.com/ajax/services/feed/load?v=1.0&callback=?&q=" + url;
            if (options.limit != null) api += "&num=" + options.limit;
            if (options.key != null) api += "&key=" + options.key;
            // Send request
            $.getJSON(api, function (data) {
                // Check for error
                if (data.responseStatus == 200) {
                    // Process the feeds
                    _callback(e, data.responseData.feed, options);
                }
                else {
                    // Handle error if required
                    if (options.showerror) if (options.errormsg != '') {
                        var msg = options.errormsg;
                    }
                    else {
                        var msg = data.responseDetails;
                    };
                    $(e).html('<div class="rssError"><p>' + msg + '</p></div>');
                };
            });
        });
    };
    // Callback function to create HTML result
    var _callback = function (e, feeds, options) {
            if (!feeds) {
                return false;
            }
            var html = '';
            var row = 'odd';
            // Add header if required
            if (options.header) html += '<div class="rssHeader">' + '<a href="' + feeds.link + '"  title="' + feeds.description + '">' + feeds.title + '</a>' + '</div>';
            // Add body
            html += '<div class="rssBody">' + '<ul>';
            // Add feeds
            for (var i = 0; i < feeds.entries.length; i++) {
                // Get individual feed
                var entry = feeds.entries[i];
                // Format published date
                var entryDate = new Date(entry.publishedDate);
                var pubDate = entryDate.toLocaleDateString() + ' ' + entryDate.toLocaleTimeString();
                // Add feed row
                html += '<li class="rssRow ' + row + '">' + '<' + options.titletag + '><a href="' + entry.link + '" title="View this feed at ' + feeds.title + '">' + entry.title + '</a></' + options.titletag + '>'
                if (options.date) html += '<div>' + pubDate + '</div>'
                if (options.content) {
                    // Use feed snippet if available and optioned
                    if (options.snippet && entry.contentSnippet != '') {
                        var content = entry.contentSnippet;
                    }
                    else {
                        var content = entry.content;
                    }
                    html += '<p>' + content + '</p>'
                }
                html += '</li>';
                // Alternate row classes
                if (row == 'odd') {
                    row = 'even';
                }
                else {
                    row = 'odd';
                }
            }
            html += '</ul>' + '</div>'
            $(e).html(html);
        };
})(jQuery);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T19:38:02+00:00Added an answer on May 28, 2026 at 7:38 pm

    try change this:

     html += '<li class="rssRow '+row+'">' + 
                    '<'+ options.titletag +'><a href="'+ entry.link +'" title="View this feed at '+ feeds.title +'">'+ entry.title +'</a></'+ options.titletag +'>'
    

    to

    html += '<li class="rssRow '+row+'">' + 
                    '<'+ options.titletag +'><a href="'+ entry.link +'" title="View this feed at '+ feeds.title +'" target="_blank">'+ entry.title +'</a></'+ options.titletag +'>'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a website which uses PHP and HTML pages, I want to create
I have a website which fetches information from RSS feeds periodically (well, currently manually,
I have a marketplace website which includes listings of student housing. I would like
I have some website which requires a logon and shows sensitive information. The person
I have a website which uses the custom 404 error handling in PHP/Apache to
I have a website which uses TinyMCE textboxes for editing. It works fine except
I have a website which sells a product to the user (downloadable). I am
I have a website which allows secure (ssl) file uploads and download. The site
I have a website which works with PHP on the server side. Users access
I have a website which uses Spring Security. I have realized that when I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.