Re: [jQuery] Returning Value Of aa .POST

2009-11-27 Thread Michel Belleville
$.ajax(), $.get(), $.post(), $.load(), none of these methods return the result of the AJAX call, because they're meant to be asynchronous (the first A in AJAX), which means they're working behind the scene, detached from the place they've been called. If they were not they would freeze the

[jQuery] Re: csv2table

2009-11-27 Thread tato
Hi, Ram You can simplify it if you can use PHP. You acquire yahoo data in following PHP and receive it in csv2table of same domain. ?php $url=http://download.finance.yahoo.com/d/quotes.csv?s= %5EIXICf=sl1d1t1c1ohgve=.csv; $data=file_get_contents($url); // for safe Tag to lt; gt; echo

Re: [jQuery] PHP jQuery on different port

2009-11-27 Thread Michel Belleville
The port is part of the url (80 is implicit for http), so you've got to explicitly set it to access port 8080, like this : http://whatever.yoursite.is:8080/any_script.php?any_other_argument=some_value Michel Belleville 2009/11/26 Darjana darj...@gmail.com Hello, This user.php on port 80

Re: [jQuery] Is there a plugin similar to this Flash effect in Yahoo.com for media images?

2009-11-27 Thread Michel Belleville
This is not a jQuery plugin, this is flash. Though copying this effect might be possible (except maybe on Internet Explorer of course) using nothing more than a very tiny bit of JavaScript and png alpha-transparency (hence the maybe impossible on IE). You create two fading images (basically a one

Re: Re[jQuery] move appended element

2009-11-27 Thread coldwired
Hi, Sorry, that was a slight typo on my part, it should be class selected. The problem I have with just appending using addClass is that when the class is removed it doesn't restore the element to it original state a such. What I mean is when the class is removed it leaves class= rather than a

[jQuery] Re: $.getScript results in two requests!

2009-11-27 Thread Eric
Hey there, Thanks for your answers. Sorry I didn't reply earlier, been pretty busy. It turned out the problem was caused by an old version of Firebug ( http://code.google.com/p/fbug/issues/detail?id=928 ). I am now using Firebug 1.3 on Firefox 3.5, where the bug is fixed. Eric On 25 Nov.,

[jQuery] Re: Accordion, fieldset and selectors question

2009-11-27 Thread Bruce MacKay
Excellent Adriana - thanks very much - also for quietly pointing out that I'd forgotten the return false bit. Cheers/Bruce On Nov 27, 2:45 pm, Adriana adipa...@yahoo.com wrote: Hi Bruce, Try this:     $('.accord h6').click(function() {         $(this).toggleClass('expand_group').siblings

[jQuery] Binding a function to 1 'a' tag - which approach is best?

2009-11-27 Thread Bruce MacKay
Hello folks, I have some html returned via ajax that contains several 'a' tags to which I am binding a function. Both of the following methods does the job, but my perception of other posts about this general practice from more wiser folk than me is that the first method is the better method.

[jQuery] Problem traversing up list

2009-11-27 Thread ximo wallas
Hello there, after too much sarching I have almost give it up with the following. I have a list with another list nested: ul     li id=item1Item 1   ul     li id=item1-1   Item 1 - 1     /li     li id=item1-2   Item 1 - 2     /li   /ul     /li /ul Let's

[jQuery] Re: Comparing or checking for a specific sub class?

2009-11-27 Thread Janmansilver
Thank you very much. My issue with the invalid html is that I actually want to fade the background image of the a-element, and then keep the text visible. The a-elements are big squares with text inside them, and i use span to position the text in a left-center-way. I could only figure out how to

Re: [jQuery] Binding a function to 1 'a' tag - which approach is best?

2009-11-27 Thread Michel Belleville
Now let's try to simplify this a bit : $('a.c_update').each(function() { var $a = $(this); var q = $a.attr('id'); $a.bind(click, function() { doStuff('getitem',q); // hmm, I don't like this variable much... return false; }); }); $('a.c_update').each(function() { var $a = $(this); $a.bind(click,

Re: [jQuery] Problem traversing up list

2009-11-27 Thread ximo wallas
It returns an empty string, so it alerts, but nothing... I will show you all the code: First I get the id of the element via URL with the URL param plugin: (It works, if I do an alert it returns the right stuff) var target = $.url.param(target); alert($(#+target).parent().attr('id')); This

Re: [jQuery] Problem traversing up list

2009-11-27 Thread Michel Belleville
Well, that must mean that the parent has no id, which is exactly the case : ul li id=item1Item 1 = $('#item1-1').parent().parent() ul = $('#item1-1').parent() li id=item1-1 = $('#item1-1') Item 1 - 1 /li li id=item1-2 Item 1 - 2 /li

Re: [jQuery] Re: csv2table

2009-11-27 Thread navia markets
Hi Toshiro Takahashi, Is there anyway without using server side scripting ... This is wat i am searching for more than a week . could u tell me... Thanks in advance On Fri, Nov 27, 2009 at 1:45 PM, tato t...@game.gr.jp wrote: Hi, Ram You can simplify it if you can use PHP. You

[jQuery] Re: Issue with simplemodal plugin and absolute positioned content

2009-11-27 Thread Eric Getchell
I've found a workaround. It appears that IE has some rendering bugs that collapses content in certain situations. The workaround I've found is to set the IE-specific zoom style to 1 on elements that exibit this behavior. The trick is that this needs to be applied after the new divs are injected

[jQuery] Re: Problem traversing up list

2009-11-27 Thread Vincent Robert
$('#item1-1').parent().closest('li').attr('id') will be faster because it won't retrieve the full list of parents On 27 nov, 13:20, Michel Belleville michel.bellevi...@gmail.com wrote: Well, that must mean that the parent has no id, which is exactly the case : ul     li id=item1Item 1 =

[jQuery] Re: Problem with plugins

2009-11-27 Thread Paulodemoc
This code is on a .php file... i just renamed the file to .js to attach to the e-mail... On Nov 23, 9:05 am, Michel Belleville michel.bellevi...@gmail.com wrote: First of all, if this is a .js script, why is there html in the first few lines ? Michel Belleville 2009/11/23 Paulodemoc

Re: [jQuery] Re: Problem with plugins

2009-11-27 Thread Brett Ritter
On Mon, Nov 23, 2009 at 5:55 AM, Paulodemoc paulode...@gmail.com wrote: Its the javasscript on the php page, and the only php there is to output the urls, and these urls are being printed correctly The url doesn't affect the understanding of the rest of the code... If your plugins aren't

[jQuery] Re: Close Button using prettyPhoto w/ JQuery

2009-11-27 Thread Scott Sauyet
On Nov 25, 3:46 pm, jonnyvegasss jonnyvega...@yahoo.com wrote: That seems to be exactly what I need. I'm just not sure how, where to add something like that. I apologize for my ignorance, but as I said I'm learning LOL! I'm sorry, it looks as though I didn't read your original closely enough.

[jQuery] DataTables plugin - set id attribute for table rows?

2009-11-27 Thread Stodge
My account hasn't been activated on the datatables forum so I need to ask this question here. Hope this is ok. I want to set an id for each row so that I can drag and drop the row onto another element. But I can't see how to do it from the website. Does anyone know if this is possible? Thanks

Re: [jQuery] DataTables plugin - set id attribute for table rows?

2009-11-27 Thread Michel Belleville
The id is an html node attribute. You just have to use the same method as for any other attribute, namely : http://docs.jquery.com/Attributes/attr#keyvalue Michel Belleville 2009/11/27 Stodge sto...@gmail.com My account hasn't been activated on the datatables forum so I need to ask this

[jQuery] autocomplete plugin : detecting initial value problem, or how to programatically set the value

2009-11-27 Thread j.alkjaer
Hi there, We are using the rather nifty autocomplete plugin from http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/ but have run into a problem $(#autocomplete).result( function(event, data, formatted) { alert(formatted) }).autocomplete([c++, java, php, coldfusion,

[jQuery] Re: PHP jQuery on different port

2009-11-27 Thread Dominik
i guess your experiencing the same origin policy problem here, which lets you only load data/whatever via ajax from the same origin as the calling page! it seems that the origin isnt just the domain but also the used port. so to make this work you could either use a new http header field which

[jQuery] jQuery Validate using input type=image

2009-11-27 Thread Rich
I am validating a form that is submitted by an image input (input type=image), there are 3 of these inputs which either publish, save or delete the form details. If I turn javascript off and submit the form I can pick up the value of the input button used. i.e. request.form (publish.x) = ?, if I

[jQuery] Re: Problem traversing up list

2009-11-27 Thread platt
Did you try this: alert($('#item1-1').parent().attr('id')); On 27 Nov., 12:56, ximo wallas igguan...@yahoo.com wrote: Hello there, after too much sarching I have almost give it up with the following. I have a list with another list nested: ul     li id=item1Item 1   ul     li

[jQuery] i found error in jquery.treeview.js

2009-11-27 Thread iammultic
i ask you help me. I found error in jquery.treeview.js i get a list of units which have children units. this is links like this:a href= onclick=javascript:clearAsync();getTreeView(7);return false;Отдел сопровождения ПЦ/a When i click on, i send get param to php server and give : [{text:

[jQuery] jquery-plugin-treeview problem with inser menu into div

2009-11-27 Thread effeemme_it
I would like to use jquery treeview within a site with defined height (500px), is possible insert into a div floating like http://www.kelvinluck.com/assets/jquery/jScrollPane/basic.html i don't setting correctly height when open menu with much rows please help me regards f.m.

[jQuery] disappearing URL using Accordion UI

2009-11-27 Thread puglord
My url disappears inside when the DIV is expanded. hovering over the url the text then appears. using release jquery-ui-1.7.2.custom.css script type=text/javascript $(document).ready(function(){ $(#accordion).accordion({active: false, collapsible: true, autoHeight: true,

[jQuery] Issue in finding the controls from asp.net usercontrols

2009-11-27 Thread vivek
Hi, I am trying to find a table first tr tag which is located in a usercontrol from a main page like the following $(table[id*=nav]).find(tr).size() this shows 0, but it is available on the usercontrol i couldn't able to find any elements in usercontrol through main page. please help.

[jQuery] can it validate elements that are not in a form?

2009-11-27 Thread fleix iran
i wan't to validate some elements that are contained in a div tag.

[jQuery] Tabbed content problem

2009-11-27 Thread Yoni
I'm currently using a jquery script that converts li's to categorically tabbed thumbnails. You can see what I'm talking about here: http://2photoshop.com/portfolio/ (this contains the original code from the script I use, only the style is changed) I wanted to change it so instead of having the

Re: Re[jQuery] move appended element

2009-11-27 Thread brian
Perhaps it's a problem with your CSS rules. Is the style not removed? On Fri, Nov 27, 2009 at 4:39 AM, coldwired co...@coolwired.net wrote: Hi, Sorry, that was a slight typo on my part, it should be class selected. The problem I have with just appending using addClass is that when the class

[jQuery] Re: IE balking at .siblings() - says 'Object does not support this property or method'

2009-11-27 Thread Getzel
BH ++ 'It's awfully hard to troubleshoot a code snippet without seeing the actual error in a live running page.'++ You did good. I added the 'var' and IE is playing nicely now. Thank you for taking the time. On Nov 26, 10:16 pm, Michael Geary m...@mg.to wrote: The first thing that caught my

[jQuery] $.ajax and $.get

2009-11-27 Thread Wayne Tong
Hi Guys, Need some help on $.get or $.ajax, I have the following code that will send request to server then get either JSON or XML data back, but it seems only working in IE8, not working in Firefox 3.5, In IE8, it returns: data: [object Object] textStatus: success something: undefined in

[jQuery] validation method not working in ie

2009-11-27 Thread hcvitto
Hi i'm using the validation plugin on a form. I added three methods to check that three select value are not equal but it doesn't work in ie. here's the page http://www.fepgroup.it/community/registrati__.php Any idea why? Thanks Vittorio

[jQuery] Get value from hidden input and use it in string

2009-11-27 Thread shapper
Hello, I am using JPlayer to play a sound on a page: http://www.happyworm.com/jquery/jplayer/0.2.5/demo-04.htm $(document).ready(function(){ $(#jquery_jplayer).jPlayer({ ready: function () { $(#trackname).text($(#track-01).text());

[jQuery] Hide chat content

2009-11-27 Thread Jerry Johnson
Hi, at: http://jerry.hostcule.net/chat/test.html, i have the delete link, and i want it to fade out the parent div, this is my current code: $('a.#hide').click(function() { $(this).hide(); } ); This is the link html: div id='msg' tr td style='border-bottom:1px

[jQuery] Re: Hide chat content

2009-11-27 Thread Jerry Johnson
I have verified that it is not the ajax call.

Re: [jQuery] jQuery Validate using input type=image

2009-11-27 Thread Jörn Zaefferer
The plugin handles that case, though only for type=submit. You could try using a button instead: button type=submitimg ... //button Jörn On Fri, Nov 27, 2009 at 12:52 PM, Rich reholme...@googlemail.com wrote: I am validating a form that is submitted by an image input (input type=image),

[jQuery] Animate/FadeIn on Hover Problem

2009-11-27 Thread Falz
Hi, I currently have this menu http://valkesh.000space.com and what I would like to do is get the image on the item to Fade In and Fade Out. Im not sure if im using the correct concept of javascript, but the thing is I would like the 'hovering' images to be split into 2, so that the 'center' can

Re: [jQuery] Re: $.getScript results in two requests!

2009-11-27 Thread Michael Geary
Glad you tracked that down - pretty nasty bug in Firebug! Just curious, 1.3 is still a pretty old version. Any reason not to use the latest Firebug 1.4.5? -Mike On Fri, Nov 27, 2009 at 2:43 AM, Eric ikeah...@gmail.com wrote: Hey there, Thanks for your answers. Sorry I didn't reply earlier,

Re: [jQuery] $.ajax and $.get

2009-11-27 Thread Michael Geary
If you would post a link to a test page, I'm sure someone can tell you what's wrong. Without that, we have to start playing 20 Questions. :-) First questions: 1) What is the response from the server in both cases? 2) Install Fiddler2 [*] and have it log the session. What does it show? -Mike

Re: [jQuery] $.ajax and $.get

2009-11-27 Thread Wayne Tong
Hi Michael, It is one of our internal server here, and don't think you will have access to it, see the message it returns when I use $.ajax in IE8, it returns: data: [object Object] textStatus: success something: undefined in Firefox 3.5 it returns: XMLHttpRequest: [object XMLHttpRequest]

[jQuery] jquery.form.js and uploading only files

2009-11-27 Thread Rob Lacey
Hi there, I'm trying to use jquery.form.js to allow file uploads with my application. I'm trying to replace saving the whole form and uploading a image all at the same time by hijacking just the input[type=file] change event when you select a file and saving just the file using ajax and then

[jQuery] Re: Hide chat content

2009-11-27 Thread Scott Sauyet
On Nov 27, 12:03 pm, Jerry Johnson jerryhost@gmail.com wrote: $('a.#hide').click(function()         {                 $(this).hide();         } ); What does a.#hide mean? Shouldn't that just be a#hide, or better yet, #hide? div id='msg' tr td style='border-bottom:1px solid

[jQuery] Re: Superfish jQuery menu plugin RTL support

2009-11-27 Thread Vlad Shapiro
Charlie, I did tried that, it's not so simple, the float change the direction of the lists but not the location. Anyone have the actual working thing? I have this example for vertical RTL Superfish: http:2tbsp.com/node/114 Maybe it will help, Thanks again. On 26 נובמבר, 20:40, Charlie

[jQuery] Re: slideToggle lag in Firefox

2009-11-27 Thread Jason Kaczmarsky
Ah thank you. That clears things up a bit. I'll do some more testing and come up with a solution if I have to. On Nov 24, 7:39 am, Alexandru Adrian Dinulescu alex.d.a...@gmail.com wrote: Firefox really eats a lot of memory when it's up for a long time. I also encountered that issue not only in

Re: [jQuery] Re: Hide chat content

2009-11-27 Thread Jerry Johnson
On Fri, Nov 27, 2009 at 1:47 PM, Scott Sauyet scott.sau...@gmail.comwrote: On Nov 27, 12:03 pm, Jerry Johnson jerryhost@gmail.com wrote: $('a.#hide').click(function() { $(this).hide(); } ); What does a.#hide mean? Shouldn't that just be a#hide, or

[jQuery] Re: $.ajax and $.get

2009-11-27 Thread Scott Sauyet
On Nov 27, 12:44 pm, Wayne Tong wei.tong.n...@gmail.com wrote: It is one of our internal server here, and don't think you will have access to it, see the message it returns when I use $.ajax What Michael is trying to point out is that it's pretty difficult to debug something when we can't see

[jQuery] Rollovers - change from blackwhite to colour

2009-11-27 Thread martin-s
I'm trying to simplify the creation of image rollovers by using a *single* image instead of multiple states saved as separate images or sprites. I've used the fade-in/fade-out effect as shown here: http://www.hv-designs.co.uk/tutorials/jquery/all.html This works perfectly, but now I'd like the

[jQuery] slideToggle stops working after refreshing content with Ajax

2009-11-27 Thread Sala
I can't figure out what's wrong. The slidetoggle works fine until I refresh the page using Ajax, even though the same exact html is outputted by mycontent.php !--SLIDETOGGLE-- script type=text/javascript jQuery(document).ready(function() { jQuery(.displayer).click(function() {

[jQuery] JQuery Dialog and a4j:commandLink (JSF)

2009-11-27 Thread JQueryNeeded
Hello ppl, I have a problem with using jQuery Dialog and Ajax submit in JSF. I have the following code for displaying Dialog windows: script type=text/javascript jQuery(function(){ // Dialog

[jQuery] Applying JQuery from an existing node?

2009-11-27 Thread macon
Is there a way to apply JQuery from an existing DOM element? For example I have a checkbox element with an onclick handler that calls a function like this: input type=checkbox onclick=doSomething(this);/ In the doSomething(thisNode) function I want to apply JQuery to the thisNode argument

[jQuery] error when updating version

2009-11-27 Thread carlos
Hello, After updating jquery version from 1.2.6 to 1.3.2 I get this error: Error: uncaught exception: [Exception... Could not convert JavaScript argument arg 0 nsresult: 0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS) location: JS frame :: http://www.testloc.com/static/jquery.js :: anonymous :: line

[jQuery] Switch between five divs

2009-11-27 Thread ghostrunner
Hey. JQuery is pretty new to me. I have five div on my site. Only one of them should be visible at one time. Next to det div I have 5 links. i would like to be able to switch between them by cliking on a link (there is a link for every div). I can't figure out how to do this.

Re: [jQuery] Switch between five divs

2009-11-27 Thread Andre Polykanine
Hello ghostrunner and all, There are two methods: show() and hide() respectively. So you just show the necessary div and hide the four others, like this: $(function () { $(#div1).click (function (event) { $(this).show(); $(#div2).hide(); $(#div3).hide(); $(#div4).hide(); $(#div5).hide(); }); });

[jQuery] Re: Debuging AJAX

2009-11-27 Thread Rockinelle
I was not aware that leading digits was invalid markup. Thanks. I found my problem. Looking at other examples, they were returning false in the post callback function. That fixed my issue. Does it just require a return statement of any value to properly execute that function? On Nov 26, 10:55 

Re: [jQuery] Switch between five divs

2009-11-27 Thread Michel Belleville
Let's get up to speed a little then : $('#div1, #div2, #div3, #div4, #div5').click(function() { // we can use multiple selectors in one selection, just like in css, and we can give the click callback to all of them at once too $('#div1, #div2, #div3, #div4, #div5').hide(); // we can also hide

Re: [jQuery] Switch between five divs

2009-11-27 Thread Charlie
another very helpful method would be identify your links all with one class, your divs all with one class. This helps make use of CSS along with jQuery. HTML a href="" class="myLink" text/a a href="" class="myLink" text1/a a href="" class="myLink" text2/a // etcetera div class="myDiv

Re: [jQuery] Re: Superfish jQuery menu plugin RTL support

2009-11-27 Thread Charlie
OK, you said it was navbar style not vertical style. For vertical also have to change the absolute position of the sub ul to "right" from "left". This opens sub menus on left instead of right .sf-vertical li:hover ul, .sf-vertical li.sfHover ul { right: 10em; /* match ul width */ top: 0; }

Re: [jQuery] Re: Hide chat content

2009-11-27 Thread Charlie
ID's must be unique, you use ID='hide" over and over, can't do it try changing to class="hide" and corresponding jQuery adjust Jerry Johnson wrote: On Fri, Nov 27, 2009 at 1:47 PM, Scott Sauyet scott.sau...@gmail.com wrote: On Nov 27, 12:03pm, Jerry Johnson jerryhost@gmail.com

Re: [jQuery] Get value from hidden input and use it in string

2009-11-27 Thread brian
Give the input element an ID and use that in the selector: input type=hidden value=2 name=Music id=music_id / $(this).setFile('http://domain.com/asset/get/' + $('#music_id').attr('id')).play(); On Fri, Nov 27, 2009 at 11:48 AM, shapper mdmo...@gmail.com wrote: Hello, I am using JPlayer to

Re: [jQuery] jquery-1.3.2.min.js causing 400 bad request

2009-11-27 Thread jonathan antivo
hello i want to ask only if what websites best for jqueery tutorial i wanna learn this ! it seem its good On Fri, Nov 27, 2009 at 3:16 AM, rbishop robfromplymo...@gmail.com wrote: Hi there, hoping someone can help a strange intermittent problem. Occasionally, I am experiencing 400 bad

[jQuery] Re: csv2table

2009-11-27 Thread tato
Hi Oh, there is a method using Web service to perform csv to json. For example, it is YQL. But csv2table does not support json now. Because I am busy now :(, I cannot make it immediately. # For other methods, I want to try the salvage of the data which I took in $.getScript elsewhere. On

[jQuery] Re: Applying JQuery from an existing node?

2009-11-27 Thread kemikTc
You can pass your DOM element parameter to jQuery. http://docs.jquery.com/Core/jQuery#elements Something like this: function doSomething(objCheckbox){ $(objCheckbox).parent().css(color, red) } Also remember that getting a parent is a function call (you forgot the brackets).