Hi, I'm a newbie in jquery please be patient :-)
I'm playin with jquery mixing some tutorials.
I'm trying to open a p with some text within with the animation
control, and a link. Then when I opened the p I want to change the
behaviour of the link.
When I click on the link I do the
Stephan Beal ha scritto:
Unfortunately, the author of autocomplete fails to document which PHP
version it needs.
I'm not a guru of jquery, and I don't know the autocomplete plugin, but
I'm sure that a js file work on the client and not on the server.
If the php part of the script use a
Hi, I've a div with a list inside, each element contains a a tag and a
p tag with a class that is hidden for default.
I post some code for better explain:
div id=news_eventi
ul
li
a href=#
onclick=$('.surprise').hide('slow');$('#news_3').show('slow');return false;
+ 19-06-2007
Hi, I've this example on my site to better explain my problem.
http://www.gianiaz.net/jquery/dimension.html
What I'm try to do is to retrieve the height of the list containg the
news element after the effetct show applied to the paragraph.
Try clicking two times on news1 link.
The problem is
Hi, don't know if is a jquery related problem, but can you help me?
I've a table, like this:
table
tbody
tr class=record
td class=new
Test
/td
td class=old
Test
/td
/tr
/tbody
/table
Then in my js:
$(.new).hover( function() { $(this).addClass(hover) },
Jonathan Sharp ha scritto:
The reason there's a delay is that new members posts are moderated to
fight spam. After x number of valid posts the moderation restriction
is removed. I've removed this restriction for your account.
Cheers,
-js
How much is X?
I wrote a few post (like 5 o 6)
Hi, I did not find in doc, can I select 2 types of elements in only one
instruction?
My purpose is to capture values from input and select elements in a form
to serialize it.
Thank you
Hi, i'm looking in API/1.1.2/DOM/Traversing section of the doc for what
I'm tryng to do...
I think siblings() could be my function, but don't know how to use it..
I've a form like this:
label for=test/label
input id=test
label for=test/label
input id=test2
After the submit I do some
Many thanks Andy and Michael, I think both methods could work, cause
I've in an array all the ids.
@Andy, I looked at prev() before asking, but I falled in error thinking
that prev expects a classname or an Id.
Thank you all.
Hi, I'm using this piece of code:
$().ajaxStart(showblock).ajaxStop(hideblock);
To show and hide an overlay with the loading... message in it when an
ajax funcion is running.
I'm using also jtip, with an ajax request, and here come the problem.
When I point the mouse over the element that
Andy Martone ha scritto:
Set global to false in the properties object you pass to $.ajax():
http://docs.jquery.com/Ajax#.24.ajax.28_properties_.29
Thank you, in later afternoon I could reach the doc site and find my self.
Hope this could be useful for others :-)
Hi, don't know if it is possible to do something like this one without
flash, but if it is possible can you give me some suggestion on how to
do it?
http://flash.html.it/movie/demo/824/effento-lente/
Thank you
Rick Faircloth ha scritto:
Very nice!
Where do I find everything I need to implement this?
Or is everything in the source of the page?
Rick
I made a rar archive you can download here:
http://www.gianiaz.net/jquery/magnify/magnify.rar
The code is a test, there are some things to implement,
On Sep 5, 11:40 am, Daniel Rossi [EMAIL PROTECTED] wrote:
Interesting, im not getting the initial email, just the replies ! I'm
using gmail pop though.
Same for me, I've renounced to make it work with thunderbird, I use
web interface of gmail to send email to the list.
Saidur ha scritto:
Hello ,
I am a new bie in jquey. I need tutorial to work on jquery auto
complete plugin with php .
I need code. That i will test .
Thanks
I used this one, it has documentation and examples.
http://www.dyve.net/jquery/?autocomplete
Bye
Just use oldschool window load:
$(window).load(function() {
// everything loaded
});
Thank you, it was very simple
Hi, if I want to get the ul childrens of a li element I do something
like this:
$('#li_id ul')
But If I have already the jquery li object how can I do this without
getting the id of the element?
More in specific, I click on a checkbox, then I get the container
(which doesn't have an id) with
Found!
I use the children method passing a selector.
There's a better way?
Don't know if is what are you looking for, but have you take a look at
this plugin?
http://ideamill.synaptrixgroup.com/?page_id=16
Bye
no success with last 4 hours of test.
What I understan is that if I write nested list with same class and
apply the sortable to the class make it confusing cause the pointer
intersect with 2 classes with the same name.
For be much clearly this is what I'm tryng to do with jquery and
interface:
John Resig ha scritto:
We just pushed the brand-new jQuery UI 1.0 out the door.
Very, very, very cool!
I love you all :-)
Jay ha scritto:
Thanks, you are right. The runat server attribute meant the server
side compiler was trying to deal with the script.
So it's fixed now but presents me with a new problem.
The reason I put the runat=server in the script tag is because I am
using a MasterPage in my .net web site.
Hi, I'm using this wonderfull plugin to filter and order values in a
table:
http://ideamill.synaptrixgroup.com/?p=7
Now I'm tryng it on a mac with safari(v 2.0.4), but it doesn't work.
In javascript console I got this fantastic error:
TypeError - Null Value line 1 (no file specified and
Hi, I'm using klaus tabs plugin, but I have a problem with fckeditor.
I use the tab plugin for a multilingual site, then every language is
in a tab, and in every tab there is an fckeditor instance.
If I comment the line that initialize tabs I can write in every
textarea, if I initialize the
I've found this answer in fckeditor forum:
The problem is that when FCKeditor is created from a textarea which is not yet
visible, it is given a height and width of 0. This appears to be true whether
you define a width and height or not.
I have two solutions. The first (easiest) is to not
solved, if can be useful, in js on the main page:
function FCKeditor_OnComplete( editorInstance ){
$('#tabcontainer').tabs();
}
Bye
spinnach ha scritto:
this returns an error in IE7, works fine in firefox, is this a bug or
something i overlooked ?
var $div = $('div class=/div');
Try
var $div = $('div/div');
$div.addClass('fileinputs');
Giovanni
Hi, I'm trying to get the option with a specific value in it.
This is the syntax I use and doesn't works:
alert($('option:[value*=\'2\']', $('#category_1')).size());
It alerts 0, if I try without the value I get the correct size of the
options in the select.
Where's the error?
Thank you
Battista Lenoci [EMAIL PROTECTED]
wrote:
Hi, I'm trying to get the option with a specific value in it.
This is the syntax I use and doesn't works:
alert($('option:[value*=\'2\']', $('#category_1')).size());
It alerts 0, if I try without the value I get the correct size of the
options
Hi, I'm heavily using jquery in a page that loads a lot of things,
and sometimes (apparentily without a sense) firebug shows this error:
cyclic __proto__ value
[Break on this error] eval(function(p,a,c,k,e,r){e=function(c)
{return(ca?'':e(parseInt(c/a)))+((c=c%a...
On this project I'm using
Hi, I have a page with a input file, and I'm wondering if it is
possible to send the file to server using ajax, without submit.
Thank you
On Oct 11, 5:56 pm, Maggi Trymbill [EMAIL PROTECTED] wrote:
Hello Giovanni,
To be able to send a file via AJAX with jQuery you need a plugin
because jQuery doesn't know how to post a file via AJAX. There is one
that works quite well, you can see the demo for it
I've solved, the plugin creates a form in a iframe, where it clones
the input file getting it by the id passed in the constructor.
After line 159 I've addedd:
$('input').clone().appendTo($(form));
this is the piece of code to modify:
154 {
155 // var io = $('#' + frameId);
156
Hi, I'm looking on the doc, but I've a doubt about the ajaxSuccess
event.
In docs says:
The XMLHttpRequest and settings used for that request are passed as arguments
to the callback.
But in wich form?
I think is an object, but can you help me understand how is
structured?
In my particular
On Oct 15, 2:58 pm, Mike Alsup [EMAIL PROTECTED] wrote:
The docs are incorrect. Your ajaxSuccess handler is passed three arguments:
1. The event object
2. The XHR
3. The settings object
Thank you very much Mike, I was going crazy :-)
Sorry for the rough answer, might be able to help more if I know what
the server response looks like.
Rob
Thank for your answer Robert, but in my case I want to retrieve the
data sent to the request, and not the data receveid.
In my case I use the ajaxSuccess event and then the right answer
Emil Ivanov ha scritto:
Hi dgt,
I think the problem is the following:
ajaxForm uses Ajax to send the data (XMLHttpRequest), but XMLHttp does
NOT support file uploading, so the way to send a file (image or
whatever) is to use an iframe. You can manipulate the iframe with
javascript by copying
Hi, I have a doubt about the right way to perform an event binding.
In a page a I have a select with id #cat1 and class=myselect.
During the use of the page depending on the element selected on cat1 a
do an ajax call, that get a list of elements and generate a select
that has
On Oct 18, 2:06 pm, micha149 [EMAIL PROTECTED] wrote:
I have the same Problem to The Plugin loads the file succesfully
to the server. I can trac it with the php modul upload progress to.
But it doesent appear in $_FILES. All other form fields are listet in
$_POST corectly.
Hi Michael,
upload plugin that uses flash to provides this
capability:
http://www.pixeline.be/experiments/jqUploader/
Mike
On 10/18/07, Giovanni Battista Lenoci [EMAIL PROTECTED] wrote:
On Oct 18, 2:06 pm, micha149 [EMAIL PROTECTED] wrote:
I have the same Problem to The Plugin loads the file
micha149 ha scritto:
I think it must work. Bu i'n not an yui man. I make it with jQuery:
$(document).ready( function() {
// define the check progress function
var getProgress = function() {
$.ajax({
type: GET,
url: document.URL +
Hi, I'm working on a little piece of code you can find here:
http://www.gianiaz.net/jquery/mouseover/
In a few words, I make appear a div with an info of the image when the
mouse go over an image.
The problem is that when I go over the image the div with the info
appears, but if with the
[EMAIL PROTECTED] ha scritto:
Hi,
I'm using this to upload file:
input id=file name=file type=file
It works very well, now I'd like to find a way to check only jpeg
files are uploaded, any way to do this in jQuery? Thanks.
A.C.
I think the only thing you can do client-side is to
BuckRogers ha scritto:
Here is an example found in the documentation :
$.get(test.php, { name: John, time: 2pm } );
How do I go about changing the parameters dynamically.
Let's say I have a function that returns a name. I don't want John,
I want the string retuned from my getName() function
Hi, I'm trying this plugin:
http://www.methvin.com/jquery/jq-corner-demo.html
But I've a little problem.
If have a background color for my body (for example red), then a
container with background color of white, if I use this plugin in the
backgound of my corners i will see the red background
Hi, I'm playing with jquery, and I'm tryng to do a news scroller.
In my markup I have an unordered list with position relative that I
move with setInterval and top position.
I draw a little scheme to show you what's my problem:
http://www.gianiaz.net/jquery/newsscroller/newsscroller.png
Don't know if there is a better way, but this code works:
script type=text/javascript
$(document).ready(function() {
$div_cloned = $('#test').clone();
$('select', $div_cloned).remove();
alert($div_cloned.text());
});
/script
/head
body
td
Are you triyng to send a query like this?
var data = vote=C+;
$.ajax({
type: POST,
url: ajax.php,
data: data,
dataType: json,
success: function(data_result) { ShowMessage(data_result) }
});
Try using the code for the plus sign: %2b
Bye
On Nov 27, 4:59 am, damitha
There are a lot of way to take data via ajax.
I always use this one:
Client side:
data = param1=fooparam2=bar
$.ajax({
type: POST,
url: ajax.php,
data: data,
dataType: json,
success: function(data_result) { FillResult(data_result) } //
on success the
Hi, I'm using php and ajax calls to save content of a form and I'm
wondering if there is a secure way to save a form also on the unload
of the page.
From a book that I have:
the event fires before the document goes away, don't burden the event
handler with
time-consuming tasks, such as
Hi, can anyone help me understand why in this case the element is not
appended in IE7:
for(var i=0; i lista_files.length; i++) {
$a = $('a').appendTo($container);
$a.addClass('expander_link');
$a.attr({
'id':'exp_link_1',
It seems that on certain elements, this syntax is preferred by IE
$a = $('a/a').appendTo($element);
It's right? There'is an explanation?
Thank you
Don't know if I understood,
$.ajax({type: POST,
url: foo2.php,
data: data,
dataType: json,
success: function(server_response) {
switch(server_response.wich_function) {
case '1':
on_success_one(server_response);
break;
GianCarlo Mingati ha scritto:
leaving the old framework was creating problems with the easing
equations used in my slideviewer plugin wich uses jquery 1.2 and the
easing functions. The plugin is used along the blog in some posts. In
some way, the last framework loaded (the old one, from Digg)
Matt Quackenbush ha scritto:
str = $(input[name='addType']).val();
Don't know if is the better way, but I use this method:
label for=add-type-1input type=radio class=radio_add_type
name=addType id=add-type-1 value=prem /nbsp;Premium/label
label for=add-type-2input type=radio
wyo ha scritto:
I've some functions which I'd like to use outside of jQeury in normal
HTML, e.g.
script type=text/javascript
$(document).ready(function() {
function collapse (i) {
$('#expanded_'+i).hide();
}
});
/script
...
img src=images/plus01.png
Alexandre Plennevaux ha scritto:
hi friends,
we've been discussing now and then about optimization, reducing the
number of http requests, compression;
A php script just came out that takes that in charge for you, it's
impressive: http://aciddrop.com/php-speedy/
If you guys find it work for
The subject says it all...
How I can detect a crtl+click on an element?
Thank you.
--
gianiaz.net - Giovanni Battista Lenoci
P.le Bertacchi 66
23100 Sondrio (SO) - Italy
).click(clickFn);
}
})
.keyup(function(event){
if (event.keyCode == 17){
$(#target).unbind('click', clickFn);
}
});
Thank you very much!
--
gianiaz.net - Giovanni Battista Lenoci
P.le Bertacchi 66
, but in javascript I'm very newbie...
Thank you..
--
gianiaz.net - Giovanni Battista Lenoci
P.le Bertacchi 66
23100 Sondrio (SO) - Italy
this into the metaKey attribute which detects the CMD
key on a Mac:
$('#element').click(function(e)
{
if (e.metaKey)
{
do_something();
}
});
Very cool, thank you all.
--
gianiaz.net - Giovanni Battista Lenoci
P.le
Hi, I'm using a php script that compress in gzip and in one file all
my javascript files.
The script and an explanation can be found here:
http://rakaz.nl/item/make_your_pages_load_faster_by_combining_and_compressing_javascript_and_css_files
The script works very well, and times of download
On Feb 12, 12:26 pm, andrea varnier [EMAIL PROTECTED] wrote:
have you tried using the minified version of dimensions.js instead of
the packed one?
Hey, you've found the error, thank you very much!
But why??
Thank you again
will take a look a this plugin:
http://www.reindel.com/accessible_news_slider/
Maybe can be the one for you.
Bye :-)
--
gianiaz.net - Giovanni Battista Lenoci
P.le Bertacchi 66
23100 Sondrio (SO) - Italy
if the subdomain is on another server).
The idea is to use something like a proxy to avoid the
XMLHttpRequest.open error.
Bye
--
gianiaz.net - Giovanni Battista Lenoci
P.le Bertacchi 66
23100 Sondrio (SO) - Italy
Hi, I know that shadowbox.js isn't a jquery plugin, but I think that
most of you had take a look at this fantastic plugin.
I'm using in it in a site for displaying images, and I'm wondering if
it's possible to display a caption in the bottom like other plugins
do.
Thank you for your answers :-)
Hi, till now for my draggable and droppable effects I used Interface
plugin. Now I want to take a look at jquery ui, but I'm wondering if
exists a documentation better than the one on docs.jquery.com. For
example:
draggable( options )Returns: jQuery
Creates new draggables on the nodeset
On 30 Apr, 15:22, motob [EMAIL PROTECTED] wrote:
Clicking on draggable( options ) will give you this
page:http://docs.jquery.com/UI/Draggables/draggable#options. From there,
click on the options tab. The same holds true to access the droppable
options.
Thank you, I didn't see it
Hi, I'm having a problem understanding how to get the right position
of an element inside a blockui div.
I'm using blockui of Mike Alsup, and dimensions plugin.
Here you can view an example page:
http://lab.gianiaz.com/jquery/helptip-blockui/
In this page I use the jquery hover effect to show
just finished to write my message and I found the solution.
With $('.helptip').offset() I can get the right position of the
element regardless the container.
Thank you.
Hi, I'm having a problem filtering keyboard input in a text field.
Here is the page with the test:
http://lab.gianiaz.com/jquery/filter_input/
I use this function to catch the key pressed by the user:
function onlyNumbers(e) {
key = e.keyCode;
if(debug) log(onlyNumbers\nkey_code:+key);
Dan G. Switzer, II ha scritto:
Giovanni,
You need to use the keypress event if you truly want to know which character
was pressed.
However, IE6 doesn't register the keypress event for certain non-printable
characters (like the backspace, the arrow keys, etc.) So, for IE6 you need
to capture
macsig ha scritto:
Actually i use the same code in an other page and all works well (the
only difference is that in the other page I don't have any
scriptaculous or other jquery staff). As you can see in my code I link
the required files and the loading script looks fine (at least to me).
So
Hi, in a control panel I have a form that collect a lot of data.
Inside this form I want to collect N images using the ajaxform plugin
to permit an ajaxLike file upload.
The problem is that if I use this markup :
form name=collectData id=collectData ...
input type=text value= name=name
form
Put your nested form after the parent form, and hide it. Keep the
upload-elements in the parent form and move them to the upload-form on
submit (using a different submit button). Clone/move back to the
parent form after the submit for more files.
Thank you for your answer Jörn, It works :-)
Hi, I have 2 little questions:
1. In a piece of code I wrote:
$div = $('div class=elementContainer/
div').appendTo($container);
$a = $('a/a').appendTo($div);
$a.css({'background-image':'url('+img.url+');'})
$a.addClass('element');
$a.attr({'rel':img.basename});
Tony ha scritto:
Hi,
There is an extra semicolon at end of css's value:
$a.css({'background-image':'url('+img.url+');'})
First question fired!
:-)
Thank you.
--
gianiaz.net - web solutions
p.le bertacchi 66, 23100 sondrio (so) - italy
+39 347 7196482
Arun Kumar ha scritto:
Where can I convert to a JSON object using eval and use it as a local
JSON data?
I've solved this way:
In the server side I create a string separated by \n chars that
contains N json objects :
foreach($list as $c) {
$record = array();
$record['id']
Hi, maybe this is a stupid question, but I can't find a solution.
I have different nested lists
ul
li id=id_1
ul
li id=id_10/li
/ul
/li
/ul
And this piece of code:
$('ul li').bind('click', function() {
alert(this.id);
});
When I run this code and I click inside the nested li I got
Renato Formato ha scritto:
Hi all,
I've just released the jFlip plugin,
a plugin to make unobtrusive flipping page image galleries using
canvas (warning: no Flash needed!).
It works with all jquery compatible browsers, IE included, using an
enhanced version of excanvas I wrote.
Enjoy!
Renato Formato ha scritto:
Hi all,
I've just released the jFlip plugin,
a plugin to make unobtrusive flipping page image galleries using
canvas (warning: no Flash needed!).
It works with all jquery compatible browsers, IE included, using an
enhanced version of excanvas I wrote.
Enjoy!
Giovanni Battista Lenoci ha scritto:
Put your nested form after the parent form, and hide it. Keep the
upload-elements in the parent form and move them to the upload-form on
submit (using a different submit button). Clone/move back to the
parent form after the submit for more files
Mike Alsup ha scritto:
There's a ton of them. after, before, insertAfter, insertBefore,
append, prepend, etc
http://docs.jquery.com/Manipulation
Ex: $('#myElementToMove').insertAfter('#myDestinationDiv');
Ups... I was using these metodhs to inject new DOM elements, but I never
tought
fambi ha scritto:
How can we find all inputs with name X?
Thanks
Hi, take a look here : http://docs.jquery.com/Selectors
$(':input[name=X]');
Bye
--
gianiaz.net - web solutions
p.le bertacchi 66, 23100 sondrio (so) - italy
+39 347 7196482
agileteks ha scritto:
Hi forum,
Does anyone has jQuery code example of how to keep a message floating
on top of a screen and it is staying on that position even though when
we scroll the screen?
I am pretty new to jQuery. If anyone could explain to me how to do
that, i very appreciate it.
saf ha scritto:
Hello
1) How do I display tooltip at a fix position.
2) I want to display a tooltip when mouseover occures on text also
when it has focus.
Thanx in advance
try this (untested, but it would work):
html
head
style type=text/css
#tooltipbox {
border:1px solid black;
Yavuz Bogazci ha scritto:
Hi,
is it possible to call php functions from jquery? I knew how to call
a .php page from jquery with $.post and to echo output or return a
JSON Object. But my application growth and there is an increase in
single php pages. This is very confusing and the
David J Bauer ha scritto:
Note that in the CSS I have visibility as hidden: is that a problem?
Use display:none :-)
bye
--
gianiaz.net - web solutions
p.le bertacchi 66, 23100 sondrio (so) - italy
+39 347 7196482
zerowing ha scritto:
How can I select the #blc2?
HTML
div id=blc1
pSome text/p
/div
div class=openBloc
div id=blc2
h1strongSome title/strong/h1
/div
/div
Script
$(document).ready(function(){
$('div#blc1').ifixpng();
Karl Swedberg ha scritto:
The selector looks fine. The .css() method is where you're having a
problem.
What a stupid error... I was focusing on the not selector and I didn't
saw the css error.
Thank you :-)
--
gianiaz.net - web solutions
p.le bertacchi 66, 23100 sondrio (so) - italy
+39
hubbs ha scritto:
I am trying to understand JSON, and could use a little help.
How would I use jQuery to write the values onto a page?
user = {
firstName: John,
lastName: Smith,
address: {
streetAddress: 21 2nd Street,
city: New York,
state: NY,
Hi, I'm trying to modify the pngfix plugin to be able to launch a
function after the pngfix has applied, anyone can help me?
I've writed a few lines of code:
function test() {
alert('prot');
}
$(document).pngFix({'blankgif':'images/pngfix/blank.gif', 'funzione':
test});
and inside the
Solved,
inside the plugin:
settings.funzione();
Bye
Hi, I'm here for a little suggestion, I write here cause I think my
suggestion would be lost in the flame about the rockstar banner.
I am subscribed to the rss about new plugins, and when I read in
thunderbird the topic about a new plugin the page displayed is the one
about the release notes and
Kristaps ha scritto:
Hello,
Let me start with that I understand javascript well, but am not
experienced jquery user. So i found jquery UI autocomplete widget, but
reading docs I didnt found any options to pass remote data with $_POST
method, so I wonder if there is a way to accomplish such
Mattl ha scritto:
$(this).parent().next().find(input).val(data[1]);
The error is in this line:
$(this) - refers to the input with the autocomplete
parent - refers to the p containing the input fields
next- refers to the next p after the p that fired the
Hi, I'm using the pngFix plugin to show some png images with
trasparency.
These images are part of a list of menu, and each one is inside on
link tag.
When the png fix is applied I can see trasparency but the linkable
area is restricted to the visible part of the image.
I've putted an example
Is out! :-)
--
gianiaz.net - web solutions
p.le bertacchi 66, 23100 sondrio (so) - italy
+39 347 7196482
Rey Bango ha scritto:
Yep. You probably got that from TechCrunch and I tend to agree with
their comments that it's a spike due to the newness of the browser
and can expect to see that figure drop as people go back to using
their standard browsers.
Rey
I've tried chrome, very nice toy and
Pankaj ha scritto:
Hi..
Trying to upload file with jquery form plugin , file was
uploading but i was not getting json response still i have set frame
parameter as true in ajax submit request options.
please suggest
Thanks in advance.
Try posting some code :-)
1 - 100 of 171 matches
Mail list logo