jquery

jQuery POST. Can't get Request parameters using custom httphandler

I have a jQuery post method with JSON data included. In my httphandler, in the processRequest method, Request["Operation"] is null and none of my data is posted. I am in a SharePoint 2010 environment. public void ProcessRequest(HttpContext context) { try { string operation = context.Request["Operation"]...

append Selectbox value to textbox on body load

Hello, I am working on dynamic page. Using {$pagetitle} smarty tag I get selectbox something like this. <select name="page"> <option value="page1" title="Page1">Page1</option> <option value="page2" title="Page2" selected>Page2</option> <option value="page3" title="page3">Page3</option> <option value="page4" title="Page4">Page4</option...

JQuery Cycle Plugin and CSS Sprite - no hover registered with Opera

Using JQuery Cycle plugin to create a rotating background. Also using Blueprint for CSS The images are within an absolutely positioned DIV z-index:1. Another absolutely positioned DIV is placed right on top of this one with z-index:999. Within the top DIV is a CSS Sprite Menu. The sprite menu works with every browser I've tested, FF3...

jQuery - Several select menu options make a field show/hide

Hello, I tried looking for posts like this one but although many are similar, none address my problem properly. Here's my situation: I have two select menus, Country and State, one of top of the other. Their default values are "-Select-". If the user selects another country different than United States or Canada, the State select men...

Insert a script into the DOM that calls AJAX

We have a tool that allows people to add code to a dynamic page. A bit of code (a widget) needs to be injected into the DOM, not hard coded into the html. I use jquery to do it. The problem is that it ends up redirecting the page... I need to solve this. Here is an example. Create a page with the following: <script type="text/javascr...

$ is not defined error using jQuery and Google Code Repository

I'm trying to duplicate the tabs demo from the jQuery website. The sample page I'm working with is: http://yazminmedia.com/playground/jquerytabs.html I'd like to use the Google Code Repository to take advantage of the caching. I have the following code in the head of my page: <script type="text/javascript" src="http://www.google.com/js...

Why doesnt jQuery offset() work with table based layout in IE?

I am having some quirky problems with IE7+ (yes big surprise) when trying to find the position of an element in order to render a translucent div on top of that element. jQuery's offset() and position() functions work in the documented and expected ways when using DIVs or other layout markup. The problem arises when using table based l...

Are there any Jquery datepickers or calendar that can have a day as a link to a new page?

I tried modifying the Jquery ui datepicker, but it didnt work in Ie7 and chrome. but since im not a javascript expert I need to find a premade solution, something that makes certain days links. Thank you ...

Programmatically check to see if calendar has been rendered.

This should be simple, but I'm stupid so... I want to do a simple conditional statement to see if the calendar has already been rendered within a div. Something like this: if ( $('#calendar').fullCalendar() ) { alert("calendar exists!!"); } I want to do this so that I can remove, then re-init the calendar programatically. Basicall...

Drawing from an S3 through my photo model gets tangled.

I just migrated my server's photos to an S3. Everything seems to work swimmingly except one little catch. If a user chooses a photo from his existing media, the server returns a 500 error. I assume this is because it might still be either looking for it on my local, OR it doesn't draw from the photo model appropriately : a. From my loc...

How do i show Processing wheel in Jquery when we click on Search button

when i click on search button i need to show Processing Wheel in Jquery .Is there any method available to show that. ...

Nested Each Loop Causing Problem

Hello – My question is best summarize with the intended output and the real output. Any clue why it's doing this, using the following HTML and JS code? HTML Code: <h3>CATEGORY 1</h3> <p>Item 1</p> <p>Item 2</p> <h3>CATEGORY 2</h3> <p>Item 3</p> <p>Item 4</p> <h3>CATEGORY 3</h3> <p>Item 5</p> <p>Item 6</p> JavaScript / jQuery Code:...

Using jQuery to filter through an unordered list and create pagination

Hi folks, I am new at this, so please forgive me when I ask to be specific with your answers. Thanks! I'm working on a website where I have an unordered list of people with classes that define who they were (i.e. entertainer, politician etc). At the top, I have a selection of filters that you can use to narrow the results down using...

jQuery Serialscroll CSS problem

Hi there, I'm having a terrific problem with an implementation of serialscroll. I've set it so that each list item is 100% width, to get a full screen slideshow going. You can check out the full code here: http://www.reverenddan.net/so/ The CSS is fairly simple: #slideshow { width: 100%; height:100%; margin: 0; padding: 0; position:...

Dynamically loaded <script> tag not being used in WebKit browsers

It seems this is a known problem and has been asked several times before here in SO however I do not see anything specific to jQTouch so I thought I would give it a try. jQT will dynamically load pages when a link is clicked. In this page I would like to include something like <script> $.include('javascriptfile.js', function() {alert('...

jQuery animate on window scroll: moving more object in parallel problem and unwanted delay on objects with fixed css position

I want to move 4 objects of the DOM when a user scrolls the page. you can check the page i'm talking about at this address: http://www.tessuti-arredo.it/new/chi_siamo/rassegna/ as the user scrolls - i'm using $(window).scroll(function() - i check if the window.scrollTop is more than 10 pixels to move some objects. This seems to work fi...

jQuery script to replace a span, insert a block of code, which contains the original text

For all jQuery experts, looking for a clean way to remove a span, and insert with anoth block of code, which includes the original content. more specifically, What I have: <span class="error">ORIGINAL TEXT</span> Needs to replace with (error icon and formatting with jQueryUI. Unfortunately, I can't change the original text, so nee...

jQuery AJAX POST not working

I am trying to post some data from one local asp.net mvc site to another but am unable to do so. I execute the following post on site A // tried this and it didn't work //$.post("http://localhost/PlatformPortal/Buyers/Account/SignIn", //{sign:authHeader}) // Currently trying this $.ajax({ url: "...

jQuery Fancybox get id value of a

Hi all, what I'm trying to do is get the ID value of the referring a. The code for my a looks like: <a class="photoBig" id="<?php echo $photo['id'] ?>" href="<?php echo $f->buildPhotoURL($photo, 'large') ?>" title="<?php echo $photo['title'] ?>"> I'm using phpFlickr to assign the ID's plus some various other things, which works fine....

How can you tell the difference between a generated and a selected element?

Is it possible, in either the jQuery API or the DOM, to check if an element exists on the page or not? Consider these two variables: var selected = $('span#mySpan'); var created = $('<span id="mySpan">Testing</span>'); Both will return a jQuery object containing a span element. Is there any way to tell that the first exists on the pa...