Hi
This is pretty hard to explain but i'll give it a shot.
Working with Safari to create an extension as is now possible with Safari 5 - how would I go about getting the URL of the current page with using JavaScript and the Safari API?
I would also like to be able to get a hyperlink that is selected. For instance in Safari when you r...
Hey there,
I've programmed a tingy snippet that should be able to tick a checkbox if someone types into a specific textfield.
The problem is that I have a bunch of checkboxes having the same name but not the same id's. They are all different.
<input type="checkbox" value="11" id="checkbox_09" name="CHAP2_PART4_1[]">
<input type="check...
What is the best solution to play an audio file on mouse over via JavaScript? And stop it when the mouse leaves the link. jQuery is available.
<a href="/test.mp3" class="play">play</a>
...
Given is a form that is followed by a confirmation page where you have to confirm you entered data of previous form. Now if the user refreshes this recapitulation page, the data form the previous form reposts. Is there a way to prevent that in JavaScript?
I know its not a ideal solution, it should happen on the server side. But i have n...
my code(prototype 1.6.1)
Event.observe(window, 'load', function() {
new Ajax.Request('/modal/order_same/', {
parameters: {},
onComplete: function(){alert('err0');},
onSuccess:function(){alert('err1');},
onCreate:function(){alert('err2');},
onFail...
I would like to show Confirm alert on button click, but confirm message I would like to show from a global resource file? How do I do this?
Something like this.
OnClientClick="return confirm('<%$ Resources:MfnWeb, ConfirmCloseAccount%>')"
...
i don't sure why but tinymce delete all
<style>
...
</style>
info in the textarea
what can i do?
10x
...
I would like to add an event listener/handler to be prepended before an existing event handler in Prototype. Here is the example:
<form ... onsubmit="alert('foo')" id="f1">
$('f1').observe("submit", function() {
alert('do this before foo');
});
</form>
...
i want to run xsl file using javascript function. I wrote a javascrpt function which is working well with Firefox and Crom but it is not working on Internet Explorer
function loadXMLDoc(dname)
{
if (window.XMLHttpRequest)
{
xhttp=new XMLHttpRequest();
}
else
{
...
After a page loads, I'm trying to get a list of all JavaScript methods that exist on that page.
I know how to invoke Javascript from C# and C# from Javascript, the problem is that I can't seem to find a way to get the original list of Javascript methods to execute.
I need the solution to be available in C# (via WatiN or WebBrowser Cont...
Hi,
I will be developing an application for a club where they will have visitors use biometric systems(finger print) or magnetic cards to mark their attendance.
This application is planned as a web app, made using PHP/MySQL/Javascript. It does a lot of other things as well.
What I wanted to find out is how is the interface between Bi...
Based on a click event on the page, via ajax I fetch a block of html and script, I am able to take the script element and append it to the head element, however WebKit based browsers are not treating it as script (ie. I cannot invoke a function declared in the appended script).
Using the Chrome Developer Tools I can see that my script...
Hi all,
I am doing some self learning about Patern Matching in Javascript.
I got a simple input text field in a HTML web page,
and I have done some Javascript to capture the string and check if there
are any strange characters other than numbers and characters in the string.
But I am not sure if it is correct.
Only numbers, characters o...
Hi, I have many controls in table and I want to disable all the controls using JavaScript upon clicking of some checkbox.
I have google and found that we can't disable table instead all controls through loop.
Please suggest me, what is better idea
Thanks
...
I have a Firefox component for PDF signing that I invoke via Javascript. The problem is that this component outputs the signed PDF as a file on the user's filesystem - there is no way to get a byte[], stream or similar.
I need to post this signed PDF file back to the server. Is it possible to do this in plain Javascript, without additio...
Hi,
I've read that you can disable (make physically unclickable) a html button simply but appending 'disable' to its tag, but not as an attribute, as follows:
<input type="button" name=myButton value="disable" disabled>
Since this setting is not an attribute, how can I add this in dynamically via JavaScript to disable a button that w...
i like to split a string depending on "," character using JavaScript
example
var mystring="1=name1,2=name2,3=name3";
need output like this
1=name1
2=name2
3=name3
...
I'm using a web service with an ASP page. I'd like to keep most of what is going on here happening on the service, but I need to call one function from the codebehind. How do I do this and keep it asynch.?
How do you register a callback to codebehind that is called when the service call completes?
Thanks!!
EDIT:
EXTRA INFO: I call an ...
I've got a site with a login-mechanism which generates a cookie when the user is logged in. When the user clicks on the logout button, the cookie gets deleted like this:
function logout(){
document.cookie = 'SESSION=;path=/;expires=Thu, 01-Jan-70 00:00:01 GMT';
location.reload(true);
}
This works on my testsystem in any browser I'...
I'm creating a jQuery plugin. So far it's working fine, but I'm having doubt about the way I'm doing things:
jQuery.fn.myMethod = function() {
return this.each(function(){
MyScope.doSomething(jQuery(this).attr("id"));
});
};
var MyScope = {
// The functions contained in MyScope are extremely linked to the logic
// of this...