Solved

Add links to pagle dynamically?

Posted on 2007-03-27
5
151 Views
Last Modified: 2010-04-09
I currently have an ultra simple html page that contains some links to some of my favourite sites. I put the links in manually via the html source.
What I would like to do is add the links from the page itself. i.e.
Have a couple of text boxes, one for the title, one for the url and a button to add it to the list.
I click the button and it is then shown in the list on that page.
What is the easiest way to do this?
How do I do it?
Thanks for any help.
0
Comment
Question by:RickJ
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 8

Accepted Solution

by:
jawahar_prasad earned 125 total points
ID: 18798936
Hi...

Step 1:
You  need to create a page with the your text boxes(for title, url and submit button)

Step 2:
In the form action, call the server side page(may be asp or php or jsp page which ever you use) which will update the database with these values

Step 3:
You must query the database and display these links in the page where you want.


PLEASE NOTE:
You cannot do this with Javascript( in the client side) as this is temporary...
If you want it to be permanent you must use server side scripting...
0
 
LVL 8

Author Comment

by:RickJ
ID: 18798978
Do I have to use a "real" database for this?
Can I just read a text file for the links?
Can you provide any code examples?
0
 
LVL 8

Expert Comment

by:jawahar_prasad
ID: 18806076
Hi..
You can very well use text file...

Which server side scripting you are using???

The complete tutorial on how to create, read files:
IN ASP:
http://www.w3schools.com/asp/asp_ref_file.asp

IN PHP:
http://www.w3schools.com/php/php_file.asp

Other tutorials:::
In asp:
http://www.brainjar.com/asp/fileops/
http://support.microsoft.com/kb/300982

in PHP:
http://www.phpnerds.com/article/reading-and-writing-files
0
 
LVL 8

Author Comment

by:RickJ
ID: 18828242
Hello jawahar_prasad,
"Which server side scripting you are using???"
None, I was hoping to be able to do this client side, obviously not possible. The pages I have are some simple html files not running under any server.
I will most likely use asp, I have most of my experience with this.
Thanks for all your help. The file handling links are a great help.

Rick.
0
 
LVL 8

Expert Comment

by:jawahar_prasad
ID: 18828906
cool. ok. thank you.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question