It's probably 'parsererror', not 'parseerror', right?
If you search the jQuery source for 'parsererror', you will find the two
places where that error can be thrown. That may shed a little light on it.
Actually what I would do would be to start stripping down the JSON response
until the error
Ok, I might need to change my question slightly, do you have any other
similar presentation setup that's visually appealing and low on UX
friction? You can suggest alternatives if the above question can't be
achieved by normal means.
Thanks again.
Hi all,
I am looking for a jquery accordion menu with submenu. Right now i am
trying to edit
http://www.i-marco.nl/weblog/archive/2008/05/08/simple_jquery_accordion_menu__?utm_campaign=searchlanding
but unfortunatly i am stuck
Any other tutorials, suggestions??
Dear Mike, I think i'm on something... To be precise, my json is
generated through a jsp parsing. So its dynamic, and imports taglibs
in first place. These imports generate 'natural' whitespace. So I
started hardcoding this jsp/json anwser, stripping away taglib
imports. Wich gave me a clean,
Thanks I'll look into this
Erny
On Dec 8, 6:54 pm, aquaone aqua...@gmail.com wrote:
It doesn't expect numbers to have commas. You need to use your own parser.
e.g.
// custom parser
$.tablesorter.addParser({
id: commaNum,
is: function(s) {
return
Hello everyone!
I'm using load() to get some php content in ti a div, the PHP has a long
switch() conditional that brings back contents depending on var received, it
works fine, almost all the time...
Sometimes, the load function doesn't load anything, there's a callback function
for the load
try using firebug for firefox and look at the NET tab for response of
the server.
Original Message
Hello everyone!
I'm using load() to get some php content in ti a div, the PHP has a
long switch() conditional that brings back contents depending on var
received, it works
hi,
I'am using jquery to get a response from a php page, here it is :
function verif(thediv)
{
var xhr = $.ajax({
type: POST,
url: some.php,
data: name=some variable,
success:
I do have something h looking like your code taht works fine.
I do return result in a div :
___
$.ajax({
type: POST,
url: get_opened_all.php,
data:
from_date=+$('input#from_date').val()+to_date=+$
is yes or no what you are returning from some.php? if that's
the case, variable msg is what contains that
On Dec 9, 8:55 am, ftw unrecev...@live.fr wrote:
hi,
I'am using jquery to get a response from a php page, here it is :
function verif(thediv)
{
var xhr =
For further clarification, the way I'm calling that is as follows:
for (var x = 1; x = count; x++) {
$(#button).triggerHandler(click);
}
which is inside of a function that I call on page load, and it isn't
working at all.
Thanks,
T.J.
On Dec 8, 1:32 pm, T.J. theimmortal...@gmail.com
ftw wrote:
is yes or no what you are returning from some.php? if that's
the case, variable msg is what contains that
ok, i used what you said (msg varaiable) like this :
function verif(thediv)
{
var xhr = $.ajax({
type: POST,
Could you share a live sample page? If you don't have a place to host one,
jsbin.com:
http://jsbin.com/
That will allows us to see what you're seeing quite easily.
- Richard
On Wed, Dec 9, 2009 at 9:23 AM, T.J. theimmortal...@gmail.com wrote:
For further clarification, the way I'm calling
Use Firebug's XHR tab and you'll see exactly what some.php responds
with and then you can code accordingly as of now, what you are
trying to accomplish and what you think is going on are total
guesses Firebug will help pinpoint what is happening
On Dec 9, 9:25 am, ftw unrecev...@live.fr
Thank you for help i fix it =^D, in fact it was a problem in my some.php
:wistle:, now whene i display the msg variable it gives me my answer.
thanks
ftw wrote:
hi,
I'am using jquery to get a response from a php page, here it is :
function verif(thediv)
{
var xhr
Anyone know of any software or web app that can help with refactoring
javascript?
Thanks. Well, I figured out my issue has nothing to do with jQuery.
I removed all custom scripts and other jquery stuff and still was able
to reproduce. My issue was with Cufon alone. Its not the best idea
(I learned) to use Cufon to replace copy text. I was using it to
replace ALL text...
Thanks for the link; I haven't heard of that site before.
http://jsbin.com/axuwi3 is my (very basic) example of what I'm trying
to attempt. What the button on my page actually does is quite
different, and if you need that then let me know.
On Dec 9, 8:29 am, Richard D. Worth rdwo...@gmail.com
You know what, I just think I fixed my own problem. The function call
is executed before I bind the click event to the button, which means
that it has no event to trigger yet. Two days I've spent wondering
about this, and only saw it because of far, far fewer lines of code on
that example page.
You're calling the function before binding the click handler. Change
checkState(#nbl=3);
$(#test).click(function(){
alert(You clicked #test!);
});
to
$(#test).click(function(){
alert(You clicked #test!);
});
checkState(#nbl=3);
- Richard
On Wed, Dec 9, 2009 at 9:56 AM,
I'm glad it helped!
- Richard
On Wed, Dec 9, 2009 at 10:05 AM, T.J. theimmortal...@gmail.com wrote:
You know what, I just think I fixed my own problem. The function call
is executed before I bind the click event to the button, which means
that it has no event to trigger yet. Two days I've
Hi,
I'm trying to access all radio button elements with this expression ..
var expr = $(element[type='radio']);
but the experts among you know this isn't correct. What is the
correct expression?
Thanks, - Dave
$('input[type=radio]')
Thanks Regards,
Dhruva Sagar.
On Wed, Dec 9, 2009 at 9:03 PM, laredotorn...@zipmail.com
laredotorn...@zipmail.com wrote:
Hi,
I'm trying to access all radio button elements with this expression ..
var expr = $(element[type='radio']);
but the experts among you
Hi all,
I wrote a suggestion plugin to make suggestions as the user types, and
display a tooltip if they mouse over the suggestion. This is my first
jQuery plugin and I followed the design/layout posted by Mike Alsup on
learningjquery.com
However, as I don't have too much experience with this..
Hi, this seems like a stupid question, but I'm not quite sure if I can
do it or not. I am copying the contents of a div into a textarea like
this:-
$('#TextAreaID').append($('#DivID').html());
and it works ok, but I need to replace any br / tags in the divs
content with \r\n - can I do this with
I just ran a page with an absurd amount of inputs through the Firebug
profiler and it seems that the majority of the time spent running
scripts is inside jQuery's (I'm using 1.4a1) Sizzle selector, which
makes me think I'm inefficiently using selectors (which I can almost
guarantee is the case).
Regexp seems indeed the simplest way to acheive it. Something like this
might just work :
whatever_string.replace(/(\/?)\s*br/gi, \r\n)
Michel Belleville
2009/12/9 Mad-Halfling mad-halfl...@yahoo.com
Hi, this seems like a stupid question, but I'm not quite sure if I can
do it or not. I am
Reading through the documentation, it seems that either would work, if
you provide a selector...
Try something like..
var $html = $(#DivID).html();
$(br, $html).replaceWith(\r\n);
could maybe work? I'm no expert on this at all, that's just my initial
thought.
On Dec 9, 9:49 am, Mad-Halfling
$(':radio')
http://docs.jquery.com/Selectors/radio
- Richard
On Wed, Dec 9, 2009 at 10:41 AM, Dhruva Sagar dhruva.sa...@gmail.comwrote:
$('input[type=radio]')
Thanks Regards,
Dhruva Sagar.
On Wed, Dec 9, 2009 at 9:03 PM, laredotorn...@zipmail.com
laredotorn...@zipmail.com wrote:
but I can't quite get my head around how to use those methods
The docs:
http://docs.jquery.com/Manipulation/replaceWith
http://docs.jquery.com/Manipulation/replaceAll
would be the place to understand those methods, which just reading the
first few lines of each
Replaces the elements matched by
I just created a page for this plugin
The documentation is still lacking, but I'm writing it and I hope to
have it completely ready in a couple of day
http://myjqueryplugins.altervista.org/jqscroll.html
oops.. my .replace() above is wrong...
could maybe work?
yeah, but why not just use basic JS for the task instead?
whatever i suppose...
I guess that just depends on whether or not the .html() is treated as
a string or as an object with HTML elements. If it's a straight up
string, .replace like you said would work just fine. If it's a
collection of HTML elements, the jQuery method should work.
Again, I'm just fumbling around here,
Has anyone here ver used this plugin? It is called
FullCalendarhttp://www.google.com/url?sa=tsource=webct=rescd=1ved=0CAcQFjAAurl=http%3A%2F%2Farshaw.com%2Ffullcalendar%2Fei=o9EfS_aWHcieuAe72cyEDAusg=AFQjCNFn7CjTrWq-63B_b7V1Bf7IsYgSBQsig2=XSfJCqIHMU4__qJ9JGiqxQ
Hi All,
I am having the problem with dynamic loading of div tag. Coping the div
tag rightly but not able to call the jquery.MultiFile.js dynamically. any
help ..??
html
script type=text/javascript src=js/jquery.js/script
script type=text/javascript src=js/jquery.MultiFile.js/script
!--script
I don't know any jQuery method to debug load() but u can always use
try and catch. However I think load() isn't probably the cause of
problems. You should look for errors in javascript console - I bet you
misspell some class name or sth. If not show us code;)
On 9 Gru, 12:52, ximo wallas
And I think I've fixed this.. I'm not sure how to describe what it is
that I fixed, but performance is vastly improved, although it still
slows down a little bit with an absurd amount of possible inputs. If
anyone wants to take a look at my code and optimize it further, please
let me know.
I am populating an unordered list with items from an ajax query, after which
I want to attach click events to each list item. Using either load or
$.get I'm able to retrieve the data and post it to the UL correctly.
However, when I then try to immediately retrieve all the list items in that
Hi,
Can I use a web service to get the html to be displayed via clueTip?
Rather than use a call to return another page I would like to call a
web service with one parameter that would return the tooltip contents
along the lines of: WebService.GetToolTipForControl(controlId)
Thanks
Need to know if this jQuery will work for a site I'm working on.
Link...
http://www.millnerheritage.com
I need a vertical drop down menu. I'm very green so I pretty much need
it spelled out for me. Maybe even in crayon.
Thanks,
Liza
I saw the Marketo implementation of the Jquery Validation module at
http://docs.jquery.com/Plugins/Validation and I really like
it;specifically how it highlights the form fields and displays one
simple message at the top.
In fact I would like to implement it on a Salesforce.com Web To Lead
form
Good day,
When executing an ajax request, i've noticed the following problems :
- the textStatus callback parameter is always set to success ;
- the callback isn't triggered if a download error occurs (404 for
example).
I understand that the second problem might be unsolvable but is there
any
First of all i am working in ASP. And i have 3 elements i am trying
to populate. I can do that no problem, but my issue is I am basically
making the same Ajax request 3 times and there is SQL involved that i
would rather only make once.
I have pseudo code below to represent what i am doing. If
Thanks for the suggestions folks, I tried
var $html = $(#DivID).html();
$(br, $html).replaceWith(\r\n);
but it doesn't seem to work, but it's something like that I thought I
might be able to get funky and do - I had a look at the JQ homepage
docs, but as you can see they are a little sparse in the
Hi all,
I'm looking for a shortcut to manipulate a dom XML, and for that I
need the html function from jquery.
My problem is that Jquery alters some tag when using html function, by
instance, I'm aware about the fact that html function is not the right
way to do this but it's seems to be a good
Hi everyone,
I have the below piece of code it works perfectly in Chrome, Firefox
(pc) and Safari (mac pc).
But I can't get it to work in IE 8 or Firefox 3.5.5 on OS X
$('#licenseTerms').scroll(function (){
var a = $(this).scrollTop() / 15;
var b = $('#licenseTerms').height();
paid jquery resources : jquery cookbook , lynda jquery video
tutorials
free resources: google
On Dec 8, 3:24 pm, police atharikmoha...@gmail.com wrote:
hi guys, i am interested learn j query, how to learn, can u send any
easy way to learn site?
Hello,
In brief i want to visible specific area whn user will select an item
from combo list. Example:
please check this link http://www.phpwing.com/demo/paymentForm/form.php
when user will click a destination from combo, 2 another combo will
come after it. each list contain 2 unique combo so whn
Take a gander at the live() method:
http://docs.jquery.com/Events/live
On Tue, Dec 8, 2009 at 4:20 PM, Jeff Berry crazedprim...@gmail.com wrote:
I am populating an unordered list with items from an ajax query, after
which I want to attach click events to each list item. Using either load
Are you using $.ajax or one of the other AJAX functions? $.get and the
rest only execute a callback upon success; you'll need to use $.ajax
if you want a callback for an error.
http://docs.jquery.com/Ajax/jQuery.get#urldatacallbacktype has some
more information on that.
-T.J.
On Dec 9, 6:30 am,
Hi,
To improve efficiency, try using contexts in order to restrict the
parsed DOM elements.
For example, if you know that all targeted elements are in div
id=main . stuff p class=myclass .. target text.../
p . /div then you should guide the selector engine towards the
target :
I don't ever use absolute selectors like that. The most general I get
is using a class as the selector. I've made a few tweaks (such as
moving a large block of code from inside the return this.each section
of the plugin to before it) on both the plugin and the page I'm using
it on, which seems to
Yeah, I wasn't really sure it would work, but thought it was worth a try.
And the br/ br thing I think depends on the browser used and the
rendering mode it's forced into. What doctype are you using?
And for some more thought, Firefox (using !doctype html) renders br as
br, but IE8 will show
I have tabs in my page attached is the image.
I need suggestions on making the tabs 508 , please suggest me on tricks or
ways to make tabs inside a page 508, also link for tabs i ma talking
http://flowplayer.org/tools/tabs.html
here is the image
I switched the .click event with .live(click), and it sort of works
now. The problem with the parentMenu not updating is now ok. When I
click the navigation links, the parentMenu now updates with new items
and is clickable. The problem now is still with the childMenu. I can
see in the .js file
Well, if you want to load 3 different bits of data to put in 3 different
places all at once, first you've got to get your server to return the 3
little bits of datas in only one query and wrap them in containers so you
recognize them. So let's assume your unique query returns its results this
way
Nevermind... I found the error... I'm having one of those mornings...
Thanks for you help tho
On Dec 9, 10:30 am, rob rob.sche...@gmail.com wrote:
I switched the .click event with .live(click), and it sort of works
now. The problem with the parentMenu not updating is now ok. When I
click the
Haha, no problem. I've been having one of those weeks. Glad it works.
-T.J.
On Dec 9, 11:42 am, rob rob.sche...@gmail.com wrote:
Nevermind... I found the error... I'm having one of those mornings...
Thanks for you help tho
On Dec 9, 10:30 am, rob rob.sche...@gmail.com wrote:
I switched
Hmm ok.
So i what i am getting from this is that i can refer to elements
inside of the response object.
$('#cold room').html($('house.of_bricks', piggies).html());
So in my case if i call my file and build 3 different divs inside of
the html output I can then take the innerHTML from each of the
Well obvisouly you've got it all now.
Always a pleasure ^^
Michel Belleville
2009/12/9 kingunderscore brad.kings...@gmail.com
Hmm ok.
So i what i am getting from this is that i can refer to elements
inside of the response object.
$('#cold room').html($('house.of_bricks',
What part doesn't work?
Do it get to the (a =b) check?
Something else?
On Dec 9, 6:12 am, Richard McKenna richardofmcke...@googlemail.com
wrote:
Hi everyone,
I have the below piece of code it works perfectly in Chrome, Firefox
(pc) and Safari (mac pc).
But I can't get it to work in IE 8
Thanks Charlie. The live() method is exactly what I need!
On Dec 9, 9:11 am, Charlie Griefer charlie.grie...@gmail.com wrote:
Take a gander at the live() method:
http://docs.jquery.com/Events/live
On Tue, Dec 8, 2009 at 4:20 PM, Jeff Berry crazedprim...@gmail.com wrote:
I am
Brian:
Thank you *so* much for your help with this!
I found that I could even do:
$('#selected_courses input:radio:checked[name=' + curr_ordinal +
']')
I'm skeptical about your explanation of the value for checked because:
1) in Firebug's DOM inspector the value shown for the Javascript
ok i'm failing, even the piggies aren't helping.
ok this is the structure of what is coming back from my call.
div id=top
...
/div
div id=middle
.
/div
div id=bottom
.
/div
so this is what i am doing...
success: function(htmlReturn){
mainData = $j('#top',
Are you returning precisely this :
div id=top.../div
div id=middle.../div
div id=bottom.../div
Or is there a wrapper around these divs like :
html
body
div id=top.../div
div id=middle.../div
div id=bottom.../div
/body
/html
Because I think I remember jQuery doesn't like to fumble around raw xml
It needs a root element, that's what I just ran into an issue with
(I'm trying something very similar).
However, for some reason IE returns null when you try to get the
information inside of the tag, but Firefox (and Chrome and Safari)
return the correct information.
Have you seen that before?
I have the following example:
I have 2 text fields country and city. For each field i want to check
with a remote validation if the city matches the country and vice
versa.
i made the following dummy html page
html
head
script src=lib/jquery.js type=text/javascript/script
Thank you for this information, indeed, i was using $.get.
On 9 déc, 18:13, T.J. Simmons theimmortal...@gmail.com wrote:
Are you using $.ajax or one of the other AJAX functions? $.get and the
rest only execute a callback upon success; you'll need to use $.ajax
if you want a callback for an
No i haven't seen that yet that i can remember, but i have ran into a
lot of issues with IE before it is hard to keep track of them.
I found a way around it where i pull everything into a div with a
display of none, then i pull the .html() from that and then wipe it
out again after i get what i
First, don't use a # as your href instead put #yoursectionID. This
will give the A element an automatic click to the ID it is tied to if
the JS is turned off (likely the case if screen reader is in use).
Next read this: http://www.w3.org/WAI/intro/aria.
JAWS 10+ supports aria, or Advanced Rich
No problem, glad to help.
-T.J.
On Dec 9, 1:12 pm, Cameron van den Bergh
cameron.vandenbe...@gmail.com wrote:
Thank you for this information, indeed, i was using $.get.
On 9 déc, 18:13, T.J. Simmons theimmortal...@gmail.com wrote:
Are you using $.ajax or one of the other AJAX functions?
I found a way around it where i pull everything into a div with a
display of none, then i pull the .html() from that and then wipe it
out again after i get what i need.
Yep, just did that myself and it works fine. That's a cheap way of
doing things though.. death to IE, I say.
Oh well.
On
i'm trying to write my own accordion script.
things are almost done, but im having one problem.
here is the layout:
ul id=links
lia href=#Link Head
lia href=#/aSub Link/li
lia href=#/aSub Link/li
lia href=#/aSub Link/li
lia href=#/aSub
no reason it won't, not sure what to spell
out other than follow the markup used in examples, make sure to include
css file(s) and script file for plugin
vertical version has a vertical css file in addition to standard
superfish.css
LTimmers wrote:
Need to know if this jQuery will work
sorry i forgot to add the ul in the sublink menus:
here is the correct layout:
ul id=links
lia href=#Link Head/a
ul
lia href=#/aSub Link/li
lia href=#/aSub Link/li
lia href=#/aSub Link/li
lia href=#/aSub Link/li
/ul
a link would help a lot, guessing vs actual DOM inspection is futile
test11 wrote:
hi
when i am using superfish, during the page load beore the image/flash
gets loaded all the drop down list are getting displayed at a time .can u
suggest me how to hide those dropdown untill the
I have a set of tabs that loads it's contents using ajax. within some
of these tabs I have defined numeric spinners. I have found that i
need to configure my spinners on tabsshow, not tabsload. however tabs
load works for just about everything else i do dynamically. I'm
guessing this has something
Brian,
I can't use any Ajax here because it is not allowed. I am sure that if i
can make a call to Jquery Plugin when i add new div this will work fine.
Help is appreciated.
Thanks
Jay
On Tue, Dec 8, 2009 at 11:19 AM, jayakumar ala alajay...@gmail.com wrote:
Brian,
Thnaks for the reply.
I
Yeah these things happen oh well.
T.J.
I will let you know if i find a more graceful way around it.
Thanks for the help!
Michel Belleville
And in reference to your question earlier Michel through firebug i am
not getting an HTML wrapper. It is just the divs and their content.
On Dec 9, 3:56
I'll do the same.
Thanks!
T.J.
On Dec 9, 4:45 pm, kingunderscore brad.kings...@gmail.com wrote:
Yeah these things happen oh well.
T.J.
I will let you know if i find a more graceful way around it.
Thanks for the help!
Michel Belleville
And in reference to your question earlier Michel
Hi,
I am using the Validation Plugin from Bassistance (by Jörn Zaefferer) and I
need to append the error message after the div class=rowElem not after
the input field.
This is the HTML I get:
div class=rowElem
label class=align for=country style=cursor:
pointer;Country/label
In regards to this blog post http://tiny.cc/y0vsz
Elijah has been able to come up with a workaround for BlockUI.
However even with this I'm having problems with ImageButton ASP.NET
control.
Anyone know of a way to mod BlockUI to better handle this?
Sorry to be a newb, but I am trying to do the same thing where there
are no arrows in the main menu:
Well, just delete the markup for the arrows then:
$('#nav li a span').remove();
Where do I put that code?
Thank you.
On Nov 13, 9:25 am, discern cap...@gmail.com wrote:
Perfect. Thank
Hi
I am using validation plugin with a submodal dialogue form.
It works really well except on the second time into the form the
validate() always returns true.
Do I need to reset the form (or something)
Regards
Mark
Hello, sort of a newb here. I had the same question.
Just where do you add that code to stop the arrows from showing in the
main nav bar?
Thanks in advance.
On Nov 13, 9:25 am, discern cap...@gmail.com wrote:
Perfect. Thank you!
How do i make a ajax call using $.ajax(); to a subdomain on my
website. I'm calling $.ajax() from www.example.com the url for the
call is api.example.com Thanks for any information you can provide me
with.
$.ajax({
url: http://api.example.com;,
success: function(html){ }});
On 10 Gru, 01:02, Kyle Decot ow...@affinityskateboards.com wrote:
How do i make a ajax call using $.ajax(); to a subdomain on my
website. I'm calling $.ajax() fromwww.example.com the url for the
call is
On Dec 10, 3:24 am, T.J. Simmons theimmortal...@gmail.com wrote:
Yeah, I wasn't really sure it would work, but thought it was worth a try.
And the br/ br thing I think depends on the browser used and the
rendering mode it's forced into. What doctype are you using?
And for some more
My page got a very big drop down list attached is the image
http://old.nabble.com/file/p26720940/programs-drop-down.png
I need suggestions in reducing the width of this drop down , I cannot
replace the text inside this drop down , but I want to reduce the size
overall , any suggestions ,help is
here is my html
[CODE]
div style= margin-bottom: 0.5em; font-weight: bold; width: 100%;
border:
1px solid #0079D6 ;
div style=float: left; width: 75%;
ul style=margin: 0pt 0pt 0.5em 0.5em;
list-style-type:
easier solution is to turn off the insertion of the arrows within
superfish options
$("ul.sf-menu").superfish({autoArrows: false});
mikeromana wrote:
Sorry to be a newb, but I am trying to do the same thing where there
are no arrows in the main menu:
"Well, just delete the markup for
Hello and thank you but a total newb where do I put that code?
On Wednesday, December 9, 2009, Charlie charlie...@gmail.com wrote:
easier solution is to turn off the insertion of the arrows within
superfish options
$(ul.sf-menu).superfish({autoArrows: false});
mikeromana wrote:
Hi,
Yes, I am using in one of my site. I think the issue is in the json-events
file. Please check whether json renders properly and let us know.
On Wed, Dec 9, 2009 at 10:11 PM, Paulo Henrique paulode...@gmail.comwrote:
Has anyone here ver used this plugin? It is called
I just add a pair of form label in my code, it doesn't work !!!
In my project I was called the js file, but in order to show clearly, I put
them together,and Shortened the code
Error: http://jsbin.com/oyeki
OK: http://jsbin.com/iviba3
i kill the bug, the id must different from the function name
http://jsbin.com/ujota3
2009/12/10 Eric Zhong ericiszhongwen...@gmail.com
I just add a pair of form label in my code, it doesn't work !!!
In my project I was called the js file, but in order to show clearly, I put
them
95 matches
Mail list logo