14653Articles are a popular form of syndicated contenthttp://www.purplepages.ie/site/articles/article.asp?faq=6&fldAuto=67You need to decide upon a name and location for the file you will be offering out. This is because you will be giving the sites that add your content to theirs a simple line of JavaScript to add to their page and call your file. This will mean no effort on their part once they have added the JavaScript to their site. A little regular effort on your part will be required in that you will need to update this file weekly or at whatever other interval you have decided upon.
For example I have decided to call my file weeklyarticle.js and place it in a folder called examples that I keep in my root directory. You can call your file whatever you like but please note that your file must have a JavaScript (.js) file name extension.JavaScript > Tips and Tutorials > Content ManagementOct 12, 2006
There are just a few areas you will need to change to customize the code for your use. Number one is the message inside of the javascript event handler ("Are you sure you want to delete
row number "" name_cat ""
from the database"). Notice I used (
) for a new line and (") for quotes. You can delete them if you like. You can also delete or move around the (" name_cat ") inside the message.
The second thing you will have to modify is the link values ('yourpage.php?delete=293','293'). Change the file name to your serverside program file path and change the id row numbers ('293') to the id row number of your database rows.
With Javascript, you can save time and money by using the ("src") to include remote or local documents. For example, you may have a web site serving 20 web pages. All 20 pages display the same header and footer item like site name, logos and links. However, if you were to change the header text, you would have to apply those changes all 20 pages manualy. That's not fun. Here is a faster way (View the test page.)
You need to decide upon a name and location for the file you will be offering out. This is because you will be giving the sites that add your content to theirs a simple line of JavaScript to add to their page and call your file. This will mean no effort on their part once they have added the JavaScript to their site. A little regular effort on your part will be required in that you will need to update this file weekly or at whatever other interval you have decided upon.
For example I have decided to call my file weeklyarticle.js and place it in a folder called examples that I keep in my root directory. You can call your file whatever you like but please note that your file must have a JavaScript (.js) file name extension.
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.