Hello,
my html is like this
<td>
<input type="text" class="textinput" id="file_descr_0" name="file_descr[0]" value='' />
<div id="mean" onClick="removeElement('mean');">{L_FileDescr}</div>
</td>
and to remove the div i am using this function
function removeElement(div){
var d2 = document.getElementById(div);
var d1 = d...
Greetings!
I have encountered this problem:
Depending on numbers from I want to create a bar chart. Interestingly it works very well in IE8 set on quirks mode, but fails everywhere else. I cannot really say where the error is and I hope that someone here can help me. I am using jQuery, but using getElementById() and element.style.width...
I have two div boxes: one that is large is the parent to the other that is small. With propeties offsetX and offsetY, I find out the coorinates of the mouse pointer. I only need coordinates relative to the large box, but when the mouse pointer is over the small box, coordinates are figured out relative to this small box. How do I get coo...
Hello,
Have some Javascript that I need to work via the following:
://localhost
://servername
:/www.domainnamefortheserver.com
When I run the script from http://servername with an IFRAME referencing the domain - it does not load.
Is there a way to get the Javascript security model to recognize the server name, localhost and the dom...
Hi mates,
Really got stuck on this simple regex. Need it to validate a string, that will be a mail without the "@domain.xxx".
It must accomplish the following rules:
there must be a string (only letters) starting.
there must be a string (only letters) ending.
this two strings must be separated by a dot.
the complete string mustn't co...
If you create a table and add it, the ClientID property in the code behind doesn't reflect the ID in the actual file, so document.getElementById doesn't work.
How can I add a control, and be able to access it using Javascript, with only its ID (such as 'table1')?
...
Hi, I have an input like this
<input id="guestCard" name="guestCard" onkeypress="transform(event)" type="text" value="" />
and I want to transform the key pressed on a keyboard regardless of which language settings to english character. E.g. when I press on czech keyboard + (with keycode 43) , I want to get 1 (with keycode 49).
Is the...
If I have a style defined using a class selector:
.example {
width: 50px;
}
And in JavaScript, I would like to get the value of the width property for that rule-set, without using some reference to a concrete element that uses that rule-set. I want something which would give me the output "50" or "50px" given the input of "example" an...
Hi all, I have a button , <input type="button" name="button"> when I click on it I submit a value from another input text <input type="text" name="btxt"> to a javascript that does some irrelevant action to this question,
Question: Is it possible that I trigger this javascript by pressing return on the keyboard instead of clicking on th...
How would I use ColorBox to create a 'confirm override' modal dialog that can interupt a form submission until 'yes' is clicked.
Simple Modal has a similar function, but I much prefer colorbox's implementation and documentation, otherwise I'd use the latter.
...
Hi
I'm looking for a wordpress plugin that hides to start with the when I click say an arrow image an ajax feature pops out with say a contact form inside and also another show hide feature at the bottom of the page to show and hide multiple divs.
Is there a plugin that can do all this?
My pages have to be editable for my client so i...
I have added a simple .js to my page that has some pretty mundane common-task sort of functions added to the Object and Array prototypes.
Through trial and error I've figured out that adding any function to Object.prototype, no matter it's name or what it does causes javascript errors in jQuery:
The culprit?
Object.prototype.foo = fun...
alert('test1');
var re = new RegExp("(http://(?:[A-Za-z0-9-]+\\.)?[A-Za-z0-9-]+\\.[A-Za-z0-9-]+/?)", "si");
alert('test2');
Why is this happening? How to solve this problem?
...
function reset1()
{
alert("123");
document.form1.reset();
return false();
}
i want to reseting controls of master page.. using javascript but.it doesnt word properly..
can anyone help me to get through...
Above is the function of reset which i used..for reseting.....
For analytics purposes, I need to determine if a user is a first time visitor, and output some Javascript.
Preferably I'd be able to do this from the theme editor, not having to edit the code, but if that is the best way to achieve this, that's fine.
I was thinking something with the session, but it seems like I would have to hack som...
I have read the related questions on this topic, but haven't yet found a solution to this issue. I have a simple javascript function that calls window.open when a link is clicked:
var newwindow;
function pop(url)
{
newwindow=window.open(url,'','height=500,width=532');
if (window.focus) {newwindow.focus();}
}
This works fine...
I have a page containing the following div element:
<div id="myDiv" class="myDivClass" style="">Some Value</div>
How would I retrieve the value ("Some Value") either through JQuery or through standard JS? I tried:
var mb = document.getElementById("myDiv");
But the debugger console shows "mb is null". Just wondering how to retrieve...
For the following scenario:
I have an ASP.NET FileUpload control and a Button that postbacks for uploading the selected file.
I would like to know if with javascript I can:
Start showing an image (loading image) when someone clicks on the button that excecutes the upload
Stop showing the image when the upload of the file is complete
...
Hi,
Is it possible to take the content that is under a specific <div> and email that content?
For example:
If I have something like this:
<div id="1">
<ul>
<li>a</li>
<li>b</li>
<ul>
</div>
Basically I want to just reference <div> and take the whole content and email it.
is there any way to cache the contents in the div?
Is this a...
Suppose I have a javascript function of the form:
function(){alert("blah");}
Suppose I also have an applet, which has a method called doStuff that takes the function as a parameter:
MyApplet.doStuff(function(){alert("blah");});
Now suppose that the applet passes the function to a success or failure javascript callback function depe...