Found solution myself.
I'm using onkeypress="return checkEnter(this,event);" on the
autocompletion input field.
The checkEnter function is taken from
http://jennifermadden.com/javascript/stringEnterKeyDetector.html
Inside checkEnter, I'm running this code to hide any autocompletion
div's:
$(".ac
instead of using $.getJSON(), maybe use $.ajax() directly?
Something like this:
$.ajax({
url: 'some/url.php',
data: 'id=' + $("#id").val(),
type: 'post',
dataType: 'json',
success: function (results) {
console.log(results);
}
});
The magic here is the dataType option. It tells
Hi,
I have a menu like this:
vaio
thinkpad
nokia
samsung
Can I get all the values com1, com2, mob1 and mob2 then assign them to
a variable ?
I use $.getJSON for all my ajax stuff and it works beautifully but
there is one particular situation where I use an iframe hack to do an
ajax file upload and even though the returned value is a json object
(created with PHP), jQuery treats it like a string.
I'm using json2.js right now and it doe
Your URL indicates you are returning json (returnType=json). But, you
do not specify a dataType for the $.ajax() call. So, your "response"
variable is plain text, I think.
Two things to try:
1) put dataType: "json", before the success line.
2) first line of the success function, do somet
Is there something missing that would keep it from functioning?
This ajax function only serves to cause a ColdFusion function to create
HTML that is then loaded as specified in the code.
However, the success part of the function is not executed.
No errors or anything.it's as if the ajax f
Here is a test link:
http://dl.getdropbox.com/u/340087/Drops/09.07.09/user-21bbf008-212305.html
There is a good deal going on I am not able to solve, delete key being
one of them. I can not keep the span updated as I want to. I suspect
because the function returns false in order to block th
I have a pretty basic set of things I want to do:
Capture key press, compare against an allowed list, block keys that
are not in that list, replace a space by a dash if entered.
As this is happening, I have a span I wanted to be updated with the
live values. The username field at https://
On Sep 7, 3:42 pm, "g...@iec" wrote:
> Hi.can anybody help me out to come out of this
You many need to use getElementsByTagNameNS('*',tagName). To remove
nodes try:
this.parentNode.removeChild(this);
--
Rob
The accept option can take a function. That function gets called when a
draggable starts being dragged and the draggable item is sent as the first
argument to the function. So if your droppable already has an item, simply
return false in that function, otherwise return true. The other option would
For some reason, and this is baffling me, if I use both the validation
plugin and the datepicker plugin, some voodoo is occurring.
I have to select the date twice for it to validate.
For example, here are the steps I took:
I try to submit the form without dates in the fields.
The form is not sent
Alright Thank you. That is exactly the kind of answer I was looking for.
See, I don't use $.getScript in place of
Whoa, that's three things. (And the first one isn't even JavaScript.)
Could we get this down to one specific, concrete case that you want to
solve?
I'm not very good at solving general problems that handle a lot of
possibilities, but if there is one specific piece of code that you'd like to
get w
Why do you want to use $.getScript to load those .js files? Is there a
reason you don't want to use
Still no go.
I now have this:
$(document).ready(function() {
init_gallery();
function init_gallery()
{
$('.sliderGallery').each(function(){
var id_parts = $(this).attr('id').split('_');
The website in question is http://os.rosshadden.com/
The only change needed to change it from working to the state it is in now
is changing the script calls from to $.getScript
On Mon, Sep 7, 2009 at 5:00 PM, Michael Geary wrote:
> Unless there is a known issue, I don't think anyone can answ
You probably can't get a div inside a p because they aren't allowed
there, per the w3c spec:
"The P element represents a paragraph. It cannot contain block-level
elements (including P itself)."
(and DIV is a block-level element)
http://www.w3.org/TR/html401/struct/text.html#h-9.3.1
--Karl
Correctpage initially loads with 3 tabs. Clicking on 1 tab loads the
gallery into the current page. mailto:camspi...@gmail.com]
Sent: September-07-09 8:07 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: live() help
Hi I'm not exactly sure what you mean by "loaded into a div" but I a
Hi I'm not exactly sure what you mean by "loaded into a div" but I assume
that this script is being loaded into the document after the document/window
is already ready.
It is possible you need to remove the $(window).ready event. Maybe the bound
ready functions have been triggered already and are
I have this on a page that gets loaded into a div but its not working when
loaded. I originally had the page load normally in the browser and it
worked, only since loading it into the div has it stopped. Not sure if it
has anything to do with it but i want to add
.live() to the function and give
suppose you could ask for an array of div's like:
obj->get_me _all_divs() ; // --> gives an array with div elements
Or:
$.ajax({
type: "GET",
url: 'myxml.xml',
dataType: 'xml',
success: function(xml){
alert( $("body", xml) ) ;
suppose you could ask for an array of div's like:
obj->get_me _all_divs() ; // --> gives an array with div elements
Or:
$.ajax({
type: "GET",
url: 'myxml.xml',
dataType: 'xml',
success: function(xml){
alert( $("body", xml) ) ;
i haven't had anything to do with jquery so far. as much as i've dug
through the forums and docs, it does not support anything similar to
mootools class syntax, right? i've made a simple and reusable class in
mootools, the i need to re-make in jquery. can anybody helm me with
this?
in short - it
I have the following source code:
Untitled