1.5.1+ broke my old $.get() json calls
Hi, functions like: function showData(id) { $.get("/url/getdata", {id : id}, function(data) { $("#dialogData").html(data); $("#dialogData").dialog({width: 500, modal: true, zIndex:22000}); }, "json"); } no longer work with the addition of 1.5. Looking at firebug, the correct data is returned, but the function breaks after entering the callback. Everything simply stops. How can I fix this? I read about the changes to Ajax call in 1.5, but I have over a thousand such calls through my project -> I cannot
about id selectors
hi where can i find an example of how jQuery selects objects when using an id selector? i'm asking because i've been using a cross browser snippet to select objects and i was wondering if it's the right move to move from the snippet to jQuery. the snippet checks to see for availabe methods and depending on the one that works, it knows which browser the user is using and selects the object using that method. i also know jQuery is cross browser, so it's kinda implied, just wanna make sure.
Problem with Success Function always returns false
<script language="Javascript"> var flag=0; function verifyUser(username) { $.ajax({ type: "POST", url: "check_username.php", data: "q="+ username , cache : "false" , success: function(msg) {
IE getScript problem
Hey! I'm having a really annoying problem, the sample code below is working fine with Firefox and Chrome but IE doesn't seem to run it: $('#button1').click(function() { $("head").append($('<link type="text/css" rel="stylesheet" href="page1.css">')); $.getScript('page1script1.js'); $.getScript('page1script2.js'); ... }); $('#button2').click(function() { $.getScript('page2script1.js'); ... }); $('#Buttons li a').click(function()
Effect queue and stop not working correctly
Hello, I have this line: $('#target').stop(true,true).show().delay(3000).fadeOut(1000); This should work as following: 1. initial state of target is hidden. 2. target is "activated" and sequence is run, the target appears. 3. After 3 seconds target shall start to fade out. 4. target can be "activated" again at any time, and the sequence from 2. should restart itself. It works if I let the sequence run its course every time, but if I repeatedly rerun the sequence before it's done executing something
remove <b> tag from a table with a class
Hi guys, I now know how to write remove statment if its to remove one piece of html such as a <hr/> However in this case I'm trying to write a bit of javascript to remove a <b>TEXT</b> with whatever text inside. And in this case it's only for a line of text that apears in a <td> which has a class: This is the html: <td class="column_main"><b>NEW IN</b> </td>
"Load" Method doesn't work in chrome and opera? plz help me.
Hello there, I have 2 page. one of them,is gallery.html and another one, is index.html . i want to load the content of the gallery page into <div id="content-gallery"></div> in index.html. I use the fallowing code : $( 'a#gallery' ).click( function() { $( '#content-gallery' ).load( 'gallery.html' ); }); but it works only in IE8,FF, and safari. It doesn't work in chrome and opera (latest version). In opera and chrome, when i click on <a id="gallery">show gallery</a> it show only a bank page. I
Creating $("<select>", { attribute object }) isn't recognizing the attribute object
$(document).ready(function() { var mselector = $("<select></select>", { 'alt': 'ROLLOVER TEXT', 'multiple': 'multiple', 'click': function() { alert('in click'); return false; } }); mselector.appendTo('body'); }); The SELECTor shows up in the document but it's not MULTIPLE, no ALT text, no CLICK event handler. What am I missing?
Able to disable checkboxes on condition, but odd problem
I asked part of this question on stackoverflow but didn't get any answers I understood (link). I was hoping that maybe someone here could point me in the right direction. I have very minimal experience with jQuery as I usually just scavenge what I can find in Google searches. This time however, I need something much more specific. I found some jQuery code as a result of a Google search that allowed me to disable specific classes of checkboxes based on user input of a single select box. I works great
How to call internal functions of a plugin?
Hi there! Firstoff: I know I ask about using a plugin, and I wasn't so sure where to put my question in, decided though the general jQuery-Forum would be better as my problem is more connected to jQuery than the plugin itself. First off, I'm using this plugin and modified it myself a bit, adding new functions: http://www.quasipartikel.at/multiselect/ You'll find the underlying .js for the component here: http://www.quasipartikel.at/multiselect/js/ui.multiselect.js Now, scroll to the end of the file,
prepend(): how to insert "\" before a text?
I want to insert "\" before "*" in jQuery because I cannot do it in javascript. <html> <head> <script src="http://code.jquery.com/jquery-1.5.js"></script> </head> <body> <script> $(function(){ $("span:contains('*')").prepend('<span>\</span>'); }); </script> <script> var rename = 1; for (rename=1;rename<=3;rename++) { document.write('<span>' + 'a\*file' + '</span>' + rename + '<br />'); } </script> </body> </html> Is there wrong with my javascript code? It does not recognise the
Problem with AJAX & Delegates.
Hey! I actually have the problem, which is discribed in the F.A.Q of JQuery - http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_AJAX_request.3F So I tried delagates. The problem now is, that the hover effect i wanted to create over a table, does only work every second time I click a link. That's rather strange. What am I doing wrong? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"
jQuery plug in popup
Hi All, I current used jquery plug in SImple Model (http://www.ericmmartin.com/projects/simplemodal/) to do a popup windows, where it is iframe from an .NET aspx page. inside the popup windows, I have few checkbox controls and have validation on buttons click. however I encounter 1 issue where if the user close the popup windows, there is no validation take place. is there possible to make the validation on windows close? else a simple confirmation notification to inform user that their data is not
jquery and php problem
hello everybody, sorry but i'm spanish and i don't speak english a lot, i have a little knowledge in web development´ i'm working in a web application with jquery but i have a problem in a part of my application the admin of the web can delete a member wich is registered in the application, for each member of the list has a buton that if te admin clicks delete a member(using $.ajax) wich is save in a DB the code is the next: <?php for($n = 0; $n < $nMiembros; $n++){ ?> <div id="member"> <table
content dependant on url hash
I have a page with a few links. when a link is clicked a div is populated with the relative content. what i need is if the url has a hash tag then the div will be populated with the relevant content on load. Is there anyway to do this?
Changing a select menu with Jquery when radio is checked
Hi i seem to be having a little problem with my code and was wondering is someone could point me in the right direction with it. What i am doing is if a radio button is selected it will show a different set of city names. My Jquery code is as follows : $(function() { $( "#accordion" ).accordion({ collapsible: true }); $( "#citta_az" ).buttonset(); //Hide Monza e Brianza when page loads $("#MB_DIV").css("display","none"); // Click Function $("#citta_az_mb").click(function(){ // If
slideUp() Problem in Safari Browser
Hi, after domready i'm wraping some Elements and then i want to slide it up. But in Safari it doesn't work at this point (domready). It only works if hide() or if i'm not using the wrapped element. But in all other browsers (firefox, IE, etc.) it works. Yeah it also works in IE ;-) here's the code snippet $(el).find(config.crop.cropTag).wrapAll('<span class="' + config.crop.hiddenClass + '"></span>'); // the alerts works fine, so it will be found in safari but slideUp doesn't work // alert($(el).find('span.'
Input adder
Hi, I need some help with creating a script that adds the fields byclicking on the add link. My html code looks like this <table width="650" border="0" cellspacing="0" cellpadding="0"> <tr> <td valign="top"><font><b>Product name</b></font></td> <td valign="top"><font><b>Amount</b></font></td> <td valign="top"><font><b>Price</b></font></td> </tr> <tr> <td valign="top"><input type="text" name="input[1]name" size="45"></td> <td valign="top"><input type="text" name="input[1]amount"
Is there a way to show the overflowed text on button press using jquery or any other way?
Currently on the forum end of one of my sites, users like to create huge signatures. I would like them to have this option so I have used overflow to hide everything 150px and greater. On mousing over, the rest of the signature is displayed. This seems to annoy a lot of my members thou. Is there a way to show the overflowed text on button press using jquery or any other way? Edit: Another way to ask, a show/hide script that shows a max-height of 150px but on click shows the rest of the content.
fadein and out using delay for list of links
I have this code <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td class="rnd-prd"> <a href="#link"><img src="IMG" border="0" /></a> <a href="#link"><img src="IMG" border="0" /></a> <a href="#link"><img src="IMG" border="0" /></a> </td> <td class="rnd-prd"> <a href="#link"><img src="IMG" border="0" /></a> <a href="#link"><img src="IMG" border="0" /></a> <a href="#link"><img src="IMG"
3 dropdown menus
Okay. I got a little question about jquery. At this moment i am sitting on a recrutment-form for my world of warcraft guild. So, what i like to have is this: there are 3 selcte-menus. 1. class 2. primspec 3. secspec the first is enabled by default, so you can select your class. Number 2 and 3 are disabled at startup. So if a user had selected a class, the menu 2 and 3 are showing the talents for the selected class. example: 1. class => Mage 2. primspec => Fire, Frost, Arcane 3. secspec => Fire, Frost,
Refused to execute a JavaScript script. Source code of script found within request - JSONP
Hi there, Could someone help me with the folllowing? This script works in Firefox but not Safari or Chrome. I believe it has something to do with the .append function. I get this message upon running the script: "Refused to execute a JavaScript script. Source code of script found within request " (jq14 = $) jq14.getJSON("http://area.crosbiedesign.co.nz/media/client/external/php/get_to_post.php?callback=?", { sendTo: "http://area.crosbiedesign.co.nz/area/brands/external",
JQuery HTML5 Local Storage
Hi, Sorry to retread old ground, but are there any plans to make HTML5 Local Storage a part of the main JQuery library? I know there are some plugins people have made, but this seems like something that should be part of the main branch. Also, if there are no plans, what is the best plugin people have found to use?
Multiply two text box with jquery??
Hello, I want to multiply two textbox value and put the result in third textbox. All the events are done on keyup event. Please help
Multiple JSON Sources and Timing in the Drupal Setting
Hi, I've been really enjoying implementing this easy accordion script lately in my Drupal themes, due to its ease of use and modification. Typically, I use a Drupal Datasource view, which pulls content from the database and converts it into nicely clean JSON. However, I've run into some issues this time due to having multiple JSON sources. I can't seem to initiate accordion after all three sources have loaded. As a easyAccordion() gets called several times, jacking everything up. It's important for
Json IE problem
I am using json to receive data. Now I have tested with all browsers, working fine except IE. In ie I am getting undefined null object error. can any one help me with this please? here is my code function exchangeIdentifier() { $.getJSON('exchangedetail.php', {countryName:$('#countryName').val()}, function(data) { var select = $('#exchange'); var options = select.attr('options'); $('option', select).remove(); $.each(data, function(index, array) {
jQuery Auto Calculation based on Radio Buttons
Hello Members, I am stuck on the last part of this jQuery auto-calculation script that I am working on. I want to automatically re-calculate the subtotal values based on a "radio button click". The calculation will automatically add a 10% discount when the radio button "special_(n)" "yes" value gets clicked, but revert back to normal price when the "no" value gets clicked. View the script in action here: http://www.ppleasysavings.com/calcscript/index.html (tip): enter a value into the 'qty' field,
Canceling jeditable when clicking a link
Hello, im trying to figure out a way to cancel jeditable actions when im clicking on a link inside a cell.. i will post screenshots so that you can better understand it.. when i click on a cell OR the link, the cell will be editable, but i want that will only do that if i click on the cell (not the link) is there a jquery function that cancels out other ones? or maybe it is possible on the jeditable function to do something to prevent this... this is the jeditable code $('td:eq(1), td:eq(4)', oTable.fnGetNodes()).editable(
Easy Jquery question
Here is my code: <script type="text/javascript"> $(document).ready(function(){ //When you click on a link with class of poplight and the href starts with a # $('a.poplight[href^=#]').click(function() { var popID = $(this).attr('rel'); //Get Popup Name var popURL = $(this).attr('href'); //Get Popup href to define size //Pull Query & Variables from href URL var query= popURL.split('?'); var dim= query[1].split('&');
.animate() issue with IE9 and jquery 1.3.2
I am having some recent trouble with a Drupal 6 site and IE9. My script.js contains several functions, so I guess the issue could be a conflict, but I don't think it is. The function that is breaking in IE9 (only) is the following: function animateOverlay() { $("#overlay").animate({ "height": "+=50px" }, 2000, function() { $("#thumbnails").animate({ "height": "+=40px" }, 2000)}); } It should be very straightforward, but in IE9, the elements contained in #thumbnails disappear after being
Multiple selectors
I'm very new to jQuery and I'm sure this is much simpler than what I'm trying to make it. I am trying to exclude tables that have a particular class assigned to them and then add a class to the odd rows in the remaining tables. I can use the following to stripe table rows in tables that have a particular class, but I want to do just the opposite and exclude those tables and stripe the rows in the remaining tables. This is what I have come up with so far. <script type="text/javascript"> $(function()
OMG queues are so complicated!
I have been trying to get the hang of queues all day and am no better off than when I started. I even have tried simplify a queue example: var rootElement = $('body'); var array = Array(1, 2, 3, 4, 5, 6, 7, 8, 9); for (var i = 0; i <= array.length - 1; i++) { rootElement.delay(1000).queue(function() { console.log(i); }); }The expected result is for the log to output the value of "i" every 1000 milliseconds... However this is not the case... Its like delay gets greedy and just skips ahead and processes
Problem using drop downs over flash
I'm not 100% sure this is the right place to be posting this because it could be either a CSS, HTML or jquery problem. My drop downs work fine in all browsers bar Safari (except probably IE6 - I've not even gone there yet), and even then it's only a problem on the homepage where the drop downs display over an embedded flash movie. Its not a wmode problem as I have already set it to transparent. It displays over the top of the flash image, but for some reason once its dropped down the spacing between
Selectors - Conjunction of alternatives or intersection of $. objects?
Hi all. I've got a strange problem - I thought it will be simplier. I need jQuery selector, which will give me all the objects that have any checked class from one group AND any checked from other AND... I'll explain: I've got some DIVs of "things" (let's call them "products"), which have specific features. It can be shape, color and anything else. And I have groups of checkboxes to "filter" the products. Features have unique numeric IDs (from DB) with prefix, like "f_1", "f_4" etc., but I'll try
[jQuery] Cycle Plugin Doesn't Acc
I'm trying to load the Cycle plugin with a JSON feed from Picasa. Everything is pulling in from Picasa just fine. I can copy the exact HTML that it generates and paste it into my code and reload, and it works fine, but not when it is dynamically added via Javascript. http://derekperkins.com/seatability/super-product-page/ Here is my javascript code that pulls in the feed from Picasa and then initializes Cycle. I also automatically generate the thumbnails for the pager here too. Does Cycle read from
How to split a string and place each splitted part in array?
Hello guys, How can I split a string like this: IE, Firefox, Opera, Chrome, Safari I want the string to be splitted after each , Then I want that each splitted part is placed in a variable, preferable in an array, so I can loop through the array with an foreach or something. I hope you guys understand me. Thanks in advance, Mark
how to access the functions defined in scripts of URL loaded in iframe
Hi All, How to access the functions defined in scripts of URL loaded in iframe using jquery ? Following is the much more elaboration of question : I have Sample.html : <html> <head><script type="javascript"> function sumfunction(var i, var j) { var k = i + j ; alert("sum of the variebles : " + k); } </script></head> Test.html : This html file contains iframe with src=sample.html <script type="text/javascript" src="jquery-1.5.1.min.js"></script> <script type="text/javascript"> $document.ready(fuction())
Problems with Pagination inside a pop up
Hi All, I have one jsp with some data inside a table. When I click on data displayed in one column it opens a popup using jqModal below is the code to invoke the popup(which is another jsp): This is the function which invokes the jsp and displays in the jqModal $('body').append($('.jqmWindow')); $('#dialog').jqm({ ajax : '@href', model : true, trigger : 'a.blue' }); This is the div which I am using at the end of the main page. <div class="jqmWindow" id="dialog"></div> This
how can add loading image before load content?
hi friends . i want add loading image before load content in bellow template.but I do not know what to do! please help me! Like this sample
Overlapping jQuery Windows
Hi Everyone, I was just thinking if its possible to do a postback on a jQuery Modal window and change the values from the dynamically created elements? Here's my scenario, I have a link, upon clicking the link I will call an sql procedure and display the result on the modal window, the result are several items with id's; what i wanted to do is 1. edit the items displayed on the modal window the problem is, how can i fire back the changes to the modal window? atm, i don't see any elements
Next Page