Hi, all
In $(window).unload(function(){ ... }, is that possible to cancel
unload event. I mean I would prompt for users if they want to close
the window. If they don't want, how do I cancel the event?
Jack
You want the onbeforeunload event.
http://www.4guysfromrolla.com/demos/OnBeforeUnloadDemo1.htm
It's non-standard in that you can't actually use it like a normal
event. You'll need to use the old window.onbeforeunload = function()
{ ... } format, not the jQuery.bind(...) format.
Your event
Thanks Karl, how do I know wether users want to leave or don't want to
leave after all?
jack
select name=numberPages class=numberPages
option1/option
option2/option
option3/option
option4/option
option5/option
/select/p
p class=foocontent/p
p class=foocontent/p
p
If they leave the unload event will fire.
Karl Rudd
On 13/03/2009, jack datac...@gmail.com wrote:
Thanks Karl, how do I know wether users want to leave or don't want to
leave after all?
jack
yep it's correct: you need to initialise it then hide it. you could
also position it outside the view port, initialise it, hide it, then
position it back in the viewport to avoid the initial display.
On Fri, Mar 13, 2009 at 6:43 AM, Nic Hubbard nnhubb...@gmail.com wrote:
I have a hidden div
Well, I had thought of that, but I am needing to fade it in with the
fadeIn() function. Not sure how how to do this when the jScroll is
inside the hidden div...
On Mar 13, 12:41 am, Alexandre Plennevaux aplennev...@gmail.com
wrote:
yep it's correct: you need to initialise it then hide it. you
Thanks a lot Ricardo :handshake:
That both worked =)
But I have to admit that I dont know why .readOnly works.:confused: couldnt
find anything like that in the docs and thought that you always have to
select attributes with [..] or .attr(..) Is this an officially working
function?
Thanks :-)
anybody have the solution?
On Mar 13, 5:41 am, Andri 4r53...@gmail.com wrote:
thanks, I'll fix it.
But before that, the function navigation also doesnt work, even it
just simple hide() and show()
On Mar 13, 12:13 am, Karl Swedberg k...@englishrules.com wrote:
One problem I see is that
Error Solve, there were some problem on validation script. FF ignore
it, but IE will not work because this :D
On 13 Mar, 15:10, Andri 4r53...@gmail.com wrote:
anybody have the solution?
On Mar 13, 5:41 am, Andri 4r53...@gmail.com wrote:
thanks, I'll fix it.
But before that, the function
Hi all,
I customized the innerfade plugin from medienfreunde.de and added some
navigation to it. Based on the number of slides it creates a
jumpToSlide menu and normal prev and next navigation. The
current slide indicator fades as well, which was important to keep the
transitions nice and
Hello,
Currently it is not possible to read data from xml attribute.
Regards
Tony
On Mar 11, 4:14 pm, Arun Boppudi arunkumar.bopp...@gmail.com wrote:
I need to display a xml node attribute value in a cell. How can I do
it using the xmlmap?
I have XML like:
rows
row
cell1
Hello,
You can use a datatype parameter as function. This way you can
manipulate the xml before send them to the grid.
Refer to the documentation and examples on how to do this.
Regards
Tony
On Mar 13, 1:10 am, stilwalli shashank.tilwa...@hughes.com wrote:
Hello Developers,
I am
can u put up an online demo somewhere? ( http://jsbin.com/ )
On Fri, Mar 13, 2009 at 8:55 AM, Nic Hubbard nnhubb...@gmail.com wrote:
Well, I had thought of that, but I am needing to fade it in with the
fadeIn() function. Not sure how how to do this when the jScroll is
inside the hidden
:(( Found a plugin just like it... with way more functions...
http://malsup.com/jquery/cycle/
Was good practice anyway :)
Cheers
On Mar 13, 10:01 am, floepi flo...@gmail.com wrote:
Hi all,
I customized the innerfade plugin from medienfreunde.de and added some
navigation to it. Based
Hello again, I've been continuing my search and it seems that the .each
function is not working the way I wanted it to...
From what I've understood $(.item).each(function(){}) just counts how
many elements have the 'item' class, and then executes the code that
number of times with $(this)
Hey, thank you all !
i have changed the code as @Karl suggested and it works now.
And thanks everyone by taking care.
also to note
$(input[readonly]) should also work as that sector says give me all
inputs that have the attribute read only, and it doesn't matter what
the value is, just that it's there
On Mar 13, 4:00 am, ggerri gerald.ressm...@ewz.ch wrote:
Thanks a lot Ricardo :handshake:
That both worked
A custom parser would *definitely* handle this
I could write it up if i had an example of the HTML
On Mar 12, 6:45 pm, Big Mad Kev bigmad...@gmail.com wrote:
Yep thats it basic numeric sort with nulls on bottom.
From what I have read I don't think a parser will help unless I've
Hello.
I have used a featured content gallery that I fund [URL=http://css-
tricks.com/startstop-slider/]here[/URL] as a gallery on [URL=http://
www.bonsaibranding.com/riverstone/gallery.html]a website Im working on
[/URL]. I would also like the navigation/list to change with the
pictures.
I
Solution to all those problems is quite simple, yet not so easy to
find.
Go to line with
if($params-get('useSuperSubs')) $superstring .= '.supersubs({minWidth:
\''.$params-get('min_width').'\', maxWidth:\''.$params-get
('max_width').'\', extraWidth:\''.$params-get('extra_width').'\'})';
and
Hello everyone,
I was wondering if it is possible to alter the URI without loading a
new page. For example, when jQuery records a click on a link, it not
only slides down a certain div, but also alters the URI in the address
bar from example.com/about-us/ to example.com/about-us/link1/ without
remote not work in Internet Explorer. See jquery-validate/demo/milk/
I am having a little problem with the plugin on IE7. Have googled as
much as I could to try and find the problem however cannot seem to
find an solution or mention of except for a one year old post on the
owner's web site.
The problem is that in IE7, the expanded menu will briefly show then
Have you ever considered to add support for JSON data format to the
autocomplete plugin?
Many other autocomplete-like plugin does support this data format, but
this one is (imho) still the best at doing its job. It's a pity that
it doesn't support JSON.
Cheers,
Andrea
Does autocomplete support skins from jquery-ui?
TIA,
Andrea
Yes. http://67.207.148.241/exhibitions
Roll your mouse over exhibitions.
On Mar 13, 3:45 am, Alexandre Plennevaux aplennev...@gmail.com
wrote:
can u put up an online demo somewhere? (http://jsbin.com/)
On Fri, Mar 13, 2009 at 8:55 AM, Nic Hubbard nnhubb...@gmail.com wrote:
Well, I had
You're probably loading it from the local filesystem. You need PHP for
the remote script, see http://jquery.bassistance.de/validate/demo/milk
Jörn
On Fri, Mar 13, 2009 at 1:26 PM, Ag a...@chaltyr.ru wrote:
remote not work in Internet Explorer. See jquery-validate/demo/milk/
Its possible to use JSON:
http://dev.jquery.com/view/trunk/plugins/autocomplete/demo/json.html
The jQuery UI autocomplete widget will have much better support.
Jörn
On Fri, Mar 13, 2009 at 1:44 PM, Mr.Rech andrea.ricip...@gmail.com wrote:
Have you ever considered to add support for JSON data
works in IE6 but not in FF3... thats the problem. these stuff used to work
fine in 1.2.6 but since 1.3.2 jquery is not handling 'readonly' properly
anymore. guess this got messed up in the process of removing all the browser
sniffing from jquery...
at least i have a working woraround now :-)
looks good. thank you!
On Mar 12, 2:58 pm, mkmanning michaell...@gmail.com wrote:
Sorry for the terse response, but you might want to check out
getComputedStyle/currentStyle
On Mar 12, 10:33 am, sfea...@gmail.com sfea...@gmail.com wrote:
Thanks for the response. I want to make it
Josh's is slightly faster than my two suggestions :)
This is slightly faster than Josh's:
$('.numberPages').change(function() {
$('p.tog').hide().eq(':lt('+($(this).val())+')').show();
});
On Mar 13, 12:20 am, Josh Powell seas...@gmail.com wrote:
select name=numberPages
I think location.hash is just what you need.
On 13 мар, 13:33, Cinnamon alekande...@gmail.com wrote:
Hello everyone,
I was wondering if it is possible to alter the URI without loading a
new page. For example, when jQuery records a click on a link, it not
only slides down a certain div, but
Hi, Phil...
The plug-in looks good so and is also working in IE 8, which is good.
I was a little disappointed because I misunderstood your explanation below
about the jumpToSlide menu...I was hoping that was thumbnails underneath
the slideshow allowing a user to click on a specific thumbnail
Hi,
Thanks it works, I have the code as below, since more than one
checkbox can be selected at once I've used the click function, and
also changed the radio to click function as well.
This way I can get it work the way I intent to, like two option either
one public or private, so for ex when
I want to manipulate the xml after the user has modified some values on the
grid. Say for instance, when user clicks on the grid row, a modal window opens
where user makes some changes. On Clicking save, I want to extract the XML of
the grid row send it to the server.
Shashank
My page is throwing an invalid argument error on line 23 of jQuery,
version 1.2.6. Is there any reason this should be happening? It
seems that because of this, the rest of my script is not running.
I am using the cycle plugin as well as jScroll Panel.
Example: http://67.207.148.241/home
He doesn't mean your client side cache, but the server is serving cached
versions of pages.
Erik Beeson wrote:
I'm seeing this too. Quite sure it's not a cache problem on my end as
I've never visited jquery.com http://jquery.com on this browser before.
--Erik
On Wed, Mar 11, 2009 at 2:56
Where does this error come from?
[cycle] terminating; zero elements found by selector
You can see it when the page loads on the firebug console, but it
doesn't give a file name or line number. it may be that since you
aren't getting any elements back, IE is messing up because you are
trying to
Nice find!
I realized I was not using Cycle on that page, but I had it embedded
in my template. I will try removing that and see if it fixes the
invalid argument error.
On Mar 13, 8:49 am, Josh Powell seas...@gmail.com wrote:
Where does this error come from?
[cycle] terminating; zero
Thanks for the input so far! I figured out a slightly different route,
I installed PHP and CCount on the server. Now we can at least have an
admin php page that keeps track of how many times each video link is
clicked on in a flat dB file. Now I just wish it would send the
user's network
Ok, I removed all instances of the cycle plugin when it is not
needed. But, this has not fixed the problem in IE7/8.
Why would it be saying that jQuery.js is the file with the problem?
On Mar 13, 8:49 am, Josh Powell seas...@gmail.com wrote:
Where does this error come from?
[cycle]
James,
Thank you. It works perfectly.
I am not sure why, but the following statement does not seem to find
the title.
$(this).attr(title, $(this).siblings(li.title).text());
Isn't it the same as $(this).parents().next('li.title').text()
Any ideas?
On Mar 12, 6:56 pm, James
I have a .js file that I wrote for my whole sites. Part of it only
pertain to certain pages, so some of the selectors would not find
anything on other pages. This file is included in all pages, so my
question is, should I check if a selector exists first, before I run
each script?
I am
The version of jquery at that site isn't 1.3.2, it's 1.3. My data is in
an intranet and unfortunately not something I can post. I guess I could
put together a standalone rev of what's at that site with 1.3.2 and see
if no issues there. I'm not getting any js errors, which makes me think
it's a
I tried that but IE still does not work. An other ideas? Thanks.
Now one more question, after
On Mar 12, 4:57 am, Paul Hutson hutsonphu...@googlemail.com wrote:
Ah ha - the IE nasty problem, I solved it like this :
On Ajax Success :
var xml;
if($.browser.msie){
Nic Hubbard wrote:
Ok, I removed all instances of the cycle plugin when it is
not needed. But, this has not fixed the problem in IE7/8.
Why would it be saying that jQuery.js is the file with the
problem?
IE browser throw an invalid argument error when attempts are made to
apply nonsensical
Sorry about this. It is not a bug. I just didn't fully understand the
new event bubbling behavior. You can see the solution to this problem
in case anyone may find it helpful:
http://stackoverflow.com/questions/639862/too-much-recursion-error-in-jquery-1-3-2
Ok,
I have a question. My changes seem to work the for the first click but not
on subsequent clicks on the navigation. I suspect that the binding is lost
when the html code is replaced. Any ideas on how I should attack this issue
or if this is in fact what is happening? Is there a way to re-bind
Hello,
Sorry not understand what you mean.
The row in jqGrid is not a xml, but html.
To make what you want, you should extract the desired row using a
method getRowData and make your own xml string, (looping the array
data) that will be posted to the server.
Regards
Tony
On Mar 13, 4:54 pm,
Nic Hubbard wrote:
I am thinking I could use:
if ( $('#myDiv').length ) {
// Run my scrip there
}
One of the strengths of jQuery is that this is probably not necessary.
Almost everything you care to do on the jQuery object returned by your
selector call will run through a forEach() call.
Hmm, I am not sure this is happeningbut I will look through my
scripts.
On Mar 13, 9:38 am, Henry rcornf...@raindrop.co.uk wrote:
Nic Hubbard wrote:
Ok, I removed all instances of the cycle plugin when it is
not needed. But, this has not fixed the problem in IE7/8.
Why would it be
Hi, I noticed that the API browser @
http://www.nicolas.rudas.info/jquery/finder/api.html
isn't displaying the info. Is it being updated for 1.7 maybe?
Thanks...
On Mar 5, 5:37 pm, Nicolas R ruda...@googlemail.com wrote:
All right, I added IE6 support.
Latest files
hi, I am in need of some way to slowly load a image 1 line at a time,
or maybe load a div 1 line at a time
any ideas?
thanks,
-tom
Ok, I tracked it down.
It is coming from jScroll Pane. When I add the function:
$('#exhibitionsBoxInner').jScrollPane({
showArrows:true,
arrowSize: 10,
scrollbarWidth: 6
});
I get the error. Removing it, and the error is
Hello,
I've been trying to get the following working :
http://dev.jquery.com/view/trunk/plugins/sound/
However, it only plays about a second to three seconds of the
designated sound before shutting off (in FF and Safari) but loads
fully in Opera. The music is hosted locally at the moment.
No, when you use $(this), it is referencing the img that was clicked
on. In your code img has no siblings.
Now if you did this:
li class=portrait
img src=images/dtv_bg.png /
divtest/div
/li
then $(this) does have a sibling. The div is a sibling. That's why
you have to use:
I tried that but IE still does not work. An other ideas? Thanks.
I can only think to try to ensure that it's going into the MSIE part
of the if statement.
Now one more question, after
Shoot.
Hi,
I have a problem with the first item style in my jQuery treeview.
The code for this item is : span class=spanItemTVItem 1/span
(see the code below)
I put a background-color on the item. I would like to set its width to
100%, so that the first item bar covers the entire width screen.
using form.jquery.js.whenthe formbutton isclicked the result that is
suppose to comethrough into the target div is a bunch of jsonp code
with script tags and jsapibasically code that calls up a widget
does anyone knowwhy this may not work? ive checked escaping quotes
etc, i amwondering if
This form of a selector is undocumented..
('#%=x.y%').length
What does it mean ?
Thanks..
Hi,
I hope someone can help me with this issue. When I look at the demo
pages on the Cycle plugin website they all work in all browsers but
when I do my own page and test it using the shuffle feature it works
in IE6, IE7, Firefox but not Safari or Chrome. I am going crazy here
so can some one
Ok...
I've successfully managed to invoke jquery.cycle.lite.js and apply it
to the designated div on my site. However on the page load it displays
all of the banner images and looks very ugly. Is there anyway I can
hide this? Possibly preload more of the site?
The code used on
Thanks Guys.
I'll have a look now.
On Mar 11, 1:31 pm, Paul Hutson hutsonphu...@googlemail.com wrote:
Ajax.Updater allows you to simply update the content of a DIV.
If you want to go back to the super simple, you can update the inner
content of a div with:
$(#DIVID).html(CONTENT);
i.e.
Hi jodsalz..
I just install the JCarousel and play some hours it this plugin. I saw
the same alert in my page after a ajax requisition ( overwriting the
old code with the gallery ), after that, I don't have that structure
with all ul li . So.. in the file: jquery.carousel.js, I change
the
$(div#images_all a:has(img)).click(function()
{
if($(this).data('added')) return false;
$($(this).html()).appendTo(div#images_select).dblclick( function()
{ $(this).remove(); } );
$(this).data('added', 1);
return false;
});
I did not test this code, but it should work. Anyway the idea
Hi,
I'm new to jQuery and I'm trying to set the focus back to a text field
after a jAlert message. Here is the code I'm using. Any help would be
really appreciated!
function divCheck() {
if (document.form1.First_Name.value.length==0){
jAlert(Please enter your First Name., Attention);
I can't seem to set the focus back to a text field after a jAlert
message. This is the code:
function divCheck() {
if (document.form1.First_Name.value.length==0){
jAlert(Please enter your First Name., Attention);
document.form1.First_Name.focus();
return false;
}
$(div#images_all a:has(img)).click(function()
{
if($(this).data('added')) return false;
$($(this).html()).appendTo(div#images_select).dblclick( function()
{ $(this).remove(); } );
$(this).data('added', 1);
return false;
});
I did not test this code, but it should work. Anyway the idea
I'd like to write a plugin that:
1) creates and populates some new elements on the page based on some
data passed to an initialize function.
2) does regular plugin-y things like $(#element).myCustomMethod({foo:
1, bar:hi});
I understand how to do #2, and there's lots of good instructions for
Hello Everyone,
I am doing some research on JavaScript library, concentrating on
jQuery / MooTools and Prototype JS and I was wondering what is
jQuery's equivalent to Prototype JS's Ajax.Updater.
A simple method to update an id selector; this nav contains an
active class to highlight and
Hello there,
I was experiencing the same problem, tried every remote CCS solution I
could think of but nothing would work. I finally fixed this with a
small javascript adjustment + a css class.
In the superfish.js add the following:
ruleNr 100 : hideSuperfishUl : function(){
add:
hi, I am working on something like this
I have about 20 groups, each group contains two paragraphs, one
visible and one hidden; and two divs, one visible and one hidden.
Each group have a unique id from mysql.
What I am trying to do:
When you click on a paragraph, all divs and
Yes, any new code introduced via something like AJAX would not have
the events binded automatically.
Using jQuery, you have basically two options:
- re-bind the event again
- use the new live() function (recommended, requires jQuery 1.3+)
For live(), you replace:
I hope someone can help me with this issue. When I look at the demo
pages on the Cycle plugin website they all work in all browsers but
when I do my own page and test it using the shuffle feature it works
in IE6, IE7, Firefox but not Safari or Chrome. I am going crazy here
so can some one
I've successfully managed to invoke jquery.cycle.lite.js and apply it
to the designated div on my site. However on the page load it displays
all of the banner images and looks very ugly. Is there anyway I can
hide this? Possibly preload more of the site?
How about hiding all but the first
On Mar 12, 12:17 pm, id404 ttarp...@googlemail.com wrote:
hi mike,
i now have replaced my cycle-version with the one you have posted. it
seems to work fine now.
thanks!
The change I made in 2.58 is not a good x-browser solution. I'm
working on something a bit more reliable.
Mike
.each() should do what you want.
It will iterate through each element that has the class Item and
will set this to that individual element. So no $(this) will not be
the same as $(.item) e.g with this markup
div class=item/
span class=item/
$(.item).each() will execute twice with this being
I have problem making my customize button on top of slide show
images.
The image that is placed on top of the slide image has absolute
position.
The images bellow are the sliding images which are also absolute
position.
I did set the button to have higher z-index however when I try to
click the
Hello every one,
I need your help , how can i use validation plug in to validate two form in
the same page
thanks
Hello. I am building a webform which will be used to enter the names
of people, then hit a submit button to send the data to the server. I
have a button which uses jquery to append input fields to the form on
the fly. Hit the button, get another text input field. These input
boxes are
$(document).submit(function() {
var options = {url:'http://localhost/cart/update_ajax', success:
redraw };
$('#cart').ajaxSubmit(options);
return false;
});
function redraw(){
$('#inner_cont').load('http://localhost/cart/showCart/ajax');
}
Hello. I am building a webform which will be used to enter the names
of people, then hit a submit button to send the data to the server. I
have a button which uses jquery to append input fields to the form on
the fly. Hit the button, get another text input field. These input
boxes are
Hi master developers!
I have researched some JQuery autocomplete with some experiment tests.
No autocomplete plug-in can handle what I wanted to do. In a nutshell,
as an example, let's assume that a book could have multiple authors. I
have one input text box with a single author name. I press
HI James,
I had updated to the latest JQuery the other day hoping it would solve my
problems. At first I was thinking the issue might be that I was needing some
plaugin for non-IE browsers or perhaps there was bug in my version of
jquery. I can see now that jquery requires a slightly different
Jack,
The only issue I can think of right now is that the current edit
isn't committed when a column gets resized/moved. There is also the
rerenderOnResize option on a column definition that currently
triggers a complete rerender. There's a lot of things I'd like to add
to it though. The
It's not a selector. Where did you come across that?
The makes it think you want to create an element. It does
nothing more than creating a textNode that contains the string %=x.y
% (and a temporary DIV to hold it).
This $(' ') does the same. The '#' is ignored just as if you used $
('#div/')
Would like some gurus to take a look plz!
On Mar 12, 1:26 am, Donovan Walker donovan.wal...@gmail.com wrote:
Hey all. I've written a cool toolkit for HTML injection using json
objects as the data source. There are some other cool features
(though I haven't had time to write up formal
You're welcome!
'readOnly' is the DOM property, not the attribute - these are (to some
extent) separate things. It's in the HTML4 and DOM Level 1 specs:
http://www.w3.org/TR/2000/WD-DOM-Level-1-2929/level-one-html.html#ID-6043025
Hi
I am new to jQuery and learning slowly
Here is the problem
I have 6 questions each of them has 2 buttons ( yes or no radio
buttons)
When user clicks on 1 answer I would like to hide the entire question
I have achieved to do this for 1 question but no success looping
through all 6 questions !
try this, with the proper closing slash as you're using for img/:
$.each(json, function(i, item){
$('a/')
.attr('href', 'http://example.com')
.html('test')
.appendTo('#gallery');
});
}
On Mar 12, 4:57 pm, joshm joshmat...@gmail.com wrote:
In my jquery code I do:
$.each(json,
Sweet, this was the first one I tried because it was closest to my
code, and it worked !
Many thanks
James wrote:
Try changing it up a little:
select name=numberPages class=numberPages
option value=a1/option
option value=b2/option
Dear all,
I'm not sure if this is a jQuery question or not, but I got the following
code to work in FF, but it fails in Safari:
$(.thumb).click(function() {
var imgName = $(this).attr(alt);
var el = $(#dropdown);
if (el.is(:visible) $(#pic).attr(name) == imgName) return;
Doesn't work in IE
On Mar 10, 7:35 pm, P pst...@gmail.com wrote:
Ah... thats too easy. :)
Thanks!
On 10 Mar, 15:09, ryan.j ryan.joyce...@googlemail.com wrote:
sorry, i forgot to add
div.box div.links:hover { display:inline !important; }
On Mar 10, 11:27 am, ryan.j
Hi,
I have any php code for contact form in my cms . this form upgrade to
jquery and form plugin . jquery worked with FF / Opera / Safari /
Chrome / IE7 . . But crash with IE6 . when submit and send data and
waiting for request IE6 crashed and not worked how to fix ??
Hi jodsalz..
I just install the JCarousel and play some hours it this plugin. I saw
the same alert in my page after a ajax requisition ( overwriting the
old code with the gallery ), after that, I don't have that structure
with all ul li . So.. in the file: jquery.carousel.js, I change
the
I have a div containing a form label and field. I'm building a feature
where the user can add as many of these fields as they need.
div style=padding: 1px; clear: both;
label class=left for=f_calibration_url[1]span[+]/span
Calibration URL:/label
textarea rows=2 cols=40
Cool, sounds like it's in pretty good shape. I'm going to see if I can
get some time to look at the source some time soon.
Thanks,
Jack
Tin wrote:
Jack,
The only issue I can think of right now is that the current edit
isn't committed when a column gets resized/moved. There is also the
That ended up taking the text from all the $(a[href*='documents/'])
links and concatinating into a single link, for some reason; with the
underscores still in place(?)
On Mar 12, 10:50 pm, James james.gp@gmail.com wrote:
Do you mean:
$(a[href*='documents/']).text();
So:
var $link =
Hey there,
I use jquery but have to admit to not understanding it really well -
how many different things can one learn???
I have a page that uses jquery popup and also loads a CGI script. It
takes a little while for the CGI to load so I want to block the page
until it is done.
How would I di
1 - 100 of 122 matches
Mail list logo