[jQuery] help with getJSON
Hi All, I am facing a problem using the "getJSON" function. It works fine in Internet Explorer but doesn't give any response in Fire Fox Following is the Jquery code I am using to access the php script (jsontest.php) on my local apache server. $(document).ready(function(){ $.getJSON( "http://localhost/dn-new/jsontest.php", function(data,status){ alert("in call back"); alert(data); } ); }); Following is the code in php file <?php $results = array("21" => array("url" =>
[jQuery] How to un-inherit a function of a parent element?
Hi, I hope this is a simple problem but I can't seem to find an answer. I have something like the following: <script> $('.parent').toggle(function() { $(this).slideUp(); }, function() { $(this).slideDown(); }); </script> <div class="parent" style="background:#000;"> <div class="child"> <'a href="#">link<'/a> </div> </div> Where the 'parent' div triggers a function on click/toggle but I want to keep the default behaviour of the link inside the child element (ignoring the extra ' ). Is
[jQuery] Selecting Row When Checkbox in a TD is Checked?
I have a table, listing foods, and each row in the table has a few checkboxes the user can check to show if they eat the food for breakfast, lunch, dinner, etc. For example: <td width="8%"> <center> <input type="checkbox" name="Dinner_id_5" value="9003" class="Dinner"> Dinner </center> </td> I want to be able to hide and show rows based on whether the checkbox is checked. It's easy to hide all the rows, using this: $(".food_planner tbody tr").hide(); Now I just want to show the rows that
[jQuery] Memory Leak?
Hi, I don't really know if this is a jQuery issue or a Firefox issue... I have an internal status page that polls a monitoring system every few seconds to fetch a JSON[0] document with details of current network status. I use that to populate a <ul>, having first call .empty() on it. Overnight, my FF process has grown to 1.5GB! Is there something I need to do or avoid doing to stop this? The page is reloaded (using meta refresh) every 5 minutes, so whatever it is survives across page reloads. Can
[jQuery] jQuery enable/disable problem with IE 6 and 7
Hi, I'm having a few problems getting my jQuery code to work in internet explorer 6 and 7. The best way I can describe it is: there are several text fields on my webpage and each should be enabled/disabled based upon the radio button selected at the top of the page. The code I have written works fine in firefox, opera and safari. The problem with IE is that it requires 2 clicks for the jQuery to take effect (ie. user clicks the radio button, nothing happens, but then they click another part of the
Simple jQuery problems
Hi, I've got a really simple problem, I have some text with class elements in the middle, like this: <p>I'm a <span class="lumberjack">lumberjack</span><span class="teacosy">teacosy</span> and I'm OK.</p> But If I try to use jQuery's show and hide features on the two class elements above, they do show and hide properly, but don't exist as a single line of text anymore and the elements are moved to a separate line in the middle. Here's what I'm doing with jQuery: <script language="javascript">
[jQuery] Ajax replaceWith problem...
Hello, I am trying to build an accordion that uses ajax to fetch it's content.. I got everthing working and have the ajax receiving the data successfully. However, when I go to make it replace the current content, it does nothing. My xHTML looks like: <a id="all">Title</a> <div> <ul> <li>Loading...</li> </ul> </div> I want the ajax results ti replace "<li>Loading...</li> Here is what I attempted... $.ajax({ url: "../cats.php?get="+this.id, cache: false, dataType: "script",
Making code reusable or somethin like that....
Im sure I don't have to say im new in jquery,and that I never had nothing to do with Java or any coding before,you will see it from my question. Something else.Im sorry if my english is strange and funny. Enough of that ..... CSS: .gimme{ visibility:visible ;} HTML : // Have class because i NEED it to be reusable .... 2-5 times on same page <div id="holdingthat">// this is the only part that will have diferent ID every time <div class="holdingEverything"> <div class="one"><img src="Sky.gif"></div>
[jQuery] File Upload with Form Plugin
Hi, I'm using the Form Plugin to add AJAX functionality to forms on a system I'm building. The plugin works perfectly with regular text forms, but when I try to add file uploads to the mix, it dies with an error on line 209: form.submit(); is not a function. Using breakpoints in Firebug I've established that the <body> tag in the hidden iFrame is empty when it gets to this point. I have replicated this on FF 3.0RC1 and FF 2.0.0.13. The form itself is being loaded by AJAX into a jqModal window, for
[jQuery] Attachments in bug reports broken?
Somebody was nice enough to include example code in bug report. But to me it seems file attachments in plugin bug reports are broken. Trying to download the attachment returns "Page not found" error. For example: http://plugins.jquery.com/project/comments/add/2901 -- Mika Tuupola http://www.appelsiini.net/
[jQuery] different views between windows firefox and mac firefox ?
http://skitch.com/dreamramon/p19i/demo4 http://skitch.com/dreamramon/p192/demo4 2 screenshots. My code works nice on mac safari, windows ie and firefox. But for firefox on mac, it gets an error. Check the 1st sceenshot, i think the js get the right responding JSON, how does it reports an error! anyone could help ?
[jQuery] problem with $.post() showing a hidden form
Hello, I have two forms in my code (a login, and a resgister), one is shown, the other is hidden. My problem is when, in the $(document).ready(), I do something like: $("#register_form").hide(); $("#register_form").submit(function() { $.post("register.php"), { username:$('username'),val(), }, function(response) { } ... } when I call .post in here, my register form doesn't stay hidden on page load like it should. When I take the .post() out, then my form stays hidden. Anyone have a way to solve this
[jQuery] problem with .post and hiding a form
Hello, I have two forms in my code (a login, and a resgister), one is shown, the other is hidden. My problem is when, in the $(document).ready(), I do something like: Code: $("#register_form").hide(); $("#register_form").submit(function() { $.post("register.php"), { username:$('username'),val(), }, function(response) { } ... } when I call .post in here, my register form doesn't stay hidden on page load like it should. When I take the .post() out, then my form stays hidden. Anyone have a way to solve
problem with .post and hiding a form
Hello, I have two forms in my code (a login, and a resgister), one is shown, the other is hidden. My problem is when, in the $(document).ready(), I do something like: $("#register_form").hide(); $("#register_form").submit(function() { $.post("register.php"), { username:$('username'),val(), }, function(response) { } ... } when I call .post in here, my register form doesn't stay hidden on page load like it should. When I take the .post() out, then my form stays hidden. Anyone have
[jQuery] Animate Sliding Margin Problem
I am trying to create a jquery script that slides in a div from the right. I've written out code that works in Safari, except for the fact that there is some weird margin problem going on that makes the page widen as the div slides in (a horizontal scrollbar appears in Safari). In IE the script doesn't even work the way I'd like, it just slides off to the left from a middle-of-the-page position. How can I fix all of this? My code/page is here: http://homepages.nyu.edu/~mlm440/slide.html p.s. I noticed
why does this chain not work?
Hi I am new to Jquery and having some problems I am using C# code to dynamically make 11 rows of 6 cells in a table. The first cell of the table contains a checkbox that has the ability to check the remaining 5 checkboxes in that row. So thats what I am trying to write right now a function that can do this. Here is my html generated code < !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">
[jQuery] can't do a new post
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=big5"> <META content="MSHTML 6.00.2900.3354" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV><FONT face=Arial size=2>Hi</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>I have an gmail account and I sign in then join jQuery (English) group. After I summit a new post, it won't show on Discussions List. Would you
Selecting a Row When Checkbox in a TD is Checked?
I have a table, listing foods, and each row in the table has a few checkboxes the user can check to show if they eat the food for breakfast, lunch, dinner, etc. For example: <td width="8%"> <center> <input type="checkbox" name="Dinner_id_5" value="9003" class="Dinner"><br> Dinner </center> </td> I want to be able to hide and show rows based on whether the checkbox is checked. It's easy to hide all the rows, using
[jQuery] ZenCart and jQuery
For anyone interested in integrating ZenCart with jQuery, I have a ZenCart theme available here, http://zencart-jquery.com It is using the latest jQuery, UI, cookie & cookieJar as well as the latest version of ZenCart, any feedback is greatly appreciated. I'll be adding full credits to all pieces involved soon, Just want to get some general feedback first. If you want to test this you will need to download ZenCart from http://www.zen-cart.com, download the theme, unzip to your ZenCart installation
[jQuery] Problems in IE6 when masking domain..
Hello everyone, I'm new here, and I also new in jQuery :) I have an appearance page problem.. Firstly, if you visit this link, the appearence of the page is ok, whether you open it in Firefox or IE (6 and 7). http://www.asianbrain.com/index.php?aff_code=563232 But, the problem is when you visit the following link using IE6 (just IE6, as far as I know) : http://www.belajarbersamaahira.com The page look awful, displaying stack of pages (i don't know what exactly word is). That url is a masking domain
[jQuery] Problems in IE6 when masking domain..
Hello everyone, I'm new here, and I also new in jQuery :) I have an appearance page problem.. Firstly, if you visit this link, the appearence of the page is ok, whether you open it in Firefox or IE (6 and 7). http://www.asianbrain.com/index.php?aff_code=563232 But, the problem is when you visit the following link using IE6 (just IE6, as far as I know) : http://www.belajarbersamaahira.com The page look awful, displaying stack of pages (i don't know what exactly word is). That url is a masking domain
[jQuery] jquery BlockUI help
Hi, I'm new to using jQuery. I'm specifically interested in using the BlockUI plugin. I have an existing application. I want to quickly add the BlockUI functionality to all buttons/links. Some of these elements already execute existing javascript. I'm trying to avoid having to modify all this code to use BlockUI. I thought I could do something like this: $("a").click(function(event) { $.blockUI(); }); Because I'm not using event.preventDefault(), I thought my existing javascript would execute, but
[jQuery] jQuery help
I am having some serious problems with what should be some easy scripting. I am looking to talk to some one over an instant messenger that could help guide me through what I am trying to do. What I am looking to do is take user input and display it in a div next to it. At that time I would also like another div to open. aim - Billhillydude2k msn - hillbillydude2k@hotmail.com -- View this message in context: http://www.nabble.com/jQuery-help-tp17806822s27240p17806822.html Sent from the jQuery General
[jQuery] Get text from an element then append it immediately after
<html> <head> <style> .hmmessage P { margin:0px; padding:0px } body.hmmessage { FONT-SIZE: 10pt; FONT-FAMILY:Tahoma } </style> </head> <body class='hmmessage'>I tried posting this earlier, but not sure if it worked, so trying again.<BR> <BR> I'm want to get the content from inside <address> elements, then place the content in a link, that will get sent to Google maps, after the <address> element. <BR> <BR> There will be multiple addresses on the same page. <BR> <BR> For example (I've substituted
[jQuery] jQuery help
I am having some serious problems over some easy dynamic content. I am looking for some one that would be willing to sit down for an hour or so on an instant messenger and just help me piece together my little project. All I am needing to do is without a page refresh take user input data through a few text boxes and display that information in a div next to it. After that, another div needs to be created to display a few options. aim - Billhillydude2k msn - hillbillydude2k@hotmail.com
[jQuery] Master-Detail, Tablesorter, Binding
Dear list, I just discovered jQuery and I would like to ask a few things. I would like to create a Master-Detail Interface (a table with selected row showing more info). Is it somehow possible to: - select and highlight a row in Tablesorter? - and get the data from all the columns of the selected row? - bind the selection to some textfields so whenever I click a row, its columns get displayed in the textfields? - automatically compute the content of a textfield based on the fetched data? For example,
[jQuery] nyroModal dynamic href question
I use nyroModal and is very nice and really easy for basic use. What I would like to do is for each link I have to get the href, width, and high from database and apply to the setting of the link. Let’s say I have the following html code ”#” blablala I tried something like $('a.nyro').click(function(e){ e.preventDefault(); CallWebServicetoGetJsonObject($(this).attr('id'), function(obj) { alert('h : ' + obj.H + 'W : ' + obj.W + 'Href : ' + obj.URL); <-- OK i get the correct values $.fn.nyroModalManual({height:obj.H,width:obj.W,href:
[jQuery] Anyway I can get the modelbox to appear above any flash video stuff?
Anyway I can get the modelbox to appear above any flash video stuff?
[jQuery] Master-Detail, Tablesorter, Binding
Dear list, I just discovered jQuery and I would like to ask a few things. I would like to create a Master-Detail Interface (a table with selected row showing more info). Is it somehow possible to: - select and highlight a row in Tablesorter? - and get the data from all the columns of the selected row? - bind the selection to some textfields so whenever I click a row, its columns get displayed in the textfields? - automatically compute the content of a textfield based on the fetched data? For example,
Manipulating iFrames
Hey! I got an iframe with content from another website. How do I get with JS inside the HTML-Code of this iframe and get the content from over there? Thanks!
[jQuery] Help with W3C validation and jQuery
I've got a site in which I'm trying to get W3C validated and running into a few issue with jQuery and I wondered how people worked around stuff like this: Here I'm injecting some HTML into my site... // append a graphic * to the req'd fields $('.reqdfield').append('<img src="img/icons/reqdfield.gif" alt="This field is required" />'); W3C validator complains about: ---------- Line 20, Column 90: document type does not allow element "img" here. ...d.gif" alt="This field is required" />'); The element
[jQuery] Selecting current .jpg...
I'm sure there's something really simple I'm missing, but for the life of me I can't figure it out. here's a link to the page: http://smple.com/jquery/image_alt/ Basically, I just want the current .jpg to display the pop up box. Here's the .js --------------------------------------------------------------------------------------------- $(document).ready(function(){ $("img").wrap("<div class=\"images\"></div>"); $("img").after("<span></span>"); $(".images img").hover( function(over){
[jQuery] Loading dynamic AJAX?
I'm coming along OK, my chained combo box is working brilliantly but the last one needs to be dynamic. This is the code I have to power that one: $("#edcounty").change(function() { $county = $(this).val(); $("#edinst1").css("display", "block"); if($("#educType").val() == 'unirow') { $("#edinst2").load("vip/education.php?action=unis&countyme= $county"); } if($("#educType").val() == 'collegerow') { $("#edinst2").load("vip/education.php?action=colleges&countyme= $county"); } }); It's loading up education.php
[jQuery] jquery n00bl3t
I'm reading a tutorial from here http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery I'm trying the examples given there. A window does not pop-up when I click a link from the ones on the page. Why is this happening ? 1 <html> 2 <head> 3 <script type="text/javascript" src="jquery.js"></script> 4 <script type="text/javascript"> 5 $(document).ready(function(){ 6 window.alert('asdasd'); 7 }); 8 $("a").click(function(event){ 9 event.preventDefault(); 10 alert("Thanks for visiting- babu!"); 11
[jQuery] Toggle link - change text
Hello. Looking for a way to change the text of a toggle link, so when toggled off the link reads "show" when toggled on the links reads "hide" Here's what I have: HTML ************************************* <a href="#" class="detailstrigger">Show</a> <div class="filedetails"> The details are here. </div> jQuery ************************************* $(document).ready(function() { $('.filedetails').hide(); $('.detailstrigger').click(function() { $('.filedetails').toggle('slow'); }); }); This all works
[jQuery] Menu like this www.qbn.com
Was wondering if any had an idea to how this menu was created and if at all using jquery? its the menu on the left, basically as you scroll up the page the menu moves with it but when the top of the menu gets to the top of the browser it then stays fixed their so you can always see the menu. thanks in advance -- View this message in context: http://www.nabble.com/Menu-like-this-www.qbn.com-tp17781590s27240p17781590.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
show gif while page is loading
Hi, I have a page that takes a while to load so I'd like to show an animated gif until the whole thing is displayed. Note I'm not making any ajax calls Appreciate the help.
[jQuery] .load Ajax et Jtip ou ClueTip
Bonjour, J'utilise .load pour charger l'id d'une page dans l'id d'une autre page. http://docs.jquery.com/Ajax/load <code> <script> $(document).ready(function(){ $("a.article").click( function (){ $("#feeds").load("Pagedarticle.aspx #conteneur");}) }); </script> <ul> <li><a href="#" class="article">Charge la page et l'id conteneur dans l'id feeds</a></li> </ul> <div id="feeds"></div> </code> Ok c'est rudimentaire mais ça marche, je souhaiterais pouvoir faire de même avec un Plugin comme
[jQuery] $.get intermittently returning empty under certain circumstances
I have a page that uses SWFUpload. It lets the user select multiple files, then it puts those files in a queue and uploads them. After each one is uploaded, a callback fires that makes an AJAX request to the server for filename of the picture as it now exists on the server (obviously, it gets moved and renamed). That url is assigned to the .src attribute of a new image, and then when the image is loaded it gets displayed in sort of an "Uploaded Images" div. My problem is that about one time in three,
[jQuery] Validation plugin specifying range in metadata
I'm trying unsuccessfully to specify a range for the excellent Validation plugin using metadata, e.g.: <input type="text" name="weight" id="weight" value="" range="45,135"> But I get a validation error message of "Please enter a value between 4 and 5." so clearly I'm not specifying the range values correctly. Anyone know how to do this? Thanks, Q
Next Page