[jQuery] Using jQuery to access jSON object
I'm a jQuery/jSON newby. I'm using jQuery getJSON() to do an AJAX request on a separate PHP script, then I want to use the returned jSON object data to update some form fields. I'm sure this is very basic and common, but I've been reading doco. for days and can't get it to work. Here's the local AJAX request - it's sending a local variable to the PHP script and it has no callback function: var objJson = $.getJSON('ajax/set_usr_fields.php', {ety_id:etyId}); Here is what is returned from the PHP script,
Getting menu item Li 2do 2 things at once? onclick+typical
Hi... just starting out to get this going. I have ONE html/jquery page running well localhost. Now I need to get the menu items to do two things at once. OBJECTIVE: click on menu item. have it do regular href ID call AND also, I guess, an onclick function to call a different flv video for each menu item. I'm guessing that the reason onclick code has the #, for example: <a href="#" onclick="someFunction.add "etc code etc etc" ></a> is because it can't do the onclick AND more typical things like this
[jQuery] Disabling behaviour definded in html
Hi, I do not have a huge experience with jquery and therefore my question may seem a little bit childlish for you :). Nevertheless I have spend so much time trying to find the solution that you are my last hope. The problem is that I have the html element - let's say textfied with specified onkeyup attribute. Example <input id="text" size="30" onkeyup="alert('hello')"/> What I want to do is to have the function that under special circumstances would disable behaviour defined in html. Thanks in advance.
[jQuery] Find all parent LI without UL > LI elements inside this by using JQuery
I trying to filter parent LI elements expect their child UL LI element. How can I do this? I am using : this code : $("#leftTabs li").not('ul li') please help! thanks Peter -- View this message in context: http://www.nabble.com/Find-all-parent-LI-without-UL-%3E-LI-elements-inside-this-by-using-JQuery-tp21183258s27240p21183258.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] window.opener
hi pls can you add to jquery script 'window.opener'?? or write pls true tag for it :-) I´ve got these script window.opener.id("krajina").value = krajina1 & i want to have easier script for ex. $("opener.#krajina").val = krajina1 :-)
[jQuery] Please help with navigation script
Hi, Can someone please help me with the following navigation script I'm trying to use on my page? I have a list of sites in the left div which I would like to be able to filter out. The issue is that it works only once. Once I filter once I can't reclick on the "Refine by category" button and change categories or go back to showing all categories. I'm guessing it's something to do with inner functions, which I don't know enough about yet. Any help would be greatly appreciated. The site is live at
[jQuery] Problems with show() and submit button
I've been stumped on this one long enough that it's time for someone to show me the obvious. I have a form where each element is a table row. Interspersed between the rows with actual elements are rows with help information for the element above them. When the focus is on an element, I want to show the help information. When I have it all set up, however, the submit button no longer works. The submit button won't work until focus is removed from all input elements. Here's an example form with just
[jQuery] variable scope bug in Firefox only?
I'm experiencing an issue in Firefox 3 where, if a variable is declared locally, it doesn't return expected results. I've tried the same thing in IE7 and Chrome, I don't experience the bug in those browsers. My particular example is as follows: var children = $("ul.cat_container > li.column:not(.pinned):first"); if (children.length > 0) { ... } else { ... } In *Firefox only*, children.length will never be greater than 0, unless children is declared globally (without 'var'). Has anyone else run up
[jQuery] Malsup Media Plugin: hoping to click ul/li and have NEW video start and old stop - PLUS FLV-player.net tests
FULL SUBJECT from above: Malsup Media Plugin: hoping to click ul/li and have NEW video start and old stop - PLUS FLV-player.net tests Hi... should be asleep though this is the last thing I need to figure out.. and it's really been a JQuery december... 100's and 100's of hours... hehehe, you know that one! So... OBJECTIVE: I wish to click on menu ul/li's (see 2-below) and have any already playing video in the ONE video-play location STOP and then a new video start, (see 1-below) which would obviously
Urgent: Need help for jqgalscroll + lightbox
Hi guys, Recently i saw one jquery plugin "jqgalscroll v2.1"( http://benjaminsterling.com/jquery-jqga ... o-gallery/ ). This plugin is very powerful. But when i tried to add in the lightbox ( http://www.huddletogether.com/projects/lightbox/ ) function, then all the script no works anymore and have some error occured. I have been stuck at this jquery for about one week already. I am a javascript nood but have some basic knowledge (very basic only) with javascript. But still don't know how to edit
[jQuery] add jquery.validade function ShowToolTips
demo http://www.aemundo.com.br/jquery/validade/demo.html
[jQuery] Code not working in IE but is working in FF
I posted something similarly before but I posted wrong code. This time, everything is correct and I'll provide all the information needed. First of all, the URL to the site which is not working is http://uf.ekdahlproduction.com/itsvintage2/ The error: In FF everything works perfectly but in IE it gets stuck on 1% and nothing happens whatsoever. The code: $(document).ready(function(){ $("#slogan").css('opacity','0'); var step = 10000; (function(){ step -= 100; $("#percentage").text(100-step/100 +
[jQuery] add jquery.validade function ShowToolTips
demo http://www.aemundo.com.br/jquery/validade/demo.html Brazil, Manaus, Amazonas.
[jQuery] I wrote a YUI Multi FIle Compression Utility
Hey Guys, I just finished writing a YUI Multi-File Compression Utility. It's really simple, it just runs some CLI commands, but more importantly, it compiles entire directories and sub directories with a clean UI. For us IT guys, it makes quick site changes a breeze from source to compressed in just seconds. Anyway, find it here: http://jqueryplugins.weebly.com/yui-compressor-multi-file-utility.html If you like it, let me know. Also, source is available in C#. K-BL
[jQuery] Superfish menu stays under floating element
Hi, I've been googling and trying things, but I don't seem to find anything tangible. I'm using the latest version of superfish with jquery 1.2.6 Below the menu is an element (div with image) that floats left. FF and Safari display the menu properly. IE6 and IE7 push the menu below the floating element, so parts of the menu are not visible. Funny enough, the old version of superfish I was using for quite a while now doesn't have this issue. I tried experimenting with zindex settings for the menu,
[jQuery] Treeview expand on link clobbered by page load
I want to expand for a click on a link (>a), not just the little + icon. I tried modifying this this.filter(":has(>ul)").find(">a,>span").unbind("click.treeview").bind ("click.treeview", function(event) { to this.filter(":has(>ul):not(:has(>a))").find(">span").unbind ("click.treeview").bind("click.treeview", function(event) { And it tries to expand, I see a few child nodes drawn and expanded. But then the page reloads and the expand is lost. I see other people using just the <span> for expandable
[jQuery] .ajaxSend fires six times
Hello! I need a callback to be executed, when any ajax request begins. I used this code: var cnt=0; $('*').ajaxSend(function() { cnt++; }); function Teszt() { $.post('jquerytest.php'); alert(cnt); } When i call function Teszt(), the alert shows '6'. Why?
AJAX UI Tabs
I can't understand the documentation associated with the UI tabs and was hoping someone here would be able to enlighten me. I'm building myself a dynamic design portfolio, but I want to use AJAX to reduce the need for page reloading. The final design can be seen here. But I have provided a mock up which will help me better explain the problem. The green links should dynamically change the tab of the white box. The purple arrows should dynamically change the tab of the red box. Clicking the red box
[jQuery] jcarousel
Hi, how could i make it to have a .remove() on the visible items ? Because .remove() won't work with visible items, i tried doing it anyway and then the carousel gets mad because it creates a placeholder.... It is very important for me please
[jQuery] AJAX with IE and method POST
Hi guys/girls, I just wanted to post here my problems (and solution) I had been struggling with last 2 days. I was doing JQuery AJAX POST and it was not working in IE wile working in FireFox. Sometimes you will get 12030 error (Server unexpectedly terminated connection) from IE's XMLHttpRequest object. I discovered that in order for IE's XMLHttpRequest object to properly read return stream the input stream must be completely read by the server (even if you are not interested in it). Some frameworks
[jQuery] file browser jQuery plugin?
Hello friends, Is it possible to create a directory view with jQuery and Ajax? I find a few plugins in repository but they use PHP and I cannot get them to work. I want a Perl or Python CGI script to generate the directory structure and use jQuery to display it in the browser. How to do it? Thanks in advance for the help. Happy holidays! -Girish
[jQuery] history plugin and iexplorer
hello jquery folks! does anybody use the following plugin: http://www.mikage.to/jquery/jquery_history.html ? well, i'm having a problem using this plugin, but only on internet explorer. for example, if there are links within the content loaded through ajax, they won't work on iexplorer. they work perfectly fine on firefox, but nothing happens on iexplorer. could anybody please help me? i'd really appreciate. i'm using the following code: http://pastebin.com/mdc61068 thanks everyone!
[jQuery] Problems with show() and submit button
I've been stumped on this one long enough that it's time for someone to show me the obvious. I have a form where each element is a table row. Interspersed between the rows with actual elements are rows with help information for the element above them. When the focus is on an element, I want to show the help information. When I have it all set up, however, the submit button no longer works. The submit button won't work until focus is removed from all input elements. Here's an example form with just
[jQuery] Selecting disparate elements in unobtrusive javascript without parameters?
This question is partially about unobtrusive javascript in general, but with specific reference to jQuery syntax. I am a long-time javascript programmer, but a total jQuery noob. I am attempting to use jQuery to replace onclick handlers that were previously generated inline as part of a CMS. Most of the tutorials I've seen for things like "collapsable menus" achieve their generic effect by referring to object relationships via their position in the DOM. E.g. $("img.disclosure").parent().next().hide();
[jQuery] .animate and border sides
Hello, I am trying to animate a color change for the top and right borders of an element. A) In Firefox the border size is animated but the color change is not on the first hover only. After that the border color changes as though you were affecting it via a pseudo class in CSS. B) Behavior in IE7 varies. In some cases animating a "borderSide" breaks the code altogether. In the minimal case I'm providing the top border changes color without animation and there is no effect on the right border. It
[jQuery] image tag xhtml validate
Hi, just a question about xhtml validation. I have an xhtml page and it has been validate. Now i add with .append some image, i suppose that the img tag is in html and not xhtml .. <img ... > and not <img ... />... is there a solution to have all in xhtml format? thanks bye max
[jQuery] script behaves different in IE than in Firefox
Hi! I wrote a script that makes some checks and than counts the clicks via a php script. However the way it should, it only works (counting the clicks) in IE not in Firefox: $('a').click(function() { if ( this.id != '' ) { var tp = this.id.charAt(0); if(tp != 'l' && tp != 'c') { return true; } if(this.id.length < 2) { return true; } var itemid = this.id.substring(1); if(parseInt(itemid.charAt(0)) < 1 || itemid.match(/\D/)) { return true; } var h = Math.random(); $.get("/click-count.php", { id:itemid,
[jQuery] question
Hi, Has anybody a solution? showing a few jQuery methods : var Typeof = {}; for (v in $) { Typeof = typeof $[v]; $('<div><span>'+Typeof+' </span><span> '+v+' </span></div>').appendTo('body'); } Is it possible showing parameters list for each method above? thank you!!! Dirceu Barquette
[jQuery] Looking for an automated image replace loop
I have this list of images: <ul> <li><img src="image1.jpg" alt="Image 1" /></li> <li style="display: none"><img src="image2.jpg" alt="Image 2" /></ li> <li style="display: none"><img src="image3.jpg" alt="Image 3" /></ li> </ul> What I would like to have is an jQuery method which fades Image1 after a few seconds and then appears Image2. And so on. After the last image, Image 1 should be displayed again. Is this possible in jQuery?
problem with fadein() and image sizes in IE
Hope someone can help out here, I'm new to jquery and can't figure out what I have done wrong here. The following code works ok in FF and IE, it is a function that appends an image to a div and sets the width/height of that image. function showImage(src,divid,width) { var myImage = new Image(); $(myImage).load(function() { $(divid).append(this) }); $(myImage).attr("src", src); $(myImage).attr("width", width); $(myImage).attr("height",
[jQuery] More About jQuery's Web Browser Compatibility
Hey All, The jQuery website states clearly that jQuery is compatible with the following web browsers: IE 6.0+, FF 2+, Safari 2.0+, Opera 9.0+ Unfortunately, that's the only info I could find in the docs about browser compatibility. I know jQuery is compatible with Camino as well (which is basically Firefox), but the Firefox and Camino version numbers are not in synch. Does anyone know with certainty what minimum version of Camino is jQuery-compatible? What about barely-used browsers like IE for Mac
[jQuery] jQuery ajax Samples
Hi All, I was wondering whether I could find any good basic examples for $.ajax where I could find how to use the options of the $.ajax. I wanted to see how we can use the dataType: 'xml' / 'json' / 'html' etc options to capture respective data and use them. docs.jquery.com provides very basic syntax without the server side code.
[jQuery] JQuery Form Validation and Insert into Database problem
I have two scripts, one validates the form and the other enters the data into a SQL database without a page refresh. Both scripts work fine on there own... How can I combine them so the form validates and then inserts when form is free of errors. Please see the two scripts below. I suspect it be very easy but have been searching the net with no luck, I am using the validate plugin from jquery. <script type"text/javascript"> $(document).ready(function(){ $("#submit").validate ( { showErrors: function(errorMap,
[jQuery] I customized jQuery for OpenSocial Gadgets. It was named, "opensocial-jquery".
Hello, I customized jQuery for OpenSocial Gadgets. It was named, "opensocial-jquery". opensocial-jquery is jQuery based concise JavaScript Library for rapid OpenSocial Gadgets development. When you use opensocial-jquery, you can develop OpenSocial Gadgets by the method of developing the website by jQuery. Source code and examples are here: http://code.google.com/p/opensocial-jquery/ opensocial-jquery is a package of customized jQuery and plugins. = Customized jQuery Ajax 1) jQuery.ajax relays all
[jQuery] browser issue
hi, i am using asp.net with c# codebehind in dotnetnuke. i created my own module with image effects using jquery. Explanation: i just get the value of width and height from enduser for uploaded images. It works fine. but one issue will occured. how to solve this issue? when i refresh the page. the uploaded images are display repeated without effects . that means it displayed the saved images. then It takes the effects. How to solve the issue : when i refresh the browser the images are display with
[jQuery] Transition Effects without click event using jquery.
Hi Jquery, Jquery is very great job.....i refered this page http://malsup.com/jquery/cycle/ really its very amazing... I used the jquery for fade effect in DotNetNuke. i need to use different effects(for example: dissolve, blur, circle, rectangle effects,etc.,) in my DotNetNuke modules. How to use different effects in dotnetnuke? I learned jquery effects from http://docs.jquery.com/UI/Effects this page. its nice .this examples are click event effects. but, i need to use dynamic effects for each images.
Table Drag and Drop - Cells
Dear Friends, I want to have a html-table where an user is able to drag and drop all cells (td) inside of it. There is a solution for JQuery. - ( http://www.isocra.com/2008/02/table-dra ... ry-plugin/ ) But here the whole row will be moved. I want to move a single cell only. And - it's also very important: Some cells have a rowspan greater than 1. Is there a way to modify this library or is there an easier way to get this effect? Thank you for your help and support! With best regards Innocentus
[jQuery] Resolving MasterPage ClientId Issue in jQuery
When you use MasterPage in ASP.NET, the webcontrol's clientid will be added with prefix of its container. TextBox1 will be rendered as <input name="ctl00$ContentPlaceHolder1$TextBox1" type="text" id="ctl00_ContentPlaceHolder1_TextBox1" />, the id becomes ctl00_ContentPlaceHolder1_TextBox1, but not TextBox1, so you can't simply use $("#TextBox1") to find it. Here is my idea to resolve this issue with $("._TextBox1") or $$ ("#TextBox1") syntax, for your reference. http://blog.darkthread.net/blogs/darkthreadtw/archive/2008/12/26/resolving-masterpage-clientid-issue-in-jquery.aspx
[jQuery] :contains working with text, but not with variable
Hi guys, I've already read the other thread on this topic and tried the following versions of the statement: $sites = $(data).find('categories').filter(':contains($category)'); $sites = $(data).find('categories').filter(':contains("+ $category +")'); $sites = $(data).find('categories').filter(':contains(" \' " + $category " \' ")'); (The variable is $category, and it contains plain text.) All of these return no results. When I use text: .filter(':contains(JavaScript)') the statement works, so I know
Please help with navigation script
I also posted this on the jQuery Google Groups site. I'm just trying to get help as quickly as I can, because I'm stuck. The problem I'm having with this script is that it only runs once. Once it's done its thing one time, it won't run again on clicking. I tried doing it by way of named functions and still get the same result. My guess is that I need to change around some inner functions, but I'm not sure exactly what needs to be done, so some help would be greatly appreciated. The site is http://pranshuarya.com/test/pthesis.
Next Page