473,385 Members | 1,535 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

edit div content ?

hello

is there a way to edit the content of a div ? for instance to change :

<div>
foo
</div>

into

<div>
ree
</div>

thanks !
Aug 31 '05 #1
2 1665
sorry sorry sorry...
I found that :
http://fr.selfhtml.org/javascript/ob...htm#node_value

it's in french, but the code is quite simple and works as well with a div
as with a p


On Wed, 31 Aug 2005 11:33:07 +0200, toto wrote:
hello

is there a way to edit the content of a div ? for instance to change :

<div>
foo
</div>

into

<div>
ree
</div>

thanks !


Aug 31 '05 #2
toto wrote:
hello

is there a way to edit the content of a div ? for instance to change :

<div>
foo
</div>

into

<div>
ree
</div>

thanks !


Here is an untested example. No idea if it is any good, but it will
probably work.

<div id="DivExample" onmouseover="show('DivExample', 'ree');"
onmouseout="show('DivExample', '&nbsp;');" >&nbsp;</div>

<script type="text/javascript><!--
function show (eln, msg) {
if(document.getElementById) {
var el = document.getElementById(eln);
el.innerHTML = msg;
return true;
}
return false;
}
//--></script>
Aug 31 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Rootshell | last post by:
I need to create the table and I want to edit its content from www level. Here is some example: http://www.rootshell.be/~flash44 There is a table. Is there possibilty to edit the content...
2
by: Rootshell | last post by:
I need to create the table and I want to edit its content from www level. Here is some example: http://www.rootshell.be/~flash44 There is a table. Is there possibilty to edit the content...
4
by: Glenn M | last post by:
I have a shared XML file on a server . i also have one xslt file that performs a simple transform on in to view the data. now i want to have another page that lets users modify the shared xml...
12
by: dennist685 | last post by:
Can't edit, delete or add row in an Access database in a website 2003 When I implement a walkthrough using Northwind I have no trouble doing this. Also, in a windowsforms project I have no...
0
by: Brett Romero | last post by:
I can edit XML files fine on my work machine but not the home machine. They are both running WinXP Pro with VS.NET 2005 final. On the home machine, content in an XML or XSL file is highlighted. ...
2
by: Peter | last post by:
ASP.NET 2003 In the DataGrid how do I select current cell value in the dropdown box when I click on the edit link, currently when I click on the edit link in the DataGrid the dropdown box...
1
by: ollielaroo | last post by:
Hi guys, Firstly I did do a search for this one first but I couldn't find anything related in this forum. I am using Dreamweaver MX and trying to build admin pages for an ASP site. My problem is...
1
by: anush | last post by:
Hi, I want to create a ajax textbox where when I add some content and save it, it saves the content and also appends the username to the content. And when I clcik the edit button, I just get the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.