>>$('').html( html ).appendTo('body');//example
It is closed, not the ending slash.
I was just exemplifying, you can use innerHTML, or whatever you want.
Cheers
--
Ariel Flesler
http://flesler.blogspot.com
On 11 abr, 20:54, rolfsf <[EMAIL PROTECTED]> wrote:
> Thank Ariel
>
> So the first line
Hi,
I am using the jquery cycle plugin for slide effects of images being
included dynamically to the website. Unfortunately, the images in the
hidden divs will not show in their original size once being showed
from the cycle script - just a icon size image is visible.
How can i change this to ma
Hi, i hae the following code:
$(document).ready(function(){
$('#txtSearch').attr('value', 'Enter Search tags for skills or
functions').focus(function(){
$(this).attr('value', '');
showSearchBox();
})
});
function showSearchBox(){
$('#search
Thank Ariel
So the first line creates a variable of all the text,
line 2a puts an initial , and then splits the text at each line
break adding , and finally adding the final
Line 3 wraps the whole thing in an (so jQuery automagically
closes the tag?)
thanks so much
rolfsf
On Apr 11, 2:57 pm,
line 1: var text = 'one\ntwo\nthree\nfour';//example
line 2a: var html = '' + text.split(/[\n\r]+/).join('') +
'';
or
line 2b: var html = text.replace(/(.+?)(?:[\n\r]+|$)/g, '$1');
line 3: $('').html( html ).appendTo('body');//example
I advice using 2a.
Cheers
--
Ariel Flesler
http://flesler.
Chris,
The hash idea that the other site was talking about is what I was telling
you in my previous post. I do this all the time:
function myFunction(email){
var args = {};
args.name = $('#nameid').val();
args.location = $('#locationid').val();
args.email = email;
args.someStringLi
Well, the problem was fixed by doing a "Reset Internet Explorer
Settings" which makes me think it's not a problem with our code, but
with the browser going wonky itself. I was thinking of using jQuery
to detect if there's an error and if the browser IE7/Vista and then
displaying an alert statemen
You can use plain vanilla Javascript try/catch to catch the errors.
That being said, you should probably track down exactly what the errors are,
and try to eliminate them. Testing in IE6/7 is important, as there are some
errors which do not show up in Firefox (trailing commas are a big one) t
Chris Jones wrote:
The hash was a suggestion on another site. I have tried it without it as
well but no joy. If I alert the "serial" on success I get what I would
expect ie. item[]=2&item[]=3&item[]=10
> [ ... ]
> data: serial.hash or data: serial, = nothing gets updated.
> data: "name=John&lo
We're noticing that some users of Windows Vista are getting Javascript
errors and are not able to use our site. Is it possible to use jQuery
to detect when there's a Javascript error and then display our own
customized alert statement to help them fix it?
Thanks Ariel, that's a way of exposing an external api that I hadn't
thought of.
-- jim
Hi Scott,
The hash was a suggestion on another site. I have tried it without it as
well but no joy. If I alert the "serial" on success I get what I would
expect ie. item[]=2&item[]=3&item[]=10
At the moment the "updatesql.php" file is simply setup so if the page is
called it connects to the d
yeah, the other method of passing data via ajax is:
...
url: "myurl.php",
type: "post",
data: {"variablename":"value", "variablename2":someJSValue},
...
you could declare an object that contains your arguments that you want to
pass in to updatesql.php like this:
var args = {}
args.name = "John"
a
It's a bit off topic, perhaps, but using jQuery I want to get the
contents of a plain text file, and convert each line to a list item in
an ordered list. Being a designer, the regular expression syntax just
stumps me... \n\r\???
Can anyone nudge me in the right direction?
rolfsf
I've been successful keeping a couple tables in sync with regard to
the column widths for some time. Nothing fancy here; both tables have
the same number of columns and one table is the master with the data,
and the other is a header table. I set the column widths on the header
table to the values
Chris Jones wrote:
$(document).ready(function(){
$("#list").sortable({
accept: 'item',
update: function(sorted) {
serial = $('#list').sortable('serialize');
$.ajax({
url:"updatesql.php",
type:"POST",
dat
perfect! Thank you so much for taking the time to look this over and
post your feedback. I figured it had to be something along these
lines, but I just couldn't find it. Interesting how the different
browsers handle things like this.
Thank you thank you thank you!
On Apr 11, 11:23 am, "Mike A
On Apr 11, 2:02 pm, "Mike Alsup" <[EMAIL PROTECTED]> wrote:
> I guess that makes sense. The corner script tries to determine the
> appropriate color for the corners that it rounds. In this case it
> would seem that the "right" corner color changes after the script has
> run.
Any ideas why this
> The problem in the corner rendering seems to only come if there is a
> delay in getting the css. This only happens in Safari 3.1 that I can
> see. Here's a test case.
I guess that makes sense. The corner script tries to determine the
appropriate color for the corners that it rounds. In t
The problem in the corner rendering seems to only come if there is a
delay in getting the css. This only happens in Safari 3.1 that I can
see. Here's a test case.
---
http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
title
Hi, I hope someone can help me with this. I've been reading jquery.com
tutorials and others online to try and create a sortable drag and drop
list which updates a mysql table using AJAX. After a few hours of head
scratching I finally got most of it, but I'm stuck on the bit that
passes the ser
You need to remove the trailing comma in functions.js:
pager: '#slide-numbers',
On Fri, Apr 11, 2008 at 1:38 PM, Andy Ford <[EMAIL PROTECTED]> wrote:
>
> Hey all, I've got the cycle plugin up and running in Firefox (mac/pc)
> and Safari/mac, but It's not running in IE7 or Opera/mac.
>
> I m
I'm looking for a jQuery extension to show off artwork. Maybe 10 to
100 paintings. Maybe more.
There are so many jQuery extensions I need some help finding the
needle in the haystack.
Any recommendation appreciated.
Is there anything that will perform album cover flipping like iTunes?
Thanks
Yes -- the second version works perfectly! Thanks!
On Apr 11, 12:55 pm, "Michael Geary" <[EMAIL PROTECTED]> wrote:
> The reason that doesn't work is that the $(theFunction) code has already
> saved a reference to the actual function object for theFunction. When you
> later replace the *name* theF
If I drag one element then try and drag another before the first has
reverted
c has no properties
is there a way to prevent this?
code
$(".doc").draggable({opacity: 0.7, revert:true, zIndex:100,
containment:'#step4'});
Hey all, I've got the cycle plugin up and running in Firefox (mac/pc)
and Safari/mac, but It's not running in IE7 or Opera/mac.
I must have missed something. (I'm a css dev, but not great with js).
Would you mind having a peek to see where I must have slipped up?
http://aloestudios.com/projects/
Hi, all...
I did begin to receive jQuery email again.
I recently changed hosts for my email and the DNS
change didn't get to Google for a couple of days
and so my address was bouncing emails. So, they cut me off.
I emailed the list owner and received an email from
Google Groups with a link to
Hi,
I need to retrieve the request parameter and perform some functions
based on the value - any suggestions on what API to use to get at that
param ?
Thanks.
Probably a book is the best solution... but if you are not sure yet
(about if you really like jQuery and want to learn it) you can find
some good tutorials online...
I think you already know this link... but anyway...
http://docs.jquery.com/Tutorials
Some of them are very well made and a good po
Hi,
in the $.ajax() function there is an option (async) which is boolean
and is true by default, you have to set it false.
"async Boolean Default: true
By default, all requests are sent asynchronous (e.g. this is set to
true by default).
If you need synchronous requests, set this
The reason that doesn't work is that the $(theFunction) code has already
saved a reference to the actual function object for theFunction. When you
later replace the *name* theFunction with a different function object, it
has no effect on that existing reference. It still points to the original
fun
Hi,
I used the jQ validation plugin for this webpage -
http://research.emedtv.com/idiopathic-pulmonary-fibrosis-research/idiopathic-pulmonary-fibrosis-clinical-study-2.html
I love it!
But we have dependent questions - see what happens when you click yes
or no to the tobacco question. Those depe
Hi az,
Unfortunately, I've completely lost the context for what you're doing
here. Do you have a page up somewhere that we can look at to see the
whole thing? That would be very helpful.
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Apr 11, 2008,
> Unfortunately, I am having problems with my server at the moment so I
> could only test this locally. It still isn't working though. Now IE6
> crashes before it loads any of the page.
>
> I'm sure I'm missing something really obvious.
Well it's not obvious to me. What is the css for s1 and
> Nobody have this requirement? Cound anyone show me some light on how
> to deal with an uncloseable blockUI window please?
This is not something the plugin is going to do for you, but you can
roll you own. Here's a start:
$(document).ready(function() {
var t;
function loadDiv() {
checl also these demos, seems it's like what you are looking for
BlockUI Plugin
http://www.malsup.com/jquery/block/#demos
On Apr 10, 5:07 pm, "Mike Alsup" <[EMAIL PROTECTED]> wrote:
> > I have to implement this scenario: in a web page all the stuff
> > contained in the web page must be blocke
Can anyone pls assist.
Thanks.
Tony.
On Apr 11, 3:04 pm, tfat <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Trying to get the jFrame plug-in to work but unsure how to use it.
>
> (see:http://plugins.jquery.com/project/jframe)
>
> I have set-up the follow div, i.e:
>
> and then make a call to:
>
> jQuery
Hi Jörn,
I've put together some simplified example pages showing the two main
use cases I'm having a problem with. I created two versions of each
page, one using Validate 1.1.2, and one using Validate 1.2.1. The
1.1.2 example function properly, while the 1.2.1 versions don't.
Validating a subsec
Hi guys,
I am creating a very simple data entry screen where a user can enter a
block of numbers then position them in the right columns of a table.
For example:
Col A | Col B | Col C | Col D
5 | 3| 12 | 14
9 | 4| 7 |
The first line is correct data but t
Hi Mike,
Thanks for replying I am a newbie with this so appreciate your help.
I've changed my code now so that in I have:
$(function() {
$('#s1').cycle();
});
and I deleted:
$('#s1').cycle('fade');
from the so that the images I want to fade look like this:
I want to redefine a function that is being bound to document.ready by
someone else. Actually, I'd prefer just to unbind the function, but
the initial binding is in a file that I don't want to change, and uses
this syntax:
$(theFunction);
I understand from http://dev.jquery.com/ticket/1311#comme
Hi Mike,
Thanks for replying. This is what I've done
I deleted:
$('#s1').cycle('fade');
and put this in
$(function() {
$('#s1').cycle();});
However, now the page doesn't even load before IE6 crashes. It all
works in IE7 and Firefox but not IE6.
Thanks for your help
Kirsty
On
Nobody have this requirement? Cound anyone show me some light on how
to deal with an uncloseable blockUI window please?
On Apr 7, 1:40 pm, Jiming <[EMAIL PROTECTED]> wrote:
> Dear sir,
>
> From time to time, we might have code which usingblockUIthat cannot
> unblock-ed properly. In that case,
> That did it Mike. I like you...you've got the answers to all of my
> questions, AND you already put in all of the features I request into Cycle.
>
> So is this some sort of space/time warp? If I request a feature, will it
> already have been in there before I even thought of it? Or is the ve
Received my copy yesterday. Nice to read, easy to understand. I'd
recommend it.
(ordered another jQuery book also, that will be delivered next
week)
Further: look at examples and google a bit. A lot of examples can be
found!
upandhigh wrote:
> Read "JQuery in Action" book, you can found on
That did it Mike. I like you...you've got the answers to all of my
questions, AND you already put in all of the features I request into Cycle.
So is this some sort of space/time warp? If I request a feature, will it
already have been in there before I even thought of it? Or is the very act
of my
Ahh...Very nice Mike. Now if I start on slide 5, and hit the previous
button, will that display slide 4, then slide 3 ,etc.?
-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mike Alsup
Sent: Thursday, April 10, 2008 5:08 PM
To: jquery-en@googlegro
Read "JQuery in Action" book, you can found on main site links to it.
it's really good and compact written and easy to understand.
On Apr 11, 11:44 am, sebey <[EMAIL PROTECTED]> wrote:
> what is the best way to learn jquery? quickly and easliy
Problem fixed. :)
On 11 апр, 15:48, hex0id <[EMAIL PROTECTED]> wrote:
> Hello guys,
>
> recently I faced problem with index function, example in documentation
> works perfectly but it's slightly simple. When I try to use this
> function in more complexed way it's not working, here's what I'm
> tr
Hi,
I am building an HTA (using IE6) that is using jQuery to write some html to
a div. The html contains a script tag with content.
What (as I understand by reading through the minified code) jQuery does, is
filter the script tag, create one, add it to the head and remove it right
after. That *sh
try this:
$li.parent().index($li)
The index method needs to be called on the container element (in this case,
the ul), while passing the child element.
- Richard
Richard D. Worth
http://rdworth.org/
On Fri, Apr 11, 2008 at 4:48 AM, hex0id <[EMAIL PROTECTED]> wrote:
>
> Hello guys,
>
> recentl
Declare the variable in the same scope as each of those functions is
declared. For example:
$(function() {
var pointX;
$(".nav_slider").mousemove(function(e) { ... // set pointX here ... });
$(document).scroll(function() { ...// use pointX here... });
});
- Richard
Richard D. Worth
htt
> Hi,
> I'm relatively new to using JQuery so maybe making a newbie error bt
> can't see where.
>
> I've installed the JQuery Cycle Plugin on the homepage of a website
> I've built and it works perfectly in Firefox, Safari, and IE7 but it
> crashes IE6.
>
> I have used this plugin before an
Hi all,
I've a newbie question about variable scope...essentially i've two
anonimous function and i need to retrieve a variable
generated into first function and use it in the second one.
Here the basic code to get an idea of what i'm trying...
var pointX ;
$(".nav_slider").mousemove(funct
Hi all,
I've a newbie question about variable scope...essentially i've two
anonimous function and i need to retrieve a variable generated into
first function and use it in the second one.
Here the basic code to get an idea of what i'm trying...
var pointX ;
$(".nav_slider").mousemove(funct
Hello guys,
recently I faced problem with index function, example in documentation
works perfectly but it's slightly simple. When I try to use this
function in more complexed way it's not working, here's what I'm
trying to:
$("#organize > ul").mousedown(
function(e){
if($
Hi there
I have noticed a very weird bug when using $.html() in IE6.
For example I have:
paragraph
list item 1
list item 2
list item 3
When I used
$("#content").html()
I get
paragraph
list item 1
list item 2
list item 3
Other other browser is fine, problem is with IE6.
Any suggestions
Anyone have any thoughts on this?
thanks!
az
On Apr 9, 1:58 pm, az <[EMAIL PROTECTED]> wrote:
> Hello,
>
> As I discussed in a previous post ("unresponsive script error
> on long page with many clueTips") I'm trying to trigger clueTips
> with a javascript function instead of binding the clueTip
Hi,
Shameful to admit but my first post is a request for help but here
goes.
I've been using the wonderful "jQuery plugin: Tooltip" from
bassistance.de but I haven't been able to get it working for disabled
form input fields. I don't know whether this is an issue with HTML in
general not being a
Hi,
I'm relatively new to using JQuery so maybe making a newbie error bt
can't see where.
I've installed the JQuery Cycle Plugin on the homepage of a website
I've built and it works perfectly in Firefox, Safari, and IE7 but it
crashes IE6.
I have used this plugin before and it worked perfectly i
what is the best way to learn jquery? quickly and easliy
In my current application I was working with jquery ajax api with
ifmodified enabled. This was working great for me and I was using 304s
to my heart's content. In a particular case, the server side
application was returning a Http code 200 but was not setting the Last-
Modified header. Because of
Hi all,
I've a newbie question about variable scope...essentially i've two
anonimous function and i need to retrieve a variable
generated into first function and use it in the second one.
Here the basic code to get an idea of what i'm trying...
var pointX ;
$(".nav_slider").mousemove(funct
Hi,
Please advise, how it is possible to integrate DWR (Direct Web
Remoting http://getahead.org/dwr/) into JQuery validation?
I need to validate if such username is already existed in database
(ajax validation)
I was trying to do it in this way:
1)create dwr function
function isUser
Hi,
Trying to get the jFrame plug-in to work but unsure how to use it.
(see: http://plugins.jquery.com/project/jframe)
I have set-up the follow div, i.e:
and then make a call to:
jQuery("#content").loadJFrame(returnURL);
Have also included all necessary js libraries.
The div loads successf
Hello jQuery Team:)
Sorry for banal question, but I have not found answet to it in the
web.
So, I have simple html form and I want to validate it using jQuery
validation plugin. Everything is fine? but I want to change validation
event. In documentaion it is said that,
"
By default, forms are va
Awesome!
Thanks!
On Apr 10, 10:50 pm, "Jeffrey Kretz" <[EMAIL PROTECTED]> wrote:
> You could do this:
>
> $('.highlight').removeClass('highlight').filter(':even').addClass('shaded');
>
> The "this" keyword is useful only inside javascript code (it won't work in a
> selector).
>
> JK
>
>
>
> ---
> $(".highlight").removeClass;
The selector $('.highlight') is choosing all your objects that have
the class 'highligh'. removeClass still needs to know what class to
remove (ie, the method removeClass doesn't know how or why you
selected those particular elements). It takes the class name as an
$(this+':even').addClass("shaded");
Jeff <[EMAIL PROTECTED]> wrote:
'scuse me for the noob question here...
i have statements like this:
$(".highlight").removeClass;
$("this:even").addClass("shaded");
And I don't think I'm using "this" or :even correctly; it doesn't work
=)
G
Turn out that the _getDate() will fall back to today when not found.
So I need to manually parse it and thus calling _setDateFromField
doesn't matter...
$.fn.getInputDate = function(){
var elem = this[0];
if(elem){
var inst = $.datepicker._getInst(elem._calId);
The above code has some error.
Here is my final solution: write another plugin to get the date.
HTML:
Plan Date: to
Actual Date: to
JS:
$("#dateRange input").datepickerRange({showOn:'button'});
/* Update datepicker if found and return the date */
$.fn.getInputDate = function()
71 matches
Mail list logo