jquery

Calling Javascript after linking to another page [closed]

I am doing an integration with a support system (Helpstream) and I am currently working on doing some in-app context sensitive help. I have put in a link that will send the user to a section of Helpstream that will allow them to ask a question. Problem is, there are buttons on the page that call Javascript that will bring up a lightbox w...

Fancybox: Get id of clicked anchor/element

I am trying to get the id of the clicked/shown element in fancybox. I have tried both "this.id" and "this.attr("id")" - but none of them works. $("a.lightbox_image").fancybox({ 'transitionIn': 'elastic', 'transitionOut': 'elastic', 'speedIn': 600, 'speedOut': 200, 'content': 'I...

Noobie Jquery Question

I've been working with Jquery fro a grand total of two hours now. Up until this point I have made this really simple FAQ page. <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript"> $(document).ready(function() { $("#void").click(function(event) { event.preventDefault(); }); $('#fa...

Can't call page method from JQuery?

I have a page called AddNews.aspx and in codebehind a web method called AddNews(Parameters).. AddNews.aspx page is inherited from a master page.. So i used contentplaceholder. I have a button..It's id is btnSave. Here is jquery code: $(function() { $("[id$='_btnSave']").click(function() { $.ajax({ type: "POST", contentType...

Fancybox - getting html from element based on id?

I have the following snippet; $("a.lightbox_image").each(function () { $(this).fancybox({ 'transitionIn': 'elastic', 'transitionOut': 'elastic', 'speedIn': 600, 'speedOut': 200, 'content': $('#lightbox_image_content_'+this.id.replace('lightbox_image_','')).html() ...

Using jQuery and Rails to display data on a Google Map

Hi, I'm having trouble getting JSON data from my Rails app to display on a Google Map using jQuery. In my controller: class PlacesController < ApplicationController respond_to :html, :xml, :json # GET /places # GET /places.xml # GET /places.json def index @places = Place.all respond_to do |format| format.html...

better jquery scroll to plugin than scrollTo?

ScrollTo isn't the smoothest animation i've seen and i also notice that it hasn't been updated for a while.. are there any new similar plugins that out perform scrollTo or is it still top of its game? ...

Calling multiple functions sequentially with jquery.

I want to loop through an object that contains functions which will execute one after another. My most ideal approach would be to have these chain somehow (ie. func2 waits for func1 and func3 waits for func2) but this needs to happen dynamically and the functions will all have different durations. I'm using jQuery so I thought that per...

Print webpages problems :: looking for good tutorial to print web pages (build by Jquery ui, jqgrid , zend)

Hi, I should print web-pages of website with jqgrid , Jquery calendar+ other Jquery ui+background images etc.. in server side its build with Zend Framework. I don't have experience and knowledge in web page printing, but i get this mission in my job. I need: Good tutorials or book (i read about background images problem) to study ...

How to select an input OR a select with jQuery

Hi, how can one select an input "or" a select element with jQuery? I have a form, and I want to get the first element of that form that is an input or a select. So, this $('#myForm').find('input:first') or $('#myForm').find('select:first'). Any idea? Thanks ...

possible for a modal window to automatically scroll to a designated point?

Hi All Can someone tell me... Would it be possible to open an external webpage in a modal window... and have that new page scroll to a certain point (e.g an anchor)? ...

How do I upload a file when I know the client's filepath?

I'm interested in the way Sonic Living detects your iTunes library XML file. It prompts the user to approve its actions, then automatically uploads the XML file based on the client OS (and assuming the default installation path of iTunes). How the heck does it do that? None of the upload libraries I've looked at have this feature. They ...

Display alternate content when Flash is not installed with jquery.swfobject

How can I display alternate HTML with the jquery.swfobject plugin for browsers without Flash? I'm unable to find any documentation or examples showing how to do this. Here is a snippet of my code: <script type="text/javascript" language="Javascript" src="jquery.1.4.2.js"></script> <script type="text/javascript" language="Javasc...

Textarea to refresh using jQuery/MySQL

OK so let's say I have a textarea on the top of my browser and a text input box on the bottom. I want to connect a MySQL database and also whatever I type in the input box to appear in the text area. Sorta like a text RPG... I know PHP, MySQL, good AJAX, and little jQuery. I just want to know how this is achieved. Thank you. ...

jquery cycle "allowPagerClickBubble: true" not quite working

Hi all, I want my page anchors to work as menu links so I used this code: $(function() { $('#slideshow').cycle({ slideExpr: 'img', fx: 'fade', speed: 2000, timeout: 4000, pager: '#nav', pagerEvent: 'mouseover', pauseOnPagerHover: true, pagerAnchorBuilder: function(idx, slide) { // return sel string for ...

odd behavior setting timeouts inside a function with global references in javascript

Here is the the function and the globals: $note_instance = Array(); $note_count = 0; function create(text){ count = $note_count++; time = 5000; $note_instance[count] = $notifications.notify("create", text); setTimeout(function(){ $note_instance[count].close() }, time); ...

Jquery Selectors not working

I use the following selector to get the value out of an input that's inside a table but it doesnt work properly? var kom =$("tr#1 .b input").attr(value); and row looks as follow <tr class="numbers" id="1"> <td class="a" align="right">1</td> <td class="a" align="left">Tue</td> <td class="b"><input class="input" type="text" ...

Javascript object properties access functions in parent constructor?

So I'm using this pretty standard jquery plugin pattern whereby you can grab an api after applying the jquery function to a specific instance. This API is essentially a javascript object with a bunch of methods and data. So I wanted to essentially create some private internal methods for the object only to manipulate data etc, which ju...

Slideshare , API feed for javascript , jquery ...

Hi everybody, Can you help me with some information, to make it faster ? Can I use API feed from slideshare with JavaScript (jquery) ? Here, http://www.slideshare.net/developers/documentation I see just "Response XML Format" don't see any Json Response. Can somebody help me with that, some helpful links, or some suggestions, how ca...

Floating DIV's alignment problem.

I have a fluid layout with DIV's of different heights and widths, and I'd like them to be aligned by lines, kind of like when you do a search on istockphoto, except aligned to the top: image here-->http://i207.photobucket.com/albums/bb121/jpbanks/Capturadepantalla2010-06-02alas1902.png I tried floating all the DIV's to the left, but th...