PDA

View Full Version : Questions regarding gfeedfetcher



Greggor
02-21-2011, 02:09 AM
1) Script Title: gAjax RSS Feeds Displayer

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex18/gajaxrssdisplayer.htm

3) Describe problem:

Some questions:

- Is it possible to have a link to the title of the feed in addition to the label link?

- Can I limit the number of characters that return from the label entry?

- Is there a way to put the code of gfeedfetcher.js inside the html page?
In blogger, for example, there is no way to upload an external .js file.

- When sorting entries is there a way to make them appear numbered?


Thank you for the attention.

Greggor
02-23-2011, 02:59 PM
1) Script Title: gAjax RSS Feeds Displayer

- Is there a way to put the code of gfeedfetcher.js inside the html page?
In blogger, for example, there is no way to upload an external .js file.



No need to help me with this one, I hosted the file on google sites.

djr33
02-23-2011, 04:14 PM
As a basic answer to that question (though you have already solved it), you should always be able to replace an external script tag like:
<script type="text/javascript" src="...myjs.js"></script>
With:

<script type="text/javascript">
//Cut and Paste everything from the external file here!
</script>
(This should usually go in the <head> section of the page, but if your current external JS reference works, then replacing it like this should also work reliably.)

Note: if your .js file and HTML page are located in different directories, you may need to adjust references to external files like images.

Also, the reason for not doing this more often is that it means every time you load the page you send all that extra data instead of just caching the external .js file. If you can store it externally, that's best. But of course you can add it if you don't have external storage available.

Greggor
02-24-2011, 01:23 AM
Cool, thanks for the explanation.