The syntax is wrong, should be :checked.
On Jan 19, 10:31 pm, Jeff wrote:
> Hi,
>
> I have the following code to ensure at least one report checkbox is
> checked on my page
>
> if ($("input[type='checkbox'][checked]").size() == 0)
> {
> $("#error").css("color", "red").text("Plea
I would strongly suggest downloading the one of the demos [1], like
the basic one, which will probably help answer all of your questions.
-Eric
[1] http://www.ericmmartin.com/projects/simplemodal-demos/
On Jan 7, 7:57 pm, polarwarp wrote:
> I am using the jquery simplemodal code to display a
#x27;d like the images to also change from
black&white to colour on hover.
Is that possible with a plugin?
Any hints are very much appreciated.
Martin
Eric,
I don't have IE6 installed (just got a new laptop with windows 7), but
I wasn't able to reproduce the issue in IE8 compatibility mode.
SimpleModal only styles the dialog element, so I'm not sure why that
would be affecting other divs on your page...
-Eric
On Nov 26, 4:50 am, Eric Getchell
Actually, the values are correct, this isn't a bug.
mh and mw stand for maximum height and maximum width. ;) That isn't
apparent from the variable names, but you can tell when they are
assigned.
-Eric
On Nov 15, 9:11 pm, Enobrev wrote:
> Found a bug in SimpleModal 1.33
>
> - If Content Height i
There are a few different ways you could handle this. I've provided a
couple of ideas below"
1) after you get the ajax content, check it's height/width and adjust
the container dimensions accordingly:
$('#modal').modal({
onShow: function (d) {
$('#modalclick', d.container[
I fixed the issue and released 1.3.3[1]. I updated the demo downloads,
but all you need to do is use the newest version of SimpleModal.
-Eric
[1] http://code.google.com/p/simplemodal/downloads/list
On Oct 30, 6:20 am, Eric Martin wrote:
> Bruce,
>
> Thanks for reporting the issue. I
Bruce,
Thanks for reporting the issue. I was able to reproduce the issue and
will work on a fix.
-Eruc
On Oct 29, 10:51 pm, Bruce MacKay wrote:
> Hi folks,
>
> I've just updated a previously functioning piece of code that uses
> the simplemodal plugin - the code does an ajax call to a file
> co
Thanks guys,
Nice to get such a quick reply. Thanks for the tips!
Martin
On Oct 27, 4:29 pm, Paul Mills wrote:
> Hi,
> If you just want to do a simple show/hide then you don't need to add a
> class. You can use jQuery hide() and toggle() functions.
> Like this:
>
I'm trying to do a simple show/hide. When a user clicks an a link, I
want to hide the dd for that link. Any ideas why the .children() is
not working?
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
Tabs 1
.hide {display: none;}
Michael,
Is it possible to provide a link or post some code examples of what
you are trying to do. If it is undefined in IE, it may be caused by
the way you are loading the scripts or the order you have them in.
You might also try putting all of your code inside a document ready
block to make su
If you use the onClose callback, you must call $.modal.close() to
remove the dialog elements from the DOM. If an onClose callback has
been used, calling $.modal.close() will not trigger the callback
again, it can only happen once.
I suggest using the onShow callback to bind your second event base
I've been noodling around on how to create a pubsub system that doesn't
depend on linking objects and events together. Based on previous post it
turns out to be straight forward with bind and trigger (see code below).
However, two things I can't figure out.
I can't figure out why namespaced events
find much (not quite certain what to
search for in the first place).
thanks...martin
Hi,
I've a technical problem, i use jQuery Form Plugin and it's working
well except for upload file.
Effectively after uploading file we can't see any response in firebug.
(You can see an example in the official website of jquery form plugin
http://malsup.com/jquery/form/#code-samples)
And in th
isable it by setting the property sorter to false
sorter: false
}
},widgets: ['zebra']});
});
That works fine. The only issue is, that the up-down arrows are still
visible in ALL columns. Shouldn't they disappear in those two, where I
set sorter to false?
Martin
As long as the content being used in the modal has a height and width
supplied, SimpleModal will use those values to size the dialog.
For example, using the basic demo as a base and given the following:
CSS:
#simplemodal-overlay {background-color:#000; cursor:wait;}
#simplemodal-container {colo
Trent,
I'm not quite sure what you are asking. Could you clarify your
question?
Thanks,
Eric
On Sep 12, 7:48 am, Trent <26g...@gmail.com> wrote:
> How can I embedSimpleModalContact
> Formhttp://www.ericmmartin.com/projects/simplemodal/
> in the sidebar, whose position is fixed on the scrolling
n Sep 11, 7:31 pm, folder123 wrote:
>
> > I'm still having issues with the code below, the slider now doesn't
> > even show up on a 2nd window open.
>
> > Any thoughts greatly appreciated, I'm sure i'm missing something
> > simple.
>
> > -k
&g
Warren,
Can you send me (or better yet create an issue[1]) with a working code
sample of the issue you are having?
Thanks,
Eric
[1] http://code.google.com/p/simplemodal/issues/list
On Sep 15, 12:09 pm, Warren Benedetto
wrote:
> Figured it out myself, so I'm posting for anyone else with this
>
Use the onShow callback in SimpleModal to call the slider init code:
$('#basic-modal-content').modal({onShow: function (dialog) {
$("#slider-vertical", dialog.container[0]).slider({
orientation: "vertical",
range: "min",
min: 50,
max: 300,
value: 100,
David,
The problem is being caused by the data you are trying to place in the
modal. You can fix it by wrapping the data in a div before using it in
the modal:
$(document).ready(function() {
[snip]
$.get("form.cfm", function(data){
// create a modal
I am attempting to create a box with malsup's jQuery nested corners,
but can't get it to display properly.
Here's my CSS:
testing { margin: 0; background: #ffc; padding: 10px; border:0; zoom:
1;}
div.outer { float: left; margin: 15px; background: #c82; padding: 8px;
width: 22em }
My JS:
$(functi
>
> > If you are referring to the known issues I mentioned - since they are
> > browser issues,
>
> Eric, thanks for the response. What issues did you mention that I missed?
http://www.ericmmartin.com/projects/simplemodal_v12/#othernotes
[under Known Issues]
>
> > you'd need to implement somethi
If you are referring to the known issues I mentioned - since they are
browser issues, you'd need to implement something that woul keep track
of state in those browsers.
On Aug 31, 6:45 am, "Steffan A. Cline" wrote:
> on8/30/09 12:48 PM, Steffan Cline at stef...@hldns.com wrote:
>
>
>
>
>
>
>
> >
With SimpleModal, you can use the persist option:
$(el).modal({persist:true});
There are some known issues in IE though.[1]
-Eric
[1]: http://www.ericmmartin.com/projects/simplemodal_v12/#othernotes
[under Known Issues]
On Aug 30, 12:48 pm, "Steffan A. Cline" wrote:
> I have tried both of th
Try accessing the target page directly in the browser and copying the
output into http://jsonlint.com. It sounds like there's an error in
the JSON output.
On Aug 28, 7:07 am, dalvir wrote:
> hi..
>
> I'm using $.getJSON to get data from WCF service in the form om
> json. this is working fin
its done in an ajax call :) thanks!
>
> On Aug 27, 12:22 pm, Leonard Martin wrote:
>
> > Have you also tried accessing your PHP page directly and copying it's
> > output intohttp://www.jsonlint.com?
>
> > I'd also double check your server has the JSON module f
What do you get? What were you expecting?
Using $().load() to call in HTML will load only the raw HTML code so
you won't get any images, or styles. If you actually want google to
look and work like google then you'll probably need to load it in an
iframe.
On Aug 28, 9:12 am, ts wrote:
> I hav
Have you also tried accessing your PHP page directly and copying it's
output into http://www.jsonlint.com?
I'd also double check your server has the JSON module for PHP
installed, just to be sure ;-)
On Aug 27, 4:45 pm, MorningZ wrote:
> I would suggest using Firefox and FireBug to "watch" wh
Have you also tried accessing your PHP page directly and copying it's
output into http://www.jsonlint.com?
I'd also double check your server has the JSON module for PHP
installed, just to be sure ;-)
On Aug 27, 4:45 pm, MorningZ wrote:
> I would suggest using Firefox and FireBug to "watch" wh
Vru,
The actual code would depend on exactly what you are trying to do, but
taking the "onShow callback function" test[1], I modified the code to
resize and reposition the container:
function modalShow (dialog) {
var self = this;
dialog.data.find('input.animate').one('click', fun
Yes, you (wheatstraw) just need to remember that attr('src') returns a
string and *not* a reference to the src attribute.
On Aug 26, 5:16 pm, amuhlou wrote:
> I think keeping the source in a variable is the key here, try this:
>
> $('li.clickable').hover(function() {
> var newsrc = $(t
You're not actually setting the source once you've replaced it:
$('li.clickable').hover(function() {
$(this).find('img').attr('src', $(this).find('img').attr
('src').replace("_off","_over"));
}, function() {
$(this).find('img').attr('src', $(this).find('img').attr
('src').replace("
Looks like a case of "asynchronous-itis". You're reading the val() of
the load()-ed div before the Ajax call has had a chance to respond.
What you'll want to do is add the fancyBox stuff to the callback
function for load() like this:
$('div#resultsDataContainer').load('locatorResults.cfm',{'zip'
Of course, just pure force of habit still makes me call it a plugin.
On Aug 26, 9:51 am, Paolo Chiodi wrote:
> live is no longer a plugin, but core of jquery
>
> Paolo
>
> On Wed, Aug 26, 2009 at 10:14 AM, Leonard
>
> Martin wrote:
>
> > You will either need to
You will either need to use the live plugin as follows:
$('#thumbs a').live('click',function(){...});
Or move the binding of your 'click' inside the callback function of
your $.ajax call so it would then look like:
.appendTo('#thumbs').click(function(){...});
As it is you're trying to bind ont
Luis,
Can you be a little more clear on what the problem is? Do you have a
link or sample (working) code I can see?
-Eric
On Aug 23, 6:55 am, lfrodrigues wrote:
> Hi,
>
> I've been using simple modal for quite some time.
>
> Now I have a problem. I have some code with uses $(document).ready an
In this case you need to wrap the code inside the onclick in a
function:
onclick="function(){int=clearInterval(int);}"
although obviously better would be to use $.click to bind the event:
$('button#foo').click(function(){int=clearInterval(int);});
You will probably also want to check that the
c curiosity
at the moment.
On Aug 20, 5:25 pm, Quang Ngo wrote:
> On Thu, Aug 20, 2009 at 6:56 AM, Leonard Martin
> wrote:
>
>
>
> > I don't think so. I tried it with ClearType enabled and disbaled and
> > the effect was the same either way. It also seems not to
ugh IRC or something.
>
> Jonathan
>
>
>
> Liam Potter wrote:
>
> > Might have something to do with cleartype?
>
> > Leonard Martin wrote:
> >> Apologies, I missed the link:
>
> >>http://in.tellig.net/jquery.animateparam/jquery.animateparam.j
I don't think so. I tried it with ClearType enabled and disbaled and
the effect was the same either way. It also seems not to affect MSIE,
only Gecko and Webkit.
On Aug 20, 2:49 pm, Liam Potter wrote:
> Might have something to do with cleartype?
>
> Leonard Martin wrote:
&g
I think if you reverse the parameters you're passing to stop() then
that should achieve what you're after.
You want to clear the queue (true for first parameter) but stop the
animation where it is, not go to the end (false for second paramter).
On Aug 20, 3:16 pm, Xenongasman wrote:
> Okay, s
The trouble is that the $.post is run asynchronously so anything after
the $.post will be executed before the callback function.
If you want the returned data to be available outside the callback
then it will have to be inside a function which is called from within
your callback method.
e.g.
v
Apologies, I missed the link:
http://in.tellig.net/jquery.animateparam/jquery.animateparam.js
and
http://in.tellig.net/jquery.animateparam/ for an example.
On Aug 19, 2:08 pm, Leonard Martin wrote:
> I've been trying to write an extension to the animate function to
> allow the a
I've been trying to write an extension to the animate function to
allow the animation of elements along a parameterised path (in the
original motivation this was around the diameter of a circle) whilst
keeping use of things like $.easing and $().stop(). I've managed to
put something together that
wrong direction.
thanks
Martin
thanks Giovanni i'll try that.
2009/8/19 Giovanni Battista Lenoci
>
> Julien Martin ha scritto:
>
>> Hello,
>>
>> I basically want to catch any ajax request sent by my app and display an
>> alert.
>>
>> I have tried this to no avail:
>>
&
Hello,
I noticed that after an ajax call, my jquery no longer works. After some
research I realized I had to use either the livequery plugin or the live
event provided out of the box by jquery 1.3.x.
However, the live event used as follows does not work i.e.
cacherFormulaireInscription does not w
Hello,
I basically want to catch any ajax request sent by my app and display an
alert.
I have tried this to no avail:
*jQuery("*").ajaxSend(function(event,request, settings){
alert('called');
});*
whenever an ajax request is made the alert does not show...
note that the ajax request is made
While sorting a table with the Tablesorter plugin, I'd like to have a
table cell within an interior column use the rowspan attribute (the
result being this column has only a single value). I can't figure out
how to use it however. The docs I saw (http://lovepeacenukes.com/
tablesorter/2.0/docs/) g
Michael,
You need to initialize any third party scripts in the SimpleModal
onShow callback. Here's an example of using Datepicker with
SimpleModal:
http://www.ericmmartin.com/code/datepicker/
-Eric
On Aug 7, 2:34 am, Michael Anckaert
wrote:
> Hello everyone,
>
> Using the simplemodal plugin I
Do you have a link? Can you disable the scroll in the page. If not,
how about disabling it in the modal:
$(element).modal({onShow: function (d) {
d.wrap.css('overflow','hidden');
}});
-Eric
On Jul 29, 8:44 am, junkqwe wrote:
> I am using simplemodal 1.3
> my modal shows a product description
Chris,
Regarding SimpleModal, wouldn't this accomplish what you are looking
for?
$.modal('http://www.ericmmartin.com"; id="iframeTest"
name="iframeTest" height="450" width="830" style="border:0" />', {
closeHTML:"",
overlayClose:true,
containerCss: {height:450, width:830
ump
Jump
Title
Some text
I know this can be made more compact and elegant, but I don't know how
to do it.
I appreciate any pointers and tips on how to improve my code.
-Martin Berglund
I'm not familiar with CF - so I'm not sure if it handles forms
differently (link .NET), but you should be able to use the onShow
callback to bind the form submit and handle it accordingly.
Check out the Contact Form demo[1] for an example.
-Eric
[1] http://www.ericmmartin.com/simplemodal
On Ju
Do you need to host it yourself and does it need to be private? If
not, how about Project Hosting on Google Code[1]?
[1] http://code.google.com/projecthosting/
-Eric
On Jun 9, 4:20 am, Paulodemoc wrote:
> Someone here would happen to know a good bugtracking system that I can
> start using? It
Thanks for the reply.
I've since established that my clients website is a fairly standard
CMS type setup.
So his webmaster is now able to make all the changes that i require.
Again thanks anyway :-)
Martin.
On 26 May, 16:02, Charlie wrote:
> I'm working on a Google Map app usi
Got it working thanks yang..
Merely did..
$("#accountButtons div.question b").click(function(e){
Do B
e.stopPropagation();
});
That fixed the problem so event A isnt fired...
On May 26, 12:08 pm, Steven Yang wrote:
> how do you click A and invoke B's onclick?the only way is A is B's chi
use my new map?
Once my map is complete it shall be hosted on my clients website btw
and not on my domain.
Thanks a lot for any pointers.
Martin.
t when
you click on the X ("#accountButtons div.question b) ...
$("#accountButtons div.question").click(function(){
Do A
});
$("#accountButtons div.question b").click(function(){
Do B
});
Regards
Martin Ikediashi
On May 26, 12:08 pm, Steven Yang wrote:
> how
one
mouse click, eventhough the css for each element is different. I
think the best way to avoid this problem is to use flow control to
exclude the other mouse click event. If element A is clicked then
skip B
Regards
Martin Ikediashi
Hello,
I am trying to "re-render" through ajax a richfaces element contained in a
cluetip tooltip div and it is not working. Can anyone help please?
Here is the code for the div:
toto
Hello,
I am trying to "re-render" through ajax a richfaces element contained in a
cluetip tooltip div and it is not working. Can anyone help please?
Here is the code for the div:
toto
Thanks for your example. Now its working like it should :-D
Hi Folks,
i have a big roblem with a little getJSON request. At first..this is my
code:
=== HTML ===
dicken ajax-request ausführen!
=== JavaScript ==
$(function(){
$("button").click(function(){
$.getJSON("myJson.js", myCallback);
function myCallback (jsonObje
at script, and the assistance to get it working!
>
> On May 6, 3:49 pm, Steeleclipse wrote:
>
> > Thanks for your reply. I will try that tonight and post how it goes!
>
> > On May 6, 3:37 pm, Eric Martin wrote:
>
> > > I just took a look and it looks like the main issu
I just took a look and it looks like the main issue is that you are
not binding the link correctly. You need to modify the selector in
confirm.js from:
$('#confirmDialog input.confirm, #confirmDialog a.confirm').click
(function (e) {
...
});
to:
$('#navPhysicians a.confirm').click(function (e)
ssible to have one,
> smooth-looking loader animation to use on all background colors/image.
> Thanks!
Cheers,
Martin
I would like to use treeview separated in the navigation container
'main' without resetting Base Font Size in screen.css file to
html>body {
font-size: 16px;
font-size: 68.75%;}
body {
font-size: 68.75%;}
Setting main container in screen.css file directly to
#main {
keeps looping. I have already tried to use unbind in the "addGoal"
code block, but this interferes the creation of the next dialog box.
Any ideas
Martin
bj.css({height: "0px"});
obj.animate({height: "23px"}, 1000);
}
I get this error message in the javascript console:
this.find is not a function
Also, I guess it's not possible to animate the li's on menu close
without hacking the core code, because onHide is trig
2 April 2009
My name is Martin Streicher. I am pleased to announce three new
publications dedicated to web developers.
Red: The Journal of Ruby Development
Facade: The Journal of Front-end Development
Tabula: The Journal of Open Source Database Development
The three publications obviously
Like it was mentioned above, the noConflict() call has to come right
after loading jQuery and before loading the other libraries.
-Eric
On Mar 31, 11:54 pm, pyt wrote:
> Hi,
>
> I have the same problem with FF2 on my eeePC (linux)
>
> The code is
>
> //---
>
>
>
>
>