$(document).ready(function(){
$("#moon").click(function() { myFunction("param"); });
$("#earth").click(function() { myFunction("param2"); });
});
It works perfectly!
Thanks
MorningZ ha scritto:
"I thought it should have worked but it doesn't"
You cannot pass params like that in a
I did not make any changes with directories or codes. I thought I must
be missing an include but I have been looking into my codes for hours
already but still cant find what causes the error. Please advise!
http://refinethetaste.com/html/cp/orders.asp
function reuse(param) {
$("#moon").click(function(){
if(param == 1) {
alert("do something");
} else {
alert("Access Denied");
}
});
}
On Sat, Jun 13, 2009 at 6:53 PM, jwc wrote:
>
> Hi guys,
> apologize for posting again the same topic. I haven't found a s
A possible issue might be a security certificate.
On Sat, Jun 13, 2009 at 1:57 PM, Fall-From-Grace wrote:
>
> I'm using http://valums.com/ajax-upload/ plugin to upload a file to
> another domain
>
> It works fine, but i cannot get domain's response. Plugin makes an
> hidden iframe with entered da
Nice trick.
On 6月13日, 上午9時36分, brian wrote:
> On Fri, Jun 12, 2009 at 2:37 PM, amuhlou wrote:
>
> > putting it all together, you'd get something like:
>
> > $('#div1').replaceWith($('#div2')).remove();
>
> > first you find div1, then replace it with div2, then remove div1
>
> There's no need for
there are several reasons this isn't working , the main reason is
everything you click on is in the body,including the div you want to
stay open. Events bubble up from children to parent. Even though you
think you are only clicking on your div, you are also clicking body. Try
this in firebu
PS. the correct phone number for your regex is, for example: (123)
456-7890
right?
On Jun 12, 3:57 pm, John wrote:
> Good call.
>
> Here are my changes.
>
> function validate_phone(value,alerttxt){
>
> var re = /^\(\d{3}\)\d{3}-\d{4}$/;
> alert(re);
>
> if( $('input[name=
I think you're looking for a test() method instead!
match() is used to extract substrings from a given string.
function validate_phone(value,alerttxt){
var re = /^\(\d{3}\)\d{3}-\d{4}$/;
var ok = re.test($("input[name=unitContactPhoneNumber]").fieldValue
());
alert(re +
What is that reply supposed to mean?
On Jun 13, 9:48 pm, John Bill wrote:
> it is very fun! why?
>
> 2009/6/14 MorningZ
>
>
>
> > "I thought it should have worked but it doesn't"
>
> > You cannot pass params like that in a click event
>
> > instead of
>
> > $(document).ready(function(){
> >
http://www.mathias-bank.de/2006/10/28/jquery-plugin-geturlparam/
On Jun 13, 8:37 pm, Mark wrote:
> Hi all,
>
> I'm trying to selectively hide and show divs based on what a user
> specifies using three select boxes in a form.
>
> I'm quite new to jQuery so I'm probably missing something obvious, b
it is very fun! why?
2009/6/14 MorningZ
>
> "I thought it should have worked but it doesn't"
>
> You cannot pass params like that in a click event
>
> instead of
>
> $(document).ready(function(){
> $("#moon").click(myFunction("param"));
> $("#earth").click(myFunction("param2"));
>
> function
Maybe $(this).attr('class') != 'Value' ?
I wouldn't bother using $(this).attr('class') anyway. Instead, try
this.className
And make sure that the class is, in fact, "Value".
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Jun 12, 2009, at 9:22 AM, rinse_
Hi there
I have implemented the very nice autocomplete plugin. Had to fight a
couple of hours though because the thing just wouldn't show anything
when I used an external data source. Finally I found out by placing
some alert boxes around in the jQuery code that my page for some
reason returned a
"I thought it should have worked but it doesn't"
You cannot pass params like that in a click event
instead of
$(document).ready(function(){
$("#moon").click(myFunction("param"));
$("#earth").click(myFunction("param2"));
function myFunction(param){
alert(param);
}
});
use
$(docum
Try something like this
(not perfect in all modes with all all borders and paddings, but close
enough in many cases)
var i = $("#myId");
var top = 0; var left =0; var x=0; //x is just for avoiding infinite
loops
var oParent = i[0];
while (oParent && x++ <10) {
top += oParent.offsetTop - oP
I'm using http://valums.com/ajax-upload/ plugin to upload a file to
another domain
It works fine, but i cannot parse domain's response. Plugin makes a
hidden iframe with entered data, and submit it.
I get response from site, but cannot parse it due to 'security
reasons'
All i want is to get lin
I'm using http://valums.com/ajax-upload/ plugin to upload a file to
another domain
It works fine, but i cannot get domain's response. Plugin makes an
hidden iframe with entered data, and submit it. I get response from
domain, but cannot parse it due to 'security reasons'
All i want is to get lin
Hi all
I have to perform validation on a single DIV without a submit.
Also I need to catch the validation success or failure to handle them.
In all validation plugin examples I've found code like:
submitHandler: function(form) {
alert('valid');
},
invalidHandler: function(form
Hi,
I am having a small problem that my jquery function does work in
Safari but does not work in FF 3.5. I am not sure whether the problem
is with my coding skills, the jquery plugin that i use, jquery or even
FF 3.5 . If i run the code below then firebug gives this error:
$(".dynamicsparkline"
Hi all,
I am pretty new to jQuery, and I'm looking for a way to kind of
'filter' divs depending on the parameters supplied by a form.
I have three select boxes that set 'area', 'level', and 'time'
parameters (for courses).
I have given corresponding classes to some example divs, and I want
the
Hi guys,
apologize for posting again the same topic. I haven't found a solution yet
for my simple problem.
I have a simple function that works when a link is clicked
$(document).ready(function(){
$("#moon").click(function(){
alert("do something");
});
});
I need to reuse that functio
Hi guys,
apologize for posting again the same topic. I haven't found a solution
yet
for my simple problem.
I have a simple function that works when a link is clicked
$(document).ready(function(){
$("#moon").click(function(){
alert("do something");
});
});
I need to reuse that funct
Hi all,
I'm trying to selectively hide and show divs based on what a user
specifies using three select boxes in a form.
I'm quite new to jQuery so I'm probably missing something obvious, but
here's what I've got and it doesn't, work, they divs just stay hidden.
Any help would be greatly appreci
Hello
I saw an example of an image slider I would like to use ( or am
using). THe code requires javascript and css and my problem being is
that even though I downloaded the javascript and css files - jquery.
lavalamp stuff - it is not working unless I link to the site of which
I originally saw
http://jsbin.com/ekaqe
First click Euro (€), then a div shows up, the first problem is that
if you click on the div, the div closes itself, and the other problem
is, if you have 2 links to open divs they don't close itself, i need
to click on the document page to close them
Here is the JS:
jQuer
Hi all,
I tried on blockUI and the below doesn't work?
Any help please? Thanks.
$(document).ready(function() {
$("div#menu li").click(function() {
$('div.blockMe').block({ message: null });
var type = ($(this).attr("id"));
$(this
The container DIV should stretch by itself, you shouldn't need any
calculations. If the inner DIVs are floated, just make the outer one
floated too and it will expand to fit.
And you can't get styles before any styles are applied, doesn't make
sense right? :) What you can do is append a clone of
I gave up with eclipse in favour of netbeans.
However this is for Eclipse PDT but uses 1.2.6
http://www.langtags.com/jquerywtp/
The netbeans jquery addon also uses 1.2.6
I wonder how much of a chore it would be updating them to 1.3.2? I have not
looked into doing it
- S
2009/6/13 Josh Powell
Hello,
I'm trying to merge Carousel and Drag functions, but I'm facing
problem.
Here is the jCarousel lite page : http://www.gmarwaha.com/jquery/jcarousellite/
And here is my project : http://www.wir3d.net/tests/carousel_drag_02.html
Carousel pager works great, when you click a page, carousel
It couldn't possibly work because the javascript isn't there. Add the
code to cadastroCliente.php.
On Fri, Jun 12, 2009 at 10:24 PM, Frank wrote:
>
>
> Hello,
>
> I'm with a doubt in jquery, I am using the function load () to call
> another page, but after I loaded this page, I can not use the id
get better response with a link to see the problem, jsbin works great
, has built in script libraries including jquery
Glazz wrote:
nobody can help me out?
jQuery UI Progressbar makes for an extremely simple example:
http://jquery-ui.googlecode.com/svn/trunk/ui/ui.progressbar.js
Other than what's provide by the widget factory in jQuery UI core, it has
just one option (value), one method (value), and one event (change). You may
also want to check out
Hopefully it's up in Boston again, either right before/after AJAX
Experience. Makes things simple. And it's Boston, you know; lots of
Irish bars serving Guinness on tap. jQuery/AJAX/Guinness, could there
be a happier place?
jQuery UI has this feature as well:
http://docs.jquery.com/UI/Effects/ClassTransitions
http://jqueryui.com/demos/addClass/
http://jqueryui.com/demos/removeClass/
http://jqueryui.com/demos/toggleClass/
- Richard
On Fri, Jun 12, 2009 at 3:11 PM, amuhlou wrote:
>
> This got me curious and afte
Brilliant, thanks a lot. Here is the final script that does exactly
what I wanted:
$(".date").each( function (i) {
var formattedDate = $(this).attr('title');
$(this).html(formattedDate);
});
$('.date').removeAttr("title");
I sent a tweet to Karl a few weeks ago, he replied
"I'm pretty sure you can count on there being a jQuery conf again.
Just not sure about any of the details yet."
Didn't mention anything about Guinness though, heh heh... oh wait,
that's not this conversation
On Jun 12, 5:19 pm, ak732 wrote:
Take a look at jQuery UI for the drag and drop and resize features:
http://jqueryui.com/demos/draggable/
http://jqueryui.com/demos/droppable/
http://jqueryui.com/demos/resizable/
Since you mention rotating, I think you're on the right track with thinking
of using canvas. You could have little r
hello dears ,
how can i make same as this top menu :
see this website :
http://www.gettyimages.com/
plz help me son
regards
--
Eng. Nader Dasuqi
Project Manager
+9665339217533
If someone gets here at any time, the solution is
http://stackoverflow.com/questions/686995/jquery-catch-paste-input
On Jun 12, 2:43 pm, dreame4 <91drea...@gmail.com> wrote:
> Thanks for your accurate remark.
>
> I came up with adding some event but I don't know which. Focus doesn't
> work as I
Hi all and thanks in advance for your help,
I am creating a plugin (named - autoFormat) using the classic plugin
style (see below). Can I call the sub function stripFormat from
another script? If not how can I modify the plugin that will allow me
to call this from another script?
Bob
(function
Hello,
I'm with a doubt in jquery, I am using the function load () to call
another page, but after I loaded this page, I can not use the id of
another page.
because the function $('#btnCadastrarCliente').click does not work?
[index.php]
$(document).ready(function(){
$('#btnCada
Hello,
I'm with a doubt in jquery, I am using the function load () to call
another page, but after I loaded this page, I can not use the id of
another page.
because the function $('#btnCadastrarCliente').click does not work?
[index.php]
$(document).ready(function(){
$('#btnCada
Hi,
The superfish NAVBAR menu is exactly what I am looking for. The only
addition I need is that when I click on a different bottom level node
the path that is highlighted changes to the path of the item I have
clicked on. Does anyone know how to do that
thanks
Touran
Hello all,
I am working on a new version for this plugin to tackle the problems
mentioned here and those received by email. I created a new group for
this plugin to better organise this project. Here I describe the
current status and where it is going:
http://groups.google.com/group/jqueryfinder/
44 matches
Mail list logo