473,320 Members | 1,910 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,320 software developers and data experts.

Finding and HTML Element

I have a message which is surrounded by a <P> and the Visibility is set to
"Hidden".
I have some Javascript which validates information which is keyed on the
screen and sets the Visibility to "visible" when an error is found.

I have the same edit on the server (MS says that I should perform the edits
in both places). I have set the "ID" attibute on the <P ID="Fred"
style="Visibility: hidden;">. So What does the command look like which find
the ID="Fred" and then changes "hidden" to "visible"?

I think I could use the "runat" server and use the ID name, but I'm still
not sure what the commands look like to change the visibility property.

I am not sure which is a more desirable approach...

Anyway, if you could shine the light on this one...I would greatlt
appreciate it...
Nov 18 '05 #1
1 1041
<P ID="Fred" style="visibility: hidden" runat="server">

Then your server code is easy:

Fred.visible = true

"Jim Heavey" <Ji*******@discussions.microsoft.com> wrote in message
news:53**********************************@microsof t.com...
I have a message which is surrounded by a <P> and the Visibility is set to
"Hidden".
I have some Javascript which validates information which is keyed on the
screen and sets the Visibility to "visible" when an error is found.

I have the same edit on the server (MS says that I should perform the
edits
in both places). I have set the "ID" attibute on the <P ID="Fred"
style="Visibility: hidden;">. So What does the command look like which
find
the ID="Fred" and then changes "hidden" to "visible"?

I think I could use the "runat" server and use the ID name, but I'm still
not sure what the commands look like to change the visibility property.

I am not sure which is a more desirable approach...

Anyway, if you could shine the light on this one...I would greatlt
appreciate it...

Nov 18 '05 #2

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

Similar topics

2
by: Pallavi | last post by:
Hello, Suppose I want to highlight a piece of text. I get the x & y co-ordinates on the screen. And using dhtml I am able to highlight the text. Then I try on another machine with different...
6
by: JonQuark | last post by:
Hi, I suspect this is a common question but I've read the FAQ and searched the archives and couldn't find it. In a script embedded in the body of the page I want to quickly find the last node...
2
by: TT (Tom Tempelaere) | last post by:
Hey there, I'm having trouble finding the right XPath expression. The XML file I'm parsing contains an element Heads which contains sereveral Head elements. These Head elements have several Row...
4
by: spivee | last post by:
I'm having an odd type of issue. I want to be able to pass an element name in my javascript event and find the location of the element, be it a div, span, img whatever, specifically the top and...
2
by: ElkGroveR | last post by:
Hi there! I'm using PHP to create a simple, dynamic MySQL SELECT query. The user chooses a selection from a HTML Form SELECT element's many options and submits the form via a POST action. ...
14
by: kelvin.jones | last post by:
Hi, if I had the ID of an input element, how can I find the input's FORM in javascript? Basically, given a input's dom id, I want to insert something in the onSubmit of the Form that that input...
12
by: e271828 | last post by:
Hi, I'm helping to work a developer tool that verifies a given HTML element has a given attribute (e.g., that all LABEL elements have a FOR attribute, all INPUT elements have an ID attribute,...
4
by: techie | last post by:
I want to find an element in a sequence or map by comparing its value (not the key). I can search for an element with a particular value in a sequence or map by iterating through the elements one...
3
by: MarkMYoung | last post by:
I'm trying to transform an ugly Lotus Notes database into a condensed XML file for loading into another product that only needs ~25% of the data. For some reason, my template matches only work for...
1
by: lejason | last post by:
Hi, I have an XML file that is a list of product models and info. The list will eventually contain about 100 products, each product having multiple elements for things like names,...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
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...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.