jquery

Create Link Button with JQuery

I'd like to use JQuery to create a link button, but the code I wrote below doesn't seem to work. What is missing? <head> <title>Click Url</title> <script src="http://code.jquery.com/jquery-latest.js" type="text/javascript"></script> <script type="text/javascript"> $(function() { ...

jQuery/Ajax/javascript in FireFox Error when using $.post/$.get

uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE)" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://localhost/scripts/jQuery.js :: anonymous :: line 808" data: no] Line 0 is the error i get when i bring up firebug. This only happens in firefox (and maybe other br...

jquery - Collapsing / Expanding divs?

Trying to create collapsible / expandable divs using jQuery, but it's not working for me at all... Each h3 should expand/collapse the div beneath it, and I'm not sure why this isn't working... Granted, is a heavily nested div, but I thought that the script below would find the uforms class regardless of how much other markup is on the...

Why doesn't my jquery selector work here?

Hi there, I'm creating a little dynamic tooltip function. Basically if I have a link like so: <a href="#" data="xyz">?</a> Using qTip, I attempt to lookup a tooltip table in mysql and retrieve the tip based on the data in the data attribute. So: $('a[data]').qtip({ content: { url: '/tooltip.php', data: { tipKe...

How do I run a function when I mouseout of all hover events in jQuery?

I have 4 elements that have the same class name that all react when hovered over.. Is there any way to: - Run a function when I am no longer over any of the classes? Here's what I have- HTML: <div class = "item">Hello</div> <div class = "item">Hi</div> <div class = "item">Ok</div> <div class = "item">Wahoo</div> jQuery: $('.item'...

jQuery Postback with Webforms

We're redevloping a major section of our website and rather than use a 90k AJAX file I'd rather use a 19K jquery script. I've seen the following articles; Using jQuery for AJAX with ASP.NET Webforms jQuery autocomplete in ASP.NET webforms? Autocomplete with ASP.Net MVC and JQuery The thing I don't get is how to do a postback to a s...

How to upload multiple files to a SharePoint List

I am trying to upload multiple files into a SharePoint LIST as attachments. (can't use Document Libraries). I'm trying to use jquery to accomplish this but I'd appreciate any help or advise you may have concerning how best to upload to a list. For instance, can multi-uploads be accomplished when creating a new item? If you have code ...

json returning list

I want to see an example of how to consume out of domain json service that returns list of items. Can anyone point me towards a 'real' example to see how it is done. ...

JQuery vertical scroller

I am trying to recreate the effect seen on this site: http://zipdesign.co.uk/New-State-Entertainment. I have a basic understanding of how it works but am having trouble applying it to the site I am working on. Any help would be greatly appreciated. ...

how to get tab index by tab name in jquery?

how to get tab index by tab name in jquery? i need to remove a certain tab by this command: $(tabContainer).tabs('remove', index); the index must contain the correct order of the tab to be closed. the problem is, i'm generating the tabs programmatically so chances of having the wrong index is likely. ...

Encrypting Password

Hi All, I want to encrypt password in JQuery and decrypt it in servlets. Please tell me which algorithm should I use and how to implement this thing. ...

How to Create flexible Image Frame?

I want to create PNG Frame on top of the Image , which come dynamically so the Image Height and width different for all the Image. http://thejourneyhomebook.com/photos/index.html this is the final result which I want to achieve. Is this possible using jQuery. It will be fine to use more images and divs. thanks ...

Posting with jQuery

How would I do this in jquery? I would like to post data, process, and then retrieve the page that is generated by that data. All I can find are seperate just post. or just retrieve data. ...

Custom event in jQuery that isn't bound to a DOM element?

I'm curious if its possible to create a custom event in jQuery that isn't bound to a DOM element. I greatly prefer jQuery to YUI but there is one thing in YUI that I like, which is creating custom events and being able to subscribe to them later. For example, this creates an event that is bound to a variable, not to a DOM element: var...

jquery submit *after* third-party ajax validation

I've got a form to get an address from a user, and send that address to my server. The goal is to use Google's geocoding to ensure that the address is unique and geocodable prior to bothering the server with it. I can successfully bind form.submit, geocode, get my placemarks, insure that they're unique or not.. but I'm totally incapa...

Generale image preloading question

I used to code in javascript - jquery and PHP. I like to have a folder of, let asy 100 images, scan it and get it to screen with a fade in beetween, and delay... Much of that can be done pretty esealy The question : only for speed purpose, i like to get img1, show it preload img2 wait 2-3 second fade to img2 preload img3 wait ... and so...

differences iphone safari webkit vs mac safari

hi there, i'm trying to create a website for iphones with the apple typical sliding menue effect. on safari and firefox on my mac everything works pretty fine, but checking the page on my iphone safari made me wondering. there's the link to the slider test... IphoneSliderTest it would be nice if you could check the page on your iph...

Select a Tag with a Selector from a Text Variable using jQuery

I have a string which contains text and some <a> tags in it; I want to know how I can select a tag from the variable and loop it. I tried the following but it didn't work: var text = `some string here with <a href="#link">http:something.com</a> more string and more links also`; $('a', text).each(function() { var string = $(this)...

Javascript if(function_foo()) doesn't wait for function_foo() to complete

I have an if statement: if(authenticate_session("secret_password12345")){ alert("You are authenticated"); }else{ alert("Intruder alert!"); } and the javascript authenticate function, which makes an jQuery POST AJAX call to the server to do the actual authentication, and returns true or false: function authenticate_session(sess...

How to bind jquery event before event in tag executes

<input type="button" onclick="executes second" /> $('input').click(function() { //this first }} p.s. onclick="executes second" - cannot be removed (its __doPostBack) ...