to force the chronological order ?
Thanks.
Julien
// Retrieve product option values from session variables.
function SetOptionStringsInPaypalForm() {
var f = document.forms.paypal;
$(':input[class]', f).each( // for each input element in the
hidden PayPal form
Thanks, Leonardo.
This seems being the right answer. However, I fail at replacing the
$.post() request by the more general $.ajax().
Can you see any error in the manner I'm doing the ajax request ?
(The corresponding $.post() code in my first message works fine.)
$.ajax( async: false,
Solved. I dont' know exactly what was wrong, although it was most
probably in the callback function.
Maybe the carriage returns.
But this works fine:
$.ajax({
async: false,
url: cart_doc,
type: 'POST',
data: {action: 'retrieve_opt', name: fieldName},
dataType: 'text',
Solved. I dont' know exactly what was wrong (...)
Oh, I found : the parameters to $.ajax() have to been included into
json-like brackets !
$.ajax( { parameters } );
Hi,
I can upload a file with this setup :
- the form.js jQuery Form plugin script
http://jquery.malsup.com/form/jquery.form.js?2.33
- the files.php which upload my files and print a validation
message
...
move_uploaded_file($_FILES[file][tmp_name], $_POST
Thanks a lot, Karl. Your code dit it.
Now are several events (like key strokes and checkbox changes) for
which the same code must be run.
So, I would like to retrieve the siblings from within a function.
The problem I encounter with the code below is how to retrieve in
jQuery the caller
Hi Karl,
Thanks for your interesting alternative approach.
On my side I was trying to set a jQuery variable using the argument
that was passed to the function.
But something seems broken if we don't use jQuery from the very
beginning for the selection.
$.tmp = caller;
alert($.tmp);//
Karl,
I choose to keep my original approach as it was better for code
clarity in my case.
From within my function, I could select the text input passed as
argument with variable $currentField.
I could also get the list of other text inputs located after it.
$afterFields.length correctly counts
Hi again,
My question was probably too long as I got no answer...
When a change occurs is one of the following text fields, does someone
know how to scan through all the text inputs located after it?
fieldset name=myfields
ul
liinput type=text name=txt_one /
input type=checkbox
and next li-encapsulated siblings.
This is a rather complex problem for a jQuery newbie and I'm not sure
that I really catched how to use previous() and next()
efficiently.
Thanks for any help.
Julien
(...)
fieldset name=footer_infos class=invisible
ul
li
input name=footer_company type
On 1 oct, 20:07, Karl Swedberg k...@englishrules.com wrote:
Sure, you can do this with html.
Inside the success callback function, do this:
$(html)
.find(td)
.css('padding-left','80px')
.end()
.appendTo('#myTable');
great! that's the .end() part i was missing!
Thanks, i
Karl,
Your explanation and also you code helped me make a big step forward
in my understanding of how jQuery thinks.
Your code works fine; I tested both solutions.
Thanks a lot.
Julien
Here the way to enable/disable several text inputs depending on the
state of checkboxes located just after each one.
$(':text~:checkbox').change(
function(){
$(this).prev()[0].disabled = !(this.checked);
}
);
Hope this can help others.
Hello,
i'm trying to find out how to edit (manipulate DOM) of an HTML ajax
result.
What i have is the following :
$('a').live('click',function(e){
var link = this;
$.ajax({
url: testAjax.html,
cache: false,
data: 'href='+this.href,
success: function(html){
On 1 oct, 16:26, Charlie charlie...@gmail.com wrote:
you are trying to apply css to something that isn;t in the DOM. $.css()
uses inline style attribute so if there is no html inline the attribute can't
be applied
can you add class name to html server side and use css to pad?
if not you
.
$(':text').disabled=true; // This does not work.
}
}
);
Thanks for any help.
Julien
On 1 oct, 17:52, Charlie charlie...@gmail.com wrote:
if it was json or xml could parse it then append, I've never tried parsing
html from ajax
another method is append to an empty hidden table, add classes/css or
whatever to the td's in that table then append them to your visible table
LRancez comment on tree view plugin :
To add a context menu you need add some lines inside the js so you can
configure any callback function:
function showTree(c, t) {
$(c).addClass('wait');
$(.jqueryFileTree.start).remove();
$.post(o.script, { dir: t }, function(data)
Hi,
I'd like to put context menu ( http://abeautifulsite.net/notebook.php?article=80
) on each tree view item ( http://abeautifulsite.net/notebook.php?article=58
)
The tree have many sub directories, sub sub directories, etc... and
files.
I need the id of the selected item (directory or file),
On 25 août, 01:56, James james.gp@gmail.com wrote:
clone(true) should do the trick. Though before there was a bug with
this function where the events would not be cloned (in IE, I think). I
don't know if that issues still exists, but try it out.
Hi,
i'm trying to clone a row in a table with events attached to it.
I initialy have the following html code to duplicate :
tr
td
input type=text id=users name=users[] class=users /
/td
td
input type=text id=expiration name=expiration[]
class=expirationDate /
Hello,
I noticed that after an ajax call, my jquery no longer works. After some
research I realized I had to use either the livequery plugin or the live
event provided out of the box by jquery 1.3.x.
However, the live event used as follows does not work i.e.
cacherFormulaireInscription does not
thanks Giovanni i'll try that.
2009/8/19 Giovanni Battista Lenoci gian...@gmail.com
Julien Martin ha scritto:
Hello,
I basically want to catch any ajax request sent by my app and display an
alert.
I have tried this to no avail:
*jQuery(*).ajaxSend(function(event,request, settings
by the richfaces framework using an
a4j:commandButton.
Can anyone please advise,
Thanks in advance,
Julien.
://www.jboss.org/index.html?module=bbop=viewtopicp=4231946
Any comment or clue welcome,
Julien.
://www.jboss.org/index.html?module=bbop=viewtopicp=4231946
Any comment or clue welcome,
Julien.
On 22 mai, 19:19, hubbs [EMAIL PROTECTED] wrote:
Well, I checked, and our website is using iso-8859-1. I see that this
is a subset of utf8. Is it still possible to have js correctly uncode
the characters?
Yes but PHP work with the subset and do not work with utf-8 !
It is very important
I notice with IE6.0 : Microsoft.XMLHTTP don't take care at charset and
work only with utf-8 encoded responses,
while Msxml2.XMLHTTP seems, like XMLHttpRequest, respect the charset
if it is done ( Content-Type: text/html;
charset=ISO-8859-1 in PHP). It seems explain your difficulties with
and know how to fix them?
Thanks a lot!
Julien
[1] http://sorgalla.com/2008/04/07/jcarousel-023/
[2]
http://groups.google.com/group/jquery-en/browse_thread/thread/99db96d2aa7f374e/dbc65b00784909b9?lnk=gstq=jcarousel+safari#dbc65b00784909b9
put the
javascript under the css declaration as advised in [2].
Now I get no error message, but the carousel still won't work: doesn't
rotate automatically or when I click the right button.
Any idea how to fix this?
Thanks a lot!
Julien
[1] http://sorgalla.com/2008/04/07/jcarousel-023/
[2
put the
javascript under the css declaration as advised in [2].
Now I get no error message, but the carousel still won't work: doesn't
rotate automatically or when I click the right button.
Any idea how to fix this?
Thanks a lot!
Julien
[1] http://sorgalla.com/2008/04/07/jcarousel-023/
[2
On Jan 4, 1:38 am, Dan G. Switzer, II [EMAIL PROTECTED]
wrote:
Julien,
Hello there,
I was wondering if you knew about a plugin, or if you knew if it was
easy to make a text input coupled with an autocomplete functionality
which adds a box for each item added to it. A bit like facebook does
here:
http://refreshpartners.com/fb_dev_wiki_images/fb_multiple_friend_input.jpg
Many thanks!
Julien
33 matches
Mail list logo