Hi Guys,
I have a form that I am able to add new rows too for serial numbers for however many need to be entered but when i submit the form and it goes into my database it only submits the first 9 rows then loops back around and continues to submit the first 9 for however many rows have been added beyond that.
Can anyone offer me assi...
Hello,
I have pcharts on my website.
I want to add some javascript function for client side facility.
If any user mouseover on graph,it shows values on tooltip.
Is it possible?
Can anybody know how can i do this?
Please help me.
...
I am developing my website using jQuery. For the Private Messaging feature, what I had right now is showing a ModalBox(dialog box). So, whenever user wanna check message, they will be displayed with a dialog box with the inbox shown. Now, inside that ModalBox, I have a "Compose" section where users can send message. My question is, when ...
I have the following scenario:
In my masterpage I have:
$(".datepicker").datepicker({
changeYear: true,
changeMonth: true,
dateFormat: "dd/mm/yy",
duration: 'fast'
});
With this, every input field that I assign the class "datepicker" to, shows the jquery UI datepicker when clicked.
Now I have a datepicker on a page t...
I know I can use different frameworks like prototype or jquery to attach a function to the window.onload, but's not what I'm looking for.
I need something like .readyState so that I can do something like this:
if(document.isReady){
var id = document.getElem ...
}
is there any other way than using what the frameworks do?
...
Hey!
I'm trying to add an onclick event to a table row through Javascript.
function addRowHandlers() {
var table = document.getElementById("tableId");
var rows = table.getElementsByTagName("tr");
for (i = 1; i < rows.length; i++) {
row = table.rows[i];
row.onclick = function(){
var c...
My application has pages with several tabs that simply switch the visible content. However, the page also has links that will add tabs to the page. In addition, the application remembers (with cookies) which tab you last viewed in case the page is refreshed (strict cache settings cause refreshes even when using the back and forward but...
I have an Ajax problem.
There is an input field and I want to submit the changed value on the onblur() event. It all works fine except that there is an irritating flicker.
I type in the new value and click away. The old value then flashes back before the value changes to the new value...
This is how I am doing it. I attach an onblur f...
I've searched a good deal, and can't seem to find a satisfactory solution. I hope someone can help.
While I am using jQuery, I am also writing many thousands of lines of Javascript. So a "pure" javascript solution is just fine.
I'm trying to determine if the control key is physically held down on a mouseup event. That's it; there ar...
When my iframe's onReady-event is fired, I draw a flot graph in it (the iframe is inside an ext component). But the graph gets drawn with the wrong spacing (labels are in the wrong place - either to far away from the axis or on the wrong row, both causing those annoying scroll bars to show up). However, the graph redraws itself correctly...
Hello,
I am trying to figure out how to programmatically add an event handler to a JavaScript object. More specifically, I am trying to add an event handler to the onunload event of a window object. I am trying it like so with out any luck:
var url = "www.somelocation.com";
var specs = "location=0,menubar=0,status=0,titlebar=0,toolbar=...
When the user inadvertently double clicks on the table rows or anchors in the example below using Firefox, the Grow effect is stopped and the page becomes unusable. Any suggestions as to how to force FF to ignore the double clicks? I tried using Prototype's Stop.event and that didn't seem to help.
<table border=1>
<tr onclick="Effect....
Hi,
I have an issue with Cross-Browser native events vs CallBack events.
I have an HTML link "Click Me" with a given href="". On dom:loaded I attach a function to this link (to do Ajax Stuff).
JavaScript code is loaded at the end of the page to follow YSlow Recommandation.
Issue:
If you load this page really quickly (pressing F5) th...
Is there any way to call a function periodically in JavaScript.
...
I have created a new YAHOO.util.KeyListener to attach to a specific element and have also created another new YAHOO.util.KeyListener to attach to the entire document. They are both associated with the "enter" key (keys:13).
In the handler function for the listener attached to the specific element, I have the following code:
...
Say I add events to an object using either addEventListener or attachEvent (depending on the browser); is it possible to later invoke those events programmatically?
The events handlers are added/removed using an object like this:
var Event = {
add: function(obj,type,fn) {
if (obj.attachEvent) {
obj.attachEvent('on'+type...
I want to disable the keyboard for an HTML SELECT tag so the user can only use a mouse to select the options.
I've tried event.cancelBubble=true on the onkeydown, onkeyup and onkeypress events with no luck.
Any ideas?
...
How can I pass args to the event handler function? This runs the function on page load which is not the desired effect. I need this routine "validateText" to run against several different textbox, dropdown combinations. Can I reuse "validateText" instead of creating one per text/dropdown combination??
//add blur event handler to the te...
So I am using the mousenter demo from mootools. I put it on my site trying to affect the links so when someone hovers over them the link fades into another color. The problem I am having is that the mootools code is only set up to handle one ID! Since I am using it for a nav, I have multiple IDs that I want to change. How can I affect a...
Hi All,
I am working on the new Palm Pre WebOS, the Apps for Palm Pre are developed in MojoSDK which is developed on top of Prototype Javascript Framework.
I am trying to access variables defined at assistant level in event handlers which are a part of the same assistant as well. When I access the assistant level variables in an event ...