I'm building a select from a java Resultset for a given userID.
Where the value for the options are a recordD for each record in the
Resultset.
On loading of the page, it gets a userID and recordD from session.
If recordD=null then it uses the first record from the Resultset.
So the select conta
Say I have:
$(function() {
$('.slideshow').cycle();
});
My caption
My caption
I'd like for the container to resize to the largest child size, bu
http://www.fyneworks.com/jquery/FCKEditor/
The FCKEditor home page mentioned it support the Validation Plugin,
but when I use both of it, but even I type many words on the textarea
which replaced by the FCKEditor via FCKEditor Plugin, it's always
shows the error message that the field is empty, ho
If you're talking about simple find & replace, you can do it with
javascript.
http://www.w3schools.com/jsref/jsref_replace.asp
On Tue, Jan 19, 2010 at 2:38 PM, shapper wrote:
> Hello,
>
> Is it possible with JQuery to find all words "xyz" in a text and
> replace it by "xyz"?
>
> Thanks,
> Mig
I made a quick mock up of this to try to find the problem. As you have both
stated, the problem only occurs in IE (I only tried it on IE6). However, I
rewrote the following and this works on IE6. The problem seems to occur when
you add selected="selected" to the second option value.
http://www.w3
I have a webservice sitting on my https server that accepts the POST
verb and responds with some JSON.
If I build a simple html form like
https://myserver.com/myWS";>
it will return the correct json data, with content type "application/
json", and the browser will ask to save the result. When
sing?
If someone has a functional site with this type of navigation I
would be interested is seeing the HTML.
Sincerely
David Parker
Advisor Notes
<% String context = request.getContextPath(); %>
$(function(){ $('#an_tabs').tabs
Hi,
I had a problem with an AJAX post call.
The problem was, some times it returned data, and some times it
didn't. It had nothing to do with domain server crossing, nor server
errors,
as it some times worked and some times it doesn't.
What I found was, it worked most of the times in a high band
Dear jQuery Guys,
I downloaded the latest file, and when i opened it in dreamweaver and
scrolled through the code i noticed that half the code is colored
blue, that is half the code is considered "string", i tryed to fix it
myself but i didn't since i was afraid that i might ruin the code.
What is
I want to make a div
become
12346789
This is my solution, but I want to ask for better one.
/**
* Wrap Table
*/
(function() {
$.fn.dramaWrapTable = function($obj) {
var $tbl = '12346789';
return this.each(function() {
http://www.uploadify.com/
This is the best jQuery upload plugin I ever used, I want to add one
function when upload
jQuery(queue).append('\
\
.
..
I add a input field in it's js code, and I hope the value will be send
with the file when
Oops! Make that... otherwise you get nested divs.
$("#menuJ a").click(function(){
var js = $(this);
$("#pageArticle").fadeOut(500, function()
{
$.post( js.attr("href"), null, function(response)
{
$("#pageArticle").html(response);
$("#pageArticle").fadeIn(500);
},
"html");
});
Thanks Brian
The working script is as follows:
$("#menuJ a").click(function(){
var js = $(this);
$("#pageArticle").fadeOut(500, function()
{
$.post( js.attr("href"), null, function(response)
{
var bob = "" + response + "";
$("#pageArticle").html(bob);
$("#pageArticle").f
ashington.
I will have in both fields errors as washington is not in austria, so
i change to vienna. then the city line is cleaned of errors, but the
country line not. The problem is that the country validation should
also be triggered by changing the city.
Maybe i make errors in how using the validator.
Is there another way to solve the problem ?
Thanks,
David
textbox b shouldn't be empty. So i fill in the text-box a
and the remote validation works, and an error message is shown. When
afterward i fill an value in text-box b, the error message from
textbox a does not go away, which is bad.
What can i do ?
Thanks ,
David
default an empty field is not validated(this is a
feature), but how may i force the plugin to make it ?
Thanks,
David
$(function() {
$('li').each(function() {
var $id = $(this).attr('id');
$.post('getImg.php', {id: $id}, function($data) {
// How to do it?
});
});
});
I want to let each li use ajax load their own image an
Thank you very much Kelly!
You solved my problem.
On Thu, Nov 26, 2009 at 12:59 AM, Kelly wrote:
> Hi David,
> I was able to recreate the same problem and fixed it. Try this:
>
>
> jQuery Form Plugin
>
> form { background: #DFEFFC; border: 5px solid #c5dbec; margin: 10
is on the form's action. I expect to stay on the same page.
any help is greatly appreciated.
David
jQuery Form Plugin
form { background: #DFEFFC; border: 5px solid #c5dbec; margin: 10px 0;
padding: 20px }
<script type="text/javascript">
// wait for
1.
$(window).load(function() {
alert($('#img1').width());
});
2.
$(window).load(function() {
alert($('#img2').width());
});
case 1 can get the dimension, but case 2 can't, how to get it?
1.
alert($('#img1').width());
2.
alert($('#img2').width());
case 1 can get the width of the image, but case 2 will fail, how to
solve this problem?
http://www.switchonthecode.com/tutorials/using-jquery-slider-to-scroll-a-div
If use jQuery slider directly, the handle box will not fit the slider
track
but in that website, it's totally fit the slider, and I didn't see
anything particular in his code
how to do that?
Hi,
I have a problem with an AJAX call. It's a long time since a got it. I
don't know how to deal with it. I have made tests and I don't know why
it's happening.
I have a post AJAX call. Just like next one:
$.post(MY_SCRIPT, { db_id: selected_data},
function(data){
Thanks but this won't work for a ?
David
use a low band internet connection. When I used a
high band connection the problem doesn't come up.
The post callback function is never called. It only has to receive an
XML document which is around 3/11 KBytes
On 8 oct, 19:50, David wrote:
> Hi Doug,
>
> yes, I am sure the data loads co
Hello,
I had an More details
$(this).text($(this).text() == 'More details' ? 'Hide details' : 'More
details');
and on click I changed the text from more to hide
I had to change the
How do I change the value text on click ?
David
Thank you all i've (you guys) crack it.
ds how do I hide this div automatically ?
I have used
for (i = 0; i <= 70; i++)
{
$("div.Hide-BAT" + i).hide();
}
But its slow and probably not the best way to do it ?
Hope you can help and this makes sense.
Regards
David
ingly.
If it read "under either the MIT or GPL licenses" then you would have
achieved the intent of your second sentence. Any chance you could
change it?
-David Robertson
only works if the server has access to the full user password; if
only a hash of the password is stored, then this won't work
David
On Oct 22, 5:31 pm, Kovács Gábor wrote:
> Hi all,
>
> I would like to implement a login functionality to my website. I've written
> a login fo
Hi,
I've spend an insane amount of time on this issue but can't find a
solution, hopefully someone else has encountered (and solved) it.
I've created a simple list, with a bunch of . One of the
is actually a Flash object that has its own event handlers for
mouse clicks. However, the jquery's
Thanks for the reply, Mike. It never occurred to me to cycle
something other than the actual image. I will take a look at this
approach.
-David
w? Should I get the img width and define the left position
for each slide during the actual cycle function, or maybe during the
"// reset common props before the next transition" section?
Any help would be appreciated.
Thanks,
-David
_content&modal=false',
(this.rel || false),'/stuff/css');return false;"
PopupboxNM /a (I removed brackets in case they give problems to mail/
web programs)
Regards,
David
opts.addSlide('');
opts.addSlide('');
opts.addSlide('');
opts.addSlide('');
}
});
slidesAdded = true;
};
});
Any advice would be helpful as I am a javascript/jquery novice.
Thanks!
-David
$('div').each(function() {
// How to know the div have position property or not?
});
Hi,
I have a related problem:
http://groups.google.com/group/jquery-en/browse_thread/thread/faf44301f4a22535/537df7c5a5b124bf?lnk=gst&q=garcia.narbona#537df7c5a5b124bf
I have just also found this:
http://groups.google.com/group/jquery-en/browse_thread/thread/4c8e4ac00ee529d2#
http://groups.goo
sends
the output. The point is this data does not get to the browser.
Thanks Doug.
On 8 oct, 20:45, "Knight, Doug" wrote:
> Hi David,
> Do you have your call inside a $(document).ready? It may be that in a high
> bandwidth environment your data loads completely before your cal
Hi,
I have a problem with an AJAX call. It's a long time since a got it. I
don't know how to deal with it. I have made tests and I don't know why
it's happening.
I have a post AJAX call. Just like next one:
$.post(MY_SCRIPT, { db_id: selected_data},
function(data){
Were you able to find a solution to get it working in Firefox?
Thank you
david
On Oct 1, 10:25 am, Vitaly Piven wrote:
> Hello David,
>
> I have similar problem . $.post() sends some "OPTIONS" request instead
> of expected "POST" (according to logs of web server
keyCode and which will get the same value, so anything different?
$(function() {
$(window).keydown(function(e) {
console.log(e.keyCode);
console.log(e.which);
});
});
Am I crazy to try this? I'm trying to see if I can put a slideshow
(any type.. I'd like to maybe just use a slideUp/slideDown shuffle of
photos onClick) in an accordian type navigation. Here's the page.
Tell me if i'm crazy, I'm new. Thanks in advance. =)
http://fromdavy.com/jtran/
The code below show [ td ], can I got the tagName like "td"?
1
console.log($('table:first tr').find(':first-child'));
If I want to preload the image, I can use $('').attr('src',
'xxx.jpg'), how to proload cur file?
On 9月25日, 下午9時22分, Karl Swedberg wrote:
> Hi David,
>
> You can combine events with a space in the first argument
> of .bind(): .bind('type1 typ
fantastic
On 9月25日, 下午9時22分, Karl Swedberg wrote:
> Hi David,
>
> You can combine events with a space in the first argument
> of .bind(): .bind('type1 type2 type3', function(event) { /*do
> something*/});
> Pass the event object into the anonymous function
I use $.post like so:
$.post("http://mydomain.com/some/webservice";, $.toJSON({ emailAddress:
emailAddress }), callback, "json");
this works great..the response of the POST is a json string and that
is used in the callback..now I added https:
$.post("https://mydomain.com/some/webservice";, $.to
event mousedown and mouseup and mouseout actually do the same thing,
how to combine it?
$('a#cursor')
.css({cursor: 'url(hand.cur), default'})
.click(function() {
return false;
})
.mousedown(function() {
$(this).css({cursor: 'url(grab.cur),
You don't need to use ckfinker. Ckeditor 3 just needs an upload and a browse
url. You can make them in your prefered language.
David
Op 18 sep 2009 5:53 PM schreef "Rama Vadakattu" :
you can't run CKFinder without a backend server.
http://ckfinder.com/download
Where d
Yup, it will be correct, so weird, why does Google's character wrong.
On 9月18日, 下午7時44分, lanxiazhi wrote:
> you may request the a.php directly in the browser ,and see if the charactors
> display correctly.
> 2009/9/18 David .Wu
>
>
>
>
>
> > it's no
it's not work actually.
On 9月18日, 下午6時19分, lanxiazhi wrote:
> Now you will need to change the header:
> header('Content-Type: text/xml; charset=UTF-8');
As the matter of fact, I execute the weather.php like weather.php?
weather=1
and the character was right, so the problem is happend when ajax
delivery.
On 9月18日, 下午2時39分, "David .Wu" wrote:
> I am using utf-8 too.
>
> On 9月18日, 下午2時27分, Steven Yang wrote:
>
> > I t
I am using utf-8 too.
On 9月18日, 下午2時27分, Steven Yang wrote:
> I think you might have to check the encoding that google is usingI think
> google should be using UTF-8. check the encoding on your side.
>
> On Fri, Sep 18, 2009 at 2:11 PM, David .Wu wrote:
>
> > But I
But I got one more question
http://www.google.com/ig/api?hl=zh-tw&weather=Changhua
This is the weather condition that response by my language, and the
value become garbage characters exclude English, any solution?
On 9月18日, 下午2時06分, "David .Wu" wrote:
> terrific!!! thanks a lot
terrific!!! thanks a lot
On 9月17日, 下午5時57分, lanxiazhi wrote:
> specify content type to xml:
>
> header("Content-type: text/xml");
> if ($_GET['weather']) {
> ...
This is the source code that I want to get the weather from Google
API, Firefox, Safari, Opera will work, but IE can't get the value, so
I did some test, and I found the reason
xml structure in php page
$.get({"a.php"}, '', function() {}, "html"); // all browser work
besides IE
$.get({"a.php"}, '
Left this out accidentally:
I have this on the modal box page being called:
But this does not change the
How do I reset a slider value after it has been declared from a
calling page?
I have a modal box, that has a form in it. I use this form to add/
edit items. Within that form, I have a slider from jquery UI. When I
click on a link to bring up the modal box and EDIT data, I'm having
trouble popu
Worked perfectly! Thanks Eric!
On Sep 9, 2:28 pm, Eric Martin wrote:
> 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(functio
Hi,
I hope someone is familiar with simpleModal. I'm trying to add some
effects to the popup, but keep getting errors when I add my "onOpen"
parameter. Here's my code. Thank!
$(document).ready(function() {
$('#create-user').click(function(e) {
e.pr
it's funny that I can use find to get res2's html, why?
filter res get res2 failed
find res failed res2 get
On 9月3日, 下午12時11分, "David .Wu" wrote:
> This is my testing php code, I found if I use filter, I can only get
> the content from first level of object, for exampl
This is my testing php code, I found if I use filter, I can only get
the content from first level of object, for example
12
I can get res's contents by filter, but I can't get res2's contents,
is that possible that get any thing I want through ajax?
12';
exit;
}
?>
http://www.w3.org/199
Is there any plugin can let me save the part of pag as pdf?
ction() {
jQuery.validator.addClassRules("firstname", {
required: true,
minlength: 2
});
$("#commentForm").validate({
messages: {
firstname: "Enter your firstname"
}
});
});
and the input is
Thank you very much.
On Aug 25, 8:59 am, Raju wrote:
> try this ,
>
> minlength="2" />
>
> Warm Regards,
>
> Mari Raj K,
> Bangalore
> +91 9740765135
>
> On Tue, Aug 25, 2009 at 11:26 AM, david wrote:
>
> > i played with the example.
How to declare other thing?
On 8月13日, 下午7時28分, Jon Banner wrote:
> $('#show').click(function(){
> $('#popup').fadeIn("slow", function(){
> $(other things).click(function(){
> $('#popup, #show').hide();
> });
>
There is a button control a div show or not, I want when you click
other things then the div will disappear too exclude div itself and
also the show button, how to do that?
[html]
.
..
[JavaScript]
$('#show').click(function(){
$('#popup').toggle();
});
a.php
..
var a = 123;
Can I catch variable a in b.php?
window.location.href = "file_url";
It seemed to me the best solution.
On 4 ago, 21:21, David wrote:
> Would it be a proper solution to use a hidden iframe and set the 'src'
> attribute with the file URL? That is, in the Post methodAJAXrequest,
> in its callbac
Would it be a proper solution to use a hidden iframe and set the 'src'
attribute with the file URL? That is, in the Post method AJAX request,
in its callback function, set the attribute.
On 4 ago, 20:12, elubin wrote:
> Don't do it in ajax. setup the link as a regular tag, and the
> browser sh
Hello,
I am doing a Port AJAX request to a PHP script on the server side.
This PHP makes a process and generates some files, which it compresses
in a .zip file and send it back to the client.
The point is I don't know how to manage the PHP zip in the Post ajax
methos 'success' function so the us
al Solutions, ibm.com
> > Phone: 1-276-206-8393
> > E-mail: mjlaw...@us.ibm.com
>
> > 'Whether one believes in a religion or not,
> > and whether one believes in rebirth or not,
> > there isn't anyone who doesn't appreciate kindness and compassion..'
>
al Solutions, ibm.com
> > Phone: 1-276-206-8393
> > E-mail: mjlaw...@us.ibm.com
>
> > 'Whether one believes in a religion or not,
> > and whether one believes in rebirth or not,
> > there isn't anyone who doesn't appreciate kindness and compassion..'
>
if I have 3 div, how to filter the div without class abc?
got it, I need to define it again after I use ajax, it will be more
safe.
On 7月31日, 下午3時25分, rupak mandal wrote:
> hi David, you have to bind "jump" in load callback function.
> $(function() {
> $.ajaxSetup({
> cache: false
> });
>
>
If I load b.html in firefox, alert(1) will work, but ont work in IE.
page a.html
http://www.w3.org/1999/xhtml";>
live
$(function() {
$.ajaxSetup({
cache: false
});
$('#btn').click(function() {
$('div:first').load('b.html');
I'm just reading some basic JQuery information, and I noticed that the
callback used by "get" always sends two parameters, the first being
the relevant data, and the second is a "status" value, which is always
the string "success". Looking at code samples on the web, I never saw
anyone bother to
quot;,"blue") won't work
> for your 1st case but works for the 2nd one.
>
> On Jul 30, 3:14 pm, "David .Wu" wrote:
>
>
>
> > I found these both work, so what is return for?
>
> >
> > $.fn.btnClick = function() {
> >
I found these both work, so what is return for?
$.fn.btnClick = function() {
this.click(function() {
alert('test');
});
}
$('input#btn').btnClick();
$.fn.btnClick = function() {
return this.click(function() {
alert('test');
});
hi András,
I suppose that after 2 weeks you found a solution, but i was in the
same situation and I was thinking "too bad there is no answer to that :
("
So, now that I've found the solution, here it goes, for the next one.
1. i create the form's validation rules:
$('#formId').validate({
If you are using JSON to construct your server request, why do you
need a params order?
I mean, in JSON format, you will have pairs detailing attribute name -
attribute value, so you will always know which parameter are you
dealing with.
On 18 jul, 15:02, NightFox wrote:
> Hello,
>
> I'm working
Hi,
my problem is, when I try to get the height or any other graphic
property of an element which is hidden (in my case, hidden in one
jQuery UI tab), I can't manage to get the height of the element. If I
do:
$("#my_element").outerHeight()
I get zero. Whereas If I do the same when the element i
which takes a dom element and returns the html
for example if i had a input filed a and i entered the value david, i
want that the function will return
On Jul 14, 3:05 am, Charlie wrote:
> still not sure if this is 2 tables and exactly what you are trying to do,
> david wrote:Dear Charlie,
Dear Charlie,
I mean if i have a table
and then i enter in a david and b michael
i want at the end
The same i want also for selected. Is there a way to make it ?
Thanks,
David
On Jul 13, 12:02 am, Charlie wrote:
> I think I confused myself and not sure what objective is...
ut it does not pass the table
with the html values inserted as i would like.
Has anyone an idea how to make it ?
Thanks,
David
the image is like
$('img').css('filter') will get
progid:DXImageTransform.Microsoft.AlphaImageLoader(src='aa.png')
Can I get the aa.png directly?
Hi all,
I wanted to ask which system you use to produce the jquery
documentation (core and plugins).
Thanks,
David
我今天有兩個放大縮小按鈕,想讓user按放大時用js把一個100x72的圖片
以寬為主每次加4px等比放大,反之亦然,但不知道小數位數該如何取才能正確控制高度
等比放大的公式為
I have two button to let user enlarge or reduce a 100px x 72px image
immediately on the page, 4px enlarge or reduce one time by width, but
I don't know how to control the height to make resize proportionally.
Hi,
There is a byte limit (2048) on the size of a url set in the server
configuration (I think specific t IIS but maybe apache too) , if you
dont have access to change these you will have to use POST to submit
your string.
On 26 Jun 2009, at 11:07, saa...@gmail.com wrote:
Hi
I am try
Thanks a bunch!
Looks like my JSON data is not correctly formatted or wrapped in the callback
function. Let me see if I can tweak it and see what happens.
David
> Date: Thu, 25 Jun 2009 16:24:54 -0700
> Subject: [jQuery] Re: Autocomplete - trouble with getJSON callback function
Thanks for the pointer, Etienne.
After some more tweaks and research, it seems I have to wrap the JSON object in
the call back function, like "jsonpx({json object}).
Hope this works!
> Date: Thu, 25 Jun 2009 21:19:17 -0400
> From: robillard.etie...@gmail.com
> To: jquery-en@googlegroups.co
ck or would like to contribute please don't hesitate
to contact us.
Thanks,
David Nolen (Lead ShiftSpace Developer)
test post
Hello all,
In general the plugin is great and I have a working solution using a
global variable to keep track of invalids because of this problem in
the library.
Short description, in the validator method that I added, I am calling
showErrors because the message needs to be dynamic. I call showE
Thanks.
"mir ist ein licht aufgegangen"
On Jun 16, 10:57 am, Jörn Zaefferer
wrote:
> Nope, not anymore. The check is now more explicit: if (response ===
> true) { ... } else { displayError }, where before if was just if
> (response) ...
>
> Jörn
>
> On Tue, Jun 1
Isn't it more a server side question ?
I would suggest that you try in the browser location bar to generate
the url (by hand) and see if there also the problem consists.
If yes then you have first to solve it on the server side.
I use in my scripts a session id which i pass through getjson as
argu
evaluated as true ?
Thanks in advance,
David
glecode.com/svn/trunk/plugins/validate/
>
> Jörn
>
> On Mon, Jun 15, 2009 at 11:49 AM, david wrote:
>
> > Dear all,
>
> > I wanted to ask how it is possible to get error messages from the
> > server till it is implemented in the remote method.
> > What do you
For alert : you must define on which event and then use the bind
function:
http://docs.jquery.com/Events/bind#examples
On Jun 15, 2:33 pm, david wrote:
> You mean the value of the radio button.
> please take a look
> athttp://snipplr.com/view/3372/radio-button-values-using-jquery/
&
You mean the value of the radio button.
please take a look at
http://snipplr.com/view/3372/radio-button-values-using-jquery/
On Jun 15, 2:17 pm, bharani kumar
wrote:
> Hi all ,
>
> Am little bit confusion in radio selection ,
>
> My doubt is very simple ,
>
> Having two radio button ,
>
> alert
the plugin and the remote method ?
I saw that there is a way of writing custom methods:
http://groups.google.com/group/jquery-en/browse_thread/thread/e2eb52101bd1fc24/622654c57434966a?lnk=gst&q=[validate]+2+fields#622654c57434966a
But how do i combine it with the ajax calls?
Thanks,
David
1 - 100 of 610 matches
Mail list logo