Problem with Ajax in jquery
Hi All, I am new to this jquery world. I am facing some problem while using Ajax in my jquery code. I want to get some data (String ) from server using Ajax call. below is my code: $.ajax({ url: "./something.do", context: document.body, success: function(){ alert("helo"); } }); Or $.post("./something.do",null,function(data){ alert("come"); }); I tried with both
Google eCommerce tracking fix for when a payment is completed transfering to a different secure domain
Hi guys I have a problem with my google ecommerce tracking on my site. The problem is that when a payment is completed my site URL changes from: www.website.com to website.securetill.com The problem with that is when I look in my Google Analytics it displays the traffic source for all customer purchases to be from www.website.com because obviously the customer is converting on website.securetill.com and the last site domain they were on is www.website.com The developers of our ecommerce system say
using multiple callback in a row?
Hi! i am still a beginner at jquery and i bumped into some questions about callbacks, where i could not find any usefull documentation on. maybe someone can help me understand tell me where to find out more? -is it possible to call a callback from an anonymos function that is running as a callback itself? how would the correct code look? (i could not get that running) -if i try to animate a set of elements who match a selector, the animations will be executed on each element in some sort of a loop.
merging two plugins to work together
Hi. I'm starting to use jQuery lately. I'm trying to combine jquery.selectbox-0.5_style_3 with another script to google maps v3. If I don't use styling selectbox, I don't have any problem with selecting some option from selectbox and centering map on coords which are values of this selectbox. But since im using styled selectbox (changes <option> to <li>). I have no idea how to trigger google maps script to work when i change value on styled selectbox. I have actual value from styled select, but don't
Ideas to handle mouseover/mouseout bubbling causing each one to trigger the other endlessly
I have a situation that I think is generating a conflicting need. On the one hand, I need an event that bubbles up so that I can use the live() method to pick up elements that are added dynamically to the DOM. On the other hand, I am having an issue with the event bubbling up when I am over the element. Let me explain the best I can: I am using the jQuery auto page function to create the "infinite page" effect. I have another jQuery function that I have written to create an effect on elements on
Need help with Jquerry Validation Email
Hello everyone, I am using Jörn Zaefferer's jquerry validation plugin. I first isolated the form styled it with css and got it kind of working how I wanted it, see the example here, but when I incorporated into my website, which by the way has another jquery plugin installed, the validation stops working. I would really appreciate your input. Thanks!
How to get these two functions to work together?
I have two different JQuery functions that both work independently, but I am curious how to get them to work together. I have a row of images, and I am using JQuery to have them fade in and out on rollover. $(document).ready(function(){ //Set opacity on each span to 0% $(".rollover").css({'opacity':'0'}); $('.img_list a').hover( function() { $(this).find('.rollover').stop().fadeTo(500, 1); }, function() { $(this).find('.rollover').stop().fadeTo(500,
[SOLVED] passing an array for jQuery.ajax data field
Hello, How can I pass an array for JQuery.ajax data field ? I have an array called "ize" and i could not convert for post. I got "undefined=undefined" or similar results. Pls check this pic http://img848.imageshack.us/img848/8066/image000hd.png Thanks in advance, Csaba
Find the first ten images on a page
Hi, I'm trying to create a dynamic image gallery in my wordpress blog and I have successfully managed to collect the images in the blog posts and clone them and wrap them in the right tags etc. This is to make a jquery script that someone else wrote work in my blog. My problem is that I only want to collect and clone 10 images. So how do I make it stop after 10 images? I am completely new at Jquery and it's amazing that I've got this far. :) Here is my code without even trying to only get 10 images.
select first element from current one with certain class
Hi, I'm new to jquery and I have a problem. here's the one of example codes from documentation: <!DOCTYPE html> <html> <head> <script src="http://code.jquery.com/jquery-1.5.js"></script> </head> <body> <p>Hello</p> <p class="selected">Hello Again</p> <div><span>And Again</span></div> <script>$("p").next(".selected").css("background", "yellow");</script> </body> </html> Now, this works fine so far, but let's say I insert <b>Hello to you too!</b> between Hello paragraph and paragraph with class
Use selected index of a pulldown menu to change tha value of a text input field
Sorry for the length of this post but I wanted to explain the problem as accurately as possible. I have maintained the web site of a small art gallery as a volunteer for several years and am now converting the site to wordpress so the gallery can take over managing the site. The problem: I need to take an existing paypal membership form controlled by javascript (seen here) and find a jquery solution. The membership form uses the pulldown menu's selected index to change the amount of the donation.
Acting on events fired by templated controls
Hello all, I try to hook up to the change event of a select control. The template for the control is outside of my page and injected via: $.get('templateResource.html', function (ReceiptRow) { $.tmpl(ReceiptRow, array).appendTo("#tblReceipts"); }); The template is rendered correctly to the page but I do not get informed. The alert is not fired in both ways: $(".ddlCurrency").live("change", function () { alert("ddlCurrencySelectedIndexChangedViaLive"); }); $(".ddlCurrency").change(function () { alert("ddlCurrencySelectedIndexChanged"); });
Blackberry Applications
Please suggest me some applications for my new blackberry smart phone. Blackberry Application Development
Visibility problem with hyperlink on images help
Hi, I'm having an issue with adding hyperlinks on images. Please see example below. Without hyperlink on images. http://www.sail-world.com/highlights.cfm With hyperlink on images. http://www.sail-world.com/highlights_test.cfm Could someone help me with why the descriptions under the images have disappeared with the hyperlinks on the images?
Site Showcase, Promotions, jQuery support, etc.
Hi! 1. What is the appropriate place in this forum to showcase sites built in jQuery? 2. Are there any opportunities for advertising on the site? 3. What are the requirements to display the jQuery logo on my site as a supporter? Thank you! Keith
does .empty() erases correctly even jquery events and plugins?
In my application the user must be able to choose several types of "time frames" depending on the selections previously done on other controls. What I'm doing now is filling a couple of div with different components (input boxes, datepick widgets, jqueryui sliders, multiple selection boxes) and creating the relative events depending on the selections done. Now, should the user change his selection, I need to erase and re-do everything inside the 2 div tags. What I'm asking is: will jquery's .empty()
Reading Cookie
I have a cookie that has a nice amount of json data in it and I need to read from this cookie an create some variables with values. etc. First, how do I read the cookie using JQuery?
Need to self host jQuery code
My testing worked well in my own "http" testing environment, but the production server I am moving to throws a warning that "page is calling out-side secure environment..." that is not in the same https. My options are to self host jQuery or find another solution. I clicked "down load code", cut and pasted it into bb edit, saved it with the suggested file name to a directory on the production server, called the script in the head with a path copied from other <script> loading tags - but jQuery
Documentation pages broken?
Is it just me, or can no one else see the content of the documentation pages? http://api.jquery.com/category/traversing/ All I get is a blank window. I've tried multiple browsers on multiple computers with no difference.
Question: .replaceWith() for replacing both tags and texts
I'd like ask why in the below example, "GOOGLE" is repeated three times, which is not intended. What I just want to do is to remove the <a> tag thru jQuery. <script> $(function(){ $('a').replaceWith( "<div>" + $(this).text() + "</div>" ); }); </script> <a href="#">GOOGLE</a> <a href="#">GOOGLE</a> <a href="#">GOOGLE</a>And how about replacing the text "GOOGLE" with any other texts? Is that something like this? <script> $(function(){ $('a').replaceWith( "ANYTHING" ); }); </script>
maphilight and general behaviour
Hi, I have an image with a bunch of coordinates on it that I highlight with the maphilight plugin and it really works great but my problem is when I want to do a simple animation like showing a piece of text. When I hover over an area the piece of text that is related to the area being hovered should show, simple, yet I can't get it to work. The other piece of code I used in other projects and it worked then so I guess my real question is, how do I make the two elements work together. HTML <script
Changing gFeed so that I can also get the thumbnails form the feeds
Hi, I would like to know what I should change in the jquery.gfeed.js script so that I can also get the thumbnails from the feeds. Here is my code: <script type="text/javascript" src="http://jquery.malsup.com/gfeed/jquery.gfeed.js"></script> ... <script type="text/javascript"> // when the DOM is ready, convert the feed anchors into feed content $(document).ready(function() { // add a feed manually $('.myFeeds').gFeed({ max: 5, // number of items displayed
Dynamic hidden field problem
Hi! This doesn't work, the dynamic hidden field will be submitted as "". I have tested this in Firebug, inserts the hidden field correctly in DOM. VERSION gets submitted ok, STAMP won't. Am I missing something here?? Shouldn't this be elementary stuff?? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script> <script type="text/javascript"> $(document).ready(function(){
the document seems broken
some document pages becomes blank. e.g. http://api.jquery.com/category/traversing/. is this just my problem?
Adding a localstorage key into a jquery script
Hi, I'm trying to adapt some jquery code but having trouble making sense of a lot of it.. I thought it would be pretty easy to insert a variable stored in localstorage into the script.. I thought it would be simple to just add localStorage.getItem("RSSfeeds"); into the script but no joy. The RSSfeeds key is basically a string of more code like newsfeed.addFeed("Ormiston School News", "http://www.ormistonsandwell.org.uk/RSS/News/"); How can I add them into the code below? var newsfeed=new gfeedfetcher("rssfeeds",
Drag boxes into boxes
Hi, I'm new to javascript\jquery. I have had a play around with some sample code and I'm understanding more by the day. Basically, now I'm working on a ittle project, one part of it is to create a page with a list of peoples names and allow users to drag these names into boxes, however only a certain number of people should be able to fit into a box I assume that this is a basic task and anyone with any example code which has this aim, would be appreciated. (Attached a picture to explain my
Accordion - scroll back to top of accordion when new panel opens
Hi there - was wondering if anyone could help. I'm using an accordion to display a list of sub-categories on a classifieds website, there are 3 main categories - we'll call them X, Y, Z. My problem is that the sub-category lists can be quite long - and aren't consistent between X, Y, Z. Currently, when clicking on header X - the accordion extends way beyond the fold so obviously the user will scroll down the page. When the user clicks Y - currently with a lot smaller sub-category list, the accordion
slideToggle problem
Hello, I'm new to jquery and heaving problem with toggling divs they, wont toggle, is it possible? here is the code... please help <style> col_1_dt, col_4_dt, col_5_dt, col_6_dt, col_9_dt, col_10_dt{ background:#fee; font-size:12px; color:#337; width:450px; float: right; } col_2_dt, col_7_dt{ background:#fee; font-size:12px; color:#337; width:225px; float: right; } col_3_dt, col_8_dt{ background:#fee; font-size:12px; color:#337; width:225px; float: left; } <style> <script> $(document).ready(function(){
Using Variables in Jquery
I working on trying to get my condense my code in jquery I have a small chunk of code that is being reused over and over inside of a function, I would like to turn this: $(document).ready(function () { $("a.transitionWhite000").fancybox({ 'overlayColor': '#FFF', 'overlayShow': true, 'transitionIn': 'fade', 'speedIn': 1300, 'transitionOut': 'fade', 'speedOut': 600, 'overlayOpacity': 0.970, }); $("a.transitionBlack000").fancybox({
Offset problems with Sortable
I implemented the example that is on the site for the sortable methods. The only problem is that the boxes are about 300 pixels below and 50 pixels right of where I click. The page I am implementing is a Xajax driven custom page that has a lot of complicated nesting, etc. I think it is an issue that jQuery cannot correctly determine where my mouse is. I am sure there is a way to address this automatically or manually. The problem is I don't know where to start. Any ideas? Thanks, Bryan
Need help converting to jquery
I have a javascript code that I need to convert to jquery and be able to attach each function to a link id. Is this possible? Code is listed below --------------------------------------- function toggle_hide(id) { var e = document.getElementById(id); if(e.style.visibility == 'visible') e.style.visibility = 'hidden'; else e.style.visibility = 'hidden'; } //--> function toggle_home(id) { var e = document.getElementById(id); if(e.style.visibility == 'visible') e.style.visibility = 'hidden';
JSON returned from php...
Every parse example I have seen on the internet is the well formed; jQuery.parseJSON( ' {"sid":"123455","client_id":"1","last_name":"Anderson","first_name":"Alan","institution_id":"1"} '); What is the easy way to get from this; {"posts":[{"post":{"sid":"123455","client_id":"1","last_name":"Anderson","first_name":"Alan","institution_id":"1"}}, {"post":{"sid":"b","client_id":"4","last_name":"b","first_name":"b","institution_id":"1"}}]} to 'well formed' so that jQuery.parseJSON( data ) will
Time to take the plunge
I thought that I would introduce myself as I am sure I will be in these forums a lot of the time from now on. Having developed numerous static sites in PHP/MYSQL/JavaScript I have been given an opportunity by one of my clients to give their sites a bit of movement. So a few months ago I starting looking at AJAX and Dom manipulation using JavaScript, which the client really liked but mow they are asking for more movement on the site and that's when I started to look at jQuery. I must admit at first
Selector
How can I select an element that start with a particular string and ends with another string. Thanks
html email agent in a web page
Hello. I'm new to JavaScript and jQuery. I play a little with J2SE, JSP-JSTL, JDBC ... I'm making a web site whose one page is dedicated to an email agent. Layout is ready in html. What is the usual way to implement this functionality ? I imagine ... - that the 'send' button packetizes every form field as a particular parameter of a request to be send to the mail server which is connected to my web server (by a hosting service). - that I need some JavaScript or jQuery to make possibly some field
How do I reference the following for a secure connection?
The following is a javascript file that I need held under a secure connection for when a customer is making a purchase on my site. http://cachedcommons.org/cache/jquery-jcarousel/0.2.5/javascripts/jquery-jcarousel.js How can I get this referenced under a secure connections? Thanks people
how to make disappear my <div> after a scroll to the top ? and reappear !
Hello i have an image fixed on my page it's a link to scroll to the top i would like to make it disappear at the top and reappear when the scroll down ? my code is actually very light, have you a solution ? thank you very much <!-- scrolltop --> <div id="scrolltop"><a href="#top"><img src="./wp-content/themes/blueprint/images/gotop.png" /></a></div> <script type="text/javascript"> $(document).ready(function() { $('a[href=#top]').click(function(){$("html,body").animate({scrollTop:0},'slow');return
my book says download jquery 1.6.2 zip file , where can be found?
zip contents: jqueryui -jqueryui1.6rc2 --_MACOSX --demos --tests --themes --ui -img -styles my book says download jquery 1.6.2 zip file , where can be found EXACTLY?
Use jQuery to find first word
Hi! How can I find first word of the paragraph an then copy it? Second bit I've already work out, but could not find any example of finding first word. Regards,
if/else question
Hello, I have this simple question: - I want to make an if statement that looks for the value of a style Obviously I'm doing it in the wrong way: function myFunction(){ if($('.item').css('top','0') ){ //I mean: if .item has a top position of 0, do this. alert('Item has a top position of 0'); }else{ alert('Item has NOT a top position of 0'); } } http://jsbin.com/ikewe4/edit Please, can I get the answer of those 2 questions? -What is the correct
Next Page