custom code, but I'd rather use a jQuery
plugin if I can find one.
Can anyone point me in the direction of a good plugin that will do
this?
Thanks
Nick
Hi,
I am after something like this http://spaceforaname.com/gallery-customized.html
But it a lightbox like form. Does anyone know how to do this or any
that have already been made?
Cheers
Hello.
Just started using the Superfish plugin - wonderful job.
I'm trying to use the "onHide" event but have noticed that the event
is fired more frequently than necessary:
$("ul.sf-menu").supersubs({
minWidth:12, // minimum width of sub-menus
in em units
's send() method [1], [2]. I don't know if jQuery
supports having a DOM passed to its Ajax methods though.
Regards,
Nick.
[1] <https://developer.mozilla.org/en/XMLHttpRequest#send()>
[2] <http://msdn.microsoft.com/en-us/library/ms763706(VS.85).aspx>
--
Nick Fitzsimons
http://www.nickfitz.co.uk/
Hello.
jQuery getScript does not work under IE6
I've try:
$(document).ready(function(){
$.getScript("***LINK***");
});
***LINK*** returns
alert(1);
But no alerts, no errors in IE6
But under FireFox it works.
That is wrong???
Example http://docs.jquery.com/Ajax/jQuery.getScript#urlcall
); // alerts "2"
alert(example[0][3]); // alerts "undefined"
alert(example[0][748]); // alerts "undefined"
alert(example[0][749]); // alerts "Foo"
Regards,
Nick.
--
Nick Fitzsimons
http://www.nickfitz.co.uk/
I have started making some stock footage galleries (e.g.
http://www.bubblevision.com/underwater-footage/cowries/ ) but would
like to make a stock footage gallery with larger video previews that
popup on mouseover, just like here:
http://www.istockphoto.com/file_search.php?action=file&text=%22shark
t they
already incorporate some changes which are due to arrive in the
ECMAScript version 5 specification next year, which will allow such
reserved words to be used in that context.
Regards,
Nick.
--
Nick Fitzsimons
http://www.nickfitz.co.uk/
There appears to be no difference between these two when the page
loads.
one
two
three
- or -
one
two
three
$('#id').val();
If there is no "selected" then it always defaults to first value. How
can I tell if the page has loaded and no options have been selected?
t of the event, not a jQuery object.
$(this).remove();
should work.
Relevant jQuery docs: <http://docs.jquery.com/Events/click#fn>
Regards,
Nick.
--
Nick Fitzsimons
http://www.nickfitz.co.uk/
rop into the if clause (step 9) and
return, avoiding a RegExp match, assorted bits of logic and property
testing, and a recursive function call.
Regards,
Nick.
--
Nick Fitzsimons
http://www.nickfitz.co.uk/
2009/10/13 V :
>
> The foklowing code works fine in Firefox, but not in MSIE;
> var title = $("title").text();
>
> I want to know the blabla as you can see. But MSIE does
> not support this.
> Is there another solution for this?
>
var title = document.title;
R
I've been using the jquery autocomplete plugin by Jorn Zaefferer
(thanks for the nice work).
My problem is that results are returned in a class="ac_results", and
I'd like to edit this class name at will with the initialization of
every instances so I can put them into different groups for styling
2009/10/2 brian :
>
> On Fri, Oct 2, 2009 at 5:00 AM, Nick Fitzsimons wrote:
>>
>> 2009/10/2 Dave Methvin :
>>>
>>>> Is there some easy way of forcing IE to make ajax
>>>> calls?
>>>
>>> You can use the old trick of adding a r
che === false && type == "GET" ) {
var ts = now();
// try replacing _= if it is there
var ret = s.url.replace(/(\?|&)_=.*?(&|$)/, "$1_=" + ts + "$2");
// if nothing was replaced, add timestamp to the end
s.url = ret + ((ret == s.
very
topmost document, while "parent" will refer to the "window" object of
the document containing the frame, which is not the same as "top" if
you have nested frames/iframes.
Regards,
Nick.
--
Nick Fitzsimons
http://www.nickfitz.co.uk/
they are good
advice: <http://www.quirksmode.org/js/support.html>
Regards,
Nick.
--
Nick Fitzsimons
http://www.nickfitz.co.uk/
I've looked through all the 'better' tutorials online, and I've even
found other users trying to replicate what cnn.com had done with the
top right module titled 'video'.
All I really need the carousel to do is display the dots and not any
numbers or arrows, but all of my attempts have caused fai
using me. Opera handles negative margins perfectly
well and has done for years - the only browser I'm aware of that can
have major problems with them is IE6 (and possibly 7).
--
Nick Fitzsimons
http://www.nickfitz.co.uk/
evant web standards, rather than relying on
undefined behaviour in a few browsers) then I'd be extremely surprised
to find that Opera didn't support it.
If you can explain what you're trying to do I would imagine somebody
can help. Hacks and browser-specific code should always be
#x27;, sentData, function( data, textStatus ) {
// Here I want to access the arguments I just sent with ajax.php
// As example, something like this:
$('#'+ sentData.nr).attr('checked', 'checked');
} );
return false;
} );
should be all you need.
Regards,
Nick.
--
Nick Fitzsimons
http://www.nickfitz.co.uk/
r container = document.getElementsByTagName("div")[0];
container.insertBefore(article, container .getElementsByTagName("h2")[1]);
... and so on. (Actually, you can use jQuery for selecting the correct
insertion point and for inserting the new elements there, as jQuery
can cope with elements when inserting content.)
Regards,
Nick.
--
Nick Fitzsimons
http://www.nickfitz.co.uk/
t clear that the version sent by FF3 is a valid form of the
header.
Regards,
Nick.
--
Nick Fitzsimons
http://www.nickfitz.co.uk/
owser then more digging will be required, but if
it's on the server then the information about the whole request
(headers and body) will help the server-side developer work out what's
going on.
Regards,
Nick.
--
Nick Fitzsimons
http://www.nickfitz.co.uk/
work in one
browser, it may well behave differently in others. A script element
can only contain script code:
<http://www.w3.org/TR/html401/interact/scripts.html#edef-SCRIPT>
Regards,
Nick.
--
Nick Fitzsimons
http://www.nickfitz.co.uk/
This is a tooltip script that I'm creating for the website i'm making,
i'm having some trouble and don't know how to get past the three
problems listed below. I've also uploaded the single page with the
code and script on it(it's a small script). Any help would be really
appreciated, It should be
2009/9/8 rupak mandal :
> hi nick,
> Thanks for quick reply.
> That's not the problem. Here is the full code.
>
It looks like jQuery's fadeIn is setting the opacity to the empty
string (on IE only) at the end of the animation. You could try using
fadeTo instead <http:
2009/9/8 Rupak :
> http://jsbin.com/icatu
>
It doesn't help that your HTML is wrong:
You aren't closing the div: you need
Don't know if this will fix your original problem, but it can't hurt to try :-)
Regards,
Nick.
--
Nick Fitzsimons
http://www.nickfitz.co.uk/
m-urlencoded") //
then do the form parsing
as this would cause the problem you are seeing, and is also a broken
way of parsing a request.
Regards,
Nick.
--
Nick Fitzsimons
http://www.nickfitz.co.uk/
o be precise, the result of the expression on the right hand side of
the equals sign, which in your case is returning an object.
I think you want
$.ajax({ cache: false,
...
which will invoke the jQuery ajax method with your object as an argument.
Regards,
Nick.
--
Nick Fitzsimons
http://www.nickfitz.co.uk/
ON parser will enforce this. Changing it to
echo '{ "message": "why wont this work" }';
will fix it.
Of course this may not actually fix your problem - I'm not sure how
strict jQuery is about enforcing JSON parsing rules - but fixing it
will elim
, there aren't any.
Change your outermost array to an object, and it should work:
var myStuff = {};
myStuff['somestring'] = [];
myStuff['somestring'].push(1);
myStuff['somestring'].push(2);
myStuff['somestring'].push(3);
$.each(myStuff, function(key, value) {
alert(key + ": " + value); // shows "somestring: 1,2,3"
});
Regards,
Nick.
--
Nick Fitzsimons
http://www.nickfitz.co.uk/
you want to abort the request, use
xhr.abort();
Regards,
Nick.
--
Nick Fitzsimons
http://www.nickfitz.co.uk/
omain request?.
>
Probably not, assuming you aren't making a cross-domain request. That
error is the server tellling you that you aren't allowed to use GET to
access the resource at that URL [1]. Looking at it, it probably only
allows POST.
[1] <http://www.w3.org/Protocols/rfc261
rns undefined
});
});
}
function joinRoom(roomId){
intvarM = window.setInterval((function(roomId) {
return function() { // return a function to be used by the timer
joinRoomFunction(roomId);
}
})(roomId), 5000);
}
Regards,
Nick.
--
Nick Fitzsimons
http://www.nickfitz.co.uk/
(BTW, I'm curious as to why you would ever need to do this - I suspect
that if you state the actual problem you're trying to solve, rather
than the mechanism you thought might help you solve it, then somebody
can probably suggest a different approach which will "Just Work".)
Cheers,
Nick.
--
Nick Fitzsimons
http://www.nickfitz.co.uk/
When the if else statements are removed, they are not perpetually
checked.
On Aug 19, 4:34 pm, labbit wrote:
> Hello,
>
> I'm trying to write an if else statement in javascript so that when a
> check box is checked, a table will appear, and when it is checked
> again, another box will appear. H
When the if else statements are removed, they are not perpetually
checked.
On Aug 19, 4:34 pm, labbit wrote:
> Hello,
>
> I'm trying to write an if else statement in javascript so that when a
> check box is checked, a table will appear, and when it is checked
> again, another box will appear. H
);
> }catch(err){
>
> //put code to handle error
>
> }
>
> ..fredrik
>
> On Aug 18, 6:34 am, nick wrote:
>
>
>
> > The page im loading with $.get has a syntax error that is killing my
> > entire script. Is there anyway to test if it contains a syntax erro
The page im loading with $.get has a syntax error that is killing my
entire script. Is there anyway to test if it contains a syntax error
and/or just ignore it?
$.get('http://www.example.com/',function(response){
var someText = $(response).find('#myDiv').text();
// Script doesnt run after thi
; $.ajax({
> url: 'http://www.examplepage.com',
> success: function(responseHTML) {
> var someText = $('#One', responseHTML).html();
> },
> dataType: 'html'
> });
>
> On Aug 15, 9:45 am, nick wrote:
>
>
>
> > Thanks, but its actuall
HTML) {
> var someText = $(responseHTML.One).find('#myDiv').html();
> // you may need $('#'+responseHTML.One) ... if you are looking for
> say an id ... or "." + ... if its a class
> },
> dataType: 'json'
>
> });
>
$.ajax({
url: 'http://www.examplepage.com',
success: function(responseHTML) {
var someText = $(responseHTML).find('#myDiv').html(); // This part
returns a script error and aborts anything else from here
},
dataType: 'html'
});
The problem is that examplepage.com has a script error
(S
URLs and having to
follow links to a "Printable version", why doesn't somebody just make
the appropriate modifications to the print stylesheet at
<http://docs.jquery.com/skins/common/commonPrint.css>? That's what
it's for, after all ;-)
Regards,
Nick.
--
Nick Fitzsimons
http://www.nickfitz.co.uk/
So this is just an effect of a limitation in the
server-side technology, and nothing to do with the browser or jQuery.
You can disable session tracking for your tests using the
@ENABLESESSIONSTATE directive:
<http://msdn.microsoft.com/en-us/library/ms525847.aspx>.
Regards,
Nick.
--
Nick Fitzsimons
http://www.nickfitz.co.uk/
2009/8/10 Shawn :
>
> ALL the functions (load, get, post, etc) are wrappers for the $.ajax()
> function. I only use $.ajax() now and tweak it to meet my needs... Makes
> for less confusion.
>
> Ajax by default will only load files that are in the same domain as the
> calling page. This is a brow
fine.
I've also used jQuery on other XHTML pages and it worked just fine.
Regards,
Nick.
--
Nick Fitzsimons
http://www.nickfitz.co.uk/
Hi,
I am currently trying to validate a form before sending it with the
jQuery Form Plugin.
I can get them working but it is always one or the other, I can't get
them both working.
The code I have so far is below:
$('#submit').ajaxForm(function() {
alert("Thank you for your comment!")
witching-functions.html>
although it's pure JavaScript, not jQuery; the code is all in the page
(not what I'd usually do, except for examples like this) so you can
view the source to see what it's doing.
Regards,
Nick.
--
Nick Fitzsimons
http://www.nickfitz.co.uk/
ey'll take a little while to execute, even though they all do the
same thing...
Cheers,
Nick.
--
Nick Fitzsimons
http://www.nickfitz.co.uk/
Hai,
I have one email sending section. the can be fully worked on the basis
of the ajax functionality. But I dont need to create the instance of
the autocomplete in the $(document).ready();
Because my need is to create the instance of the autocomplete after
the completion of the login.My login is
2009/7/16 Nick Fitzsimons :
> 403 Forbidden [1]
Oops, forgot the link :-(
[1] <http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.4>
--
Nick Fitzsimons
http://www.nickfitz.co.uk/
easier on the user. On the other hand, this may
be unnecessary, overkill, or just too complex to be worth doing,
depending on your application.
Regards,
Nick.
--
Nick Fitzsimons
http://www.nickfitz.co.uk/
Anyone: I cant seem to get this to work. If I pass "modal:true" in
as a variable it doesn't work. Anyone have any idea what is causing
it to break?
=== Stark Working Code ==
var modal = modal;
var content = true;
var $dialog = $("")
.dialog({
Anyone: I cant seem to get this to work. If I pass "modal:true" in
as a variable it doesn't work. Anyone have any idea what is causing
it to break?
=== Stark Working Code ==
var modal = modal;
var content = true;
var $dialog = $("")
.dialog({
Anyone: I cant seem to get this to work. If I pass "modal:true" in
as a variable it doesn't work. Anyone have any idea what is causing
it to break?
=== Stark Working Code ==
var modal = modal;
var content = true;
var $dialog = $("")
.dialog({
Anyone: I cant seem to get this to work. If I pass "modal:true" in
as a variable it doesn't work. Anyone have any idea what is causing
it to break?
=== Stark Working Code ==
var modal = modal;
var content = true;
var $dialog = $("")
.dialog({
ets this wrong and has a default type of "button", just to confuse
matters ;-)
HTH,
Nick.
--
Nick Fitzsimons
http://www.nickfitz.co.uk/
Hi guys,
I'm after an ajax tooltip to use with jQuery.
For some reason, every one I find is either mootools or Prototype
which without hacking around, don't seem to work alongside jQuery.
Any recommendations, or maybe a script I could use that I haven't
already found?
Thanks
This triggers the error callback with textStatus == "parseerror".
You're specifying a dataType of "json", yet you're GETting the
original HTML page in which this code is running (window.location). As
HTML is not JSON, you should _expect_ a parse error.
Regards,
Nick.
--
Nick Fitzsimons
http://www.nickfitz.co.uk/
increasing the array's length by 1. Remove that comma and it should
work.
Cheers,
Nick.
--
Nick Fitzsimons
http://www.nickfitz.co.uk/
Unsubscribe
So, if a user clicks a button, I set a function to create a new class
like
$("#container").html('Click');
and I preloaded ( which means, this function existed before the button
was created) a function like
$(".new_button").click(function(){ alert('succeed'});
When I click the button, nothing
Awesome, thanks Karl. Exactly what I was going for. -Nick
On May 5, 9:29 am, Karl Swedberg wrote:
> Sorry, I must have misunderstood the context. I was responding to this:
>
> > Don't use .text(), you'll get an array-like object of text nodes
>
> It seemed lik
ray-like object of text nodes. Try
>
> var text = $('div').contents().filter(function(){return
> this.nodeType==3;});
> console.log(text)
>
> On May 2, 6:06 pm, nick wrote:
>
>
>
> > Thanks for the response. Are you sure thats correct though?
>
> &
Thanks for the response. Are you sure thats correct though?
alert($('div').contents().filter(function(){return
this.nodeType==3;}).text());
returns empty.
How would I select "Free sex" out of...
Free sex
Symphilis
Ghonoreah
Aids
the "basics"
> section on the top)
>
> $(":text, :password")
>
> On Apr 9, 1:53 am, Nick Boutelier wrote:
>
>
>
> > How do you use an OR statement in a selector function? For example...
>
> > $(':inp...@type=text,password]').e
How do you use an OR statement in a selector function? For example...
$(':inp...@type=text,password]').each(function(){
// do something to a text or password input
});
How do I get off this email distribution list?
--- On Thu, 3/26/09, Andy Matthews wrote:
From: Andy Matthews
Subject: [jQuery] Re: Pointless but fun jQuery experiment
To: jquery-en@googlegroups.com
Date: Thursday, March 26, 2009, 9:18 AM
That's stinkin' awesome! Very cool. I'm n
Since yesterday, I have gotten about 80 of these emails from you and others at
this email address. I think somehow I accidently got put on a distribution
list of what appear to be internal Google emails. Please remove my email
address.
Thanks.
--- On Thu, 3/26/09, David wrote:
From: Dav
Since yesterday, I have gotten about 80 of these emails from you and others at
this email address. I think somehow I accidently got put on a distribution
list of what appear to be internal Google emails. Please remove my email
address.
Thanks.
--- On Thu, 3/26/09, MorningZ wrote:
From:
Since yesterday, I have gotten about 80 of these emails from you and others at
this email address. I think somehow I accidently got put on a distribution
list of what appear to be internal Google emails. Please remove my email
address.
Thanks.
--- On Thu, 3/26/09, shs wrote:
From: shs
Hello,
I am attempting to use the autocomplete plugin to allow users to pick
a text value from an input box and have the db id of that value
populated to a hidden field that can then be posted back to the
application. I have this working fine with a url data source, but am
confused how to do it
timeout (unblock is *always* called 2 minutes after our calls
to block, regardless of us having called unblock ourselves in the
meantime)
Is there an issue with the code to cancelTimeout in the unblockUI
function?
Thanks,
Nick.
o anything like this?
Thanks in advance.
-Nick
http://code.google.com/p/jquery-swapimage/
Anyone tried it is working in Firefox 1.x?
I have tested at Firefox 2 & 3, it is okay, but not working in Firefox
1.5... poor...
Hello world,
I've managed to load a simple HTML file using the .load function. I'm
trying to traverse between the multiple pages using forward and back
buttons. Right now, I have the click function of the AJAX loaded page
inside of the load function, but that is messy and runs into problems.
Is
Hi,
I have a web page that initializes an applet and I get a Javascript
error:
Java class LobbyClientApp has no public field or method named
"jQuery1232546999783"
In jquery-1.2.6.js Line 667
The JQuery code in that file is: id = elem[ expando ] = ++uuid;
I can’t understand why this bit of
, but not the latest.
On Dec 11, 10:23 pm, Nick wrote:
> queue as in effect queue? I'm not finding any documentation on queue
> except as used for effects and your sample seems to put items in a
> queue as if I had to execute things in order. That's not what I'm
> lookin
e returned data is
> an array.
>
> $.each($().queue('foo'), function(){ }); will work.
>
> --
> Ariel Fleslerhttp://flesler.blogspot.com/
>
> On Dec 11, 7:42 pm, Nick wrote:
>
> > Does anyone know how I can iterate through the elements stored in the
> &
Does anyone know how I can iterate through the elements stored in the
data element instead of referring to them individually?
Say I:
$(someObj).data('myData1', 'Here is some text')
.data('myData2', 'Here is some more text')
.data('myG', 'Here is some more text');
How could I loop through the dat
a function throws the error...
Any suggestions for resolution would be appreciated...
Thanks!
Nick
x27;' + jQuery(domElement).val() + '');
}
});
However, this produces:
Hello
How can I get a jQuery reference for the structure wrapAll(...)
creates so I can prepend to it?
Many thanks,
- Nick
t (gif) that is repeated horizontally. If I take out the
background then it renders perfectly in IE.
Any help making IE behave better would be much appreciated.
Thanks,
Nick
Hi all,
This is my first post here because I can almost always find some help
in Google from someone who has had a similar problem to mine... but
this time is different.
I am using the code from Remy Sharp's gallery slider found here:
http://jqueryfordesigners.com/slider-gallery/
I am loading l
Hey,
I'm having trouble with opacity effects in ie7; It appears that if an
element with any effect that involves opacity (slideDown(), show(),
hide() etc...) has any child that is positioned either relatively, or
absolutely, then the positioned element's opacity doesn't animate...
it simply moves
Sreedhar,
Here's a very simple PHP example:
http://remysharp.com/2007/10/08/what-is-jsonp/
To port to .NET (C#), you can send your AJAX call to an .aspx page, or
more appropriately an .ashx handler which sends a plain text response:
context.Response.Write(Request.QueryString["jsonp_callback"]
On May 6, 2:47 am, thatvetguy <[EMAIL PROTECTED]> wrote:
> I get that "duplicate entry" error a lot too. I'm not sure the ID is
> always the same...
I think they just need to upgrade Trac. I have to hold my nose just
right to navigate the site. Not very professional IMO.
Hi Richard,
On May 5, 1:11 pm, "Richard D. Worth" <[EMAIL PROTECTED]> wrote:
> I'm not sure why, but this error comes up when you're not logged in. It
> would be wonderful if you could view this report without logging in, and the
> error is beyond cryptic, but that's the current state. Sorry abou
I'm trying to look through the tickets in the jQuery Trac but I'm
faced with the following error:
Trac detected an internal error:
IntegrityError: (1062, "Duplicate entry 'bf4f39c0467ab22-0-0' for key
1")
Hope you guys sort this out soon.
Thanks,
Nick Fletcher
That did it!
Thanks for the help!
On Feb 13, 2:31 am, andrea varnier <[EMAIL PROTECTED]> wrote:
> On 13 Feb, 01:11, Nick P <[EMAIL PROTECTED]> wrote:
>
> > The trouble comes when I try to append this cloned block to the end of
> > the table. If I just do:
&g
py.show();
But that (I'm assuming, since it didn't really do anything) doesn't
apply the show throughout all the block down to the last descendant.
How can I apply show to that cloned block to make the hidden fields
visible again?
Thanks in advance for any ideas and help! I'm relatively new to
jQuery so any help is greatly appreciated!
- Nick P
k properly.
Is there something I am doing wrong or do forms and/or getElementById
not mesh well when used inside of a clueTip?
Thanks,
Nick
That did it. Thank you so much! I've been trying to escape the colon
using one slash :p
Thanks again!
- Nick
On Jan 7, 3:08 pm, "Jonathan Sharp" <[EMAIL PROTECTED]> wrote:
> Try escaping the colon: $("#itemForm\\:standards select:last")
>
> Cheers,
&
.attr('checked').is(false)) {
// show/hide
}
... but, y'know, something that works. ;)
Any help would be much appreciated.
TIA,
NIck
On 15 nov, 16:36, Aaron <[EMAIL PROTECTED]> wrote:
> I still have work to do on the visual effects piece but it's a pretty solid
> release.
Instead of ripping my designs, you also need to work on your own
website.
Thanks.
http://www.nickstakenburg.com/projects/prototip
- Nick Stakenburg
append(img);
$(img).clone().appendTo("#place2");
I've tested it in FF/IE7 for Windows, it seems OK but I want to be
sure.
Should I rather manipulate an HTML fragment referring to this image
() once I know it has been cached?
Thanks,
Nick
I get mixed mode popups over https when using the $.ready() function.
The line of code that's causing the problem is:
if(script)script.onreadystatechange=function(){if(this.readyState!
="complete")return;jQuery.ready();
I think there was a few threads discussing the same problem but
nothing came
It seems that jquery is "appending" new events to any existing event
handler. eg:
$('##BLAH').click(function(){window.status+='a';});
$('##BLAH').click(function(){window.status+='b';});
Clicking 'BLAH' you get 'ab' on the status bar instead of 'a'??
1 - 100 of 114 matches
Mail list logo