473,609 Members | 2,173 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

dynamic text changing

I have a table which has a drop down list in cell ; a image in another cell
and a description in the third cell

when the page is displayed it has a default picture and default text

when the drop down box is changed it goes to a function to update the image
which works

how would i do this with a text variable ?
i have defined a div or textarea for the 1st viewing of the page information

sorry if it sounds a bit think but another newbie

regards

nick
Jul 23 '05 #1
4 3627
Jc
Nick Calladine (remove all spaces) wrote:
how would i do this with a text variable ?
i have defined a div or textarea for the 1st viewing of the page information


You're likely using the onchange event for the <select> element.
However, there isn't such an event for a div (although there is for an
"input type=text" and a textarea). Another option besides using relying
on the onchange event is to have a button near the editbox/textarea
that the user clicks to manually call your function (onclick event)
when they have finished entering in the desired text.

I'm not clear on what you are trying to do, but if you are also asking
how to dynamically change the text of a div, try the innerText
property, and if you are trying to change the text of a textarea, try
the value property. Refer to the following site for documentation on
how to access HTML objects through script:
http://msdn.microsoft.com/library/de...ence_entry.asp

Jul 23 '05 #2
Jc wrote:
Nick Calladine (remove all spaces) wrote:
how would i do this with a text variable ?
i have defined a div or textarea for the 1st viewing of the page information

You're likely using the onchange event for the <select> element.
However, there isn't such an event for a div (although there is for an
"input type=text" and a textarea). Another option besides using relying
on the onchange event is to have a button near the editbox/textarea
that the user clicks to manually call your function (onclick event)
when they have finished entering in the desired text.

I'm not clear on what you are trying to do, but if you are also asking
how to dynamically change the text of a div, try the innerText
property,


Or better, use the cross-browser innerHTML instead of the IE only
innerText. Or, the nodeValue.

To research that, one only need consult this groups FAQ.

--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Jul 23 '05 #3

Sounds as if you're referring to a slideshow, easy to do, very simple,
but not sure if that's what you mean, and in which way is needed, very,
doable, and no Select or Textarea element needed either.

Danny
On Fri, 10 Jun 2005 17:17:45 -0700, Nick Calladine <n i c k c a l l a d i
n e n t lw orl d . c o m > wrote:
I have a table which has a drop down list in cell ; a image in another
cell
and a description in the third cell

when the page is displayed it has a default picture and default text

when the drop down box is changed it goes to a function to update the
image
which works

how would i do this with a text variable ?
i have defined a div or textarea for the 1st viewing of the page
information

sorry if it sounds a bit think but another newbie

regards

nick


--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Jul 23 '05 #4
Danny wrote:

<-- top-posting repaired -->

On Fri, 10 Jun 2005 17:17:45 -0700, Nick Calladine <n i c k c a l l a d
i n e n t lw orl d . c o m > wrote:
I have a table which has a drop down list in cell ; a image in
another cell
and a description in the third cell

when the page is displayed it has a default picture and default text

when the drop down box is changed it goes to a function to update the
image
which works

how would i do this with a text variable ?
i have defined a div or textarea for the 1st viewing of the page
information

sorry if it sounds a bit think but another newbie

regards

nick


Sounds as if you're referring to a slideshow, easy to do, very
simple, but not sure if that's what you mean, and in which way is
needed, very, doable, and no Select or Textarea element needed either.
Who said anything about a textarea? The OP wanted to use a text variable
instead of the value of the select element. If you had bothered to read
the post, you would have realized that.

And please read the FAQ with regards to your posting style.
Danny --
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


You need to repair your revolutionary e-mail client with regards to
usenet use.

--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Answer:It destroys the order of the conversation
Question: Why?
Answer: Top-Posting.
Question: Whats the most annoying thing on Usenet?
Jul 23 '05 #5

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

Similar topics

3
10744
by: Robert Mark Bram | last post by:
Hi All! Has anyone seen an example of the following javascript powered control: - a dropdown select menu - the width of the control is set. Assume by "control" I mean the visible part of the drop down before a mouse click occurs. - the width of the list when selected is dynamic - the width of the list can grow beyond the width of the control without changing the width of the control.
3
2707
by: JOSEPHINE ALVAREZ | last post by:
I have this code that I want to use to do a rollover. However, because the company I am doing it for is continually changing the text, I want to be able to use dynamic text to change the text on the fly, and still have the rollover work. I have taken the text off of the buttons, but cannot figure out how to do it with dynamic text using javascript and html. For example, in the columns of this row, I want to put "About...
3
1312
by: Stephen Gennard | last post by:
Hello, I having a problem dynamically invoking a static method that takes a reference to a SByte*. If I do it directly it works just fine. Anyone any ideas why? I have include a example below... --
1
3336
by: Henke | last post by:
Hello, I have one ImageButton controls which I initialize in Page_Load and declare on class level. ImageButton save = new ImageButton(); save.ImageUrl = "save.gif" save.Click += new ImageClickEventHandler(this.save_click); This ImageButton is added to a dynamic table which is also
3
13735
by: NateDawg | last post by:
I'm reposting this. I'm kinda in a bind untill i get this figured out, so if anyone has some input it would sure help me out. Ok, I’ve noticed a few gridview problems floating around the forum. Everyone wants to do a java confirmation box when a user clicks the delete button. Fair enough, basic user design rules state that you should always confirm a delete action. There is also a consensus that the best way to do this is a template...
4
4206
by: coconet | last post by:
Server is Win2K3/IIS6. I have an ASPX page with this in the <headtag: <link rel="stylesheet" type="text/css" href="<% Response.Write( "http://" + Request.ServerVariables.ToString() + this.ResolveUrl("~") + "styles/styledefault.aspx"); %>" />
1
4647
by: MaryamSh | last post by:
Hi, I am creating a Dynamic Search in my application. I create a user control and in Page_load event I create a dynamic dropdownlist and 2 dynamic button (Add,Remove) By pressing Add button ,another row will be created with the same control (I mean another dropdown and 2 button) and so on. and by pressing Remove button the selecetd row will be removed. I used viewstate to keep my value for postback, I want by changing selectedvalue of...
0
3488
by: MaryamSh | last post by:
Create Dynamic Dropdownlist Controls and related event -------------------------------------------------------------------------------- Hi, I am creating a Dynamic Search in my application. I create a user control and in Page_load event I create a dynamic dropdownlist and 2 dynamic button (Add,Remove) By pressing Add button ,another row will be created with the same control (I mean another dropdown and 2 button) and so on. and by...
1
2523
by: Andre | last post by:
Hi. There is a way, that I can create a dynamic ID in a WebControl. This doesn´t work, but, looks like what I want: <asp:Button ID="btnAdd<%="1"%>" runat="server" Text="Add Resposta" OnClick="btnAdd_Click" /> I´ve tried to set up the id at the finish of the aspx, but, when I get in the codebehind, the id is the original. Doesn´t change.
2
4442
Frinavale
by: Frinavale | last post by:
I've created a ASP.NET control that displays a "book" of schedules. It dynamically displays scheduling times and allows the user to page through the schedules. It also lets the user edit the schedule times if the user has permissions to edit schedules. When the user is not editing, or the user is not allowed to edit, the buttons that let the user edit are not displayed. If the user is allowed to edit schedules but they are not editing a link...
0
8035
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8509
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8188
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8374
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6969
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5502
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4002
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4059
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1630
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.