Hi people,
I have a problem with <a> tags.
I need to reassign an onclick event to this tag, but the href attribute must contain a link.
For example, I have some link:
<a href="http://en.wikipedia.org">Wikipedia</a>
And i need to change only the onclick event for this link so that when I click on it, some JavaScript functi...
I want to get the handle of the currently clicked link in jquery. Suppose, I have a bunch of li a elements:
HTML
<ul id="navigation" class="main_menu">
<li><a href="#panel_home">Home</a></li>
<li><a href="#panel_story">Story</a></li>
<li><a href="#panel_mantra">Mantra</a></li>
<li><a href="#panel_showcase">Showcase</a><...
I want to display a DATETIME I get from a mySQL database as a String in Javascript.
I'm using PHP to put the DATETIME into a variable: $mydatetime.
It displays fine on the PHP page, but not in my javascript function.
<?php
echo $mydatetime --> 2010-04-19 13:00:00
echo "<script language=javascript>myfunction($mydatetime);...
I'm programming a spell checker in Javascript in combination with OpenOffice dictionary, and I have a serious problem.
I can find whole words using RegEx, but if the word looks like prog<b>ram</b>ing, I can find it if I remove all html tags with the .text() method from jQuery. But how can I replace this word and rebuild the original htm...
Hi,
I am using a popup plugin to open my popup window.
Generating html table using Javascript. In that there column Employee Id having hyperlink.
I am openning popup on click of hyperlink to display the employee details.
Dynamic generated code:
<a id='" + arrElement[0].EMP_DATA[i].EMP_ID +"'
href='employee.do?requestSource=EMP_PRO...
i have two textboxs, without enter the values in first tetxbox when iam going to second textbox it showing the message in label beside textbox . is it possible in dotnet, i don't want alert message , i want show that message in label.
i have written code ,using javascript iam display the alert message in onblur event.
...
Does the Google Maps Javascript API have a property/method that returns its exact version number?
I need this info for debugging purposes.
...
Hi,
My requirement is as follows on click of a begin button a popup window opens up and begin button gets disabled. now when the user clicks the "done" button present on the child window
the "begin" button on the parent window should get enabled.
...
I'm trying to parse a delimited string using the javascript split function. I'm using a double character delimiter.
So for e.g. if the string contains employee related data with the following fields:
Emp Id (mandatory)
Name (mandatory)
Age (optional)
Mobile No (optional)
and the delimiter used is |* (i.e. pipe followed by star)
I m...
I have one large form that is separated into different sections with divs. Each section is within the same form (bigform) and I need to make sure only one section is enabled/editable at a time. And if the user changes sections after entering data into one section, all data would be cleared from the old section before disabling it. The id...
Hi all,
I have the following XUL markup:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<window width="400" height="275" title="Placeholder"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:pen="http://www.pentaho.org/2008/xul" onload="mainToolbarHand...
I am wondering how to add a javascript event handler using asp.net ajax.
I need to add event handlers after ajax update because Jquery plugin to sort tables doesn't work and the onload method to display a screen keyboard does not trigger as well.
Is there a way to do that?
Maybe I need to switch to some other ajax library or/and try A...
Hi,
I am working on a project where I am in charge of html, css and javascript. I found this maven-minify-plugin that seemed to just what I wanted.
Everything is good when I deploy using maven on the server, but when I am using Eclipse (STS, www.springsource.com/products/sts) to run the project on localhost no css nor js file is genera...
Hi,
I'm getting a parsererror when using this ajax request in Internet Explorer (7 and 8).
I'm using jquery 1.4.1
$.ajax({
url: 'data.xml',
dataType: 'xml',
contentType: 'text/xml', // also tried application/xml
success: doFunction
});
I read somewhere else that I should set the content type, but I don't know where. The cont...
Hello.
I am storing a session variable when a comment is inserted.. called user_message..
and i want to, when user_message, have been stored, THEN, show message on index.php
index.php is right now:
<div id="message">
<? echo $_SESSION["user_message"]; ?>
</div>
But you will need to refresh(f5) the site, to see the message AFTER its st...
I use commons-validator v1.2 specification-version : 1.0 whereas my spec-version for struts is : 1.1. Although everything works fine except the message display in the alert box. The alert box display case are relevant.
By instance this jsp field :
<td class="RechBlocCiel">
<input name="nom" type="text" class="inputForm" size="2" ma...
I have the need to change a variable in a child flash file. The setup is a parent flash file has called a child flash, and placed it in movieclip. I can send a variable using Javascript to the parent flash file, but not directly to the child flash file. Is there a way that I can access the child flash file directly with javascript? O...
I'm working on an ajax application that makes extensive use of jQuery. I'm not worried about whether or not the application degrades gracefully.
So far I have been using Malsup's excellent jQuery form plugin to create forms that submit ajax requests. (For example, to submit updated record information.)
However I am considering dispen...
Is there and editor for PHP (or for any other syntax-highlight - able) language, written in javascript and available to use?
...
I built a macro in Excel to pull data from a website and I'd like to recreate that macro in a Google Spreadsheet (regular or apps). The excel file uses VBA and I believe google only uses javascript.
Is there a way to get around this? I don't know javascript and wouldn't be able to use what I built in google.
...