JSON responses can be exploited by overriding Array constructors or if hostile values are not JavaScript string-escaped.
Let's assume both of those vectors are addressed in the normal way. Google famously traps JSON response direct sourcing by prefixing all JSON with something like:
throw 1; < don't be evil' >
And then the rest of th...
Having trouble getting my JQuery POST to be accepted by the WCF Service. Here's the POST from the javascript:
function jqueryPost() {
var url = "/LoggingTest";
$.post(url, { message: "test message" });
}
This is how I'm accepting the POST, via an Interface:
[OperationContract]
[WebInvoke(Method = "POST",
U...
I need to have a user poke at an element on a website, almost exactly like with Firebug as a developer. Does anyone know a simple way to do this in JavaScript, or a library like YUI or jQuery?
...
I'm working on a layout that switches a div between two classes, one with a height of 0px. CSS3 animations scale the div height great. The only problem is that I want it to scale to the content height, instead of a set height. Is this possible with CSS3 transitions?
Thanks all!
...
Hi Guys,
I would like to know whether this is possible with input:file
URL: http://www.kryogenix.org/code/browser/labelify/
Regards,
naveenj
...
Dear All
I am Using the Jquery To add the Values in the Table Using AddrowPlugin
I need to GetThe Dynamic Values of Row1 Row2 Row3 Etc.
My Code
enter code here
<script type="text/javascript">
$("document").ready(function(){
$(".addComment").btnAddRow({rowNumColumn:"rowNumber"});
$(".delRow").btnDelRow();
});
</scri...
Hello,
Are there any alternatives to jquery-ui slider? It doesn't do what I want it to be (allow images to be used rather then the default css, well it does but the handle goes above the images).
Thanks!
...
Hello,
Using the TinyCarousel program I created the following sample page.
http://www.dealred.com/wa/jqimage.htm
The carousel is working fine, but as I have less space on the home page, we need to reduce the height of the carousel without reducing the thumbnail sizes.
Actual thumbnail size: 175x175
Carousel image size: 140x140
Requir...
Hi, I am using the idTabs plugin for jQuery on my new site. However, when I try to select a specific tab via the url, say http://crnaz.com/a/about/#staff on page load or via tab navigation, the page anchors to the div #staff instead of page top.
Is there a way to keep the page anchored to the top on url change?
Here's the code (or you ...
I am looking to read the rel value of an anchor and append it to a div when clicking on a link that loads in a video from Youtube into my player. A quick code dump is below. When a link is clicked, the rel value should append to the video-caption div. Thanks!
<div class="video">
<a onclick="player('http://www.youtube.com/v/ylJOn4dEKo0')...
Can someone explain the difference between using a $ when defining variables in jQuery and not. Does it have any impact on performance?
var $someVar = $("a");
var someVar = $("a");
Also, what is the difference in calling variables with and without $(someVar) For example:
$(someVar).html();
someVar.html();
...
If I try to add jqote2 variable declaration into struts2 tablig, such as name attribute. For "<" and ">" character, struts2 will escape them into < and > to client browser, and make jqote2 unable to locate variable defined in struts2 tag attribute, example below:
<script type="text/html" id="priceRowTemplate">
<![CDATA[
<tr>...
Hi folks, my Ajax post data is not arriving - any clues please.
The data is a serilaized form that "alerts" correctly with all the data using this
$(document).ready(function() {
var serial = $('#frm_basket').serialize();
alert(serial);
$.ajax({
url: "basket-calc.php",
type: "post",
data: serial,
success: function(){
("#baske...
Is there a way to get JavaScript this from jQuery this?
...
I need to design an interface, where user can drag drop elements into page and design a web page. User will be restricted to add elements only to content area and elements which are added to content area also can be nested. For example, an image can be nested inside a paragraph.
I have tried using jquery and was successful up to some e...
I have a function that runs on key tab press, it works fine when i put a javascipt alert in between the code, any kind of alert,if i remove the alert it stops working : my function
//Function to set the tab feture for focus to work properly on fields with autosuggestion(location and name)
function setFocusOnTab(name) {
var focusEl...
Hi All,
Hi I'm using facebox plugin to display iframe link.
I want to change the style of my close button. I want to show it on Top can any one please help with CSS part.
I want to make facebox draggable is it possible to do soo..
Thanks
...
hi,
i got a page wich shows content depending if a cookie is set or not, some of this content repeats itself , for example some jQuery code repeats itself:
$("form#maj_email").submit(function(){
var _data= $(this).serialize()
$.ajax({
type: 'POST',
url: 'validation_profil.php?var=maj_email',
beforeSend: functio...
From my selection on the right I dynamically construct (clone) a set of rows to the left. There I also add a REMOVE button. I can't call a jQuery function from that button. Also upon clicking the REMOVE button how can I set the checkbox of the respective row on the right to its previous state (checked). There is all the code below.
Thank...
I'm seeing a strange problem in my jQuery in a Ruby on Rails application:
I'm loading content using ajax.load() into an absolute positioned div (modal). The loaded HTML contains a <form>-element with both action and methodparameters as well as a submit-button (input type=submit). I have another form present in the 'main' document (with ...