HI,
i am having a Input hidden element like
in my JQuery i am setting the value for the above input type after some ajax call
like
EDIT:::
$.ajax({
type: "POST",
url: "http://localhost/FormBuilder/index.php/forms/saveForm/",
async: false,
data: "formname="+formname+"&status="+s...
ok, so I've got this code:
$(this).find('article.loading').each( function(i) {
var el = this;
setTimeout(function () {
$(el).replaceWith($('#dumpster article:first'));
}, speed);
});
I want to replace each element with another but I want a delay between each replace.
I can't figure out why this isn't working...
Hi
How can i find out if an Object is Wrapped by jQuery.
var obj = $('div');
if(obj is a jQuery wrapped object)
{
then do something
}
I am quite new in the Javascript World.
Thanks in advance.
...
Hey people
I'm trying to get all of my checkboxes to be checked when clicking a link
looks like this: <a href='javascript:;' onclick="$.overall.selectAll();">select all</a>
inputs in a loop: <input type="checkbox" name="delete[$i]" value="1" />
jquery code:
var checked_status = this.checked;
$("input[name=delete]").each(func...
i am converting over from websforms to asp.net mvc and i have a question.
i have a loop that generates links dynamicallly where picNumberLink is a variable in a loop and image is a variable image link.
i want to avoid putting javascript actions inline so in my webforms project is did the following:
hyperLink.Attributes.Add("onclick"...
How to get event of page refresh. i want to detect that user has refreshed page
...
Hello again,
I've discovered something interesting. I'm using ajax in a carousel structure to add more items to the end when needed. And it seems to work just fine.
This would be the ajax call inside a function called ItemLoad():
$.ajax({
type: "POST",
url: ajax_url,
data: args,
success: function(resp){
$('#du...
Hi,
I have some code on some of my links
<a class="nav_bu" onclick="switchType('all'); return false;" href="#">
when I click on them, I get fowarded to mydomain.com/# (404 error..).
How can I get the function activated, rather then the href link.
P.S. I have mod_rewrite running, is this screwing things up?
Here are the rules that e...
THE SITUATION
i have a series of divs setup to contain various content:
<div id="main">
<div id="about"></div>
<div id="contact"></div>
<div id="flickr"></div>
<div id="twitter"></div>
</div>
I also have a nav which fades in and out specific divs from above (using either the animate or fade functions).
THE PROBLEM...
Hi there,
I'm trying to use Myriad Pro as my primary font with Arial and such as a fall-back like so:
font: 13px "Myriad Pro", "Helvetica", "Arial", "sans-serif";
I want to change the font-size when Arial or Helvetica are selected. This is what I have in jQuery but it does not work:
$(function(){
if ($("body").css("font") == "Aria...
I have an object with key/value pairs of options I want to hide/remove from a select list.
Neither of the following option selectors work. What am I missing?
$.each(results['hide'], function(name, title) {
$("#edit-field-service-sub-cat-value option[value=title]").hide();
$("#edit-field-service-sub-cat-value option[@valu...
I'm using the jQuery plugin Validation to validate a form. I have a select list looking like this:
<select id="select">
<option value="">Choose an option</option>
<option value="option1">Option1</option>
<option value="option2">Option2</option>
<option value="option3">Option3</option>
</select>
Now, I want to make sure that the user s...
I'm getting data back from the server in XML format. The data looks like:
<items>
<item>
<field1>10</field1>
<field2>11</field2>
<field3>12</field3>
</item>
<item>
<field1>10</field1>
<field2>11</field2>
<field3>11</field3>
</item>
</items>
Is there a way to write a jQuery stateme...
In order to better balance out a page I am working on I would like to find a way to increase the top margin of a DIV depending on the screen resolution. What is my best way to set these dimensions with jQuery or Javascript?
Thanks in advance.
Brad
...
I'm using fancybox to load up some inline content on a web page.
Fancybox loads up fine as do the images, the only problem is that I would like certain jquery functions to work within the modal window which will not load up.
The jquery functions work fine when I load them outside of fancybox so was wondering if anyone knows how to call...
Hello all,
I am currently programming a carousel with javascript using the jquery library. Basically, there are three images shown, the central image being bigger than the two others. Upon going left or right, the central images is resized from 115px*115px to 50px*50px and tossed left or right, depending on the user input.
The proble...
I can drag my draggable items and drop them on my droppables and get the drop position from
ui.absolutePosition on the drop event. I need to know what position the drag started from.
I have tried getting ui.position on the drag start event but this is null. I've also tried
ui.position on the drag event but this is undefined.
Any ideas?...
Question
The solution below is intended to slide down the groupDiv displaying div1 and enough space for div2 to slide in. It's all achieved by chaining the animations on the #Link.Click() element.
It seems to bug out, though, when the link is clicked rapidly. Is there a way to prevent this? By perhaps disabling the Click function until...
Hi
I am busy developing a site where I have a login box in the top right corner. I want the user to be able to log in on the same page, without refreshing.
OK, I got that part working, but I am still struggling with post-login process, my look as follows:
(HTML)
<li class="login">
<? if (!isset($_SESSION['logged_in'])) {
include(...
Hello all,
I have built a dom object Engine that has private/public fields/methods that I have simplified below:
function Engine(args){
this.display = args.display;
this.getDisplay = function(){return this.display;}
this.alertMsg = function(msg){
console.log(this.display);
alert(msg);
}
}
What I would like to...