[jQuery] Re: Cross domain call using JQuery

2009-03-05 Thread baby
Hi, Thanks for your suggestion. I have gone though this flicker example and it is perfectly. flicker example is also working fine when i integrate this code in my application however, when i try to call my struts application url, it is not working. do i need to do any configuration for this?

[jQuery] Re: [validate] remote option needs name attribute, can't validate XHTML

2009-03-05 Thread Jörn Zaefferer
How is the name attribute invalid? http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_extformsmodule Jörn On Thu, Mar 5, 2009 at 10:06 AM, zemm simonenast...@gmail.com wrote: Hi, using jquery validate plugin seems that I can't avoid to use the name attribute in the text field

[jQuery] varXy.find(':text') or $(varXy).find(':text')

2009-03-05 Thread Ressmann Gerald (ewz)
Hi there thats an easy one for you ;-) if i do: var mySet = $('trtd:nth-child(2n)'); how do I use mySet? What's the difference between mySet.find(':text') and $(mySet).find(':text') Thanks :-)) GGerri

[jQuery] Simple one: difference between varXy.find(':text') and $(varXy).find(':text')

2009-03-05 Thread ggerri
Hi there thats an easy one for you ;-) if i do: var mySet = $('trtd:nth-child(2n)'); how do I use mySet? What's the difference between mySet.find(':text') and $(mySet).find(':text') Thanks :-)) GGerri -- View this message in context:

[jQuery] Re: varXy.find(':text') or $(varXy).find(':text')

2009-03-05 Thread ryan.j
mySet is an object or variable, $(mySet) will try to get the element mySet

[jQuery] Re: Simple one: difference between varXy.find(':text') and $(varXy).find(':text')

2009-03-05 Thread ryan.j
mySet is an object or variable, $(mySet) will try to get an element using the contents of mySet as the selector. On Mar 5, 10:04 am, ggerri gerald.ressm...@ewz.ch wrote: Hi there thats an easy one for you ;-) if i do: var mySet = $('trtd:nth-child(2n)'); how do I use mySet? What's the

[jQuery] Re: How do I translate this in jQuery?

2009-03-05 Thread Rick Faircloth
I'll have to set up a public demo, since this is a function on private site management site! :o) Thanks for your help! Rick -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of unwiredbrain Sent: Wednesday, March 04, 2009 7:43 PM To:

[jQuery] Re: Trying to change CSS values for .ui-tabs but....

2009-03-05 Thread Charlie Tomlinson
.ui-state-active a {} this works in firebug on current version of tabs on themeroller page webspee...@gmail.com wrote: I can change the properties that I need to change except the a color of the clicked tab. I've tried many combos, here is what I have. /* Tabs

[jQuery] Need to insert an element in DIV at position X Y

2009-03-05 Thread choesang
Hi! I am trying to create a webpage where users can insert a pin (div) in between the text using context menu. My problem is that i do not know how to insert at the exact position. Using Dom's I can arrive only to the nearest DIV but a DIV contains a lot of text and the PIN has to be position

[jQuery] Web Based Inventory

2009-03-05 Thread Sohail Asp
Hello Members. I have designed Web Based Inventory System in ASP, I want suggestion and replies from experts about this sytem. For demo please visit www.thetimesoft.com. I am waiting your reply. Thanks

[jQuery] Form Plugin ajax

2009-03-05 Thread makrohaus
Hi! I have a form and i submit it with the Form Plugin via ajax. My problem is that i have some inputs which are loaded on an action via ajax. When i submit the form the inputs which are loaded later will not be submitted. Has anyone any idea? Thanks a lot!

[jQuery] Animate using relative %

2009-03-05 Thread Adam Jessop
* Hi, I am working on a site where are wanting to create a full screen site using percentages for positioning and displaying of content. As part of the project we also want to have some animation to bring objects onto the page. We have the objects in their correct

[jQuery] search nodes in XML

2009-03-05 Thread Kranthi
Hi All, I have a employees.xml, which contains employee nodes. No in my HTML I should have a text box and a seach button. Input value is sth like G% or Go%. I need to display all the matching values like Google, google etc., in a table. Is it possible to get this kind of output? Please help.

[jQuery] Beginner a little stuck

