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 8203827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T07:41:39+00:00 2026-06-07T07:41:39+00:00

This is going to be a bit more vague than usual as I am

  • 0

This is going to be a bit more vague than usual as I am looking for direction and don’t really have any code to share, yet.

On my business webpage there is a jquery plugin welcome message (growl style) that is populated by the text I have typed into the JS file. In my hopes to make changing this text easier for my employees I was hoping I could somehow get my most recent tweet into a variable that I could then display automatically… this way there is no changing of code needed.

My hope was to somehow take a string like, “This is a title:this is the message” and be able to separate them into 2 different variable by means of the colon as a seperator. Then I could display these variable using their var name.

This would be an example of the final product, minus the twitter parsing:

jQuery(function($) {
            $("#stdWelcome").ready(function(){
                growlwelcomeid = ("gs"+$.Growl._statsCount);
                $.Growl.show(TwitterMessage, {
                  'title'  : TwitterTitle,
                  'icon'   : "star",
                  'timeout': "10000",
                  'speed': "900"
                });
              });
        }); 

Any help would be greatly appreciated!

UPDATE:

So how would something like this look:

var Wusername = "username"; 
var Wurl = 'http://api.twitter.com/1/statuses/user_timeline/'+Wusername+'.json?callback=?'; 

$.getJSON(Wurl, function(tweet){ 
    $Wtitle = tweet[0].text.split('|');
}); 

jQuery(function($) {
            $("#stdWelcome").ready(function(){
                growlwelcomeid = ("gs"+$.Growl._statsCount);
                $.Growl.show(Wtitle[1], {
                  'title'  : Wtitle[0],
                  'icon'   : "star",
                  'timeout': "10000",
                  'speed': "900"
                });
              });
        }); 

Thanks again!

  • 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-06-07T07:41:43+00:00Added an answer on June 7, 2026 at 7:41 am

    If you had the title and message as seperate tweets you could do the following

    var username = "twitter username";
    var url = 'http://api.twitter.com/1/statuses/user_timeline/'+username+'.json?callback=?';
    
    $.getJSON(url, function(tweet){
        $title = tweet[0].text;
        $message = tweet[1].text;
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

apologies if this a bit vague but I don't have the overview to be
This is going to be a bit difficult to explain. I'm usually fine with
Trying to learn a bit about PDO and is going through this tutorial .
hi i am a bit stuck with this. what i am going to work
This is going to be a stupid question but I have spent an inordinate
What I am going to describe is a bit of legacy code. So there
I have a code pattern which translates one integer to another. Just like this:
This is going to sound too silly / too basic - sorry about that,
This is going to be a long post and just for fun, so if
This is going to be a quick discussion, but I just wanted some feedback

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.