getJSON problem - Urgent
Hi, I've got a deadline to get a project working and I'm stuck with a getJSON call problem. Here's what's happening. Visitors come to a landing page on domain A domaina.com). All of the links and form submits on this page are coded with a javascript call to a function which calls getJSON on a completely different domain (domainb.com). The format of the onclick is similar to this: <a href="page.html" onclick="jsoncall(value);">Go somewhere on Domain A</a> The format of the getJSON call is like this:
[jQuery] Validate
I am using jquery ajax to call asp.net page method. How can I use jquery validation for such case when there is no form submission. Here's the code portion used to call page method. $.ajax({ type: "POST", url: pagePath + "/" + fn, contentType: "application/json; charset=utf-8", data: paramList, dataType: "json", success: successFn, error: errorFn })
Why doesn't div height adjust to loaded content?
Hi there, I have written the following code. It loads a random banner from an external file and places it on my page. JQuery $(document).ready(function() { $('#banner_area').load('banner_area.htm .banner', function() { $(this).cycle({ timeout: 0, random: 1, cleartype: 1, autostop: 1, autostopCount: 1 }); }); }); html <div id="banner_area"></div> <div id="second_div">Example text</div> The problem is that when the banner is loaded within
[jQuery] Superfish Bug - Submenu Opens In IE 8 On Page Load (Joel Birch)
in IE 8, as soon as i load the page, the superfish top-most submenu opens, without hover. i do not see this problem in firefox or chrome. help?
[jQuery] Making sure all array fields are filled
Hello, How can I make sure all the below fields are filled with integers or return false and show a simple alert message if it's not: <input type="text" name="productids[1]" value="" size="3" /> <input type="text" name="productids[2]" value="" size="3" /> <input type="text" name="productids[3]" value="" size="3" /> Your help would be greatly appreciated.
How can I count the number of list item on a different page?
hi there, I've got two pages. Page_one.htm has an unordered list. In page_two.htm I need to get the number of list items on page_one.htm. I am using the following code: var numList = ("page_one.htm #source li").length; The above code doesn't work, so as an alternative I have tried loading the list from page_one.htm into a div with style="display:none" on page_two.htm and then counting the number of list items, like so: jquery $("#list_temp").load("page_one.htm #source"); var numList =
[jQuery] refresh a link
Hi Poeple, I am looking for ideas on ho wto do the following. I have a link in a web page that points to a live audio stream but this link only shows up is the stream in on otherwise you do not see the link to the stream. The way is working now is that I have to refresh the entire page in order to see the link to the stream. I do not want to refresh the entire page because it is using a div that display of hides a list of previous meetings. If I set up an autorefresh then the user could be looking
[jQuery] Any trick to making text at has been faded in look good?
Hi, all... I prefer to use .fadeIn(500), etc., to bring elements onto a page, as it gives the user a chance to keep up with changes being made visually. However, .fadeIn leaves text looking *u-ga-ly*... changing .fadeIn to .show leaves text nicely rendered in the browser. Is there some trick or other way to cause the browsers to render text that has been faded in looking good? Rick
[jQuery] second instance of DOMwindow picking up properties of first instance
I have 3 instances of DOMwindow, and after the first DOMwindow has opened and closed on click event- the next DOMwindow takes the layout properties of the first. How do i kill the proerties of the first instance? $(".mapDOMWindow").openDOMWindow({ height:220, width:600, eventType:"click", overlay:1, borderColor:"#cccccc" }); $(".mapcloseDOMWindow").closeDOMWindow({eventType:"click"}); $(".sMessage").openDOMWindow({ height:80, width:350, eventType:"click", overlay:0, borderSize:2, windowBGColor:"#B2FA77"
[jQuery] table striping - skip hidden rows
I have a table with multiple tbody's. Within each tbody there are a number of rows that can be hidden or shown by clicking on a link. I'm using the following function to stripe alternating rows: jQuery.fn.stripeTable = function(){ $(this).find("tbody tr:nth-child(even)").addClass("alt"); } but now I'm trying to account for hidden rows, so that when I click to hide some rows I the striping is revised I can't quite work out the syntax to filter first for visible rows, then find
[jQuery] Example of using Ingrid or Tablesorter plugin with dynamic table
Hi Can anyone please send me an example of using any of these 2 libraries with dynamic tables in .net . I can use both libraries when I use html table but as soon as I write runat="server"... It doesnot work... I tried all the things: Matched Ids and also tried selecting using the class of table .. Nothing works Thanks Varun
[jQuery] Dialog - Can't Copy or Select Text
Hi, I Set up a JQuery Dialog in my site. But in FF the user can't select or copy text from the Dialog. And in IE Ctrl + C doesn't work after selecting a text. Another Question: how to disable the resizing of the Dialog. Thanks Rafael.
[jQuery] Hierarchy Checkbox Tree
I am hoping that someone has done this before. I am after something like this: http://static.geewax.org/checktree/index.html I will explain why this fine example does not work for my instance below. The behavior of the “United States” section in particular is what we are after. If a parent checkbox is checked, everything below that parent also gets checked. Unlike the example, there would not be a way to uncheck a child if the parent is selected. There are multiple “levels” of the parent child relationship.
[jQuery] JQuery Validation - call validate(options) multiple times to append options to current validator [validate]
I'm wondering if it's possible to call the validate method multiple times to append more options to the validator. I haven't tried it, but it seems like it will overwrite previous options. Example psuedo code: var formValidator = $("#myForm").validate(options1); formValidator += $("#myForm)".validate(options2); The idea behind this is to build validators using existing options without rewriting them all, and they may not be stored in the same options object. If my above example is incorrect, what
[jQuery] JQuery ajax loaded pages lose scripts
When using the JQuery ajax to inject a page into another page, I lose the script file access from that page. I've tried reloading the script using $.getScript but with the JQuery UI I get a stack overflow on line 509. Here is the code I use for getting the external file: $.ajax({url: 'myfile.htm',cache: false,success: function(html) {fncLoadContent(html);}}); Anyone have a way of making the scripts available to files loaded through ajax? thanks ^.^
jQuery Accordion Menu - Submenu problems
Hi guys. Im really new to jquery but Ive been using the accordian menu I found on the jQuery Site and I cant figure out why my submenu links dont work and why the submenus are taking a set height. Can anyone please advise? http://www.bonsaibranding.com/water2water/test.html Thank you!!
[jQuery] improving performance of table navigation
Hi, I am trying to write table navigation using keys for asp.net gridview. This is what I have so far. It is working fine but it is slow. Please look at it and let me know how to improve the performance if possible. Basically it is html table with input elements. The structure of table is like this <table> <tr> <td> <div style="height:22px;"> <input type = "text"> </div> </td> </tr> <tr> <td> <div style="height:22px;"> <input type = "text"> </div> </td> </tr> ... </table> jQuery(function($) { $('table#<%=
[jQuery] Problem with creating dynamic html...
This is in html (by default) <input type="hidden" id="brojacgrupa" value="1" /> <div id="grupe"> <div id="grupa1" class="grupa"> <input type = "hidden" id="grupa1" value="1"/> <div class="dodatni-sastojci"><span class="naslov- pos">Kolicina</span> <span class="kolicina-pos">Naslov</span></div> <div id="grupa-sadrzaj"> <div id="grupa-list"> <div> <div class="dodani-sastojci"><input name="vrijednosti[][1][kol]" type="text" title="Količina npr. 100ml, 10 kom i sl." /> </div> <div class="dodani-sastojci"><input
[jQuery] Old code not working with new 1.2.6
I had a piece of code that worked with 1.2.2 but now it doesn't seem to work with 1.2.6 Here is the code, can anybody see anything that would cause it to stop working? All it does is adds a link to a piece of text in a table cell. $('#'+i).children('td:first').next().click(function(){ ord = $(this).text(); window.location.href = "Recap?ord="+ord+"&pg="+page; }); It doesn't seem to be picking up the right part of the DOM anymore...
[jQuery] .load() callback
I currently have a problem with the site I am designing, I'm using jQuery to load the content via AJAX, however. The script I'm using to watch for when the user clicks a link is: function watchLinks() { $("a").click(function() { var youWantToGoTo = $(this).attr('href').substr(0,$(this).attr('href').length-4); // Determine destination openPage(youWantToGoTo); // Open destination window.location.hash = youWantToGoTo; // Set the url # return false; }); }; currently I call the function on the $(document).ready
[jQuery] Jquery tablesorter problem
Hi I was trying to use jquery table sorter plugins: when ever I use it like : <table id="table1" cellspacing="1" class="tablesorter" > //row and column here </table> and jquery: $("#table1") .tablesorter({widthFixed: true, widgets: ['zebra']}) .tablesorterPager({container: $("#pager")}) It works fine.. how ever if i use : <table id="table1" cellspacing="1" class="tablesorter" runat="server"> //row and column here </table> and jquery: $("#"+serverIdPrefix+"table1")// serverIdPrefix nicely found what
[jQuery] jQuery UI tabs widget problem
Hello, I have some content and am using the tabs widget to reload without refreshing. Everything is working fine except for one problem...the ui- tabs-disabled class is not being assigned to any of the tabs. Whichever tab I click is assigned the ui-tabs-selected class, and the tab adopts the styles for that class. But my styles for the disabled tabs are not showing up. Checking in Firebug I can verify that the class is not being assigned. Any suggestions? Thanks.
[jQuery] EqualTo not seem to be working.
Hi, I have the following code. I want to compare confirm_number with number. The required field works, but not the equalTo. Any help is appreciated. Thanks, Greg <script src="scripts/jquery-1.2.6.js"></script> <script type="text/javascript" src="scripts/ jquery.maskedinput-1.0.js"></script> <script type="text/javascript" src="scripts/jquery.validate.pack.js"></ script> <-- snip --> <script> $(document).ready(function(){ $("#form1").validate()({ rules: { Name: "required",
[jQuery] Form submission - Callback method not being called
Hi, I am having some difficulties trying programatically submit a form. The form never get submitted and the callback is never executed. Could anyone please give me some pointers, please? Take the following example: --------------------------------------------------------------------------------------- <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/ TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
[jQuery] Sortables ie7 issue
Hello! I'm using Sortables to drag n' drop divs in a project. Well, all non IE browsers the code works fine!!! The javascript code is <span style="font-family: courier new,monospace;">$(<span style="color: rgb(0, 0, 102);">'div.recebeDrag'</span>).Sortable({</span><br style="font-family: courier new,monospace;"> <span style="font-family: courier new,monospace;"> accept : <span style="color: rgb(0, 0, 102);">'drag'</span>,</span><br style="font-family: courier new,monospace;"><span
[jQuery] [jCarousel] Extend to pass XML feed as an argument
I'm setting up a site that uses jCarousel in a variety of places (and for that I must thank Jan, it's a great tool); the sliders are all going to look similar but all will use slightly different XML for the ajax portion. What I would like to be able to do would be to pass this feed as an argument to the jcarousel constructor so that it would look something like this: jQuery('#classname-carousel').jcarousel({ itemVisibleOutCallback: {onAfterAnimation: function(carousel, item, i, state, evt) { carousel.remove(i);
jQuery Sortables
I am creating a navigation menu where you can sort the top level links. We need to be able to save the new order after they are arranged. I have tried using var result = $('#placeholderSortable').sortable('toArray'); but whenever I call result it always says "undefined". I need help! Here is my code: <script type="text/javascript" src="../jquery/jquery-1.2.6.js"></script> <script type="text/javascript" src="../jquery/ui/ui.core.js"></script> <script type="text/javascript" src="../jquery/ui/ui.sortable.js"></script>
[jQuery] Drag a created div by append
Hello! I have a little problem in Sortables. When I create a new div using append, I cannot move it using Sortables. Other div's (created by 'hand') I can move normally. Here's my code: //Btn Add $('.btn_adicionar').click(function () { $("#conteudo_esquerda").append(conteudo_area()); atualiza_debug(); }); //Function for data conteudo_area = function() { return '<div id="grupoN" class="drag"> \ <div class="grupo_titulo"><img src="images/item.png" alt="Eventos" title="Eventos"
menu hoveraccordion with jquery on drupal 6.8
I want to insert this second menu: http://berndmatzner.de/jquery/hoveraccordion/ in the content of this web site: http://www.forniture-alberghiere.net but what I have to do exactly to make it going?
[jQuery] radio buttons in tablesorter
<div>Hello , I'm having a problem with radio button in a table:</div> <div> I have a table that has the option to select the required row through a radio button. But the problem is that if I sort the table (by any column) after selecting some row, the selection goes off. Is there any way to maintain the state of the radio buttons in the table after sorting? Thanks a lot!! Soledad. </div>
[jQuery] autocomplete
Hi all new to the group and jQuery in general. I just installed the very cool autocomplete plugin yesterday and have it working in the following scenarios: $("#example").autocomplete(data); Where data is a local string as shown in the examples. $("#example").autocomplete('get_data.php'); Where the data is retrieved from a PHP page that calls a mysql database. Now I am trying to get it to work inside of an app built in CakePHP. I have data as a JSON object with the following structure: var data =
[jQuery] Examples of great plugin documentation?
I am about to rewrite documentation of Jeditable plugin (has been on my TODO list for a while). While putting together some notes it would be great if people from list could send me links to other plugin documentation you have found to be well structured or written. -- Mika Tuupola http://www.appelsiini.net/
How to access a jQuery object instance?
Hello there, I would like to know how i can access properties of a jQuery object instance. I have the following javascript (function($){ var opts; var sValue; $.fn.jobject = function(options){ opts = $.extend({}, $.fn.jobject.defaults, options); $.fn.jobject.initialize(); return this.each(function(){ $(this).mouseover(function(){ alert(sValue); return false; }); }); }; $.fn.jobject.initialize = function(){
[jQuery] Calling images programatically from a database?
Hi, so I've got this problem which I just can't seem to solve, even after looking at many resources and this archive. Have a look-see, please. I'm currently not using jquery for this function, but I imagine I could be. What I'm trying to do is call on a record from a database which will have, among other things, 1-4 pictures associated with it. Ideally, I want one statement to request all images in the record, and then one statement to loop through the results and display however many images are
[jQuery] Simplemodal causes validators to fire on webform
When I click the close button on my modal message box it causes the required field validators to fire on my form. Is there a way to stop this from happening? Tom
[jQuery] auto testing/parsing/scraping javascript/ajax webistes
Hi List! Trying to get my head/hands around how to web scrape/test websites that use javascript/ajax libraries... Are there any tools/suggestions that you might suggest in this area. Basic/initial research for google suggests that things like seamonkey, and/or headless browser apps might work. Any "Open Source" solutions that could be used to attack this issue would be seriously useful. thanks...
[jQuery] Posting Repeating Ajax Requests
Is there some like quering for repeating Ajax requests. like i want to query a url via ajax every 2 seconds is there an option natively in jquery for that currently I am using setInterval('func()', 2000) i just wanted to know if there is anything natively available.
[jQuery] Form validation, not typical name of input.
Hi, i have problem with validation for my form. For example: <form id="valid"> <input type="text" name="data[Order][login]" /> </form> $('#valid').validation({ rules: { 'data[Order][login]': 'required', } }); The validation method above dosn't work. Where is the problem? With not typical name of input?
[jQuery] append() not working on dynamically-created nodes in IE
I'm troubleshooting a problem where my text wasn't showing up in IE. I've narrowed the problem down to creating a DOM node dynamically (with $(html)) and then passing it to append(). In FireFox, append will add the node as expected; but when passed a dynamically-created node in IE, it does nothing. No error message is displayed; it just silently fails, and no node is added to the page. Here's a trivial example: $('#myDiv').append($('<h2>')); I put that code into the ready event, on a page with a
[jQuery] Correct me!
Hi! I have used following things in separate JS file so no conflict will be there between JQUERY and other JS frameworks. a- var dom = {}; dom.query = jQuery.noConflict(true); b- var jQ = jQuery.noConflict(); c- jQuery.noConflict(); But when I used jQ or others, FireBug gives error. But in usage of $ , there is no problem and all works fine. Can someone solve my problem. Thanks in advance
Next Page