I have a form field and when filling the form , i am getting the error
"Element is undefined in a Java object of type class coldfusion.filter.FormScope".
It was pointing to the following code:-
if(arguments.action eq 'addProficency')
{
//
//
CertificationArray = ArrayNew(1);
//add the Certif...
Hello! I need to select a specific item of a combobox in my page when i click in a button.
I am using php and javascript code in my page.
Actually i am calling a javascript function at the "onclick" of the button. But i still dont get the right command to do this.
example:
<select id="TEST">
<option> a</option>
<option> b</option>
<o...
I'm banging my head against a wall. I want a regex that matches: empty string, A, AB, and ABC, but not AC. I have this, which works:
/^(A|AB|ABC)?$/
But this is a simplification; in my app A, B, and C are actually long character classes, so I don't want to repeat them over and over. Maybe I'm just not looking at it the right way. I tr...
I've read that it is better to place your <script> tags at the end of the document. The argument for doing this appears to be that the browser will stall rendering the page below a script tag until it has loaded and and executed the script. If your script tag is at the top of the page, rendering is stalled for a while, which is bad.
How...
Simple question - hard to answer, by my experience:
I have element E and I'm appending to it some elements to it. All of a sudden, I find out that next element should be first child of E. What's the trick, how to do it? Method unshift doesn't work because E is an object, not array.
Long way would be to iterate trough E's children and...
How can I check if textarea is hidden using javascript?
...
anybdy knw any jquery plugin or any such thing in javascript,similar to this http://bit.ly/6ary44 ? which can b usd 2 select location/countries in maps...?
I would not prefer flash, but still, if there is any for free with some customizable options/effects, it would do.
...
I have a strictly browser based javascript & xlst application. It's normally used on a local machine, but is sometimes accessed via Apache.
The main page is content.html which get's its content changed dynamically. In one case, an href in one page opens a new window and eventually the following code gets executed which sets up an onread...
How do I execute an JavaScript function right when an ASP.NET text box control is populated and focus is still set? The onChange event will not work because I need to programmatically move focus to the next form element after the JavaScript function has executed.
Is is very similar to this question. The marked answer is correct for th...
I've got an onsubmit handler added to a form like so:
$('#content_form').bind('submit',function(e) {
source = $(e.target).attr('name');
alert(source);
return false;
});
so e.target = the form element. I'm using several submit buttons, and need to determine which one was actually clicked (in modern brow...
I have a script for a website, and one of the things ti does right at the end if attempt to disable an anti-right click protection in a website
if($("span[class=MembersNameDisplay]").exists()){
var list_row = document.getElementsByTagName('script');
if(list_row != null){
list_row[0].parentNode.removeChild(list_row[0]);
...
Do the Struts 2 expression and/or fieldexpression validators support automatically rendering client-side ECMAScript/JavaScript validation for the OGNL expression defined in the validation XML file, like what is done for the other bundled validators (requiredstring, stringlength, etc.)?
I ask, because the following ECMAScript is rendered...
What would be a regular expression which I can use to match a valid JavaScript function name...
E.g. myfunction would be valid but my<\fun\>ction would be invalid.
[a-zA-Z0-9_])?
...
This is a little more complicated than the title makes it out to be, but here are the essential business rules:
There are three select menus on the
page, each filled with the same
options and values.
There will always be three select
menus.
There will always be the same number
of options/values in each select
menu.
Selecting a question...
I have this regex. My problem is the two second lines of the code:
<%
content = ""+Request.Form("completehtml")+"";
contentmatch = content;
contentmatch = content.match(/<div class="content">[\s\S]+?#-#/ig);
htstring1 = contentmatch;
htstring2 = htstring1.replace(/#-#/ig, '');
%>
I want to match something and then after everything ...
Hi folks,
I've been working with a developer on a web-based application. I have some experience with html and css mainly, and now that the heavy lifting is done, I'm wanting to start improving the design elements of the program (I know that is NOT the ideal situation, and in a perfect world, all design elements would have been consider...
I bind two event handlers on this link:
<a href='#' id='elm'>Show Alert</a>
JavaScript:
$(function()
{
$('#elm').click(_f);
$('#elm').mouseover(_m);
});
function _f(){alert('clicked');}
function _m(){alert('mouse over');}
Is there any way to get a list of all events bound on an element, in this case on element with id="elm"?
...
Consider:
<%
content = ""+Request.Form("completehtml")+"";
contentmatch = content;
contentmatch = contentmatch.match(/(<div class="content">[\s\S]+?)(?=[##])/ig);
%>
If I get the above match and it gives me some HTML: is it possible to find text in the match and to replace it again?
contentmatch ...
Hello to all. I want to create C# program which would extract some data from site.
This site is bookmaker: bet365.com/home/ and i need to get:
name of specific market + odds (example:Soccer - Barclays Premier League - Stoke v Fulham - 2.75|3.20|2.62)
another market + odds (example: Horse Racing - Lingfield - 12:30 - 3.2|4.3|5.2|6.7...
All,
Can u please tell me whats wrong with the following code.I am trying to open a modal window here and the contents of it is a text box.
Also i get the java script error .dialog is not a function.
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script>
$(docum...