Hi everybody,
I have a problem with this fonction:
function test(value){
var id = "'" + value + "'";
$(id).remove();
}
It gets an "Id", add simple quotes and then call the remove function.
The "value" is a generated id by php. For example, I can have:
$var = "$the_id";
When the "test" function is triggered by a click, I get te fo...
I am new to Rails and I have a pretty simple problem with calling javascript functions from within a view. In Rails 2 I would do...
= javascript_tag "name(arguments)"
where the javascript function "name" was located in my application.js file. However, this does not appear to work in Rails 3? Or am I missing something? I have been sear...
i have error in CANCEL button in file uploader.The CANCEL button does't work if i tried to remove(cancel) ADD MORE FILE button.
here is the javascript code:
<script type="text/javascript">
function addFileUploadBox() {
if (!document.getElementById || !document.createElement)
return false;
/*************...
how to set iframe height to 100% with javascript
Example : http://mkb.ma/5f
...
hi
I am trying to call a web service from an ajax jquery. It is successfully entering the success method but unfortunately a 403 error is being triggered and thus won't allow me to access the data.
This is my code:
try {
$.ajax({
type: "POST",
url: urlAddress,
data: dataa,
contentType: "text/xml; charset=utf-8",
suc...
I'm currently developing a image browser in PHP and jQuery. I've managed to create a custom button plugin that opens my image browser in a new window (not a dialog box):
CKEDITOR.plugins.add('imgbrowser',
{
init: function(editor)
{
var pluginName = 'imgbrowser';
editor.ui.addButton('Imgbrowser',
{
...
i m creating td in javascript what i want is this "<td id='abc'>" how can i set the td id in javascript i use setAtteribute() not working
my code look like this
var cell4 = row.insertCell(3);
cell4.innerHTML = "Song";
var cell5 = row.insertCell(4);
cell5.setAttribute('id','example1');
i want to set id of the t...
Curvy Corners is a JavaScript library that allows IE to understand the border radius CSS property. Is there a similar JavaScript library that does this for the opacity property? ie9.js can do this, but it does not reapply itself after updating the DOM asynchronously.
...
How can I redirect users to the mirror-site that is nearest and fastest for them using Javascript and possible AJAX?
Is there a way using Javascript to make a HTTP request to each of the servers (mirror sites),
then redirect to the one which is closest and/or fastest for the end-user? I would prefer using Javascript to perform the redir...
It it working partially, but how do I get the below to work with multiple audio files:
<!DOCTYPE HTML>
<html>
<body>
<script language="javascript" src="http://code.jquery.com/jquery-1.4.2.min.js"></script>
<script type="text/javascript">
$(function(){
var birdhover = $('.birds');
...
I am using the following javascript regex email validate function but it doen't seem to work why....
function IsValidEmail(email) {
var filter = /^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
return filter.test(email);
}
function forgetpassword() {
if (document.getEle...
onmousedown and draggin the contents of Container will be selected.
How can I disable this selection behaviour.
...
Hello,
in googlemaps onmouseover, on can grab/dragg the googlemap.
e.g
http://code.google.com/intl/de/apis/maps/documentation/javascript/examples/map-simple.html
May I use the same functions in my script or how can I creating the same functionality.
Thanks
...
Hi I'm trying to implement a solution that was posed on this question:
http://stackoverflow.com/questions/946534/insert-text-into-textarea-with-jquery
But coming unstuck.
This flat function works fine when adding some dummy text into a textarea element:
function add_to() {
$('#ad_textarea').val($('#ad_textarea').val()+'test');...
Is it possible to capture a keypress of a div tag which is housing an active-x object? For example:
<body>
<div id="silverlightControlHost">
<object data="data:application/x-silverlight-2,"
type="application/x-silverlight-2"
width="100%" height="100%">
...
</object>
</div>
</body>
As you can see this for a Si...
First a little explanation of the need, so I don't get hammered for wanting to add "useless and distracting" sounds to a web-page.
I've had to add two virtual keyboard keys to my web page for the iPad, because these characters are needed for my linguistics oriented app but don't appear either on the standard iPad keyboard or on the cont...
It's easy enough to record how long a page takes to load using Events with Google Analytics and I can find plenty of examples of how to do that by searching. The problem is most of these methods record the start time as being the moment the page starts to load so in effect all it tells you is how long the page took to render in a browser...
I've got a javascript-based Scrolling Widget Thingy™. One of the things it does is create a fixed height div and gives it overflow: auto.
Alas on mobile Safari (and other mobile browsers) overflow: auto; doesn't show a scrollbar. Any content below "the fold" can only be found by accident.
Is there a way to detect this in javascript, wi...
Hi folks,
working with the mouse within Javascript I have occasionally met the following event attributes:
clientX, clientY
layerX, layerY
offsetX, offsetY
pageX, pageY
screenX, screenY
x, y
I'm wondering what their cross-browser compatibility looks like in general, as I have only found bits and pieces of info that I'm trying to pat...
Hi
On this site http://sleep.fm/coming-soon/
When user sets alarm sound and time, under "Set Alarm," their chosen time and alarm sound appears.
I want instead of for example, 2:00pm [X] (alarm set - weather) or 2:00pm [X] (alarm set - rooster) I want the image of weather or rooster to appear instead of it printing text.
This is the f...