2009-03-05 Thread ashbyrich
I have multiple forms of the nature [code] form input hidden value =1 input submit class=submit /form form input hidden class=qty value =2 input submit class=submit /form [/code] I have the script as follows [code] script language=javascript $(document).ready(function() {

[jQuery] Modify hash in Tabs plugin

2009-03-05 Thread fonoteca
I'm learning about JQuery and I'm absolute begginer. I've looking for help about one issue that imagine is easy but I can't find the answer till now. I supose Klaus Hartl has the solution for this: How I modify the hash of the tabs plugin? I'm using the version 2 with the remote option:true. By

[jQuery] jQuery Form Plugin Ajax Problem

2009-03-05 Thread makrohaus
Hi. I have a form and i submit it with: $(#form_ajax).ajaxSubmit(); My problem is that some of the inputs are loaded on an action via ajax. When i submit the form the inputs which are loaded later are not submitted. Has anyone any idea? Thanks a lot!

[jQuery] Need to insert an element in DIV at position X Y

2009-03-05 Thread choesang
Hi! I am trying to create a webpage where users can insert a pin (div) in between the text using context menu. My problem is that i do not know how to insert at the exact position. Using Dom's I can arrive only to the nearest DIV but a DIV contains a lot of text and the PIN has to be position

[jQuery] Ajax get is not working in IE

2009-03-05 Thread Kranthi
Hi All, I am new to JQuery. I tried this example from http://www.webmonkey.com/tutorial/Easy_XML_Consumption_using_jQuery This works fine in Firefox but in IE I am not able to see the data. Also, if namespaces are used in XML, how should I handle? Thanks | Kranthi

[jQuery] Several star ratings on one page

2009-03-05 Thread Dave Redfern
Hello, I have a listing page with lots of items each having a rating using http://www.fyneworks.com/jquery/star-rating/. The first star rating works great but all the others on the page have issues with removing the hover class. I have found out that the reason for this is they all have the

[jQuery] script element added with XMLHTTPRequest

2009-03-05 Thread ruturajv
I added a script element with jQuery as code $j('script type=text/javascript src=http://domain.com/script.js;/ script').appendTo(body); /code It adds the file correctly, however it uses AJAX or XHR to get the file and it adds _=1323131546 (some number, I guess to disable caching) to query the

[jQuery] Re: jQuery Form Plugin Ajax Problem

2009-03-05 Thread Mike Alsup
I have a form and i submit it with: $(#form_ajax).ajaxSubmit(); My problem is that some of the inputs are loaded on an action via ajax. When i submit the form the inputs which are loaded later are not submitted. Has anyone any idea? Thanks a lot! If those inputs are added to the

[jQuery] Re: Beginner a little stuck

2009-03-05 Thread Liam Potter
you need to first of all, write a valid form. form input type=hidden value=1 / input type=submit class=submit / /form then your script needs to be script language=javascript $(document).ready(function() { $('.submit').click(function() { $(this).parents('form').each(function(){

[jQuery] Re: Web Based Inventory

2009-03-05 Thread Rick Faircloth
From a quick glance...in the Purchase area, why not make the item entry field a drop down instead of opening a new window and requiring the user to type the info in directly? Rick -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Sohail

[jQuery] Re: Form Plugin ajax

2009-03-05 Thread Rick Faircloth
Why are some inputs submitted later? Why not all at the same time? Rick -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of makrohaus Sent: Thursday, March 05, 2009 3:42 AM To: jQuery (English) Cc: m.gillho...@makrohaus.de Subject:

[jQuery] Re: .clone a form

2009-03-05 Thread Rick Faircloth
Not sure, but it might be that the .html() part is telling the clone function to just clone the html *within* .hook:first. What happens if you leave off the .html() part? Rick -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of bstoppel

[jQuery] Current item child index ?

2009-03-05 Thread Liam Byrne
Hi folks Just wondering if there's a quick/shorthand way of doing this: I'm doing a navigation system where I want clickable items but I want to put the current item number in a footer, e.g. Any ideas of a quick way (without using each) to get CURRENTSTEPNUMBER ? Basically the reverse of

[jQuery] Re: Simple one: difference between varXy.find(':text') and $(varXy).find(':text')

2009-03-05 Thread ggerri
Thanks Ryan :handshake: so mySet.find(':text').each(...) would be right and $(mySet).find(':text').each(...) not? :confused: In examples I often see (within an each function): $(this).something but also this.something Still dont get the difference of use :,( G

[jQuery] Re: draggable events not working with 1.3.2 version

2009-03-05 Thread Richard D. Worth
jQuery UI 1.5.3 is only compatible with jQuery 1.2.6. To use jQuery UI with the latest version of jQuery (1.3+) you'll need the latest preview release: 1.6rc6. - Richard On Wed, Mar 4, 2009 at 7:02 AM, valugi val...@gmail.com wrote: This code works with 1.2.6 version but not on 1.3.2. The UI

[jQuery] Re: Animate using relative %

2009-03-05 Thread John Resig
Not sure - do you have a sample that we can look at? --John On Thu, Mar 5, 2009 at 6:16 AM, Adam Jessop a...@infused-gaming.net wrote: Hi, I am working on a site where are wanting to create a full screen site using percentages for positioning and displaying of content. As part of the

[jQuery] Re: Current item child index ?

2009-03-05 Thread Liam Byrne
Found this, which I reckon might be a slightly bigger load ? $(#stepsList li).each(function(i) { $(this).click(function() { // REFERENCE i IN HERE TO GET THE ITEM NUMBER } } Pity .click doesn't take the same index parameter :( Any ideas, or for those in the know is the above

[jQuery] Re: Beginner a little stuck

2009-03-05 Thread Richard Wheatley
excuse my shorthand/laziness but confirm i have a valid form.. Still ot quite there but will go down this route ...R Liam Potter wrote: you need to first of all, write a valid form. form input type=hidden value=1 / input type=submit class=submit / /form then your script needs to be script

[jQuery] Dynamic mailto: link.

2009-03-05 Thread Sir Rawlins
Hello Guys, I have a 'mailto' link the emails of which I want to be dynamic based on a bunch of checkboxes. So lets say my markup looks like this: input type=checkbox name=UserEmails value=some...@something.org / input type=checkbox name=UserEmails value=some...@another.com / input

[jQuery] RE: Anchors Images Tutorial

2009-03-05 Thread HM-User
I have had a look at this tutorial by Malsup and simply, you can add an a link to the image slides. However, for me like the tutorial with: function onAfter() { $('#output').html(Current anchor: + this.href); I have for myself: before: onBefore, pager: '#featurenav' }); function

[jQuery] Re: Simple one: difference between varXy.find(':text') and $(varXy).find(':text')

2009-03-05 Thread Rick Faircloth
Hi, Rayn :handshake: :o) I think, for shorthand notation (some say for readability, but I think otherwise), some set var's (variables) to represent pieces of code, for instance: var mySet = '$(mySet)' and then use it as: mySet.find(':text')... Written in longhand, it would be:

[jQuery] Re: Error: $(#suggest1).autocomplete is not a function

2009-03-05 Thread MorningZ
It doesn't work because you don't have the autocomplete js file referenced/loaded On Mar 5, 1:19 am, efet efetun...@gmail.com wrote: script type=text/javascript $().ready(function() {   var data = [ {QUERY: $(#QUERY).val(), url:'test.asp? Process=CheckCustomer'} ];  

[jQuery] Re: Animate using relative %

2009-03-05 Thread Adam Jessop
Sure, The site in question is at: http://be.0wned.co.uk I have currently got active on there two examples of the situations I'm running into but let me run down the scene. What we are trying to achieve is that the field, city, rocks and sign (divs have ID's reflecting those names) are

[jQuery] Re: Dynamic mailto: link.

2009-03-05 Thread ryan.j
i've not tested the code so sorry if i've fumbled this, but something like... var a = []; $('input.emailAddress').each(function(i){ a.push( $(this).val() ); }); should build an array of addresses you can a.join(, ) On Mar 5, 12:46 pm, Sir Rawlins robert.rawl...@thinkbluemedia.co.uk wrote:

[jQuery] Re: Dynamic mailto: link.

2009-03-05 Thread ryan.j
except i haven't answered your question, have i. :x as long as the mail link is only ever going to perform one function, i'd just stick a function call in the onclick event of the anchor.

[jQuery] Re: Dynamic mailto: link.

2009-03-05 Thread ryan.j
and you'd probably want to add :checked onto the end of the selector too. ;)

[jQuery] Re: Animate using relative %

2009-03-05 Thread Adam Jessop
Sure, The site in question is at: http://be.0wned.co.uk I have currently got active on there two examples of the situations I'm running into but let me run down the scene. What we are trying to achieve is that the field, city, rocks and sign (divs have ID's reflecting those names) are

[jQuery] jcarousellite slide widths issue

2009-03-05 Thread jon randahl
Hello all! I was wondering if anyone could shed some light on a problem I'm facing? I'm using Ganeshji Marwaha's jcarousellite to create a slide show of three (possibly more later) definition lists for client contact details. Each DL contains three contacts. Each DL is held within an LI which

[jQuery] Re: Current item child index ?

2009-03-05 Thread Adam Jessop
Give the li's an ID and just use that for the step number e.g: li id=step-1Step one/li li id=step-2Step two/li Then: script $(#stepsList li).click(function() { // load stepContent === not a problem id = $(this).attr('id'); $(#stepFooter).html(Viewing + id.replace(-, ) + of

[jQuery] Slider - value = function

2009-03-05 Thread Elledinho
Hi peoples. I just wanted to ask... is is a bug that I cant use a function as value of a Slider (UI) ? fx: $(#soundControl #setVolume).slider({ range: min, min: -3, max: 103, value: ytplayer.getVolume(), }); This wont even show the slider because of the value of

[jQuery] Re: Current item child index ?

2009-03-05 Thread MorningZ
There is also the .index functionality http://docs.jquery.com/Core/index On Mar 5, 7:31 am, Adam Jessop a.jes...@sivltd.com wrote: Give the li's an ID and just use that for the step number e.g: li id=step-1Step one/li li id=step-2Step two/li Then: script $(#stepsList

[jQuery] Re: draggable events not working with 1.3.2 version

2009-03-05 Thread valugi
thanks a lot. I see now the note in the UI download page.(Latest stable (1.5.3: jQuery 1.2.6)). Silly me. On Mar 5, 1:32 pm, Richard D. Worth rdwo...@gmail.com wrote: jQuery UI 1.5.3 is only compatible with jQuery 1.2.6. To use jQuery UI with the latest version of jQuery (1.3+) you'll need

[jQuery] sorting w/ a hyperlink

2009-03-05 Thread philliptackett
Hi, I have a page where I've implemented the jquery function. Please check out here: http://www.grad.uiuc.edu/eep/srop/faculty/faculty_search_results.cfm?... My question, is how to make the 'Full Name' column sort by the Full Name value instead of the value of the URL hyperlink which is what

[jQuery] Re: Dynamic mailto: link.

2009-03-05 Thread Sir Rawlins
Hey Ryan! Thanks for your advice, I appreciate it. I've got this now: input type=checkbox name=CMStudent_IDs value=s...@email.com // td a class=blue_button id=mailspanEmail Selected Students/ span/a $(input[name='CMStudent_IDs']).click(function(){

[jQuery] Re: Beginner a little stuck

2009-03-05 Thread Richard Wheatley
Liam - i have pushed the return false down one set of brackets which has fixed one prob...however still not quite there... reading docs on parents function and its clear as mud to me right now.. Liam Potter wrote: you need to first of all, write a valid form. form input type=hidden

[jQuery] Re: Javascript search library

2009-03-05 Thread Nicolas R
Khai, perhaps this may be useful to you: http://code.google.com/p/jdatastore/ If you find it excessive, perhaps just the filter method is what you're after: http://code.google.com/p/jdatastore/source/browse/trunk/store.js#375 On Mar 5, 4:00 am, Khai khaitd...@gmail.com wrote: I have a

[jQuery] Re: Beginner a little stuck

2009-03-05 Thread Liam Potter
the main part is the $(this) that basically lets jquery know you mean specifically the button you pressed rather then all buttons with the class .submit Richard Wheatley wrote: Liam - i have pushed the return false down one set of brackets which has fixed one prob...however still not quite

[jQuery] Re: Beginner a little stuck

2009-03-05 Thread Liam Potter
You may find it easier to use the form plugin though. http://malsup.com/jquery/form/ Richard Wheatley wrote: Liam - i have pushed the return false down one set of brackets which has fixed one prob...however still not quite there... reading docs on parents function and its clear as mud to me

[jQuery] Re: JQGrid Grid as subgrid not calling server-side program

2009-03-05 Thread Chuk
I'm thinking that the problem might be in what external scripts I'm linking to. When I'm utilizing grid as subgrid, should I include anything other than JQGrid/js/grid.subgrid.js?

[jQuery] Re: JQGrid Grid as subgrid not calling server-side program

2009-03-05 Thread Chuk
I'm thinking that the problem might be in what external scripts I'm linking to. When I'm utilizing grid as subgrid, should I include anything other than JQGrid/js/grid.subgrid.js?

[jQuery] Re: LocalScroll with anchor in URL not working

2009-03-05 Thread clorentzen
Ariel -- Thanks again for responding. I've tried a few more things, but the links from another page targeting my scrolling page still seem to work unreliably. I'm in FF3 mainly, but can see the issue in Safari 3 and IE6 and 7 as well. Sometimes the links to site two and site three on this page

[jQuery] Re: Dynamic mailto: link.

2009-03-05 Thread MorningZ
Here's a quick example i whipped up (and works) http://paste.pocoo.org/show/106586/ To note about your code, setAttr isn't a jQuery call, it's .attr On Mar 5, 10:04 am, Sir Rawlins robert.rawl...@thinkbluemedia.co.uk wrote: Hey Ryan! Thanks for your advice, I appreciate it. I've got

[jQuery] Re: LocalScroll with anchor in URL not working

2009-03-05 Thread Ariel Flesler
Uhm... I really dunno. As I told you, the plugin won't react to clicks on the Back button. I intend to take another look at this asap. Try putting the window.scrollTo line outside the document.ready. On Thu, Mar 5, 2009 at 1:28 PM, clorentzen carl.lorent...@gmail.com wrote: Ariel -- Thanks

[jQuery] Re: Objects Methods as event handlers.

2009-03-05 Thread Michael
That unfortunately is not the attitude of John Resiq - the creator. While trying to find a class implementation for jQuery I ran across his Classy Query April Fool's joke from last year. My mind is set - I will not be using this library unless forced because I do not want to use the code of

[jQuery] Trying to add/remove a class when....

2009-03-05 Thread webspee...@gmail.com
Hey all. I'm trying to add/remove a class and am having trouble. When I add the new class, the color takes hold, but not the changing of the background image. The original CSS is defined as input[type=button]{background- image:} How do I remove a class that is defined like the one above? I

[jQuery] Re: Dynamic mailto: link.

2009-03-05 Thread Sir Rawlins
MorningZ, That works a real treat! Thank you very much indeed!!! One thing further I'd like to pick your brains on. I have a 'select all' script which works like this: $(.select_all_cm).click(function() { var checked_status = this.checked;

[jQuery] Re: Simple one: difference between varXy.find(':text') and $(varXy).find(':text')

2009-03-05 Thread ricardobeat
It's mostly done to improve performance. If you save the jQuery object in a var you only need to find the element once (depending on the selector it's an expensive operation), and then operate on that single object. I (and other people) like to put a '$' in front of the var name when it contains

[jQuery] Re: Need to insert an element in DIV at position X Y

2009-03-05 Thread ricardobeat
Insert anywhere and use position:absolute. On Mar 5, 8:03 am, choesang tchoes...@gmail.com wrote: Hi! I am trying to create a webpage where users can insert a pin (div) in between the text using context menu. My problem is that i do not know how to insert at the exact position. Using Dom's

[jQuery] Re: Trying to add/remove a class when....

2009-03-05 Thread MorningZ
Got more HTML and CSS to show? it's hard to help your problem with the little code you posted On Mar 5, 10:52 am, webspee...@gmail.com webspee...@gmail.com wrote: Hey all. I'm trying to add/remove a class and am having trouble. When I add the new class, the color takes hold, but not the

[jQuery] Re: .clone a form

2009-03-05 Thread bstoppel
Without the .html() part you get an object. With .text() you get what appears to be HTML entities and text. On Mar 5, 6:10 am, Rick Faircloth r...@whitestonemedia.com wrote: Not sure, but it might be that the .html() part is telling the clone function to just clone the html *within*

[jQuery] Re: Simple one: difference between varXy.find(':text') and $(varXy).find(':text')

2009-03-05 Thread Rick Faircloth
Thanks for the further input, Ricardo... Is there any way you can put a percentage of processing and/or time saved by using var with elements? Especially if there is only one or two references on a page? Rick -Original Message- From: jquery-en@googlegroups.com

[jQuery] Re: Beginner a little stuck

2009-03-05 Thread Richard Wheatley
Thanks Liam Liam Potter wrote: You may find it easier to use the form plugin though. http://malsup.com/jquery/form/ Richard Wheatley wrote: Liam - i have pushed the return false down one set of brackets which has fixed one prob...however still not quite there... reading docs on parents

[jQuery] Re: Current item child index ?

2009-03-05 Thread mkmanning
As MorningZ said, use .index(). When you have a collection of elements in a jQuery object, use .index() and pass the element you wan the index of to the function. var stepslist = $(#stepsList li); stepslist.click(function() { // load stepContent === not a problem

[jQuery] Re: .clone a form

2009-03-05 Thread Rick Faircloth
Possible work-a-around... Enclose your form in a div, say div id='form-div'form.../div, and clone the div...? Rick -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of bstoppel Sent: Thursday, March 05, 2009 11:07 AM To: jQuery (English)

[jQuery] Re: .clone a form

2009-03-05 Thread mkmanning
Your code works fine without the .html(). If you're trying to log what you get, then it will say 'object', which is to be expected. On Mar 5, 8:18 am, Rick Faircloth r...@whitestonemedia.com wrote: Possible work-a-around... Enclose your form in a div, say div id='form-div'form.../div, and

[jQuery] Re: Cross domain call using JQuery

2009-03-05 Thread mkmanning
Are you wrapping the return value server-side in the callback function? On Mar 5, 12:10 am, baby babybaby...@gmail.com wrote: Hi, Thanks for your suggestion. I have gone though this flicker example and it is perfectly. flicker example is also working fine when i integrate this code in my

[jQuery] Re: Javascript search library

2009-03-05 Thread ricardobeat
Maybe you can use jQuery's filter method: $(JSONObject).filter(function(){ return this.cactus = 'green' !this.water; }); On Mar 4, 11:00 pm, Khai khaitd...@gmail.com wrote: I have a collection of DIVs (or a JSON array).  Is there a javascript library that can search through a JSON array

[jQuery] Re: Dynamic mailto: link.

2009-03-05 Thread MorningZ
Here's some revised code with a Check All option http://paste.pocoo.org/show/106596/ On Mar 5, 11:00 am, Sir Rawlins robert.rawl...@thinkbluemedia.co.uk wrote: MorningZ, That works a real treat! Thank you very much indeed!!! One thing further I'd like to pick your brains on. I have a

[jQuery] Re: Simple one: difference between varXy.find(':text') and $(varXy).find(':text')

2009-03-05 Thread ricardobeat
For one or two references it will probably be irrelevant, but for cases where you're looping over with each() it can make a meaningful difference. A selector like $('div:not(#topo) div.home div .subdestaque') takes between 5-20ms depending on the browser, by saving the object in a variable you

[jQuery] Re: Dynamic mailto: link.

2009-03-05 Thread Sir Rawlins
Good man! Thank you a great deal! Rob On Mar 5, 4:33 pm, MorningZ morni...@gmail.com wrote: Here's some revised code with a Check All option http://paste.pocoo.org/show/106596/ On Mar 5, 11:00 am, Sir Rawlins robert.rawl...@thinkbluemedia.co.uk wrote: MorningZ, That works a real

[jQuery] Re: Need to insert an element in DIV at position X Y

2009-03-05 Thread brian
On Thu, Mar 5, 2009 at 11:01 AM, ricardobeat ricardob...@gmail.com wrote: Insert anywhere and use position:absolute. Would the text re-flow around the div, though? I'd imagine it wouldn't. If not, I suppose you could get the insertion point within the div's text, using textrange, then replace

[jQuery] Re: Need to insert an element in DIV at position X Y

2009-03-05 Thread choesang
Thanks alot it works! $(#Content).rightClick( function(e) { var x = e.pageX; var y = e.pageY; $(div class='pin' style='top: + y + px; left: + x + px';/ div).insertAfter(this); });

[jQuery] Re: Need to insert an element in DIV at position X Y

2009-03-05 Thread choesang
Thanks alot it works! $(#Content).rightClick( function(e) { var x = e.pageX; var y = e.pageY; $(div class='pin' style='top: + y + px; left: + x + px';/ div).insertAfter(this); });

[jQuery] Re: How to trigger click event in jquery

2009-03-05 Thread Yun W
I have the same issue with the click on jQuery. When using $('#elmId').trigger('click'), it doesn't work on Google Chrome/Safari, but it does work on IE7/IE6. No error is thrown. What's the problem? Thanks. On Mar 5, 3:56 am, Andy789 e...@abcstudio.com.au wrote: Hi All, I am struggling

[jQuery] Re: Need to insert an element in DIV at position X Y

2009-03-05 Thread choesang
.pin{ background:url('pin_org.png') no-repeat; height:24px; width: 24px;position:absolute; }

[jQuery] Re: Need to insert an element in DIV at position X Y

2009-03-05 Thread choesang
.pin{ background:url('pin_org.png') no-repeat; height:24px; width: 24px;position:absolute; }

[jQuery] Re: Anchors Images Tutorial

2009-03-05 Thread brian
On Thu, Mar 5, 2009 at 7:49 AM, HM-User m.lawrencehu...@gmail.com wrote: I have had a look at this tutorial by Malsup and simply, you can add an a link to the image slides. However, for me like the tutorial with: function onAfter() {    $('#output').html(Current anchor: + this.href); I

[jQuery] Re: Simple one: difference between varXy.find(':text') and $(varXy).find(':text')

2009-03-05 Thread wick
Rick, as far as I can tell there is something wrong with two of the code examples you provided. var mySet = '$(mySet)'; ...this sets the mySet variable to a string that *looks* like a jQuery selector, but your quotes make it into a useless string. $('mySet').find(':text')......this

[jQuery] Re: Simple one: difference between varXy.find(':text') and $(varXy).find(':text')

2009-03-05 Thread Rick Faircloth
Thanks, Ricardo...good to know. Rick -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of ricardobeat Sent: Thursday, March 05, 2009 11:38 AM To: jQuery (English) Subject: [jQuery] Re: Simple one: difference between varXy.find(':text') and

[jQuery] Re: Simple one: difference between varXy.find(':text') and $(varXy).find(':text')

2009-03-05 Thread Rick Faircloth
Oh, you're absolutely right, wick... I was just careless in my coding. Thanks for pointing that out and correcting the example...for my sake and, especially for GGerri's! Rick -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of wick Sent:

[jQuery] Re: .clone a form

2009-03-05 Thread bstoppel
The code works, but not as I need it to. If I remove the .html() and append the clone to another element, I get an object, not the form. I need the form. As Rick and another person the I spoke with mentioned, a work around is to wrap the form with a div and select the div. That way when I

[jQuery] Re: Animate using relative %

2009-03-05 Thread brian
On Thu, Mar 5, 2009 at 8:22 AM, Adam Jessop a...@infused-gaming.net wrote: Sure, The site in question is at: http://be.0wned.co.uk Do you really expect anyone to click that link with JS enabled? ;-) I think the way I'd approach this would be to first get the CSS set up so that, with the

[jQuery] Re: Simple one: difference between varXy.find(':text') and $(varXy).find(':text')

2009-03-05 Thread wick
Cool. By the way, regarding your question about determining the javascript processing time, something like this is helpful: http://jdev.blogsome.com/2006/08/18/compact-script-to-calculate-script-execution-time/ On Mar 5, 12:02 pm, Rick Faircloth r...@whitestonemedia.com wrote: Oh, you're

[jQuery] Re: Error: $(#suggest1).autocomplete is not a function

2009-03-05 Thread efet
I did not include head/head part in my previous message. The following code is included in the head section: script type=text/javascript src=jquery.js/script script type='text/javascript' src='jquery.bgiframe.min.js'/script script type='text/javascript' src='jquery.ajaxQueue.js'/script script

[jQuery] Re: ajax data

2009-03-05 Thread hosemaria
Got solution have to be something like this: {'data':items,'item[1]':'one','item[2]':'two'}; Greetings On 2 Mar, 20:04, hosemaria hosema...@gmail.com wrote: Try: {   item1:one,   item2:,   item3: {item31:sdf, item32:sdfs} } Doesn't work. Result is the same.    [item3] =

[jQuery] Re: .clone a form

2009-03-05 Thread mkmanning
Are you by any chance appending it with some additional text? For example, something like this: $('#clonehere').append($('.hook:first').clone(true) + br /); If you do that then you will get [object Object] The code works fine as it is, as long as you use it correctly; here's a page using your

[jQuery] Re: Trying to add/remove a class when....

2009-03-05 Thread Charlie Tomlinson
input isn't a css "class",, it's a tag with css attributes have you tried ("input").css ()? webspee...@gmail.com wrote: Hey all. I'm trying to add/remove a class and am having trouble. When I add the new class, the color takes hold, but not the changing of the background image. The

[jQuery] show and hide jcarousel lite plug in

2009-03-05 Thread surreal5335
I have a set up I am creating where when the user clicks on an image in one carousel it will display another carousel that contains pictures in it to view in a larger window. I have been able to get the carousel on both to work, but I am having trouble getting the second to show and hide and pick

[jQuery] Re: Animate using relative %

2009-03-05 Thread Adam Jessop
* * * Well contrary to the domain name, it is a real site with no threat, disable your JS first if you like! I have the CSS values for how I want the end result to be already, but I don’t want them visible when the page loads, defies the whole point of the effect.

[jQuery] Re: Get contents of first child tr, td with class

2009-03-05 Thread webspee...@gmail.com
How would you get the second, third and so on? On Feb 12, 2:21 pm, James james.gp@gmail.com wrote: $(#recent_activity tbodytrtd.date:first).text(); On Feb 12, 9:13 am, Mark Steudel msteu...@gmail.com wrote: I have a table like so: table id=recent_activity thead tr tht1/th

[jQuery] Re: Modify hash in Tabs plugin

2009-03-05 Thread Klaus Hartl
If I remember correctly - haven't had a look at Tabs 2 for quite some time - if you set the title attribute on an anchor, the hash is derived from that. a title=Inicio href=html/inicio.html.../a = #Inicio White space will be converted to an underscore... --Klaus On 5 Mrz., 09:00, fonoteca

[jQuery] Re: .clone a form

2009-03-05 Thread bstoppel
You're totally right. In my real code I am appending text as well as the cloned form.

[jQuery] Accordion Content height

2009-03-05 Thread Dan Vega
It seems each of the blocks are the same height as the largest. Is there a way to tell them only to be as tall as their content?

[jQuery] Re: 2 tables with same td width

2009-03-05 Thread Alain Roger
On Wed, Mar 4, 2009 at 11:12 PM, donb falconwatc...@comcast.net wrote: Is thre some reason you can't do it with simple CSS directives? Define a Class for each td as appropriate and use the same class in the td of both tables. No jQuery or javascript needed at all. yes, because i have a

[jQuery] Re: 2 tables with same td width

2009-03-05 Thread Alain Roger
On Wed, Mar 4, 2009 at 10:39 PM, MorningZ morni...@gmail.com wrote: I took a shot in the dark on what your HTML is like here's a working example http://paste.pocoo.org/show/106506/ Note: the width's of cells are not know until the page is fully loaded... hence the initial call to the

[jQuery] Re: Animate using relative %

2009-03-05 Thread brian
On Thu, Mar 5, 2009 at 1:12 PM, Adam Jessop a...@infused-gaming.net wrote: Well contrary to the domain name, it is a real site with no threat, disable your JS first if you like! I was joking. I have the CSS values for how I want the end result to be already, but I don’t want them visible

[jQuery] Re: Accordion Content height

2009-03-05 Thread Jörn Zaefferer
Yes, set autoHeight: false. Jörn On Thu, Mar 5, 2009 at 7:35 PM, Dan Vega danv...@gmail.com wrote: It seems each of the blocks are the same height as the largest. Is there a way to tell them only to be as tall as their content?

  1   2   >