Hi
Please try this
var content = jQuery.trim(tinyMCE.get('editor').getContent());
$.post(comments.php, { do : editcomment , c : cid , pagetext : content
},
function(data){
});
Best Regards
Ranga
On Tue, Sep 29, 2009 at 9:48 AM, lionel28 lmarte...@haitiwebs.net wrote:
The problem was due to me not wrapping the result in a textarea
This is not a bug and is not a problem with the jquery form plugin :)
Hi Charlie.
In a page I have a lot of entries and I am onclick do an edit. So each one
must have a unique id.
the split allows me to get the id
$(document).ready(function() {
$('a[id^=doedit_x]').live('click', function(event) {
var fullid = this.id;
var split = fullid.split(_);
var
hi,
Firebug was telling me that editcomment was not defined and the dialog was
freezing. So I put editcomment, cid and pagetext in bracket and the dialog
box updated the div, closed but database was not updated
Thanks
lionel28 wrote:
Hi,
I am loading tiny Mce editor in a dialog box
I would like to send the ID of the autocomplete-field to the ajax-
script.
I thought that $(this) refers to the input-field (having my initial
example in mind).
isn´t it possible to use $(this) within the autocompleter? how would
you pass the ID of the current autocomplete-field to the
Hi Ryan,
That only affects the child of the parent.
What I want to do is this:
ul
liLink 1/li
liLink 2 *This is the link I want to add a class to*
ul
liLink 2a/li
liLink 2b/li *This is the active link*
liLink 2c/li
/ul
/li
liLink 3/li
/ul
Rather than affecting a descendent/child of
$(li a).click(function(){
$(this).parents(ul).parents(li).addClass(className);
});
osu wrote:
Hi Ryan,
That only affects the child of the parent.
What I want to do is this:
ul
liLink 1/li
liLink 2 *This is the link I want to add a class to*
ul
liLink 2a/li
liLink 2b/li *This is the
Thanks Liam, but that's not working...
Not sure why .click is in your example? Am I right in thinking by
adding .parents to the end of each tag in your example that you're
'going down' different levels in the unordered list?
This is what I have:
$(li a).click(function(){
I'm assuming you posted an example list and the real list does contain a
tags? I'm also assuming you are running that script with a document
ready handler?
osu wrote:
Thanks Liam, but that's not working...
Not sure why .click is in your example? Am I right in thinking by
adding .parents to
Hi Liam,
This is the list I'm working with:
ul
li class=nav-path-selecteda href=#Link 1/a/li
lia href=#Link 2/a/li
li class=nav-path-selecteda href=#Link 3/a
ul
lia href=# class=nav-selectedLink 3a/a/li
lia href=#Link 3b/a/li
lia
It all works fine, except for this bit
$(li ul).siblings(a).click(function(){
return false;
});
there are no a tag siblings of the UL, so that will not work.
I've just tested it, and when I click on a subnav link, the class is
added to the LI containing Link 3, if you
Hi Liam,
Thanks, I think I didn't make myself clear enough - rather than
occurring when you click the link, I need the class to stay in place
whenever a child link (i.e. Link 3a, 3b or 3c) is active. I can see
the class is being applied on click, but how would I make the class
stay in place?
oh I see, this would be better done with some server side code but this
is how you could do that.
Similar code, just checking for a class.
$(li a.nav-selected).each(function(){
$(this).parents(ul).parents(li).children(a).addClass(nav-selected);
});
osu wrote:
Hi Liam,
Thanks, I think
You're a dude, thank you.
I agree that it would be better server-side, but it would involve
hacking the core and I'm against that kind of thing, particularly for
something that is purely to satisfy a designer's poncy preference.
Thanks for your help.
osu
On Sep 29, 11:54 am, Liam Potter
Thanks very much for your replies.
Could you please post the whole page code?
So I can see how the javascript, html and ajax works together
I'mn struggling to understand how the whole page is layed out.
Thanks in advance
On Sep 28, 2:18 pm, Mark Gorman dayg...@gmail.com wrote:
Hi,
im sure this is a simple matter, but i cant seem to work out how to
loop through a multi dimensional JSON object (where the keys are
unknown).
example json:
{
processed:false,
message:External link could not be set:,
message_array:
{
\link\:
{
hi
I've a Problem:
I have a table like this:
table class=sortable id=res
thead
tr
th123/th
th123/th
th123/th
/tr
/thead
tbody
tr
Hi,
I am new to jQuery and using superfish popup menu widget to create a
menubar. I have only four menus and 3 of them are not drop downs. So I
want to focus on the clicked menu item. How could I use jquery or some
other technique to do this. Kindly help me to solve this.
Thank you,
Tharindu
Hello,
I have a problem with removing/toggling a table column.
I have the below function that works perfectly in FF3+, Chrome, Safari
but fails in IE7.
$.fn.toggleTableColumn = function(column){
$('tr td:nth-child('+column+'), tr th:nth-child('+column+'),
col:nth-child('+column+')',
If I refresh my page in IE6 or IE7 I get a javascript error:
Error: '_gat' is undifined.
The line and the amount of chars differs at times.
Apologies for the subject line, I'm struggling to explain the problem
in a concise manner.
I have the following document:
body
h1 class=page-editable widget=linePage Title Goes
Here/h1
div widget=repeat-area
div widget=repeat
Although it is not the most elegant of solutions, I found that adding
position:relative to the element in question preserved the smoothness
of the div's content when using fadeTo.
Hope this helps.
Ben
On Sep 26, 12:56 am, Dave Maharaj :: WidePixels.com
d...@widepixels.com wrote:
I have
I am currently using the .after to insert html code into the website.
In the html code I am passing it I have div's with id's and classes.
I have other jquery functions which look for those id's and classes to
perform actions when the mouse moves over it, but it does not perform
the action after
Hi.
Im trying to animate the prev/next buttons.
my aim is to make them invisible when not hovering the carousel.
first i tried to make the images invisible and visible when howering,
thats working.
i have a problem with hiding the next/prev buttons.
---
$(document).ready(function(){
I am currently using the .after to insert html code into the website.
In the html code I am passing it I have div's with id's and classes.
I have other jquery functions which look for those id's and classes to
perform actions when the mouse moves over it, but it does not perform
the action
I need to add an icon to the end of the field that automatically opens
the selection box. This is useful for smaller lists where the user may
wish to scroll through the list instead of guessing the first letter.
What javascript function can i call to emulate the min number of chars
has been
Hi,
$('div', this) what does that mean ?
Whatever this is in that case, it's the context to look for any
div (jQuery will only select div's that are ancestors of this in
the DOM tree)
I may not have to do with the Superfish module, did some testing and
it looks like the Google tracking code is causing the errors... not a
100% sure though.
On 29 sep, 10:28, glimbeek gvanlimb...@gmail.com wrote:
If I refresh my page in IE6 or IE7 I get a javascript error:
Error: '_gat' is
Hi
My php is returning via json:
a string (name) which is displayed in the text box
an int (location_id)
When the form is posted I would also like to post 'location_id' as
well as / instead of 'name'.
My js is below. what do I need to do to be able to post the
location_id.
Hi,
I need help to close the ul back up when i click on the white space or
on the options link.
This is what i've got so far
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
html xmlns=http://www.w3.org/1999/xhtml;
head
script
I've had ago at a test ajax page, However, I'm having trouble getting
the lopading graphic to show.
MY code is below, can anyone help?
html
head
script type=text/javascript src=autocomplete/scripts/
jquery-1.2.6.min.js/script
script type=text/javascript
function register(){
this is how you do a post with loading at the top middle ish
html
head
style
.loading {
display: none;
position: absolute;
top: 0px;
left: 50%;
}
/style
script src=jquery.js language=Javascript type=text/javascript/
script
/head
body
script language=Javascript
yay for it not showing what you said before i posted, try on your
start and stop doing $(document).ajaxStart(); for some reson is can be
quite silly with that also use $(document).ready(); its nicer that way
and avoids unexpected issues
On Sep 29, 1:52 pm, Mark Gorman dayg...@gmail.com wrote:
Anyone? I've been working on this for hours and can't come up with a
solution. Thanks
On Sep 28, 3:13 pm, evanbu...@gmail.com evanbu...@gmail.com wrote:
I thought this would do it but no luck
$(this).parents(checkbox:first).attr('checked', false);
On Sep 28, 2:42 pm, evanbu...@gmail.com
How can I popup an alert when validation fails please ? (for testing
purposes)
http://codepad.org/O0iMCyXo
Thanks so much.
Hi,
I want all my form inputs which name start with fieldInstanceGroups
[0].fieldInstances[1].
I try with jQuery('input[name^=fieldInstanceGroups[0].fieldInstances
[1]]') but any result.
Then I try some requests, with \\ to escape special characters but I
have any result.
Hello everybody, i have this code:
$.ajax({
type: GET,
url: latest-tweet.php,
cache: false,
success: function(html){
}
});
And my latest-tweet.php returns:
div class=last style=display:none
div class=user?=$update-user-name?/div
div
My code is like that:
rules: {
'email_address': {
required: true,
email: true,
rangelength: [3, 60],
remote: {
url: 'someurl.php',
dataType: 'json',
This is a nice simple solution to a common cross-browser issue, so
wouldn't it be reasonable for this to be added to the standard jQuery
animate method? The extra size is minimal.
That solution assumes no opacity was specified in a stylesheet.
style
#glory {
opacity: 0.5;
filter:
Hello,
Superfish jQuery plugin is really great to construct a simple manu.
But it will work on hover event, not click :
http://users.tpg.com.au/j_birch/plugins/superfish/
If you don't want to use this, you have to do something like that :
// to close your ul when clicking on a li
$('.menu ul
Thanks Karl! The leftOffset did the trick.
On Sep 18, 8:01 pm, Karl Swedberg k...@englishrules.com wrote:
Hi Sarah,
Not sure what's causing that issue, but one workaround is to set the
leftOffset option to 30 or so:
$('span.tooltip[title]').cluetip({
splitTitle: '|',
Is changing the name values a possibility?
You're doing nothing but asking for trouble (overly complicated
selector syntax and poor performance) with your current naming
convention
On Sep 29, 9:14 am, loicg lguer...@gmail.com wrote:
Hi,
I want all my form inputs which name start with
Sorry Karl.
Thanks for answering!
On Sep 15, 11:43 pm, Karl Swedberg k...@englishrules.com wrote:
Hi Pedro,
That sounds like a great question for the jQuery UI Google Group.
Would you mind posting it there?http://groups.google.com/group/jquery-ui/
Thanks,
--Karl
Karl
I'm trying to write some jQuery to do the following:
If a user clicks once on an object, do X.
If a user clicks twice on an object, do Y, but not X.
I've been having some trouble with this as, obviously, a double-click
will trigger the single-click twice. Here is a failed attempt:
Hi all. JQuery noob here. I'm building a site right now that has a
left column navigation and the navigation is nested inside a div,
which is nested inside a table cell (i.e., td). I'm using JQuery to
make it so when the user scrolls down the page, the div slides down
with smoothly and always
Hi,
this code is from a dropdown box, where clicking on the a.signin
will open or close the box. So I don't really get how the syntax below
work
$(document).mouseup(function(e) {
if($(e.target).parent(a.signin).length==0) {
2009/9/28 alexbariv alexba...@gmail.com
Hi everybody.
Let me introduce myself.
I'm a developer located in Venezuela (latin america), and i have like
2 years using Jquery in every project that came to my hands. Its a
pleasure to meet you all.
For begin, i have a little problem that i
.mouseup(); takes a function as it's argument. So the user is creating
a function while passing it through to .mouseup();
It could also have been done like this.
$(document).mouseup(mouseUpFunction);
function mouseUpFunction(e) // e is the event
{
if($(e.target).parent(a.signin).length==0)
Hello,
I just want to tell you about my new method for earning money online, it is so simple and easy, and you can check it here:
http://www.bestusd.com
Best regards,
Hi,
Newbie learning jQuery. Failing miserably.
I am trying to implement http://decorplanit.com/plugin/ autoNumeric().
Automatically adds commas to numeric fields.
Got the plugin working fine.
Need code to copy contents of one text box to another (on blur) and
then remove commas by running
as soon as i scroll your demo, the div disappears off the top of the page in
firefox and IE7
From the behaviour you describe i think this might be useful to you
http://www.cssplay.co.uk/layouts/fixed.html
best.
Jon
2009/9/29 jpearson311 jpearson...@hotmail.com
Hi all. JQuery noob here.
Hello Alex,
Is input type=text name=date id=idFIV readonly=true size=10
class=calendario style=border:none loaded in using ajax?
If it isn't then you don't need to put the date picker into a
function, you could do the following: http://pastebin.com/m4ddcd98b
If it is loaded with ajax then you
hi, I am using the jCarouselLite which I got from a href=http://
www.webdesignbooth.com/create-a-vertical-scrolling-news-ticker-with-jquery-and-jcarousel-lite/here/a
in my webpage and would like to be able to start the scroll if the
text that is inside the div falls outside the height of it?!
I have built out a fairly rhobust app using jquery and jquery-ui all
was going well until we started to bring different screens together
inside a tabbed interface. Seems that now when we execute our
validation code on one form its checking the fields of all other forms
on the page.
All of my
hi, I am using the jCarouselLite which I got from here in my webpage
and would like to be able to start the scroll if the text that is
inside the div falls outside the height of it?!
Please help!
I agree with Jon, you would be better off using css fixed style for
this rather than javascript.
On Sep 29, 5:12 pm, Jon Banner banali...@googlemail.com wrote:
as soon as i scroll your demo, the div disappears off the top of the page in
firefox and IE7
From the behaviour you describe i think
try:
$(this).siblings('input[type=checkbox]').attr('checked','');
$(this).siblings('input[type=checkbox]').attr('checked','checked');
On Tue, Sep 29, 2009 at 6:09 AM, evanbu...@gmail.com evanbu...@gmail.comwrote:
Anyone? I've been working on this for hours and can't come up with a
solution.
Sorry about that, I've been working on it. Try it again and lower
your resolution to at least 1024x768 and scroll all the way down.
You'll see the overflow that I'm talking about. If I use CSS, I won't
get the smooth animation or?
On Sep 29, 12:12 pm, Jon Banner banali...@googlemail.com wrote:
Try changing within to $('form').
I haven't come across within so I don't know anything about it.
On Sep 29, 4:45 pm, Jeremy jeremy.darl...@gmail.com wrote:
I have built out a fairly rhobust app using jquery and jquery-ui all
was going well until we started to bring different screens together
Sorry, guess it would help if I explained within :). The actual full method
is:
function updateControls(within){
within = within?$('#'+within):$(document);
within.submit(validateForm);
within.find(.datepicker).datepicker();
within.find(form).submit(validateForm);
Hi Charlie,
I got it working. I had a typo in the css after the selector.
Thanks though!
Sloan
On Sep 28, 1:51 pm, Charlie Griefer charlie.grie...@gmail.com wrote:
you can chain on an .addClass('myClassName') ?
try changing this:
within = within ? $('#' + within) : $(document);
to this:
within = typeof(within) != 'undefined' ? $('#' + within) : $
(document);
On Sep 29, 5:33 pm, Jeremy Darling jeremy.darl...@gmail.com wrote:
Sorry, guess it would help if I explained within :). The actual full method
is return $.map(data, function(row) passing the json variable to
data or row?
it looks to me like row is an empty variable.
On Sep 29, 1:13 pm, Asa Carter asa_car...@hotmail.com wrote:
Hi
My php is returning via json:
a string (name) which is displayed in the text box
an int
Goolge tracking code is the cause of that error, I've come across this
before and have contacted google about it and they said it was
something to do with a script on my page but the only script on my
page was the google tacking code.
On Sep 29, 12:52 pm, glimbeek gvanlimb...@gmail.com wrote:
I
Karl,
That has done it! Thank you so much, really appreciate your help/
advice.
Best,
James
On Sep 28, 7:17 pm, Karl Swedberg k...@englishrules.com wrote:
Seems the mouseover/mouseout events are being triggered multiple
times. You probably want to stop them from triggering if #panel is
In the code you have pasted there you do not close your tbody tag
could this be the case in your actual code?
On Sep 29, 7:18 am, Xarem Nightslayer i...@ueli-banholzer.com wrote:
hi
I've a Problem:
I have a table like this:
table class=sortable id=res
thead
tr
2009/9/29 Nalum mallon.l...@gmail.com:
Hello Alex,
Is input type=text name=date id=idFIV readonly=true size=10
class=calendario style=border:none loaded in using ajax?
If it isn't then you don't need to put the date picker into a
function, you could do the following:
Using a vertical menu and supersubs so that the submenus all have the
correct width.
The only thing missing is I need the main vertical menu to size itself
to the correct width too!
How can we make supersubs also correctly autosize the main items on
the vertical menu?
I am trying to do something that seems very simple, but can not get to
work! Basically, I want to find an element whose ID equals a certain
value, as represented by a variable. The variable is derived from a
dropdown list. Here is my code:
$(document).ready(function(){
I'm using the plugin SimpleModal and I wonder if you can open a modal
and within the same modal opening another, only when you close the
second shift did not want to close all, as it occurs today when I call
the $.modal.close ();.
Thanks
$('p[id=' + myClr + ']').addClass('bold');
you need to concatenate the variable in with the literal text so it can be
evaluated.
On Tue, Sep 29, 2009 at 10:59 AM, roi roi.agn...@gmail.com wrote:
I am trying to do something that seems very simple, but can not get to
work! Basically, I want
Thanks! That did the trick. Very much appreciated.
Roi
On Tue, Sep 29, 2009 at 12:09 PM, Charlie Griefer charlie.grie...@gmail.com
wrote:
$('p[id=' + myClr + ']').addClass('bold');
you need to concatenate the variable in with the literal text so it can be
evaluated.
On Tue, Sep 29,
I found my very stupid mistake. I wasn't checking the type within
updateControls when I setup the submit event. Thus if I used a DIV that
contained the form two submits got fired, one for the div and one for the
form. Of course the DIV isn't really a form so it iterates the entire
document.
Hi,
New to jQuery.
I would like to strip out all of the commas in numeric text field
called test on blur. New to jQuery. I have had a go at coding would it
work?
$('input#test').val($('input#test').val().replace(/,/g,''));
and ... how do i calll it?
I'm the callback function of the ajax request to add the event
handlers again
using namespaces seems to have cleared up the other issue
thanks anyway
On Sep 25, 3:05 pm, mjatharvest m...@harvestmedia.com wrote:
I'm having trouble binding the same event to two different links in
the html
It is called after when? call result function?
Thx for the replies.
$('#test').blur(function() {
$(this).val($(this).val().replace(/,/g,''));
});
You call it by telling jQuery to listen for the blur() event on the
element with id=test (line 1 above).
Your code was correct, but you can replace the $('input#test') with $(this),
since $(this) will be a
Thank you. Could you elaborate on the code so that I can track it
through and understand
On Sep 29, 8:49 pm, Charlie Griefer charlie.grie...@gmail.com wrote:
$('#test').blur(function() {
$(this).val($(this).val().replace(/,/g,''));
});
You call it by telling jQuery to listen for the
jQuery is based on find something - do something. The find something
is largely done with selectors (similar to CSS selectors).
you want to find the element with the id=test. that would be $('#test')
you want it to do something when that element receives a blur event...
$('#test').blur(); --
Yes, I've did the change you mentioned and it did work as expected
afterwards.
I'm also curious as to what the purpose of it is also. I haven't
really delved into it but it looked like a message cache.
On Sep 29, 3:57 am, Thiago Miranda de Oliveira thiago...@gmail.com
wrote:
My code is like
Thank you. JQuery is completly new to me. OK how des the belo code
look?
script
$(document).ready(function(){
$(#test').blur(function () {
$('#test').val($('#test').val().replace(/,/g,''));
});
});
/script
On Sep 29, 9:17 pm, Charlie Griefer charlie.grie...@gmail.com
I thought in cache too, but I think the plugin author implemented this
but didn´t test it on such a particular case.
On Sep 29, 5:22 pm, James james.gp@gmail.com wrote:
Yes, I've did the change you mentioned and it did work as expected
afterwards.
I'm also curious as to what the purpose
Because it's completely new to you is exactly why you should be reading the
docs :)
Does the code below run?
On Tue, Sep 29, 2009 at 1:27 PM, factoringcompare.com
firstfacto...@googlemail.com wrote:
Thank you. JQuery is completly new to me. OK how des the belo code
look?
script
I am looking for the best way to rotate the displayed text . Text
should also fade in and out. I have tried the innerfade plugin but was
wondering what else might be available.
No it doesn’t work. I’ll work it out.
script
$(document).ready(function(){
$(input).blur(function () {
$('#test').val($('#test').val().replace(/,/g,''));
});
});
/script
On Sep 29, 9:42 pm, Charlie Griefer charlie.grie...@gmail.com wrote:
Because it's completely new to
Works for me.
Bear in mind you're selecting every input on the page by virtue of
$('input').
Bear in mind further that on blur for every input, you're telling jquery to
remove the commas from the element with id=test (by virtue of $('#test').
Do you have an element with id=test ?
On Tue, Sep
It's working :)
$(#quick-search).autocomplete('/includes/search.php',{
width: 300,
scroll: false,
dataType: json,
parse: function(data){
return $.map(data, function(row){
The value of your message_array property is a quoted string, not an object.
Note what $.each is giving you: every character of the string.
How are you generating the JSON data? That's where you need to fix this.
With the extra newlines removed, your JSON data looks like this:
{
processed:
Great advice and assistance got me looking in the right direction.
Thank you. Got this code working:
$(document).ready(function(){
$(# test).blur(function () {
$('#test').val($('#test').val().replace(/,/g,''));
});
});
On Sep 29, 9:58 pm, Charlie Griefer
You wanna go ahead and submit something in the Validation plug-in bug
tracker for this (if it doesn't exist)?
On Sep 29, 10:31 am, Thiago Miranda de Oliveira thiago...@gmail.com
wrote:
I thought in cache too, but I think the plugin author implemented this
but didn´t test it on such a
It'll be good practice when you start to use $(this) inside the
callback function.
Here's essentially the same thing:
$(document).ready(function(){
$(#test).blur(function () {
// here, $(this) is a reference to $(#test)
$(this).val( $(this).val().replace(/,/g,'') );
});
In most browsers, directly viewing the source after dynamically adding
content will not have the new content's HTML show up. As you
mentioned, using Firebug you can see the new source, and it works
great.
Additionally, if you have the Firefox's Web Developer Toolbar plug-in,
you can View
I have a page that works great in Firefox but alas, not in IE 7. I'm
sure there is some minimum code changes to make, but I'm not exactly
sure what and or where to do it.
There should be rounded corners on the menus and the large pictures
rotating on the right as well.
Look at in firefox and you
Hello,
I just want to tell you about my new method for earning money online, it is so simple and easy, and you can check it here:
http://www.bestusd.com
Best regards,
I think it's just not in the scope. I haven't looked into it.
How about looping through each result set and assigning the option
individually.
In addition to your autocomplete initialization code, add this (not
tested):
$(input.vAutocompleteField).each(function() {
var field = this;
i am new to jquery and started using the validate plugin with jquery.
I tried the demo but have problems using my own jsp form.
i have added the usual
$(document).ready(function() {
$('#customForm').validate({
rules: {
field1: required,
...}
messages: {
You could group it together to shorten it. Makes it nicer (for me, at
least) and less variables. :)
var cid = this.id.split('_')[1];
On Sep 28, 9:26 pm, lionel28 lmarte...@haitiwebs.net wrote:
Hi Charlie.
In a page I have a lot of entries and I am onclick do an edit. So each one
must have
Nice!
Thank you.
I have one last issue.
I am using tinymce for all the textareas.
When I click on the edit link, that displays and allows me to do the ajax
edit and on submit displays the change.
Unfortunately, since the tinymce was already loaded when the page was first
loaded, if I click on
Worked!
Thanks James.
I was so close before, and thought I was way off, but thanks to your
help...
On Sep 28, 7:22 pm, James james.gp@gmail.com wrote:
Sorry, here's a fix of the rules ('input' is suppose to be 'select')
(these are untested):
options = {
rules: {
mySelect:
1 - 100 of 122 matches
Mail list logo