$.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
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
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
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
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
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.,
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
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.
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
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
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,
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
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
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
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
$('#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 =
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
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
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.
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
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
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,
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
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
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
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:
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.
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,
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.
i wan't to validate some elements that are contained in a div tag.
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
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
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
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
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
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());
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
I have verified that it is not the ajax call.
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),
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
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,
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
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]
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
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
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
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
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
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
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
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()
{
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
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
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
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.
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();
});
});
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
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
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
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;
}
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
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
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
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
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).
65 matches
Mail list logo