Jim Lawrence
accessd at shaw.ca
Sun Sep 26 16:47:19 CDT 2010
Hi Kathryn: JQuery is a series of imbedded functions...look up "how to use and create JQuery functions" lots of tutorials out there...and you should learn all this stuff. ;-) I am not sure there is not enough code there to automate the process of adding and updating twitts on the fly. But, within code all it would take is to have the contents of line 194 (the page body html code) replaced. (If you are using an editor to view the code make sure 'wrap' is turned on.) The page Body is just being used as a data storage area and the code just cycles through the contents and displays it on the marquee. (I would have probably used JSON (A small JavaScript database) for that purpose as now how are you going to be able to be able to display the rest of page? Obviously, this code was taken from some operational location. If I could take a look at that then it might be easier to figure out and to add the appropriate pieces. Any very rough example of replacing the Body contents via AJAX code would be; Given: (note: this is just air code off the top...) ... <body> content </body> <script> var success_callback = function(data) { $('body').load( url,[data],[callback] ); //Get and replace with "data" } ajax(url, params, success_callback); </script> ... Or check out this example: http://api.jquery.com/replaceWith/ HTH Jim -----Original Message----- From: dba-tech-bounces at databaseadvisors.com [mailto:dba-tech-bounces at databaseadvisors.com] On Behalf Of Kathryn Bassett Sent: Sunday, September 26, 2010 1:53 PM To: 'Discussion of Hardware and Software issues' Subject: Re: [dba-Tech] .js help? > I will make the assumption that it is as you say you are not a > JavaScript expert... > > This piece of code is not that simple if you need to do some major > changes on it. I know absolutely nothing about js or jquery. All I've done is search for the colors and replace them. What I'm trying to ask is, is there something in the .js that I'm using that does an on-the-fly update to the Tweets that are embedded there - I previously said: "When I look at the .js that I copied from Twitcker, all 9 Tweets are included there. Logic says that even when my friend adds more Tweets, they won't be included because they are being pulled from the .js instead of Twitter - which makes the whole thing moot." If there is something there that does this on-the-fly, then the only thing to solve is why adding http://hivhope.net/ticker/HIVHope.js?count=6 didn't change the number of Tweets showing. What you sent looks even more complicated than the Twicker code, and *also* has the Tweets embedded, so still has the on-the-fly question remaining. Kathryn _______________________________________________ dba-Tech mailing list dba-Tech at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-tech Website: http://www.databaseadvisors.com