What would be the correct method to create an array from the text
inside li items?
Is below, the best method, or would it even work?
var array_test = $(#test li).text().makeArray();
I have searched this extensively, so if it has been covered, please
forgive me.
Let's see if I can describe this without confusing anyone.
We have a recurring need to give users quick lookup access to several
tables of information. Therefore we use a custom build
autocompleter/selector
spiceflo wrote:
Hello together,
I wanna use jCarousel as you can see it here http://www.dslproviderwechsel.de
in the header (the scrolling company logos).
Do you know the parameters for jCarousel to display the plugin as in
the example. Currently I have the following problems:
- the
Just to expand on this quickly...
It acts like $.extend() is referencing DataSelector, as opposed to
copying it like the docs say it does.
*shrug*
Spot wrote:
I have searched this extensively, so if it has been covered, please
forgive me.
Let's see if I can describe this without
Jerry,
It sounds like you want a very very simple solution to this, so I am
going to give it to you. This is _not_ considering clean. :)
You could give each of your line items a unique id like id=line-1
id=line-2 etc.
Give your text container an id... like id=text-container
Then you
Gday,
Is there a short way to do:
$(#idOne).show();
$(#idTwo).show();
?
So far, my best bet is to do:
$.each([#idOne,#idTwo],function(){
$(+this).show();
});
Thanks in advance!
--
Best regards,
WiB
$(#idOne,#idTwo).show();
On Mon, Apr 6, 2009 at 10:45 AM, Alex Wibowo alexwib...@gmail.com wrote:
$(#idOne).show();
$(#idTwo).show();
'm trying to use the ac plugin (great widget!) but need some advice.
My remote data set is a json list and gets formatted approrpiately but
I also need to use the selected item event but this doesnt seem
available in this (but is in some other branches?). Does anyone have a
way of getting use of
Hi!
Using jScrollPane, I'd like to show a grahpical marker NOT included in
the scrolling div.
Use Case:
1. Page shows with [div class=scroll] jScrollPane - all works fine,
content is displayed at the top
2. Outside the .scroll div, I have two pictures (pUp and pDown:
arrows) displayed to indicate
If anyone is interested, I found a solution to my problem here.
http://ask.metafilter.com/16153/Images-in-HTML-select-form-elements
Now I'm able to visually select images inside a form, that provides my
PHP script the filename of the selected element. It's actually a play
around with checkbox,
Alex Wibowo wrote:
Gday,
Is there a short way to do:
$(#idOne).show();
$(#idTwo).show();
?
So far, my best bet is to do:
$.each([#idOne,#idTwo],function(){
$(+this).show();
});
Thanks in advance!
$('#idOne, #idTwo').show();
just like css
For example if you have a price range minimum and maximum. It must be
checked that min. is less than max and the other way round. Is this
possible?
Hello,
Yes, this is another jQuery and Prototype incompatibility problem.
I am trying to use a jQuery plugin, Date Picker (http://www.eyecon.ro/
datepicker/), on a page that also has to use Scriptaculous.
I *have* to use Prototype: it's a Rails (v1.1.6) application we use at
work and I can't
In my first jQuery project, I'm trying to setup a form that has
certain pieces dynamically generated based on menu selections. I have
a button that loads json via Ajax and adjusts select values of the
items in my form. Each of the selects in the form also has a related
menu dynamically loaded via
There is a bug in the jcarousel if you using xhtml instead html.
See:
http://groups.google.com/group/liftweb/browse_thread/thread/973aabff8a95fa77/b143b4975ddb8124?hl=en#b143b4975ddb8124
Thanks to Marius again.
The carousel works if you edit the js and replaced the UL with ul. A
change in the
Hi, i'm very new here so sorry if this doesnt make sense. I have
created the following code which works ok but its only for 1 elements
(more1/less1) but i want it to work for x number of boxes, e.g. more2/
less2, more3/less2 without having to code some jquery for each. here
is the code:
script
Hi, I have clueTip working really nicely (for the most part) but just
have two issues, well, one issue and one question.
First of all thanks for all the work on this plugin its great.
First question is about the width. Is there any way to have it resize
based on the content? I'm just using it
I group I am a new bee to jQuery. I have two textbox on my jsp page. I
have applied the Autocomplete feature on first textbox where in list
is generated by parsing a XML. On selection of an option on first
textbox I want to list all the parameters associated with the selected
parameter (on first
does this thing only work when placed inside a form?
what if my server does not handle asp?
I simply cannot get it to work. Even the listnav bar does not display.
I am trying to implement demo one.
here is my page code: NB i have omitted header and footers from this
snippet.
script
Hi everyone,
I'm having a quite strange problem with JQUERY :
It seems that effects dont work. Effects like animate, slide, fade
etc I tried several things but there is not result.
Here is my test code :
script type=text/javascript
$(function (){
$(#effet).click(function (){
Sorry if this is a double post. I can't see my previous post in the
discussion.
For example if you have a price range minimum and maximum. It must be
checked that min. is less than max and the other way round. Is this
possible?
Hi, I have the same problem,
BUT I have keyup-validation off.
What seems to trigger the eroor seems to be the onfocusout option.
Any hints?
TIA
sergio
On Feb 10, 11:43 pm, Jörn Zaefferer joern.zaeffe...@googlemail.com
wrote:
onkeyup:true is the culprit. You can disable the keyup-validation via
Hello,
I have written a code in which after clicking a button a html is
appending inside a div, I have used append() method in jquery for that
purpose. In the appended html code I have another button having id 'btnGo'.
After clicking on this button I want some further functionality,
From the code you posted, it looks like you're missing the # in the
btnGo selector, it should be $(#btnGo).click(function(){alert
('hi');});
On Apr 6, 8:29 am, pankajspace pankajsw@gmail.com wrote:
Hello,
I have written a code in which after clicking a button a html is
appending
Luigi,
This should work for you:
var isChecked = false;
$('.campi[name=license]').each(function(){
if ( $(this).attr('checked') )
isChecked = true;
});
SEAN O
http://www.sean-o.com
Ciupaz wrote:
Hi all,
in my .aspx page I have a series of checkboxes for the driver license:
In my particular scenario, the form plugin http://www.malsup.com/
jquery/ is triggering the specified success function, despite the
server returning a 409 conflict error (as seen in Firebug). The error
itself is okay - that’s what I am expecting given the content of the
form. I’m trying to
On Apr 6, 6:18 pm, gostbuster jeremyescol...@gmail.com wrote:
Here is my test code :
script type=text/javascript
$(function (){
$(#effet).click(function (){
$(this).fadeOut(slow);
$(this).fadeIn(fast);
});});
/script
div id=effetbonjour/div
When I click, the div
On Apr 6, 9:03 pm, mike michaelpi...@googlemail.com wrote:
created the following code which works ok but its only for 1 elements
(more1/less1) but i want it to work for x number of boxes, e.g. more2/
less2, more3/less2 without having to code some jquery for each. here
is the code:
No one for any help :(
On 1 avr, 14:04, tij_dev tijmas...@googlemail.com wrote:
Hello everybody,
I'm trying to remove all the center tags which have a visibility
hidden. I tried :
$(cent...@style*=hidden],pDocument).remove();
(pDocument is the node I'm working on) but this doesn't
Hello,
I'm very new to jquery. Can somebody help me with some information.
I'm printing an a series of forms with php in the form of grid data.
Each row would contain a form. Now if anybody clicks on any of the
submit form of any row, I need a popup that would come with that form
data. Each
Hi,
I had also faced problem similar to this and luckily was able to find out a
solution for this. But I can only solve your problem if provide the HTML
text of the page.
With Regards,
Chandan Luthra
Intelligrape Software Pvt. Ltd.
Rita Rudner - In Hollywood a marriage is a success if it
$('cent...@style*=display: none]').remove()
With Regards,
Chandan Luthra
Intelligrape Software Pvt. Ltd.
Fred Allen - Washington is no place for a good actor. The competition from
bad actors is too great.
On Mon, Apr 6, 2009 at 18:59, tij_dev tijmas...@googlemail.com wrote:
No one for any
Hi ,
Im providing you with that part of html code output
HTML start
div id = sec3
div class=sec3h1
span style=margin-left:10px; Event/span
span style= margin-left:170px; line-height:40px; Exp Date/span
span style=margin-left:35px;
Hey !
THANK YOU VERY MUCH,
I fixed the problem :
Actually, I'm using Zend frame work and there is a method which
displays this line in the header :
meta http-equiv=Content-type content=text/html; charset=utf-8 /
meta http-equiv=Content-Style-type content=text/html /
---this line
That's
Hi,
Create a function in the script tag and put the task that you want to
perform on the click of btnGo
example:
*script
function demoFunction(){
alert(hi)
}
/script*
now just write the following code on some click :
*$('div').click(function(){
$('#someId').append(input
ive spent all day trying to get this to work.
are u sure it has been tested using v 1.2.6
Wow, thanks for the tip! I'm sure all of the other tens of thousands
of people using jQuery will be relieved to know that there's *just no
point* in going on with it any longer. You've potentially saved each
of us from years of heartache and despair.
Thanks again!
On Mon, Apr 6, 2009 at 11:11
bump... pretty please? How do I remove more than the last child if
necessary?
On Apr 3, 11:34 am, Sero r...@combinecreative.com wrote:
Hi guys,
What I'm trying to do is hide list elements if their combined height
is greater than my container div. I've got a start, but it's not
perfect.
What about setting a fixed height to the UL in your CSS along with
overflow: hidden?
On Mon, Apr 6, 2009 at 11:34 AM, Sero r...@combinecreative.com wrote:
bump... pretty please? How do I remove more than the last child if
necessary?
On Apr 3, 11:34 am, Sero r...@combinecreative.com wrote:
i strongly disagree!
my life now feels empty and meaningless - like somebody plucked my
still-beating heart out of my chest and crushed it infront of me.
the years ahead can only be filled with heartache and despair :(
On Apr 6, 4:19 pm, brian bally.z...@gmail.com wrote:
Wow, thanks for the
Thanks, but sometimes I'll get an li with the text cut off through the
middle. Only the top half of the letters display - looks rough.
On Apr 6, 9:44 am, brian bally.z...@gmail.com wrote:
What about setting a fixed height to the UL in your CSS along with
overflow: hidden?
I'm not sure I understand what you are trying to do, but if the
requirement is to pass the values to the server, you can include them
in the data parameter of the ajax routine.
data: $(this).serialize() + add_item=1,
On Apr 5, 3:10 pm, debussy007 debussy...@gmail.com wrote:
What do
I seem to be having the same problem with jQuery
Every time I do this alert($('#test').text()); and test contains the answer
from 1 / 0 the whole fabric of the universe seems to come apart.
cheers
Michael Lawson
Content Tools Developer, Global Solutions, ibm.com
Phone: 1-828-355-5544
wouldn't the callback happen after the submit() function had executed,
so you'd be putting the new values in after the submit?
On Apr 5, 11:10 pm, debussy007 debussy...@gmail.com wrote:
What do you mean by wrap 'submit()' that is built in 'form object' ?
Sorry I didn't understand )
JQuery's latest version is scheduled to come with an Easy button I hear.
That will rock.
On Mon, Apr 6, 2009 at 11:51 AM, Michael Lawson mjlaw...@us.ibm.com wrote:
I seem to be having the same problem with jQuery
Every time I do this alert($('#test').text()); and test contains the answer
On Mon, Apr 6, 2009 at 11:50 AM, Sero r...@combinecreative.com wrote:
Thanks, but sometimes I'll get an li with the text cut off through the
middle. Only the top half of the letters display - looks rough.
Good point. What about using a while loop, then?
$(function()
{
The code currently on the site ask users to copy and paste the partnumber. I
had to do that b/c even with 'id=partnum' the PartNumber field in the
GetAQuote form does not populate in IE.
Here's a version of the page with input type=text name=partnum
id=partnum value= /
What does this have to do with jQuery? (since there is no usage of it
in that link above)
On Apr 6, 12:26 pm, webguy262 webguy...@yahoo.com wrote:
The code currently on the site ask users to copy and paste the partnumber. I
had to do that b/c even with 'id=partnum' the PartNumber field in
Mike, the problem there isn't with jQuery, it's with Math. For some
reason, the original developers felt x/0 throws a rather nasty
exception. Have you tried porting your code to a parallel universe and
running it there to see if it's still tearing spacetime?
On Apr 6, 11:51 am, Michael Lawson
Al, yes I hear that too. Looking at the nightlies, you can implement
the easy button feature in jQuery1.3.2- with the following:
$('button.easy').click(function(){ $('body').empty().text('That was
easy'); });
On Apr 6, 11:54 am, Al Yukna ayu...@gmail.com wrote:
JQuery's latest version is
Yeah I know, another content slider, there are way too many. But I've
wanted something that looped from first to last or last to first slide
using next/previous buttons and that fades if you click on a slide
number. So that's why I've created this plugin.
Would love some code feedback if anyone
A form is not necessary: it renders straight html with css styling. It's
a purely client-side thing: as long as you follow the implementation
model for your HTML, it should work.
I can take a look at the page if you can post a url for it. It looks
like your setup below is correct.
- Jack
Of course! a parallel universe! why didn't I thin of that?
cheers
Michael Lawson
Content Tools Developer, Global Solutions, ibm.com
Phone: 1-828-355-5544
E-mail: mjlaw...@us.ibm.com
'Examine my teachings critically, as a gold assayer would test gold. If you
find they make sense, conform to
Beautiful, thank you so much Brian!
On Apr 6, 10:17 am, brian bally.z...@gmail.com wrote:
On Mon, Apr 6, 2009 at 11:50 AM, Sero r...@combinecreative.com wrote:
Thanks, but sometimes I'll get an li with the text cut off through the
middle. Only the top half of the letters display - looks
I've read up on the subject, but my application is showing that
my understanding has gaps.
If I have an ajax function that in the returned response exists
a value called response.STORY_ID and I used the statement in the
success section of the ajax function, gNewStoryID = response.STORY_ID,
A better explanation:
I have a var that contains some html. Within that there are li
elements that I need to strip the text out of and put that into an
array. How would I do this?
I figure I could use each() and push(), but I am not sure how to do
this grabbing it from a var.
On Apr 5, 11:30
If one select menu item's value matches another, I want to throw an
alert telling the user Only one menu can have this value. and I
don't want the form to be submitted.
- Dave
On Apr 5, 6:13 pm, MorningZ morni...@gmail.com wrote:
What do you want to do if you find a duper?
- remove the
Hi Rick,
A global variable is available throughout a single instance of the script.
For example, If I have a global variable called foo, I can access it in any
function within the same script. However, If my application changes pages,
I will lose the values in those globals, or even the
maybe something like this:
var ar = [];
$('#yourList li').each(function(){
ar.push( $(this).text() );
});
- Jack
Nic Hubbard wrote:
A better explanation:
I have a var that contains some html. Within that there are li
elements that I need to strip the text out of and put that into an
You're very welcome Rick,
Can you provide some code or links to some examples of what you're seeing?
As mentioned in another post, that would greatly help in diagnosing your
problem.
cheers
Michael Lawson
Content Tools Developer, Global Solutions, ibm.com
Phone: 1-828-355-5544
E-mail:
Yeah, I had thought of the hidden div idea, and placing the html into
that, then using .each(). I just wondered if there was a method to do
it without adding the content to the DOM.
On Apr 6, 10:35 am, Jack Killpatrick j...@ihwy.com wrote:
d'oh, I just realized you have the html in a var...
Evening All!
I'm having a bit of issue with the jScrollPane plugin by Kelvin Luck.
A couple of issues actually!
First, in non-IE browsers the scroll will not apply to the container
specified, even though that container IS wrapped by
the .jScrollContainer div by the script.
Second, the width of
This is part of a content management system for a client, so it's not
publicly accessible.if it appears I can't solve the problem otherwise,
I'll set up a test case based on the code that is publicly accessible.
However, here's the relevant code from the app that shows what I'm
doing: (and
It would be easier if you had a link to a test page or at least some code to
look at. Otherwise we can only guess what might be wrong.
Here is one possibility.
Note what you said here:
...by using gNewStoryID = response.STORY_ID, I was creating a
global variable that could then be used in
In my early jQuery experiences, I found that dynamically generated
HTML could not be accessed directly by events. I had to use the
livequery plugin to get them to work. I'm still pretty much a jQuery
newbie though, so maybe there is another way.
Hi, Michael and thanks for the reply…
That helps some, but something I realized after I posted confuses me
even more.
I noticed the global variable I set, gNewStoryID, did show up when I tried
to used it in another function on the same page, *even while throwing the
error at the same
d'oh, I just realized you have the html in a var...
I s'pose a cheat would be to add them to a hidden UL and then do
something like the below so you could take advantage of the .text() and
.each() method. Other than that, I'm not sure of the regex offhand to
split the LI's and parse out the
I probably shouldn't have suggested using alert() since it actually can
affect the order of execution in an odd way. (The code immediately below the
alert call won't execute until you close the alert, but other code in the
page could execute during that time in some cases.)
So stick with
On Apr 5, 2009, at 11:30 PM, Hector Virgen wrote:
Just curious, why would you want to avoid document.write()?
Here's one reason:
http://ln.hixie.ch/?start=1091626816count=1
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
The function should occur sequentially, but that execution of your success
function might not. AJAX is by default asynchronous so it will not affect
the rest of the page loading. That also means that if you try to access a
variable that is only set by that success function before AJAX returns,
@Karl: Thanks, that sounds like a good reason to me :) I wasn't aware of
XHTML not allowing document.write()
@Ricardo: The $('head').append() approach looks great.
-Hector
On Mon, Apr 6, 2009 at 11:31 AM, Karl Swedberg k...@englishrules.comwrote:
On Apr 5, 2009, at 11:30 PM, Hector Virgen
thank you, that really helped!
Thanks for looking.
As I wrote in my original post, I am seeking advice on using jQuery to get
the IE functionality...
MorningZ wrote:
What does this have to do with jQuery? (since there is no usage of it
in that link above)
On Apr 6, 12:26 pm, webguy262 webguy...@yahoo.com
Hi,
Does anybody know how to trigger timeout function.
If database does not respond in 5 seconds
I need to display some notification to user.
The following example did not trigger any callback after 5 seconds.
jQuery.ajax({
type: POST,
url: 'proccess.php',
Is this possible?
var tabSelectHandler = handleTabSelect_Pers;
$('#tabs').tabs({ selected: '0', fx: { opacity: 'toggle' },
select: tabSelectHandler });
where I'm passing tabSelectHandler variable into the tabs constructor?
Michael G. Michael L. …
This is interesting…
With this code executing:
(This code will seem a little strange since it’s involves more functions
than is absolutely necessary, but it’s part of my attempt to “encapsulate”
some of my code to make it more manageable…some of the sequences
You could lay out the list like so:
ul id=your_list
liSight-hounds and other fast dogs
div
Two or three paragraphs describing greyhounds,
whippets, Italian
greyhounds, their relative size, average top speed, and so on.
/div
Yes, key handling support would be a god send!
akzhan wrote:
Also I suppose that jQuery.support can add key handling browser mode.
WebKit, Mozilla and IE works different on key events.
On Apr 5, 8:45 am, Ricardo ricardob...@gmail.com wrote:
jQuery.support is for feature detection. The
Where Firebug has recognised the server response text as json - but
the form plugin (or jquery) is still reporting success.
Obviously there is more to this than I understand. All clues and
guesses are very welcome as this is new territory for me.
As a browser plugin Firebug has access to
I would expect the order a, c, d, b. That's exactly what your code says to
do. You log the a, then you call defCreateStorySuccessResponse() which
logs the c and d, then that function returns to the code which logs the
b. Did you want some other order of execution for these statements?
Also, what
I'm not sure I follow you.
Is handleTabSelect_Pers the name of a function, and you've stored that
function name in the tabSelectHandler variable, and so you want the select
callback to call your handleTabSelect_Pers() function?
If that's correct, and handleTabSelect_Pers() is a global function,
document.write() works fine in XHTML documents unless you serve the document
with an XHTML MIME type, which is rarely done in practice. If you are doing
that you must avoid document.write().
I'm a big fan of document.write(). It lets you accomplish some things very
cleanly that you can't do at
document.write() can only be used while the document is open (i.e. while
the page is loading), not in response to any event such as the load event.
If you call document.write() in an event handler, the document has already
been closed. So document.write() opens a *new* document to write into,
Try putting your code at jsbin.com or somewhere we it's actually
useful.
I don't see the variable 'self' defined anywhere, what kind of errors
are you getting?
cheers,
- ricardo
On Apr 6, 7:39 am, Paul pnmorri...@gmail.com wrote:
does this thing only work when placed inside a form?
what if
I think he was talking about the listnav plugin, see this thread:
http://groups.google.com/group/jquery-en/browse_thread/thread/6e2e116297c580bb/6d837f3c3e535d13?hl=en#6d837f3c3e535d13
On Apr 6, 12:47 pm, Eric Garside gars...@gmail.com wrote:
Do you have a test page you can show? jQuery does,
As you said you wanted to simplify your code, I'd recommend not using
global vars. You might want to use the same var somewhere else in the
code and create a mess. Why not just pass it to the function that will
use it?
if (response.MESSAGE == 'Success' ){
jQuery can parse it and create the elements without adding them to the
DOM, then you can use Jack's suggestion:
var arr = [];
$(yourHTMLstring).find('li').each(function(){
arr.push( $(this).text() );
});
- ricardo
On Apr 6, 2:48 pm, Nic Hubbard nnhubb...@gmail.com wrote:
Yeah, I had
How would one develop a plugin which can exist multiple times on the
same page, without conflicting with each others namespaces?
I need something like that, but it is not ajax.
In the submit callback I need to add additional post parameters.
Concretely, a user may specify a country and a town in my form.
in the submit callback, I will make a request to Goole Maps API to have the
longitude and lattitude.
If google cannot
Ricardo,
I see your point now. I was under the impression $.browser was
becoming deprecated so $.support would take it's place. But given the
fact that I currently need to run one method for IE6, I will continue
to use the $.browser method.
In regards to conditional comments, this becomes a
I see what you're saying. the defCreateStorySuccessResponse() function
is going to run completely before the second console in the success function
will output the variable.make sense.
Also, what is that #1 item in your list?
1) gNewStoryTITLE is not defined
On Apr 7, 4:54 am, Mike Alsup mal...@gmail.com wrote:
Where Firebug has recognised the server response text as json - but
the form plugin (or jquery) is still reporting success.
Obviously there is more to this than I understand. All clues and
guesses are very welcome as this is new
I've been using jQuery for years and I have NEVER had a problem like
this. Here is the site in question:
http://winterberry.wiremediahosting.com/
jQuery is used all over the site. The recent engagements area on the
home page is an AJAX slideshow. There's some jQuery for the login
form. On the
Hello,
I am trying to implement the jqeury slideshow (http://malsup.com/
jquery/cycle/) to function on my site. it seems so simple, but for
some reason the previous and next buttons are not working. Here is my
URL: http://sarahmadeit.com/slideshow/demo/
This is just a test to see if I can get
trying to figure out where I'd include this script.
http://happygiraffe.net/blog/2007/09/26/jquery-logging/comment-page-1/#comment-981
if I include it in my page, how is it gonna know what the var
jQuery.fn.log is? I don't see how to set this up.
Hi everyone,
I have a question that i cannot answer, i am using the autocompleter
plugin (http://plugins.jquery.com/project/autocompletex) for getting
some suggestions along with JQuery Keypad for a virtual keyboard
(http://keith-wood.name/keypad.html). The reason? Im developing for a
LCD Touch
Hi,
I'm using jQuery to the last 2 years and in the past few weeks... I
was wondering why there is no plugin to give us the options to:
1. Control/Log all the redirects that are being made on the page
(window.location.replace).
2. Any other activity that 'looks' strange. E.g. amount of calls
hi,
I'm working on a cms and have hit a brick wall with something. I have
the following html
ul
- li
- - input.is-hero
- - input.weight
- ul
- - li
- - - img.thickbox (preview)
- - - img.is-hero
I'm listening to the click event of is-hero, but can't seem to get
from that back up the tree to
I was trying the BlockUI plugin - we're about to implement it with one
of our products at work. The current way that we do things doesn't
display right in Linux (Firefox). (Actually, it doesn't display very
well at all, which is why we're moving to BlockUI anyway.)
It turns out that BlockUI
Hey guys,
I was just wondering if there is a speed difference in which way you
access an element.
For example:
div class=conp class=para id=mineTest/p/div
Is it faster to use $(#mine)
-or-
to access the same element using the class, such as $(div p.para)
-or-
does it not even matter???
Just
1 - 100 of 141 matches
Mail list logo