Solved

Add links to pagle dynamically?

Posted on 2007-03-27
5
152 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Find out what you should include to make the best professional email signature for your organization.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Suggested Courses

623 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