[jQuery] Re: validate form

2009-08-27 Thread James
I don't understand the question. Could you state that a bit more clearly and what you're trying to do? On Aug 27, 3:04 pm, lowercase wrote: > How do I change the ID commentForm here: > > $().ready(function() { >     $("#commentForm").validate(); > > into a variable of its own so that it can be d

[jQuery] Re: Input edit does not fire autocomplete.

2009-08-27 Thread James
Which autocomplete library are you using? This one? -> http://dyve.net/jquery/?autocomplete The most popular one currently is by Jörn Zaffaerer: http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/ That one doesn't have a "autocompleteArray". On Aug 27, 2:40 pm, RobGMiller wrote: >

[jQuery] Re: Plug-in for elegant Horizontal Menu?

2009-08-27 Thread lukas
Thank you, Richard! I hope I manage to include several columns in a submenu. It is not that great to have all 52 States in one column for example.

[jQuery] Re: Appending to a static string

2009-08-27 Thread James
It's good to start with looking over the documentation: http://docs.jquery.com Here's the direct page to attaching a mouse/keyboard event: Events: http://docs.jquery.com/Events -> bind(): http://docs.jquery.com/Events/bind On Aug 27, 2:39 pm, Scott Haneda wrote: > Hello, as an example,https://

[jQuery] Re: Jquery Validation plugin doesn't working on ASP NET MVC

2009-08-27 Thread Anoop kumar V
You need to reverse the order of sourcing the javascript files. Put the jquery 1.3.2.js file before the validate.js. -Anoop On 8/27/09, Edgar Méndez. wrote: > > I'm trying to use the Jquery Validation plugin on aspnet mvc > fframework but it doesn't work, when I open the firebug console it > di

[jQuery] Re: Input edit does not fire autocomplete.

2009-08-27 Thread RobGMiller
Thanks for the reply James, Got it from http://www.pengoworks.com/workshop/jquery/autocomplete.htm because it will handle the local array as opposed to the ajax call. By the way. It will work as the example does as follows: $("#inputbox").autocompleteArray(['value1','valued','value3'], {

[jQuery] Re: Is there a 'dropdown button' plugin?

2009-08-27 Thread donb
Partially. I started cobbling together something that LOOKs like what I want, to play with my idea: http://www.gotodon.net/dropbutton/ I want it to act like a submit button when the main part is clicked, but produce a dropdown when the small arrow is clicked. At least I think I do. Having loo

[jQuery] Re: Image inside script

2009-08-27 Thread Meroe
Why not put the image in a div with style="display:none" and then show it based on the response? -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Ricardo Sent: Thursday, August 27, 2009 2:52 PM To: jQuery (English) Subject: [jQuery] Re

[jQuery] Re: inline delete ajax function/confirm dialog

2009-08-27 Thread Meroe
Richard, A similar question was asked not to long ago. Here is the reply (not from me). If I recall correctly this resolved the issue. Hi, "id" is designed to work with only 1 instance in a web page. If you need multiple instances of an element, use class="newsTrigger" instead of id="newsTri

[jQuery] Re: validate form

2009-08-27 Thread Meroe
I don't follow what you are asking... perhaps more code and an example of what you are trying to achieve would help. -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of lowercase Sent: Thursday, August 27, 2009 9:05 PM To: jQuery (English)

[jQuery] Re: Is there a 'dropdown button' plugin?

2009-08-27 Thread Richard D. Worth
I think this may be the kind of thing you're looking for: http://www.filamentgroup.com/lab/jquery_ui_selectmenu_an_aria_accessible_plugin_for_styling_a_html_select/ - Richard On Thu, Aug 27, 2009 at 4:00 PM, donb wrote: > > That's what I'd call it, anyway. This would be a captioned button > wi

[jQuery] Re: inline delete ajax function/confirm dialog

2009-08-27 Thread Rick Faircloth
Sounds like a job for the .live function... Try this in place of your first line of code below: $(".delete_icon").live('click', function() { That basically "reapplies" the click functionality to any new .delete_icon elements added to the DOM by your ajax function. Rick -Original Message--

[jQuery] validate form

2009-08-27 Thread lowercase
How do I change the ID commentForm here: $().ready(function() { $("#commentForm").validate(); into a variable of its own so that it can be declared here, which already has an ID declared:

[jQuery] Appending to a static string

2009-08-27 Thread Scott Haneda
Hello, as an example, https://twitter.com/signup when you enter in a username, a static string of "Your URL: http://twitter.com/USERNAME"; has the USERNAME replaced with what you are typing in. This is day one of JQ for me. I was looking at the onkeyup event in JS in general, but I figure i

[jQuery] [Autocomplete] Input edit does not fire autocomplete.

2009-08-27 Thread RobGMiller
Coded the following in a page : var ArrayVariable = New Array(); $(document).ready(function() { $("#inputbox").autocompleteArray(ArrayVariable, { delay: 10, minChars: 1, matchSubset: 1, onItemSelect: selectItem,

[jQuery] inline delete ajax function/confirm dialog

2009-08-27 Thread Richard
Hi all, I have an inline delete icon on a table of a query, when the delete button is clicked, i have a dialog popup to confirm the action i then issue an ajax call to delete the user from the database and then remove the tr from the table. it all works fine until the dialog is closed. either thr

[jQuery] Re: Hover does not stop

2009-08-27 Thread marksimon
Have you tried replacing hover with toggle? The hover seems to just go nuts for that usage. On Aug 27, 1:38 pm, Mario wrote: > Yes, here it is:http://www.ulmercampus.de/try > > This has position:absolute, but position:relative works similar as > mentioned.

[jQuery] Re: Hover does not stop

2009-08-27 Thread Mario
Yes, here it is: http://www.ulmercampus.de/try This has position:absolute, but position:relative works similar as mentioned.

[jQuery] Re: TableSorter plugin - default column sort DESC instead? How?

2009-08-27 Thread marksimon
$(document).ready(function() { $(".tablesorter").tablesorter({ sortList: [[0,1]], widthFixed: true, widgets: ['zebra']}); }); the sortList parameter takes two arguments: column, and direction. So sorting 0,1 sorts on the first column descending. 1,0 would be second column descending.

[jQuery] Re: Is there a jQuery way to sort span-elements?

2009-08-27 Thread jeanph01
Maybe you can take a look at my blog: http://myprogrammingetc.blogspot.com/ The question is : do you want to filter it in a jquery set (in memory) or you want to do it directly on the DOM (in the HTML). On Aug 26, 12:14 am, Audrey Lee wrote: > Hello, > > Assume I have 3 span-elements: > > >  

[jQuery] Jquery Validation plugin doesn't working on ASP NET MVC

2009-08-27 Thread Edgar Méndez .
I'm trying to use the Jquery Validation plugin on aspnet mvc fframework but it doesn't work, when I open the firebug console it display an error: jQuery is not defined [Break on this error] jQuery.extend(jQuery.fn, {\n I don´t know how to fix this issue an had already added the jquery-1.3.2.js t

[jQuery] Re: TableSorter plugin - default column sort DESC instead? How?

2009-08-27 Thread Serb
Right, but that's for the default on-page-load sort, so to speak... I'm talking about all the other on-demand, on-header-click sorts - they all default to ascending for some reason... On Aug 27, 7:12 pm, marksimon wrote: > $(document).ready(function() { >      $(".tablesorter").tablesorter({ >  

[jQuery] Re: Plugin to let the user draw rectangles

2009-08-27 Thread juanefren
Does boxes have an ID property ? If not, how could I add one? (this way I can identify them) thanks :) On Aug 21, 2:08 pm, "Richard D. Worth" wrote: > Here's a slightly improved version. Thanks @cioa > demo:http://jsbin.com/azare > > code:http://jsbin.com/azare/edit > >

[jQuery] Re: innerWidth doesn't measure scrollbars in Safari/Chrome

2009-08-27 Thread KeeganWatkins
@tinker - first, as BabBna suggested, don't hijack someone else's post! :) second, in relation to your question, here is what you need: var scripts = document.getElementsByTagName("script"); var thisScript = scripts[scripts.length - 1]; after running this code, the variable "thisScript" is now

[jQuery] Re: Is there a jQuery way to sort span-elements?

2009-08-27 Thread mkmanning
I'm gonna go out on a limb and assume you want them sorted alphabetically, by span content: var sorted = $.makeArray($('#names span')).sort(function(a,b){ return ($(a).text() < $(b).text()) ? -1 : 1; }); $('#names').html(sorted); On Aug 25, 9:14 pm, Audrey Lee wrote: > Hello, > > Assume I have

[jQuery] Re: how to access dynamic data?

2009-08-27 Thread marksimon
If this is in a form and you submit the form to a php page then the child box value should get submitted as well. You may need to bind the child box after the ajax loads as well. If you do it on document.ready then there is no value for the child most likely... On Aug 27, 3:55 pm, zodizack wrote

[jQuery] Re: Variable Scope Help

2009-08-27 Thread James
Oh, the reason I used a function instead of: extraParams: {catID:categoryID}, is because the function acts as a callback that will execute right before the AJAX call to get the updated data for categoryID, otherwise it will just be the same as the URL, set only on initialization (which is blank).

[jQuery] Re: Hover does not stop

2009-08-27 Thread Mario
This works a little bit better, however, it slides still one more than I want and I cannot access the Menu because it starts to move left immediately.

[jQuery] how to access dynamic data?

2009-08-27 Thread zodizack
hello groupies 1 ) how do i access ajax generated data? i have a select box populating via another select. like this: $("select#parent").change(function(){ var path='json.provider.php'; var options = ''; $.getJSON(path,

[jQuery] Re: Var in the Succes: part of Ajax

2009-08-27 Thread Kilhom
hi ! I've resolved my problem like this : function ajax_test(){ $.ajax({ type: "GET", url: "ajax_test.php", dataType: "html", success: function(data){ anc_pv = $('.pv_act').attr("pv"); } }); }; thanks all !

[jQuery] Re: Image inside script

2009-08-27 Thread Paolo Chiodi
you should do prepend(...) after html(...). Doing html you replace all the inner html of the $('.' + errId). What you do here is to appen the image and then removing it by changing the html. The image will be displayed as the first element although you put prepend as last operation: prepend auto

[jQuery] Re: jQuery selector for style attribute

2009-08-27 Thread John
Seems always begin with "ext-gen". I wonder if I could split the style content into multiple single attributes and then use attr() to compare. Based on that, I could create a custom selector. Then the question is, for example, I have a style attribute such as "overflow: auto; width: 356px; heigh

[jQuery] [validate] Appear just one error per time

2009-08-27 Thread FernandoCE
Hello, the subject describes perfectly what I need. I have more than one error but I need to display one error (label) per time.. E.x.: Name (is empty) Age (is empty) - When submit it happens: Name (appears a label: Error Name Empty) Age (appears a label: Error Age Empty) - And I need this: Nam

[jQuery] (validate) How to have an error message per rule when using error labels

2009-08-27 Thread Bryce Lohr
Hi, I'm using jquery 1.3.2 and jquery.validate.js 1.5.5. I read through the docs, and did a quick search on this list, but didn't find what I was looking for. I want to have an error message for each rule on a field when using error labels in the markup. As far as I know, this can currently be do

[jQuery] Re: selector behaviour in IE6

2009-08-27 Thread James
NAME is not valid attribute of , so it's possible you can expect some inconsistencies. I suggest changing it to using ID instead (remember, IDs cannot begin with a number also, so you'll have to prepend it with something). Other suggestions are using jQuery's data() functions: http://docs.jquery.

[jQuery] Re: Var in the Succes: part of Ajax

2009-08-27 Thread James
That is really strange. Are you sure? It's not much different, but try this: function ajax_test(){ var anc_pv = $('.pv_act').attr("pv"); alert('1 '+anc_pv); $.ajax({ type: "GET", url: "ajax_test.php", dataType: "html", success: fun

[jQuery] Re: Variable Scope Help

2009-08-27 Thread James
It's not really a variable scope problem. You're misunderstanding when variables are set. This is what's happening: set global variable categoryID add change event add autocomplete with URL set to aloha/item_search/"+categoryID -> categoryID is blank do rest of page When you do your change e

[jQuery] Re: Var in the Succes: part of Ajax

2009-08-27 Thread Kilhom
Hi Karl ! Here is what i've try : function ajax_test(){ anc_pv = $('.pv_act').attr("pv"); alert(anc_pv); $.ajax({ type: "GET", url: "ajax_test.php", data: "", dataType: "html", success: function(data){ al

[jQuery] TableSorter plugin - default column sort DESC instead? How?

2009-08-27 Thread Crazy Serb
Ok, I can't figure this out... The default sort (when clicking on any of the headers in the tablesorter table) is ascending. Now, I want to change that to descending for ALL columns, not just the initial sort column (defined in sortList). I've tried editing sortInitialOrder parameter in the .js

[jQuery] Re: Hover does not stop

2009-08-27 Thread amuhlou
can you post an example page? it's hard to visualize what's going wrong without seeing it in action. thanks On Aug 27, 8:07 pm, Mario wrote: > This works a little bit better, however, it slides still one more than > I want and I cannot access the Menu because it starts to move left > immediatel

[jQuery] Re: jQuery selector for style attribute

2009-08-27 Thread John
Seems I should use css(), not attr(). On Aug 27, 3:46 pm, John wrote: > Seems always begin with "ext-gen". > > I wonder if I could split the style content into multiple single > attributes > and then use attr() to compare. Based on that, I could create a custom > selector. > > Then the question

[jQuery] Reading text value on element

2009-08-27 Thread Jesper Rønn-Jensen
I'm trying to read (and then change) the text on two buttons in my user interface: Approve selected Reject selected Now depending on how many checkboxes (elsewhere) are selected, I want to change the text to something like "Approve 4 selected" I'm tried in vain to acess: $("button.primary").eac

[jQuery] Re: Help getting started with JSON (and PHP)

2009-08-27 Thread sso
It doesn't show up in php_info(); On Aug 27, 12:22 pm, Leonard Martin wrote: > Have you also tried accessing your PHP page directly and copying it's > output intohttp://www.jsonlint.com? > > I'd also double check your server has the JSON module for PHP > installed, just to be sure ;-) > > On Aug

[jQuery] Re: Click event not working?

2009-08-27 Thread James
Could you show us what your animate_next() function looks like? On Aug 26, 3:04 pm, Kris S wrote: > I'm trying to execute a function "animate_next()" when a "div" element > is clicked, but it isn't working. Here is what it looks like.. > > $('#playground').click(function(){animate_next();}); > >

[jQuery] Re: jQuery selector for style attribute

2009-08-27 Thread James
Is that for the whole ID? (e.g. it maybe 'ext-gen439' once or 'blah- foo3456' another) Or only just the number at the end? (e.g. always begin with "ext-gen") On Aug 26, 5:10 pm, John wrote: > Also, it is not possible for us to use Ids because the ids are > dynamically > generated by the ExtJS fr

[jQuery] Re: Upgrading to 1.3.2 from 1.2.6, selectors that used to return many elements now only returning first

2009-08-27 Thread E Winter
Found it. Incompatibility with validation plugin so I upgraded that. http://bassistance.de/jquery-plugins/jquery-plugin-validation/ On Aug 27, 11:23 am, Eric Winter wrote: > I am not trying to upgrade to 1.3.2 and in every case I use a selector > that should (used to) return many elements now o

[jQuery] Sending data to the server

2009-08-27 Thread jhm
Is there a way in jQuery to send data to a server as something other than a command string? It would be very convenient, for example, to send a block of xml or json much like getJSON() in reverse. It would need to be sent over a secure https connection. TIA!

[jQuery] Re: Variable Scope Help

2009-08-27 Thread James
I haven't tested this, nor tried it before, but based on the documentation the data type of extraParams has to be an object, or a function (that probably returns an object). function getCategoryID() { return {catID:categoryID}; // 'catID' will be the name of the categoryID in your script

[jQuery] Variable Scope Help

2009-08-27 Thread WhoButSB
Hello All, I'm running into some issues where I'm alittle confused about the scope of my variables. I have this code: $(function(){ var categoryID; //Aloha Item Category Dropdown Selection //Takes the Selected Value and adds it to Item Search Ending $("#add-item selec

[jQuery] Re: Hover does not stop

2009-08-27 Thread amuhlou
in CSS, try adding position: relative; to the #navigation properties On Aug 27, 7:12 pm, Mario wrote: > Hello everybody, > > I want to create a menu on the left side of the screen. OnMouseOver > the menu should slid in from the left, OnMouseOut the menu should > slide back to the right so that o

[jQuery] Re: Help getting started with JSON (and PHP)

2009-08-27 Thread sso
On Aug 27, 11:45 am, MorningZ wrote: > I would suggest using Firefox and FireBug to "watch" what comes back > from your $.getJSON call... because that will indicate that your JSON > is indeed valid, because if it isn't, you'll never make it into the > success event > > On Aug 27, 11:01 am, sso

[jQuery] Re: Help getting started with JSON (and PHP)

2009-08-27 Thread sso
its not installed, the functions break the script and I'm now aware that this isn't obvious when its done in an ajax call :) thanks! On Aug 27, 12:22 pm, Leonard Martin wrote: > Have you also tried accessing your PHP page directly and copying it's > output intohttp://www.jsonlint.com? > > I'd a

[jQuery] Re: jQuery .append various elements of a class

2009-08-27 Thread James
You have to loop through the jQuery set. You can use the each() method for that. $(document).ready(function(){ $(".img").each(function() { var url = this.href; $("#imgbox").append(''); }); }); On Aug 26, 4:06 pm, Jottae wrote: > Hi guys > I'm trying to do the following:

[jQuery] Re: jQuery .append various elements of a class

2009-08-27 Thread Jottae
Thanks. Thanks. Thanks. It's Work On 27 ago, 16:41, James wrote: > You have to loop through the jQuery set. You can use the each() method > for that. > > $(document).ready(function(){ >     $(".img").each(function() { >         var url = this.href; >         $("#imgbox").append(''); >     }); >

[jQuery] Re: Variable Scope Help

2009-08-27 Thread WhoButSB
Thank you James for the help! I didn't know that the address is static once you've initialized it. I'm trying to work with the extraParams option but it doesn't seem to do anything. Here is how I have it set: //Item Search for food name $("#add-item #ITEMNAME").autocomplete("", {

[jQuery] Is there a 'dropdown button' plugin?

2009-08-27 Thread donb
That's what I'd call it, anyway. This would be a captioned button with a small arrow you'd click on. That would drop down a list of button captions, changing the caption of the button when it collapses. The upshot is, the button would have variable onclick functionality, dependent upon the curr

[jQuery] Re: Toggle refresh issue on IE7

2009-08-27 Thread nextpulse
Found a hack. I had to place everything in a table and force a width in IE. That seems to have fixed it. (So its most likely a css issue) On Aug 27, 8:24 am, nextpulse wrote: > I am seeing a weird effect on IE 7. > > I have a set of vertically aligned/stacked boxes (simple divs) that > each cont

[jQuery] not returning a JSON object

2009-08-27 Thread defdev
Hi, i have a form defined as follows: $(document).ready(function(){ $('#edit_page_form').ajaxForm({ type: "POST", timeout: 45000, dataType: 'json', error: function() { alert("error etc "); }, success: function(json) {

[jQuery] Re: Image inside script

2009-08-27 Thread Ricardo
$("."+errId).empty() .css({ display: inline, color: 'red' }) .text(" Invalid Character. Numerals only.") .prepend(''); What CMS are you using? The page is probably in the root of your website, so you'll need the full path to the the image. On Aug 27, 3:02 am, Fabio wrote: > Hi Paolo ,

[jQuery] Re: Reading text value on element

2009-08-27 Thread Jesper Rønn-Jensen
Solution: $($("button.primary")[0]).text() -- or should we call this a workaround ? Why will I have to wrap the element in another jQuery function call? /Jesper On Aug 27, 5:26 pm, Jesper Rønn-Jensen wrote: > I'm trying to read (and then change) the text on two buttons in my > user interface

[jQuery] Re: LavaLamp SubMenu Help!

2009-08-27 Thread Karen Morales
Hi Paolo, Thanks for your response. I achieved the updated result using the following code function fademenutext() { $('#jsddm li a').hover( function () { $(this).animate({color:'green'}, {queue:false,duration:500}); }, function () { $(this).animate({color:'wh

[jQuery] Validate: Position of error messages using xVal and jquery with the validate plugin

2009-08-27 Thread Robert
I have an MVC application that is using xVal and jquery with the validate plugin. I am trying to get the error message span's that appear to display under the associated form elements., right now they display to the right. I noticed that this seems to be possible with jquery validate since i see i

[jQuery] Re: Help getting started with JSON (and PHP)

2009-08-27 Thread Leonard Martin
Have you also tried accessing your PHP page directly and copying it's output into http://www.jsonlint.com? I'd also double check your server has the JSON module for PHP installed, just to be sure ;-) On Aug 27, 4:45 pm, MorningZ wrote: > I would suggest using Firefox and FireBug to "watch" wh

[jQuery] Re: Toggle refresh issue on IE7

2009-08-27 Thread nextpulse
For those who are interested. This is a known bug with jquery on IE (I google'ed and found others having the same issue) Its an issue with LI elements. On Aug 27, 9:38 am, nextpulse wrote: > Found a hack. I had to place everything in a table and force a width > in IE. That seems to have fixed i

[jQuery] json to array?

2009-08-27 Thread marksimon
Hi. I'm trying to use this google api for an org chart and I'm a little lost. google.load('visualization', '1', {packages:['orgchart']}); google.setOnLoadCallback(drawChart); function drawChart() { var data = new google.visualization.DataTable(); data.a

[jQuery] Re: Ajax Form Plugin not posting variables in IE7/8--Empty $_POST array, but works in all other browsers

2009-08-27 Thread PEP
I figured this out: IE won't let you use the names "length" or "width" for your name attributes, but this is fine apparently in other browsers, and it's only is an issue when submitting via ajax--if I turned the script off, it posted as normal. Hopefully this bit of knowledge will save someone a

[jQuery] Re: Help getting started with JSON (and PHP)

2009-08-27 Thread Leonard Martin
Have you also tried accessing your PHP page directly and copying it's output into http://www.jsonlint.com? I'd also double check your server has the JSON module for PHP installed, just to be sure ;-) On Aug 27, 4:45 pm, MorningZ wrote: > I would suggest using Firefox and FireBug to "watch" wh

[jQuery] [datepicker] unique id for datepicker (ui-datepicker-div)

2009-08-27 Thread bdaniel7
hello, Is it possible to assign some unique id-s when using multiple instances of a datepicker (DP) on a page? currently i'm tinkering with this timepicker (TP) ( http://milesich.com/timepicker/ ) because i desperately need a TP, but without DP. so far i managed to make only the TP appear, how

[jQuery] Re: not returning a JSON object

2009-08-27 Thread W. Young
have you tried json.d ? On Aug 27, 9:38 am, defdev wrote: > Hi, > > i have a form defined as follows: > > $(document).ready(function(){ >         $('#edit_page_form').ajaxForm({ >                 type: "POST", >     timeout: 45000, >           dataType: 'json', >     error: function() { >      

[jQuery] Re: focus() killed by return false;

2009-08-27 Thread Karl Swedberg
On Aug 27, 2009, at 12:33 PM, Florin Gheorghies wrote: How on earth do I start getting these emails out of the blue! I've checked, I'm not member of this group. Can anyone tell me how to cancel it? The following instructions are paraphrased from: http://groups.google.com/support/bin/answ

[jQuery] ajaxForm - how to give a failure message

2009-08-27 Thread BigLob
Hi there, I'm trying to make a form that has both browser and server side validation. I'm using the validate plugin for browser side and thats working fine. I'm using the form plugin for server side. I'm using ajaxForm to test if the form was submitted and then display a thankyou message. My que

[jQuery] Re: focus() killed by return false;

2009-08-27 Thread Florin Gheorghies
How on earth do I start getting these emails out of the blue! I've checked, I'm not member of this group. Can anyone tell me how to cancel it? -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of shenry Sent: Thursday, August 27, 2009 10:5

[jQuery] Help getting started with JSON (and PHP)

2009-08-27 Thread sso
I need to return several values and I'd rather do it all in one ajax call. However there doesn't seem to be anything in data. Perhaps I'm way off here. I appreciate any guidance you can give me. Thanks :) This is my jquery $('#cart-pulldown').livequery('click', function(event){

[jQuery] Re: focus() killed by return false;

2009-08-27 Thread shenry
Thanks Ianxiazhi, that works. Why is it that I need to call focus from its own callback? Like I said, I'm very new to JS/jquery so any insight is appreciated. -S On Aug 27, 12:14 am, lanxiazhi wrote: > function loginCallback() {//add a callback function to this animation,where > the focus take

[jQuery] Re: Help getting started with JSON (and PHP)

2009-08-27 Thread MorningZ
I would suggest using Firefox and FireBug to "watch" what comes back from your $.getJSON call... because that will indicate that your JSON is indeed valid, because if it isn't, you'll never make it into the success event On Aug 27, 11:01 am, sso wrote: > I need to return several values and I'd

[jQuery] Re: jQuery .append all elements

2009-08-27 Thread Paolo Chiodi
$(document).ready(function(){ img=$(".img"); img.each(function(i){ var imga = $(this).attr("href"); $("#imgbox").append(""); }); }); Paolo On Thu, Aug 27, 2009 at 4:08 AM, Jottae wrote: > $(document).ready(function(){ >  img=$(".img"); >  imga=img.attr("href"); >  $("#imgbox").app

[jQuery] Toggle refresh issue on IE7

2009-08-27 Thread nextpulse
I am seeing a weird effect on IE 7. I have a set of vertically aligned/stacked boxes (simple divs) that each contains a link that toggles the contents (small images loaded via ajax) of the box. Everything work as expected on FF - click on any links and the contents of the box toggles. Very simila

[jQuery] Re: (Validation) How to use with Multi-Select?

2009-08-27 Thread Psyclo
Thanks for responding so quickly. Unfortunately, my form just isn't working like yours. I don't see what I've done wrong. Maybe you can see something? Here is the code: Select a person First Person Second Person Third Person $.validator.addClassRules({ multi

[jQuery] Re: Any documentation for element.nodeIndex?

2009-08-27 Thread Karl Swedberg
On Aug 27, 2009, at 8:49 AM, Justin Dearing wrote: Hello, I was editing some javascript code yesterday that happened to use jquery. Part of the code selected two elements via jquery. Then the original author used nodeIndex to determine the position of each of these nodes in their parents. I co

[jQuery] Re: Click event not working?

2009-08-27 Thread Cesar Sanz
mmm.. try this.. Put a border to your div, let's say border: 10px, then click the border to see what happen.. - Original Message - From: "Kris S" To: "jQuery (English)" Sent: Wednesday, August 26, 2009 7:04 PM Subject: [jQuery] Click event not working? I'm trying to execute a

[jQuery] Any documentation for element.nodeIndex?

2009-08-27 Thread Justin Dearing
Hello, I was editing some javascript code yesterday that happened to use jquery. Part of the code selected two elements via jquery. Then the original author used nodeIndex to determine the position of each of these nodes in their parents. I could not find any documentation on nodeIndex on the jQu

[jQuery] validate - Any example similar to imeem.com?

2009-08-27 Thread Ron Villalon
I can't seem to figure out how to show only one error at a time similar to https://www.imeem.com/signup/ Anyone have an example I can take a look at? Or point me in the right direction?

[jQuery] Re: Var in the Succes: part of Ajax

2009-08-27 Thread Karl Swedberg
a couple ideas. 1. add "var" so you're not creating a global variable (unrelated to your question, but a good practice, nonetheless): var anc_pv = $('.pv_act').attr("pv"); 2. put another alert right after the var anc_pv = $ ('.pv_act').attr("pv"); var anc_pv = $('.pv_act').

[jQuery] (Validate) - Show one error at a time

2009-08-27 Thread Ron Villalon
Can anyone point me in the right direction or an example to show only one error at a time at the bottom of the form? Something similar to this: https://www.imeem.com/signup/

[jQuery] Re: LavaLamp SubMenu Help!

2009-08-27 Thread Paolo Chiodi
quite simple. instead of setting the color to green in the :active class, just use jquery.hover to set the color. Maybe when you hover the submenu you set yhe color, when exit the submenu set the color to default Paolo On Thu, Aug 27, 2009 at 2:52 PM, Karen Morales wrote: > Hi > > I would like s

[jQuery] Re: (Validation) How to use with Multi-Select?

2009-08-27 Thread Jörn Zaefferer
Here are examples with multi-selects: http://jquery.bassistance.de/validate/demo/radio-checkbox-select-demo.html Jörn On Thu, Aug 27, 2009 at 3:04 PM, Psyclo wrote: > > I have a form with a multi-select field that needs to be validated, so > at least one option is selected.  Is there a setting I

[jQuery] (no subject)

2009-08-27 Thread Mike Holloway - Phase 8

[jQuery] (Validation) How to use with Multi-Select?

2009-08-27 Thread Psyclo
I have a form with a multi-select field that needs to be validated, so at least one option is selected. Is there a setting I'm missing in the validation plug-in? Thanks in advance.

[jQuery] Re: (Validation) Problem with "All or Nothing" fields

2009-08-27 Thread Psyclo
Can anyone help with this, Please? Thanks.

[jQuery] LavaLamp SubMenu Help!

2009-08-27 Thread Karen Morales
Hi I would like someone to help me out with some issues I am having with the Lava Lamp / SubMenu. This is what I have achieved so far http://karen.2kmegs.com, however what I am trying to do now is that when I am hovering the 'Home' (or whichever has a submenu) I would

[jQuery] Re: Plug-in for elegant Horizontal Menu?

2009-08-27 Thread Richard D. Worth
Try Superfish. See 'Examples', then 'vertical style': http://users.tpg.com.au/j_birch/plugins/superfish/#sample3 - Richard On Wed, Aug 26, 2009 at 12:48 PM, lukas wrote: > > I stumbled over a very elegant way to select from a large item list on > http://siemens-home.com/ ("Choose your country"

[jQuery] Var in the Succes: part of Ajax

2009-08-27 Thread Kilhom
Hi everyone ! My problem is simple. Here is my code : function ajax_test(){ anc_pv = $('.pv_act').attr("pv"); $.ajax({ type: "GET", url: "ajax_test.php", data: "", dataType: "html", success: function(data){ ale

[jQuery] [jQuery Time Entry] Range

2009-08-27 Thread Mirco Attocchi
Hi all, I'm new to jQuery. I'm not sure this is the right place for question about plugins. I'm trying the Time Entry Plugin with a Time range. Some one know how I can update the #tTo field when I increment the #tFrom field? Thanks for help. Mirco

[jQuery] [name=] selector behaviour in IE6

2009-08-27 Thread Dannib
I just ran into a behaviour that I can't explain using jQuery 1.3.2. -- HTML ... ... ... ... -- First code which doesn't work in IE6 (work in mozilla browsers, IE7+, Opera and probably others as well) $('#'+gl_my_tbl_id+' tr.rel_event[name='+uniq_id+']').remove(); -- Code that DOES work in IE

[jQuery] innerWidth doesn't measure scrollbars in Safari/Chrome

2009-08-27 Thread BaBna
Rechanging the subject to its original title... On Aug 27, 12:02 pm, BaBna wrote: > First, why did you change the title of my post and added your > unrelated question there? > > Second, in PHP, PHP_SELF doesn't send the name of the actual php > script in which it is called but the page running i

[jQuery] Re: how to know script's self path?

2009-08-27 Thread BaBna
First, why did you change the title of my post and added your unrelated question there? Second, in PHP, PHP_SELF doesn't send the name of the actual php script in which it is called but the page running in the browser, i.e. if you call PHP_SELF from a file included in your index.php, PHP_SELF wil

[jQuery] Re: This is not a function

2009-08-27 Thread Michael Price
Looking at the (many!) Javascripts you've got running there, you appear to be loading jQuery twice: Line 21: Line 65: http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"; type="text/javascript"> They're the same version so it might not matter - but it's worth removing one of th

[jQuery] Problem with livequery and data loaded with ajax call

2009-08-27 Thread sbakshi
Hi, I am using a user control in the page to display the list messages posted by the logged in user. The user control also includes the paging, which is implemented using ajax.Actionlink. In the list I have a delete button where we are using boxy class to modal popup for confirmation of deletion

[jQuery] This is not a function

2009-08-27 Thread Chris Cardarello
Ok for some reason none of my jQuery is working i get these errors : Error: $ is not a function Source File: http://wptest.moppieillusions.com/ Line: 52 Error: $ is not a function Source File: http://wptest.moppieillusions.com/ Line: 100 Error: $ is not a function Source File: http://wptest.mop

[jQuery] jQuery .append all elements

2009-08-27 Thread Jottae
Hi guys I'm trying to do the following: - $(document).ready(function(){ img=$(".img"); imga=img.attr("href"); $("#imgbox").append(""); }); --- Want to get all the images with the "img" class and the append them in

  1   2   >