[jQuery] Re: Which event to use with form elements

2009-08-23 Thread Jules
Can't you use change()? >From the jquery docs. "The change event fires when a control loses the input focus and its value has been modified since gaining focus." $("form Input, form select").change(function(){ alert($(this).val()); }); If you want to detect the value before lost focus, you

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

2009-08-23 Thread juanefren
Thank you very much, this is far better than my buggy version (http:// sistemasideales.com/jsr/prueba.html). 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/e

[jQuery] Re: setInterval()

2009-08-23 Thread solow
Thanks for the reactions. but now, how do I see if the var has been set. *I'm using 'intvarM' as a var btw* Because when I click a hyperlink, or button, it says the vasn't been set. which is weird because the loop does update my fields. this is how i start an interval: function joinRoomFunction

[jQuery] Re: - how to validate tinymce editor?

2009-08-23 Thread Dave Buchholz - I-CRE8
I have an example here also http://www.i-cre8.com/jQuery/tinymce/index.php

[jQuery] Re: Do something when id of clicked anchor is home

2009-08-23 Thread StefanCandan
Okay, so now I fixed it. but having some problems with the hide & show. Jquery code: $(document).ready(function(){ $("li").hide() $("p.subtitle").hide() $("p.copy").hide() $("p[id=about]").hide() var $i=500; $("li:eq(0)").show($i, function(even

[jQuery] Re: accessing the ajax loaded content

2009-08-23 Thread kknaru
no ideas??

[jQuery] Re: jQuery handling of URL params?

2009-08-23 Thread Charlie
I don't believe jQuery has any specific url params functions. Some of the jQuery UI widgets like tabs and accordion have url parsers in them which you can review for methodology. Native _javascript_ has a number of basic methods including hash() and search() http://www.w3schools.com/htmldom/do

[jQuery] Re: Help with show hide function

2009-08-23 Thread Charlie
You can streamline your methods a lot by thinking about  classes first before thinking about ID's. SOme simple addition of classes to this code will allow consolidating everything into one fairly simple function your code:  $('#home').click(function() {       $('#who>a').removeClass('selecte

[jQuery] Re: accessing the ajax loaded content

2009-08-23 Thread Quang Ngo
Try using the live function, like ... live('click', function() {...}); On Sun, Aug 23, 2009 at 5:27 AM, kknaru wrote: > > no ideas??

[jQuery] Re: accessing the ajax loaded content

2009-08-23 Thread kknaru
hmm...can you be more specific? how should i use it? thanks

[jQuery] Re: accessing the ajax loaded content

2009-08-23 Thread kknaru
grat :P thnks so much Quang Ngo i solved it :)

[jQuery] Re: jQuery handling of URL params?

2009-08-23 Thread MorningZ
This is a function i've used for years... nice and simple function GetQueryVariable(key, defaultVal) { var query = window.location.search.substring(1); var vars = query.split('&'); for (var i=0; i < vars.length; i++) { var pair = vars[i].split('='); if (pair[0] == key)

[jQuery] Re: jquery form plugin. IE doesnt work

2009-08-23 Thread MorningZ
Well, here's your code from what i see $('#submitForm').click(function() { if ($('#contactForm').valid()) { $('#loading').fadeIn("slow"); $('#contactForm').ajaxForm(function(data) { ... more code }); } }); So, hopefully like you did, fired up IE8's console/de

[jQuery] killSession() PHP function inside $(window).unload

2009-08-23 Thread Norbert
I'm doing a simple chat script and I have the killSession function which kills the current session and deletes the user from the DB. The problem is that after the name is set and verified the chat form doesn't load, it just kills the session and goes back to the loginForm (). Here's the script:

[jQuery] Re: accessing the ajax loaded content

2009-08-23 Thread tarun
you have to send scripts also with ajax content to work as you expecting

[jQuery] How to move tab from left to right?

2009-08-23 Thread jan.zitniak
Hello. Please, can you give me advance how to move tab from left to right? Example: I have 3 tabs, when I click to any tab then it moves that from left to right and it puts as last one. Does exist any solution for this? Jan

[jQuery] Prepending different content to an element

2009-08-23 Thread jannewmarch
I have a table with multiple elements. Each contains an hreference. I want to add text before each tag, but it is text dependent on the contents of the tag. I can use the prepend() function to add a fixed piece of text as in $("td").prepend(" fixed piece of text") That works fine. But I'm t

[jQuery] Jquery treeview jquery accordion

2009-08-23 Thread serdartu
When i used jquery treeview plugin inside accordion plugin treeview styles not working? Best Regards

[jQuery] Obtaining the value of an element

2009-08-23 Thread TrixJo
Hello Using PHP to output some mySQL table data: code: echo ''.$row[id].'. '.$row [topicTitle].' '; ... ... there are 40+ rows, all with a unique $row[id] /code So if the user clicks the span id approveTitle I initiate an ajax request I want to update the row in the mySQL table that the

[jQuery] Re: App like hangman

2009-08-23 Thread Boris Trivic
Brett thanks for your help, I success founded solution deeper on link that you posted. If someone needs, here is code: $(".place").droppable({ drop: function(e, ui) { console.log(ui.droppable); } }); This code writes in console (if you use Firebug), which element

[jQuery] variable scope

2009-08-23 Thread mrtedweb
Hello everyone, I'm new to jQuery and need some help with a trivial question. I'm trying to program a menu bar and I'm having problems with variable scope. Below is a snippet of my code: // **

[jQuery] Re: How to move tab from left to right?

2009-08-23 Thread Dhruva Sagar
On the tab click event, remove the tab and append(to the end) it to the tabs holder div. Thanks & Regards, Dhruva Sagar. Marie von Ebner-Eschenbach - "Even a stopped clock is right twice a day." On Sun, Aug 23, 2009 at

[jQuery] [SimpleModal] Simplemodal is triggering $(document).ready

2009-08-23 Thread lfrodrigues
Hi, I've been using simple modal for quite some time. Now I have a problem. I have some code with uses $(document).ready and simplemodal. The problem is I have 3 $(document).ready calls: 1-when page is loaded 2-when simple modal shows the overlay 3-when simple modal hides the overlay How can

[jQuery] Safest way to test is a variable is a jQuery object?

2009-08-23 Thread Eridius
I am wondering what is the safest way to test if a variable is a jQuery object. I am building a function where I want to be able to pass in either the id of the form or the form object itself. The current way I am doing this is var $form = (form instanceof jQuery ? form : $('#' + form)); Is th

[jQuery] Re: variable scope

2009-08-23 Thread Michael Geary
In this line of code: > $('.menu_button').click(this.onClick); you are getting a refernece to your onClick function. But that's all you get - a *function* reference. It doesn't remember that you said 'this.onClick' to get that reference. As you found, when that function gets called later by jQu

[jQuery] Scroll to top of page after AJAX load.....

2009-08-23 Thread Erik
Using AJAX to load content within a div. Need to find a way to scroll to the top of the page after loading content inside div on same page. After clicking on my bottom links, loading the html inside the div, I want the the parent window to scroll up to the top. scrollTo did not work. Help! Er

[jQuery] Re: App like hangman

2009-08-23 Thread Brett Ritter
On Wed, Aug 19, 2009 at 11:07 AM, Boris Trivic wrote: > When I take on of draggable divs and put it on 3rd div (fixed), how I > can get ID of that div which is dragged on 3rd div. Ah! Now I understand. (Good examples). Sadly, Drag-and-drop is not something I've played with. However, from looki

[jQuery] Re: Safest way to test is a variable is a jQuery object?

2009-08-23 Thread Michael Geary
If all you need to do is distinguish a string from a jQuery object, and you want to insure that future revisions of jQuery will never break your code, I would just test for the string. I'd also put the logic in a function even if you only use it in one place, e.g. // Return a jQuery object g

[jQuery] Jquery + ExtJS 3.0

2009-08-23 Thread Mik Fig
Has anyone had any luck integrating Jquery and ExtJS 3.0? I downloaded the ExtJS 3.0 SDK and I have a page where I am trying to test out there grid functionality. So I included these javascript files: ext-all.js and ext-jquery-adapter.js I have taken a look in the Jquery documentation at the page

[jQuery] Re: setInterval()

2009-08-23 Thread solow
someone? please?..

[jQuery] Passing variables to .click

2009-08-23 Thread AMP
Hello, I was using this: onClick="parsetable('')" but now I want to use the JQuery: $("#parsetablebutton").click( function() { How do I pass the parameter to the function? Would I set an attribute and read it with[att=XXX] where the attribute is the echo'd $Region or is there a better way? Than

[jQuery] Re: Simplemodal is triggering $(document).ready

2009-08-23 Thread Eric Martin
Luis, Can you be a little more clear on what the problem is? Do you have a link or sample (working) code I can see? -Eric On Aug 23, 6:55 am, lfrodrigues wrote: > Hi, > > I've been using simple modal for quite some time. > > Now I have a problem. I have some code with uses $(document).ready an

[jQuery] Scroll To After AJAX Request...

2009-08-23 Thread Erik R. Peterson
Any one can help with a script to scroll to the top of the page AFTER an AJAX REQUEST loading a div? Erik

[jQuery] Re: Safest way to test is a variable is a jQuery object?

2009-08-23 Thread RyanZec
Well I think I am going to be going with a function as that was my first instinct. I see where your going with what you have however that would cause some issue if say an int or JSON object is passed as it is going to return that instead of an expected jQuery object. The code I end up having is:

[jQuery] JavaScript Parsing

2009-08-23 Thread itgch...@googlemail.com
I want to load a site via $.load() or $.ajax dynamically. This site is a html site with tags, This

[jQuery] when LocalScroll is called properly, anchors don't work

2009-08-23 Thread Alice
... That's what's happening. $(document).ready(function () { $('#nav').localScroll(); }); page is here: http://unedible.com/alicewhite/

[jQuery] Access elements in dynamically loaded markup

2009-08-23 Thread Ole Viaud-Murat
Hello, i'm beginning jquery right now and have a question. I have a js application, that loads formular-markup dynamically for a specific entity. Is there a way to access elements within this dynamically loaded markup through jquery? eg. in the form load function: $('#container').empty().app

[jQuery] $.inArray optimisation

2009-08-23 Thread gurdiga
Hello, The $.inArray function is defined in http://jqueryjs.googlecode.com/svn/trunk/jquery/src/core.js as: inArray: function( elem, array ) { for ( var i = 0, length = array.length; i < length; i++ ) { if ( array[ i ] === elem ) {

[jQuery] Re: Access elements in dynamically loaded markup

2009-08-23 Thread Karl Swedberg
This FAQ topic should answer your question: http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_Ajax_request.3F If you still have problems after reading through it and trying one of the many solutions, let us know. --Karl Karl Swedberg www.e

[jQuery] Re: killSession() PHP function inside $(window).unload

2009-08-23 Thread Cam Spiers
You can attach an unload event to the window. In the function called from this event you can run a synchronous (this is imperative) ajax request to a server-side script which kills the session. $(window).unload(function(event){ $.ajax( { async: false,url: "/some-url-to-script-that-kills-session

[jQuery] Jquery + ExtJS 3.0

2009-08-23 Thread mikfig
Has anyone had any luck integrating Jquery and ExtJS 3.0? I downloaded the ExtJS 3.0 SDK and I have a page where I am trying to test out there grid functionality. So I included these javascript files: ext-all.js and ext-jquery-adapter.js I have taken a look in the Jquery documentation at the page

[jQuery] Re: Passing variables to .click

2009-08-23 Thread MorningZ
MANY ways to do this, with this being one of them Some Text then $("#parsetablebutton").click(function() { var region = $(this).attr("region"); //<<-- the value from PHP }); again, that's just one way of many On Aug 23, 6:04 pm, AMP wrote: > Hello, > I was using this: > onClick=

[jQuery] Re: Jquery + ExtJS 3.0

2009-08-23 Thread Meroe
Post your file text please so we can see the layout. There is a no conflict setting for jquery, but you don't seem to be registering the ext library yet. -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Mik Fig Sent: Sunday, August 23,

[jQuery] Re: localscroll not working, help? could it be lightbox?

2009-08-23 Thread MorningZ
was it necessary to create three topics about it? have you removed lightbox to see if the issue goes away? On Aug 23, 5:18 pm, Alice wrote: > problem can be seen here:http://unedible.com/alicewhite/ > > it's just not scrolling. sometimes when i change the code around a > bit, the anchor images

[jQuery] Re: Passing variables to .click

2009-08-23 Thread AMP
This is the way I was thinking so could you give me another example without attributes (Just so I could learn a different way). Thnaks On Aug 23, 8:05 pm, MorningZ wrote: > MANY ways to do this, with this being one of them > > Some > Text > > then > > $("#parsetablebutton").click(function() { >

[jQuery] Re: jquery form plugin. IE doesnt work

2009-08-23 Thread markstegg...@googlemail.com
Thanks for the good advice. I downloaded the development version of jquery 1.3.2. IE script debugger is highlighting line 1897 return "submit" === elem.type; Surely there is nothing wrong with this?

[jQuery] Trying to pass vars from multiple triggers

2009-08-23 Thread TrixJo
Hi I have multiple triggers and I am trying to pass variables via a "rel=" tag (which are unique id's) for each trigger I can get most of it working, problem is that since there are multiple triggers with id="newsTrigger" only the first listed trigger works Using PHP/mySQL. An example trigger

[jQuery] Warning: file_get_contents error -- wtf?

2009-08-23 Thread TrixJo
Do any of you get this problem? Warning: file_get_contents(http://search.twitter.com/search.json? lang=en&rpp=5&q=District+9) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/site/ public_html/trendingtopics.php on line 51 It tends to app

[jQuery] Re: Jquery + ExtJS 3.0

2009-08-23 Thread mikfig
http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> ... ... ...