element

mateo ...javascript

hi what happens is that I am making an Enrollment Form, and I have a text field where I need 2 comparisons, I assess the number of ICFES snp, and if prior to 2000 has 12 digits, and after the 2000 14 ... and I've tried and nothing ... restricts me when I'm older than 14. function verificar(valor) { var letras=document.form1.snp.valu...

xslt to operate on element value before displaying?

The default behavior of the xsl on the right-hand side of http://www.w3schools.com/xsl/tryxslt.asp?xmlfile=cdcatalog&xsltfile=cdcatalog is to display a 2-column table with the title and artist of each CD in the XML on the left-hand side. (This is shown by the default output under "Your Result" at the bottom.) I want to modify the ...

How to Convert a Tcl Listbox Numerical Indice to its Element

Hello: I feel that this question has a simple answer; but, for the life of me, I could not figure it out. I am trying to convert a listbox selection to its string element so I can enter it into a database. I understand that I can use .listbox curselection to get its index; however, I need to convert it into its string. Can anyone h...

XSL: How do I assign the value of an XML element to a variable (minimal change to page below)?

See http://stackoverflow.com/questions/1468522/xslt-to-operate-on-element-value-before-displaying for the original XML and XSL. I got an answer to my question there. My other question on this same XML/XSL is: if I would like to capture the value of an element (such as the "title" element) in an XSL local variable, and then operate on it...

jquery: find element whose id has a particular pattern

I am trying to find a span element who has an id in a particular pattern. Its main use is to find certain elements rendered by an asp.net (aspx) page which is derived from a master page. ...

Lisp: Get Last Element of each list

Hi guys! help please..say i have a list ((3 4 5) (d e f) (h i j) (5 5 5 5)) ) how can i get the last element of each list in such a way that the output would look like this (5 f j 5). Thanks in advance! ...

Dragging a copy of all selected elements from a select box--possible?

I have a picklist web interface: a pair of select elements with a pair of buttons (a left-pointing arrow and a right-pointing arrow) between them. Users can move items between the two columns by, eg, selecting one of options in the left column and clicking on the right-pointing arrow. Now I have an enhancement request: someone wants to...

Jquery - Adding a function to element within Iframe?

I tried a lot of ways but non of them worked. For example that one works: $('#iframeid').ready( function() { alert('Hello'); } ); but following doesn't (alerts hello but do not focus.) $('a:link').click( function() { alert('Hello'); var iframeRef = document.getElementById("if...

How to gain access to an element on the same level in the DOM?

<div id="dad"> <img id="mum"> <input> </div> With jQuery, how could i get access to the input element, get is value or set it for example? I can't work out how to access something on the same level.. and i dont want to be using ID's, just parent/child nodes so i can use the code for loads of dad div's Thanks! ...

how to remove parent element if it exists?

So, sometimes, my output will look like this: <p><img src="someimage.jpg" /></p> <p>A new paragraph</p> Other times, it will look like this: <img src="someimage.jpg /> <p>A new paragraph</p> I'm trying to write some sort of "if" statement where, if the first p element in the markup surrounds an image tag, it will pull: $j("p:eq(1)...

jquery: Trying to make image into hyperlink

I'm nearly where I want to be, except that I can't figure out how to turn var imgt into a hyperlinked image. I've tried some things, but it keeps returning [object][Object] $j('#hp-featured-item > div[id^="post-"]').each(function() { var id=this.id.match(/post-(\d+)/); var imgt = $j("img:eq(0)"); // I tried this but ...

Only select a single element that is inside the same element | jQuery selectors

So i have a unordered list, each item in the list has a button that is suppose to toggle the post comment textarea. Unfortunately with my first attempt when u click on one Post Comment button all textareas open, then i tried to use this to make sure only one element is selected. Here is the code: <ul class="todosDisplay"> <li><span>Con...

jquery click once, then disable/enable element

i have many rows List item - delete List item - delete List item - delete like above 3 rows.. it has delete link, on click i want to disable that link, until i get response from ajax saying ok delete it or no not ok, dont delete it, user is not an owner, then i have to give the element back to clickable.. if that makes sence basica...

c# arrays item position

I'm working on a problem set at college where were using c#. I have an array of integers (apologies first off if I don't know all the problem terms) and need to find the position in array of the maximum number (along with the minimum). I have it working but it doesn't seem a very good way to do it. Can anyone suggest a better way to achi...

I want a html link and <form> element appearing in the same Line...

This is my html code: <img src="http://127.0.0.1/bookManagementProject/asset/images/mainLogo.gif"&gt;&lt;a&gt; <br> <FONT SIZE=3 FACE="Arial"><br>&nbsp&nbsp&nbsp <a href = "http://127.0.0.1/home.html" <b>Home<a> | <a href = "http://127.0.0.1/login.do" <b>Login</a> | <form method="get" action= http://flyingame.gamehost.org:8080/search....

IHTMLElement2.getBoundingClientRect() does not work correctly.

Hi all, The getBoundingClientRect() does not work accurately for all cases. It fails when say a list of links that are side by side in a row and half of them are pushed to the next line because all the links cannot be fit into the same line. Now for the first link at the 2nd line the getBoundingClientRect() does not give correct results...

How to change matched element text with XQuery?

Hi, I'm trying to piece together all the examples I've seen for finding elements and modifying them, but I haven't come up with something that works yet. I created an example below of what I have so far, which I'm running in SQL Server 2005. I'm trying to change the ItemID 4 to 999: DECLARE @x XML SELECT @x = ' <ValueCollection> <It...

Take value from PHP function [the_time('HH:MM')] and change it based on selection in dropdown box with Javascript.

Is this possible? I return the time that something was posted via PHP function from the database and adjust it based on timezone data selected in a drop down box with Javascript on the client side. For example: The PHP would return 5:00 PM GMT as the time, and if they selected EST it would subtract 5 hours from the time automagically. ...

Duplicated Zend_Form Element ID in a page with various forms

How do I tell the Zend_Form that I want an element (and it's ID-label, etc) to use another ID value instead of the element's name? I have several forms in a page. Some of them have repeated names. So as Zend_Form creates elements' IDs using names I end up with multiple elements with the same ID, which makes my (X)HTML document invalid. ...

Include Elements in XSD Complex Type Without New Element

Hi I have this complex type: <xsd:complexType name="Identifier"> <xsd:sequence> <xsd:element name="Id" type="xsd:string"/> <xsd:element name="Version" type="xsd:string"/> </xsd:sequence> </xsd:complexType> Now I want to include this in another complex type and I've been doing that like this: <xsd:complexType> <...