Hi , I double checked on javascript's XOR operator and it only works with
bitwise: so you will have to write your own XOR . This isn't hard : [code]
if (!foo != !bar) [\code] should work for all elements.
or this
[code]if( ( foo !bar ) || ( !foo bar ) )[\code]
For the validator method
whats the problem? just check one field, it it is filled then do not
check other.
may be your problem is something else
On Oct 11, 8:37 am, Phper hi.steven...@gmail.com wrote:
There are two input fields in a form, but only one of them is
required, they are not required at the same time. Either
I am not familiar with the syntax of Jquery plugin.
On Oct 12, 2:19 pm, Don Dunbar salemd1s...@gmail.com wrote:
Hi , I double checked on javascript's XOR operator and it only works with
bitwise: so you will have to write your own XOR . This isn't hard : [code]
if (!foo != !bar) [\code]
I thought of a much simpler solution. If possible could you use radio
buttons for those two choices in your HTML? In a radio button group
selecting one automatically deselects other buttons in the group. Then you
could just use one of the built in validation checks, as you already have
done, to
No, I can not use radio. At the help of a veteran programmer, I was
able to write the following code and it works.
script type=text/javascript src=http://code.jquery.com/jquery-
latest.js/script
script type=text/javascript src=http://dev.jquery.com/view/trunk/
If you're using the Metadata plugin and inline rules:
input type=text id=a class={validate:{required:'#b:blank'}} /
input type=text id=b class={validate:{required:'#a:blank'}} /
I've not actually tested it but it should work.
On Oct 11, 4:37 am, Phper hi.steven...@gmail.com wrote:
There are
How to change the default position of an error message in Jquey form
validation plugin?
On Oct 12, 4:33 pm, Gordon grj.mc...@googlemail.com wrote:
If you're using the Metadata plugin and inline rules:
input type=text id=a class={validate:{required:'#b:blank'}} /
input type=text id=b
Also, how to prevent a user filling out both fields?
On Oct 12, 4:48 pm, Phper hi.steven...@gmail.com wrote:
How to change the default position of an error message in Jquey form
validation plugin?
On Oct 12, 4:33 pm, Gordon grj.mc...@googlemail.com wrote:
If you're using the Metadata
Also, how to prevent a user filling out both fields?
On Oct 12, 4:48 pm, Phper hi.steven...@gmail.com wrote:
How to change the default position of an error message in Jquey form
validation plugin?
On Oct 12, 4:33 pm, Gordon grj.mc...@googlemail.com wrote:
If you're using the Metadata
Thanks Brian.
It's very work.
On Oct 11, 10:55 pm, brian bally.z...@gmail.com wrote:
On Sat, Oct 10, 2009 at 1:45 PM, Tan it_qn2...@yahoo.com wrote:
Hello,
span id=thmr_5 class=thmr_call
div class=form-item id=edit-sitewide-wrapper
label class=option for=edit-sitewideinput
Yeap, thanks fof the helping out!!
I still may have some more questions and if so, i ll post some more!
Kind regards,
On Oct 9, 5:43 pm, MorningZ morni...@gmail.com wrote:
You've got the x set inside the callback and are trying to alert it
*before* it gets back from it the $.postcall, hence
Hi all,
I am making a call to a php file which right at this minute has no
validation, all validation is been done by the jquery form plugin. I
post to the thanks file but if the validation (xss prevention soon to
be implemented) in the thanks fails I want to stop the processing of
the form i.e.
Hello, i want to make a iframe page that loading a page from other
site. I have try jQuery iFrame Sizing to set auto height in
iframe... but it is failed.
What's the problem...?
This is my code :
-
on Head
script type=text/javascript src=js/jquery.js/script
script
in jq-1.2.5,
jQuery.boxModel = !jQuery.browser.msie || document.compatMode
== CSS1Compat
but in jq-1.3.2,
jQuery(function(){
var div = document.createElement(div);
div.style.width = div.style.paddingLeft = 1px;
I am very very new to Jquery, being more of a designer than a
programmer. I have a fairly (I believe) simple issue, that I'm hoping
you will be able to assist with.
I have a div class called child-pages, that calls up some text in
h2 tags, which says Children Pages. I am wanting to use a simple
Hi,
I have VS Express 2008 SP1 and Patch VS90SP1-KB958502-x86 installed. I
can't get VS Intellisense to work for , jQuert 1.3.2. When i ex. type
$, I get this:
The object is not compatible with this property or method @ 2139:1
If I change to jQuery 1.2.6 it works well?
Any suggestions to what I
Hello,
I wrote:
html lang=pl
head
...
script src=jquery-latest.js type=text/javascript
language=javascript/script
script src=jquery.MultiFile.js type=text/javascript
language=javascript/script
script src=jquery.form.js type=text/javascript
On Oct 10, 9:16 am, Jim stapleton...@gmail.com wrote:
On Oct 9, 8:50 pm, MorningZ morni...@gmail.com wrote:
it's supposed to be application/json, not text/json. set the
content type properly in your server side code and you'll be fine...
text/plain will work as well
After some
You'd probably want to use the text() or html() method for this.
Assuming the h2 tags in question are inside the child-pages div,
your code would be something like this:
$(function(){
$('.child-pages h2').text(Sub-pages);
});
On Oct 12, 9:56 am, Fynci fyncimy...@gmail.com wrote:
I am
I wanna know why the implementation of jQuery.boxModel changed?
Most likely because it was using browser detection via the userAgent,
which is not reliable. If it's causing trouble, make a post in the
jQuery-dev group with an example.
Hi,
I have the following DOM structure (unordered list), that I would like
to sort on the a href tag name using jQuery – specifically the
TinySort plug-in http://plugins.jquery.com/project/TinySort
Structure is as follows:
div id=refmenu
ul id=list
lia title=Google href=Google/a/li
lia
This change failed to remedy the problem
As it shouldn't...
because the bottom line is: the browser makes the request and the
browser receives the request, and when the browser sees text/json
come back from the server, it has no idea what to do with it so it
prompts to download the file
The error you're getting is caused by an @ symbol in one or more
your attribute selectors. This syntax was removed in jQuery 1.3.x.
Just remove the @ from the selector(s) and you should be fine. For
example, change $('a...@href=somthing.html]') to $
('a[href=somthing.html]') .
For more
If you view the html of that demo, one of the files included is
ui.carousel.js :
http://jquery-ui.googlecode.com/svn/branches/labs/carousel/ui.carousel.js
http://jquery-ui.googlecode.com/svn/branches/labs/carousel/ui.carousel.jsIf
you include that in addition to jQuery and jQuery UI (or at least
add links to your item list something like:
{url: http://static.flickr.com/66/199481236_dc98b5abb3_s.jpg;, title:
Flower1, link:http://wherever.com/},
and then update the helper function to something like:
function mycarousel_getItemHTML(item)
{
return 'a href='+item.link+'img src=' +
Paul, you'll also find that a good amount of plugins also stop
Intellisense from working, using -vsdoc.js on a blank copy of the
plugin gets around that
Great blog post with tons of tips and tricks on jQuery + Studio:
Try to use instead of the $ operator jQuery.
for example: instead of $(document).ready(); write jQuery(document).ready();
Gk___
2009/10/12 Paul rcmdk...@gmail.com:
Hi,
I have VS Express 2008 SP1 and Patch VS90SP1-KB958502-x86 installed. I
can't get VS Intellisense to work for , jQuert
Scripts
script src=jquery-latest.js type=text/javascript
language=javascript/script
and
script src=jquery.js type=text/javascript language=javascript/script
is same. They may conflict with each other, look at the JavaScript
console in your browser.
Gk___
2009/10/12 Jivanmukta
the $ works perfectly fine in Studio, there's zero need to use
jQuery unless something is included that needs the dollar sign
instead
On Oct 12, 10:25 am, Evgeny Bobovik bobo...@gmail.com wrote:
Try to use instead of the $ operator jQuery.
for example: instead of $(document).ready(); write
Try to rewrite thanks.php so that it returns the data you need in case
of success, and in case of error: ie judging from your code, in case
of success of thanks.php should return the following data:
div id=message style=display: none;
h2Contact Form Submitted!/h2
pWe will be in touch soon./p
I would recommend you create somewhere on the main HTML page hidden
field (example: div id=hidden-field style=display: none; /
div) and after receiving data using ajax immediately put them in.
this element, and all subsequent processing is performed on the data
already located in this field. Upon
Hey all,
I'm pretty new to Low Pro for jQuery and trying to get things right
first time around
http://www.danwebb.net/2008/1/31/low-pro-for-jquery
I am trying to get multiple instances of low pro behaviors to fire
custom events in other low pro behavior / instances.
I do have a solution that
Bob,
Working on quite a bit of jQuery AJAX over the past week or so,
I've noticed similar side-effects. I have no idea if my issues are
related to yours, but 90% of my problems were solved by using the
callbacks instead of expecting that linear execution would be fine
with the few things I
Hey guys,
i want to get rid of the cancel rating button that appears next to
the 5 stars when enabled. I need to force the users to enter a rating,
so i need to take the cancel rating button off (makes value = 0).
I can't find how to change this!
please help
thanks
Hello,
I have been using Bassistance tooltip but I think the markup is really
incorrect.
http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/
Why forcing an H3 into the tooltip? Did you ever checked a page with
it in Opera's table of contents?
By imposing H3 you are breaking the
It will be confusing for someone filling out your form if you leave
both fields available at the same time, instead... when the user
enters text into one of the fields why don't you run an onChange or
onKeyPress check to see if they've entered something and if so,
disable/hide the other field
Hello,
I am using Bassistance tooltip but I need to simplify the markup. So
instead of using:
helper.parent = $('div id=' + settings.id + 'h3/h3div
class=body/divdiv class=url/div/div')
I would like to use:
helper.parent = $('div id=' + settings.id + 'span/span/div')
However, when I did this
hello maarten,
your attempt sounds interesting.
could you give public access to these urls?
On Wed, Oct 7, 2009 at 18:08, Maarten maartenwie...@gmail.com wrote:
http://autocompleter.mwierda.blackpearl.minus3.nl/demo/table.html
type in 'c' for a grouped result, using a TABLE for the layout.
How do i adjust the color of the selected menu for the superfish
menu?
the most i could do was this:
.sf-menu a:active {
background: red;
}
but that only changed the menu to red when its clicked on and it'll
change back to grey... i can't figure this out. My website (far from
with this html:
table
tbody
tr
td.../tdtd.../tdtd.../td
/tr
tr
td.../tdtd.../tdtd.../td
/tr
tr
td.../tdtd.../tdtd.../td
/tr
/tbody
/table
what would the selector be to get all the *last* td's in each
$('td:last-child')
On Oct 12, 9:45 am, MorningZ morni...@gmail.com wrote:
with this html:
table
tbody
tr
td.../tdtd.../tdtd.../td
/tr
tr
td.../tdtd.../tdtd.../td
/tr
tr
td.../tdtd.../tdtd.../td
Hi, glad you found a solution:to prevent the user from filling out both
inputs in the first place.
[code]$(#days).change(function(){
$(#participations).attr(disabled,disabled);
});
$(#participations).change(function(){
$(#days).attr(disabled,disabled);
});
[\code]
My image upload form has a choice of either upload image by entering url or
by browsing for a file,
I'm trying to empty the file-input input if you focus on the url-input.
I've tried bother these events on click/blur but neither seem to work like
they would for a checkbox or text input...
OK. For anyone else who is tearing their hair out over this one...
It would appear that the earlier version of this script works fine in
relation to the problem above.
You can grab v1.1pre here:
http://view.jquery.com/trunk/plugins/autocomplete/jquery.autocomplete.js
You can link to the demo
Try:
$('#input_id').focus(function(){
$(this).attr(value,);
});
On Oct 12, 5:59 pm, captaincarp harry.wi...@gmail.com wrote:
My image upload form has a choice of either upload image by entering url or
by browsing for a file,
I'm trying to empty the file-input input if you focus on
Yeah this is what I've been trying,
i think maybe different rules apply for file inputs perhaps?
amuhlou wrote:
Try:
$('#input_id').focus(function(){
$(this).attr(value,);
});
On Oct 12, 5:59 pm, captaincarp harry.wi...@gmail.com wrote:
My image upload form has a
hmm yeah, I did a quick google search and it appears that allowing you
to access a file input's value attribute would pose a security issue.
I found a solution but the code isn't exactly pretty
http://gusiev.com/2009/04/clear-upload-file-input-field/
On Oct 12, 6:43 pm, captaincarp
You could replace the file input when the URL field is focused:
$('#fu').replaceWith('input id=fu type=file /');
where #fu is the file input.
On Oct 12, 11:53 am, amuhlou amysch...@gmail.com wrote:
hmm yeah, I did a quick google search and it appears that allowing you
to access a file
I'm troubleshooting a page display glitch involving jQuery AJAX.
When the glitch happens, Fiddler shows the following as one of the
requests:
GET /Scripts/jquery-1.3.2.min.js?_=1255309685187
Normally, the request has no query string and the response status code
is 304:
GET
That sounds like you validate a page for the sake of validation. I think
thats beneath the point, therefore I don't get your argument. Do you worry
about accessibility? If so, did you test the tooltip with a screenreader?
Afaik thats the best way to test for accessibility; validation not so much.
How is your page loading the '/Scripts/jquery-1.3.2.min.js' file? Whoever is
generating that GET is adding the query string. I take it that it's not just
being loaded with a simple script tag?
If you can post a link to a test page, it would make it a lot easier to
guess what might be happening.
Hi,
I'm trying to change the enter event to a tab event. I know there are
solutions out there that will do that but my form is a little bit
complex in that it has fields that are not visible and this is done
dynamically. I've tried some solutions (e.g. enter2tab plugin) but
they don't seem to
Hi there!
In this site:
http://work.r-m.me/termogreen/v2/
If you hover over a couple of times the Produtos's submenus (second
level menus):
- Energias renováveis
- Água quente sanitária
- Climatização
- Tubagens e acessórios
The sub sub menus won't appear (third level menus)...
Anyone knows why?
Hi,
When i use a load call to get some HTML content from a remote page,
the result display in the destination DIV is not immediate, but i have
to call it again to see the result, but it is the result of the
previous call
How to make the display of retrived content immediate ?
Thanks
how can i create a queue what i want to do is
onblur of a field
1) fade out current message in a div,
2)change the message
3) fade in new message (same div)
when i try to do it it changes the html in the div then fades out and
then in..
this is the code ive writeen
I was having this problem as well. When I turned changed the cache
option off, it stopped happening to me.
@ace: I tried passing ajaxOptions: { cache: false} to jQuery-UI
Tabs and I think that did the trick! Is that what you were talking
about? I struggled with this for far longer than I care to admit.
Muchas gracias.
Fiddler now shows a similar timestamp query string appended to my
XHR. I guess
Thanks for you help Karl but that didn't seem to solve my problem.
I have more info to add to the issue though. The Loading... message
works great if there are say, images on the page loading. It does NOT
work if I am waiting for a query to finish and it's results to be
displayed back to the
@Michael: I just pull the scripts in like this:
script src=/Scripts/jquery-1.3.2.min.js type=text/javascript/
script
script src=/Scripts/jquery-ui-1.7.2.custom.min.js type=text/
javascript/script
@ace: Which cache option is that?
Bob
Sounds like a good idea - i'll give it a try in the morning and let you know
if i have any luck
wierd that there doesnt seem any way of directly altering the file inputs
value... perhaps its a security thing...
mkmanning wrote:
You could replace the file input when the URL field is
Rory you need to use the callback functions on your fadeIn/fadeOut
commands. And ouch a FONT tag !
ie ...
$(#txt_user_name_msg).fadeOut(1000, function(){$(this).html('img
src=/_images/ajax_error.gif alt=error / span
style=color:#cc;you must enter a username!/span').fadeIn
(1000);});
On
If you have the same 'name' for an input type, the error is only shown
for the first one.
For example, take the dynamic forms example:
http://jquery.bassistance.de/validate/demo/dynamic-totals.html
change the template it uses for adding rows and change it so the name
of the input does not use
Yes, it is a security thing. Otherwise malicious developers would be
adding paths to user's existing files and be able to silently upload
user's files without their knowledge.
On Oct 12, 11:33 am, captaincarp harry.wi...@gmail.com wrote:
Sounds like a good idea - i'll give it a try in the
screenshot:
http://tinypic.com/view.php?pic=2hd4f7ls=4
currently I've implement a key listen for moving the cursor (a gif
actually) between each digits.
my code looks like :
var cursor = jQuery(#cursor);
var current=... //current jquery element before cursor gif.
if(keycode=){
It should be immediate. Please show us some of your code on how you're
doing this.
On Oct 12, 5:54 am, nabil.tn zouabi.na...@gmail.com wrote:
Hi,
When i use a load call to get some HTML content from a remote page,
the result display in the destination DIV is not immediate, but i have
to
ps: this happened only when I move the cursor.gif from left side of 1
to the right side of 1. Here 1 is the last td of the row.
You've lost me there. If you're trying to block the page based on some
user interaction, then the blockui plugin should work just fine. I
thought the problem you were having, though, was with the page not
being blocked immediately when the user first visits the page. You
asked about
Am I wrong to say you should never use onclick in an element as this would be
contrary to the purpose of using jQuery which means onclick would totally
bind mark-up to javascript? So it would not be unobtrusive in that case.
--
View this message in context:
There are just too many accordions out there, can someone point me in
the right direction. This need not be fancy:
div class=post
h3title 1/h3
psome copy here/p
psome more copy here/p
pand some more copy here/p
h3title 2/h3
psome copy here/p
psome
In preparation for the push to a new release of jQuery, I've been
cleaning up bug reports in the jQuery core bug tracker. Many tickets
languiished because they weren't actually jQuery core bugs, but
instead should have been reported on the forums or sent to the author
of the plugin. jQuery UI
Upon trying to download JQuery in either Internet Explorer or Firefox,
I get the same error.
Windows Script Host
Script: C:\Documents and Settings\Couture\Local Settings|Temporary
Interent Files\Content.IE5\RVWA8J02\jquery-1.3.2.min[1].js
Line: 12
Char: 6947
Error: 'document' is undedined
I'm working on a project that uses the load() function to grab data
from external files, but I keep getting a 405 Method Not Allowed
error and the data won't load. I'm wondering if this is a problem
with the server or if it's a sloppy mistake on my part. Any help
would be greatly appreciated.
Hi,
I am using the jquery form plugin and I am very surprised that it
doesn't post hidden field values to my php file.
I need
form id=newTagForm action=ajax-add-tag.php method=post
fieldset
input type=hidden id=resourceID name=resourceID value=
/
input
I'm trying to write a custom display for the error messages on my
form. Ideally I'd like to use a modal pop-up window to display the
errors, but I'm having trouble figuring out how to prevent the
validation plugin from automatically displaying the errors on my page
AND I can't quite figure out
Hello all,
I cannot for the life of me figure out the syntax given in the subject
line.
Through all of the following, I am referring to the examples tab of
the following page: http://docs.jquery.com/Events/trigger
I've got a 'live' event, waiting for a custom trigger.
I pull the trigger, fire
Where are you downloading your jQuery file?
You should go to jquery.com, click on the large Download( jQuery );
button, which will take you to the Google Code site, and click on
another link. Where is the problem occuring?
Also, Firefox shouldn't be triggering a Microsoft JScript runtime
error.
It sounds like a server setup issue. What is the file type/extension
of the file that you're trying to load()? You have to set up the
server so that the GET (and maybe POST) VERY is allowed for that file
type.
On Oct 12, 12:53 pm, Scogle scotto...@gmail.com wrote:
I'm working on a project that
Sorry, I meant VERB, not VERY:
GET (and maybe POST) VERB
On Oct 12, 3:42 pm, James james.gp@gmail.com wrote:
It sounds like a server setup issue. What is the file type/extension
of the file that you're trying to load()? You have to set up the
server so that the GET (and maybe POST) VERY
Hello all,
I have a form that uses jeditable to edit-in-place several fields and
select boxes. Everything is working great. Now I need to a way to add
a new option to the select list.
What I would like is the user select Add New... from the select list
that would pop-up a dialog window where
Hey all!
I firebuged the site and noticed that a style=overflow:hidden was
being added so I updated my code:
$(this).css(overflow,visible);
and for now seems ok.
So I insist:
Always firebug your applications!
Cheers!
On 12 Out, 17:03, Borgir ricardofmig...@gmail.com wrote:
Hi there!
In this
Am I wrong to say you should never use onclick in an element as this
would be contrary to the purpose of using jQuery which means onclick
would totally bind mark-up to javascript? So it would not be
unobtrusive in that case.
And can't you do this another way other than this:
Did I do this right? I can't test right now but I think this should
work:
function doSomething()
{
...
}
(.someImage).load(doSomething()) ;
I want to fire off doSomething() when the image is fully loaded.
On Oct 13, 10:49 am, CoffeeAddict dschin...@gmail.com wrote:
Am I wrong to say you should never use onclick in an element as this would be
contrary to the purpose of using jQuery
I think you have your design priorites backward. Firstly determine the
functionality required, then how to best
$(.someImage).load(doSomething);
On Oct 12, 4:26 pm, expresso dschin...@gmail.com wrote:
Did I do this right? I can't test right now but I think this should
work:
function doSomething()
{
...
}
(.someImage).load(doSomething()) ;
I want to fire off
yea, forgot about removing the (). Thanks.
On Oct 12, 9:49 pm, James james.gp@gmail.com wrote:
$(.someImage).load(doSomething);
On Oct 12, 4:26 pm, expresso dschin...@gmail.com wrote:
Did I do this right? I can't test right now but I think this should
work:
function
I don't think it's too hyped. Having calls to javascript in your
elements defeats the purpose of unobtrusively maintaining and using
libraries like jQuery. How can you stay that Rob??
On Oct 12, 9:39 pm, RobG robg...@gmail.com wrote:
On Oct 13, 10:49 am, CoffeeAddict dschin...@gmail.com
unobtrusive in this case is keeping javascript out of elements.
onclick= binds them together.
On Oct 12, 9:39 pm, RobG robg...@gmail.com wrote:
On Oct 13, 10:49 am, CoffeeAddict dschin...@gmail.com wrote:
Am I wrong to say you should never use onclick in an element as this would
be
I think you have your design priorites backward. Firstly determine the
functionality required, then how to best implement it. If that means
using a library
obviously we're past that point. We've decided this was a good use
for jQuery. So how can you say priorities are tangled here when you
The simple fact that you don't have javascript floating all over your
doc inside elements is alone a reason that unobtrusive rocks. Let
alone many other reasons.
On Oct 12, 10:44 pm, expresso dschin...@gmail.com wrote:
I think you have your design priorites backward. Firstly determine the
Is there a way to tell if the user is expanding or contracting the
window when resizing even if he changes directions during the same
event?
90 matches
Mail list logo