I'm creating a horizontal site (it could also be any other auto-scrolling site, like diagonal) which uses the $.Localscroll child from the Jquery.ScrollTo plugin.
There's one big problem with this plugin; it calculates movement based on a duration. This means the transition from page 1 to 2 takes up 2 seconds, but a transition from pag...
I have this recursion loop where inside the function I have atleast 2 ajax get/post, and the recursion happens after the first ajax get. my function structure is like this,
function Loop() {
$.get(url, data, function(result) {
for loop to render the result {
// render the result here
}
for loop to...
I want to design an editor, but don't want to use tiny mces's tool bar. What I need is, user can apply styles to the selected element or its selected content using my own interface, so that I can handle the styles using jquery. But, none of tiny mce's toolbar will be used. Can I handle styles in such a way ? Will it be stable and cross b...
I have a jQuery code that works when I insert it inside a script tag within the body. But it doesn't work when I insert it in the head tag or include it as a js file.
...
If I have a list and a link, like this:
<a href="">Select</a>
<ul>
<li>f</li>
<li>fd</li>
<li>fa</li>
<li>fd</li>
</ul>
<script> $("ul").selectable(); </script>
Is it possible to make an item be selected on any arbitrary event? Something like:
$('a').bind('click', function()
{
$('.ul-selectable').children().fi...
i have a custom module, in which i am submitting the form using drupal submit. ie using mymodule_submit() function. i want to ajaxify this submit using jquery. what all are the prerequisites for ajaxifying in drupal ? how to return the values and all?
somebody please help . thanks in advance
...
Hi,
some JQuery scripts in web page runs twice. What is all about ? Maybe somebody faced such problem ?
For example(code that gets total items number from DB and runs in $(document).ready(function(){}); ):
$.post("/index/getitemscount/", {} ,function(data){
$('#items_count_div').html(data);
}, 'text');
As I see in FireB...
I'm using the following script to post to and endpoint, it's hitting the breakpoint on the server so I know the routing is correct.
$(document).ready(function () {
var o = new Object();
o.message = 'Hi from the page';
$.ajax({
type: 'POST',
contentType: 'application/jso...
i want to do multiple edit of rows in table using jquery and php
...
Basically it breaks down like this:
A master template page is loaded when one visits the application.
Links are handled by an onclick handler, which reload relevant portions of the master via a jQuery ajax call, trigger other events, etc.
After the initial onclick handler completes, it then calls two or more ajax callbacks which update...
I basically have a ul list where each li element is a radio group.
I have one other function called showScores which looks like this :
function showScores()
{
//Do heavy processing here
}
I am using flot plugin for graphs & Paint function actually calls $.plot only ( from flot.js)
So basically everytime a user changes any radio ...
Hello,
I want to install sfJQueryReloadedPlugin in my project. I have read on the official site that is the plugin will replace sfJQueryPlugin (which doesn't work with the most recent versions of symfony).
But I have an error : it tells me this plugin isn't support by symfony 1.4 and it's a plugin to symfony 1.0.
So I want to know if ...
Hi, I'm using JQuery UI's autocomplete widget and would like to have access to the current selector which I'm attaching the autocomplete to. I have found a way to access the selector, using a previous question here, but the source function is called with incorrectly.
My current code looks like this
$("input[id$=artist]").each(function(...
Hi there
Is it safe to include a jQuery script by using the asp.net method ClientScriptManager.RegisterStartupScript ?
http://msdn.microsoft.com/en-us/library/z9h4dk8y.aspx
As example within a Page:
this.ClientScript.RegisterStartupScript(typeof(string), "script1", "$('#test').hide();", true);
Could this cause any issues?
Thanks
...
Hi!
I got a kind of admin-panel where I want to be able to change customers order status live without refreshing or changing page. I have figured out that I need to use Javascript, AJAX or jQuery for this but since I have no experience for that and have no time to learn all that I'm asking you for help to achive this.
My code:
<form>
...
I don't know if it is possible only with PHP but thought will ask here...
I do have a PHP code which updates data every 15 days. my problem is when it updates the entire process taking more than 5 seconds so user must wait until the updates done.
what I am looking is I want to do an background update while user is viewing the content. ...
Welcome,
I have textarea and i have small function what allow me to submit message on enter keypress.
$(function(){
$('input').keydown(function(e){
if (e.keyCode == 13) {
$(".sender").click();
return false;
}
});
});
That's work fine, i mean great :)
Next, i want disallow sending empty ...
I have jQuery code like this workig fine in FF, but totally fails in IE8:
$('#tekst img').each(function(){
var scrValue = $(this).attr('src').substring(0,4);
var imgTyp = $(this).attr('class').substring(1);
if(scrValue == 'tbid')
{
var...
Hi,
I have the following code
img.after('<li></li>');
Which works correctly and add the "li" element. Now I want to select the "li" element; it doesn't have any class or ID, but I want to select it just after creating it, so I'm able to use it (for example mynewli.addClass()) as a jquery element.
How can I do that?
...
i have a menubar and tabs the code like below:
<div id="menu">
<ul>
<li><a href="#"><span>Inspection</span></a></li>
<ul>
<li><a href="#"><span>show tabs1</span></a></li>
<li><a href="#"><span>show tabs2</span></a></li>
</ul>
</ul>
</div>
...