When trying to debug what is being submitted, I wrote this.
<form action="javascript:alert(this);"
Is it possible to alert what is
being submitted?
Here "this" denotes what?
I got object in alert box & unable to decide anything out of it. :-)
...
Hello,
I'm using custom meta data to display images as a post in wordpress. When I click the image on my main page it opens in colorbox and this is perfect.
WHAT IS HAPPENING : now, with the image loaded into the colorbox, when I click on the image it cycles through the images on my home page ( NOT what I would like ).
WHAT I WOULD L...
Is there a list online somewhere of IE8 changes that might break existing JavaScript code?
We have a few clients which we developed a few different apps for using jQuery, YUI and some pure JavaScript. All have problems after upgrading their browsers to IE8. The jQuery display we did won't show. Tabs in YUI won't work. And table.deleteRo...
I am a JavaScript newbie. I have an input text field that I wish to clear after pressing the form submit button. How would I do that?
...
Hi , iam dinamiclly setting the postion attr of the element only when the view is out of viewport of the window, in other case default value is set from the css file ,
.css( { "left": (left + 20) + "px", "top": (top+10) + "px" } );
once the dynamic position is set i want to remove the position attr alone , i can remove style attribut...
http://acko.net/dev/farbtastic
I would like to have a few INPUT and users can change color for each. However, each input is synced with some other classes (like body background color, or menu background color).
I want to be able to change color with Farbtastic Color Picker and it affects BOTH the INPUT and the CLASS / ID that synced wi...
I've seen this format used in JavaScript code, but can't find a good source for the meaning.
Edit for a follow-up:
Thanks for all the quick answers! I figured it was something like that. Now, for bonus points:
can you use
(var1 ? var2)
to do the same thing as
if (var1) {
var2
}
?
...
I hava a time string,the format is HHMM, I need to get the decimal of it, how can I do ?
e.g.
'1221'=1221
'0101'=101
'0011'=11
'0001'=1
If the string begins with "0x", the radix is 16 (hexadecimal)
If the string begins with "0", the radix is 8 (octal).
But I want to treat it as decimal no matter whether started with 0 or 00 or...
hi, also try this but for me it isnt working.
http://stackoverflow.com/questions/1310378/determining-image-file-size-dimensions-via-javascript
i upload image, insert it on page through jquery and want to create div around inserted image, but dont know image dimensions.
$("#temp_image").html('<img src="uploads/obr1.jpg" alt="" id="tmp"...
codebehind
Protected Sub btnDelete_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnDelete.Click
Dim ResourceObject As Object
Dim js As [String] = (vbCr & vbLf & " if(confirm('Esta Seguro de eliminar de la lista')==true)" & vbCr & vbLf & " document.getElementById('" & txtRespuesta.ClientID & "').va...
I have some javascrtipt eg:
<script type="text/javascript">
flashvars.myval = "blah"; //get this from c# ..etc
</script>
i need to assign the variable from c#
how can i do that?
can i call a c# method?
im using regular asp.net.
the javascript is on the aspx page.
...
I need to change cursor type when the mouse gets over a selected text.
Here you can find an explanatory image :
In this example the user has to drag some text to the textarea. Since the traditional pointer is not intuitive I would like to use the "move" pointer (cursor:pointer). I made this image with photoshop. Does anyone know how...
Protected Sub btnDelete_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnDelete.Click
Dim ResourceObject As Object
Dim js As [String] = (vbCr & vbLf & " if(confirm('Esta Seguro de eliminar de la lista')==true)" & vbCr & vbLf & " document.getElementById('" & txtRespuesta.ClientID & "').value='true';"...
HTML/Javascript - I want to load images dynamically, and the images I'm going to load can be of varying aspect ratios.
I want the images to fit into a specific area of the containing div - an area 40% of the containing div's width and 80% of its height. Since they have varying aspect ratios, of course they will not always use up this en...
The other day I wrote some AJAX for a Django app that i have been working on.
I come from Ruby on Rails, so I haven't done much in the way of raw JS.
So based on Rails' partials, I something similar to the following in a sort of pseudocode, don't sweat the details:
1) JS function using prototype's Ajax.Updater ('tablediv' being the id...
Is Dynamic Script Tag Addition is Asynchronous? Like dynamically including set of JavaScript files from a different domain..
Thanks in advance
...
I've been playing around trying to get a function that will sort a selection of li tags by their content but currently to no avail (at least no speed/accuracy);
$('.sortasc').live('click',function(){
var liArr = Array();
$('#licontainer').children('li').each(function(){
liArr.push($(this).html());
})...
Hi,
I'm trying to create function that will do this same thing for 3 different classes. The only problem is that every time when I hove over any of the divs it affect all the others instead just one.
Could anyone advice me please how can I make it work separately for each class on hover stage:
$(document).ready(function() {
$(".bbsa...
jQuery question
What happens if I bind two event handlers to same event and same element:
For example:
var elem = $("...")
elem.click(...);
elem.click(...);
Later wins or both handlers will be run?
...
I have a function that returns an integer (the current reputation score for a user on a community site). That number is often going up or down based on how their comments and submissions are voted on. I'd like to "poll" it every 30 seconds or so to see if it's changed, and if so, update the number that I'm displaying.
In another Stack...