I've got a masterpage with some nice UI (jQuery) features. One of these options is interefering with my embedded YouTube (or other alike-) objects. On each, in this case, setInterval event the embedded video stops displaying new frames (for like a second).
More detail:
I've got a "polaroid" gallery (in the header) with only 5 100x100 im...
Hi All,
I am using the following sample to display text in the background of the textbox.
It is working fine too. http://attardi.org/labels/
Problem:
I want to increase the text box with. The box looks like it expanded but while typing the actual size is not expanded. I want to type text till 600px.
Geetha.
...
After searching around i still have no clue about the best practice to reorder a set of items in mobile safari. I'm currently using, in the desktop version of my webapplication, jQuery sortable function applied to a set of table rows, with an ajax callback to update items positioning.
What would be the best way of doing this in mobile ...
I have the following code:
$.ajax({
type: "POST",
url: '<%=Url.Action("test","pepole") %>',
data: $("#PeopleForm").submit(),
contentType: "application/json; charset=utf-8",
dataType: "html",
sucess: function() {
},
error: function(request, status, error) {
$("#NotSe...
I am about to clone a part of form which has some actions bound to click events. I want to change all occurences of word TEMPLATE in attributes to 'n_'+ID. I want to abstract from structure of cloned part - It would be one TEMPLATE or 10.
I tried to something like this but the bindings are lost:
insert = function(){
var old = $('#T...
The following javascript code gives me ">success-<", i.e. empty data. Pasting the url in my browser gives me the expected content.
$.get("http://company.tld/wiki/api.php?action=query&titles=Page%20Title&format=xml&prop=revisions&rvprop=content", function (data, status) {
alert(">" + status + "-" + data + "<");
});
...
I think this issue goes beyond typical variable scope and closure stuff, or maybe I'm an idiot. Here goes anyway...
I'm creating a bunch of objects on the fly in a jQuery plugin. The object look something like this
function WedgePath(canvas){
this.targetCanvas = canvas;
this.label;
this.logLabel = function(){ console.log(th...
Hi All,
Been scratching my head for too long on this: Using jquery.form, (http://malsup.com/jquery/form) with PHP ... my $_FILES['someimage'] gets set but the error number is always UPLOAD_ERR_NO_FILE, size is also 0.
The JavaScript:
$('form input[type=file]').change(function(){
$(this).clone().appendTo('#imgform');
$(...
ASP.NET MVC's Html.BeginForm() seems to work with jQuery validation plugin but the validation plugin doesn't seem to work with a form which i've added to a page....
This works,
<% using (Html.BeginForm("Login", "Registration", FormMethod.Post, new { id = "Loginform" })) {%>
<fieldset>
<legend>Login</legend>
...
hi guys,
i am tasked with the job of creating client-side validation on a form in an asp.net MVC 2 application, which has a modal window (the modal exists as part of the wrapping form, it is not a form unto itself). how would i go about providing validation for these text field inputs while the modal is visible, but do not validate whil...
Hi,
I have a page that is supposed to display a larger version of an image when hovered over a thumbnail.
I have a 'div' with an ID and the JQuery code is as following:
$(document).ready(function(){
$('img').hover(function() {
var src = $("#im" + this.id).attr("src");
$('#viewlarge').css('backgroundImage','url(' + src +')...
I've been looking at how some jQuery plugins work and I've seen the following acting as a closure around the whole plugin
$(function(){
// plugin code here
});
(function($){
// plugin code here
})(jQuery);
What is the difference between these two ?
...
Hi,
I have a problem. I would like to use the animate() function to slide the navigation menu present jQuery tabs.
I am using a fixed width style for the tabs container and the no. of tabs is more than what could be accommodated - hence the extra tabs overflow onto the next line.
I would like to put two arrow buttons at both ends of ...
Hello, I'm programming an agenda, and I'd like to open a form within a dialog box (with jQuery UI modal form) and then register the information in my databases but I can't find an exemple of what I wanna do.
I've gathered some codes but it doesn't work, I know there are mistakes but I can't correct them as I'm new to jQuery and all that...
My header is calling a javascript file which sends out an email:
<script type="text/javascript" src="<?php bloginfo('template_directory') ?>/css/effects.js"></script>
But inside this file, I have a jQuery code that calls a .php file that does the actual sending of the email:
$.ajax({
type: "POST",
url: "css/sendmail.php",
data:...
Hi Guys,
I have the following HTML structure
<div id="test-1-yay"></div>
... bunch of code ...
<div id="test-2-yay"></div>
... bunch of code ...
<div id="test-3-yay"></div>
I was wondering how I can use jQuery to basically identify each of these "id's" and then apply some jQuery to them ? I'm new to this so little unsure ? Something ...
I created a jquery toggle, but when I click the link to open a div it will jump to the top of the page. how can I fix this?
I know I could replace the link with something else but I need to make it clear to the users that it's a link and that they can click on it.
...
I'm using the Struts2 jQuery plugin 2.1 and render an autocompleter in my JSP. Here's the code:
<s:form id="search-form" action="search" theme="simple">
<s:url id="remoteurl" action="jsonlanguages"/>
<div>
<sj:autocompleter
cssClass="bgstandardelement empty"
id="languages"
...
Hello!
I have a stupid problem. An jQuery.ajax request return me a full HTML text as a string. I receive such response in an case of error on the server. The server give me an error description which I want to place inside of the corresponding place of my current page.
So now the question: I have a string contains full HTML document (w...
hello guys. I struggled a lot before posting here :) now, I want to replace my default javascript confirmation for deleting a file. I saw a lot of examples here, but no example with form input.
Now I have his form:
<form action="delete.php" method="post">
<input type="hidden" name="id" value="<{$pid}>" />
<input type="hidden" name="pi...