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
Say I have:
script type=text/javascript
$(function() {
$('.slideshow').cycle();
});
/script
div class=slideshow
div
img src=test.jpg /
pMy caption/p
/div
div
img src=test2.jpg /
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,
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.
!DOCTYPE html
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 mdmo...@gmail.com wrote:
Hello,
Is it possible with JQuery to find all words xyz in a text and
replace it by span
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
form method=post action=https://myserver.com/myWS;
input type=submit/
input type=hidden name=emailAddress value=a...@a.com /
input type=hidden name=password
a functional site with this type of navigation I
would be interested is seeing the HTML.
Sincerely
David Parker
!doctype html public -//w3c//dtd html 3.2 final//en
htmlheadtitleAdvisor Notes/title
% String context = request.getContextPath(); %
link type=text/css href=%=context
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
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
div id=myDiv
become
table border=1trtd1/tdtd2/tdtd3/td/trtrtd4/
tdtddiv id=myDiv/tdtd6/td/trtrtd7/tdtd8/
tdtd9/td/tr/table
This is my solution, but I want to ask for better one.
/**
* Wrap Table
*/
(function() {
$.fn.dramaWrapTable = function($obj) {
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('div id=' + jQuery(this).attr('id') + ID + '
class=uploadifyQueueItem\
input type=text /
div class=cancel\
.
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 = div id=\pageArticle\ + response + /div;
$(#pageArticle).html(bob);
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);
});
return
, 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
, by default an empty field is not validated(this is a
feature), but how may i force the plugin to make it ?
Thanks,
David
a 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
ul
li id=1/li
li id=2/li
li id=3/li
/ul
$(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
Thank you very much Kelly!
You solved my problem.
On Thu, Nov 26, 2009 at 12:59 AM, Kelly k...@njit.edu wrote:
Hi David,
I was able to recreate the same problem and fixed it. Try this:
html
head
titlejQuery Form Plugin/title
style type=text/css
form { background: #DFEFFC; border: 5px
that
is on the form's action. I expect to stay on the same page.
any help is greatly appreciated.
David
html
head
titlejQuery Form Plugin/title
style type=text/css
form { background: #DFEFFC; border: 5px solid #c5dbec; margin: 10px 0;
padding: 20px }
/style
script type=text/javascript src=../jquery
1.
img src=xxx style=display: none; id=img1
alert($('#img1').width());
2.
div style=display: none;
img src=xxx style=display: none id=img2
/div
alert($('#img2').width());
case 1 can get the width of the image, but case 2 will fail, how to
solve this problem?
1.
img src=xxx id=img1 style=display: none; /
$(window).load(function() {
alert($('#img1').width());
});
2.
div style=display: none;
img src=xxx id=img2 style=display: none; /
/div
$(window).load(function() {
alert($('#img2').width());
});
case 1 can get the dimension,
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?
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 garcia.narb...@gmail.com wrote:
Hi Doug,
yes, I am sure the data loads correctly
Thanks but this won't work for a input type=button .../ ?
David
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){
();
but when the page loads 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
Thank you all i've (you guys) crack it.
/
How do I change the value text on click ?
David
.
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
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 mach3...@gmail.com wrote:
Hi all,
I would like to implement a login functionality to my website. I've written
a login form like
this:http
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 ul list, with a bunch of li. One of the
li is actually a Flash object that has its own event handlers for
mouse clicks. However, the
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
div/div
div style=position: absolute/div
$('div').each(function() {
// How to know the div have position property or not?
});
=/storage/images/peace-7.jpg alt=
width=366 height=225 /');
}
});
slidesAdded = true;
};
});
Any advice would be helpful as I am a javascript/jquery novice.
Thanks!
-David
),'/stuff/css');return false;
PopupboxNM /a (I removed brackets in case they give problems to mail/
web programs)
Regards,
David
cycle function, or maybe during the
// reset common props before the next transition section?
Any help would be appreciated.
Thanks,
-David
Hi,
I have a related problem:
http://groups.google.com/group/jquery-en/browse_thread/thread/faf44301f4a22535/537df7c5a5b124bf?lnk=gstq=garcia.narbona#537df7c5a5b124bf
I have just also found this:
http://groups.google.com/group/jquery-en/browse_thread/thread/4c8e4ac00ee529d2#
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){
the output. The point is this data does not get to the browser.
Thanks Doug.
On 8 oct, 20:45, Knight, Doug dkni...@mitre.org 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 call is
triggered
Were you able to find a solution to get it working in Firefox?
Thank you
david
On Oct 1, 10:25 am, Vitaly Piven vitaly.pi...@gmail.com wrote:
Hello David,
I have similar problem . $.post() sends some OPTIONS request instead
of expected POST (according to logs of web server).
On 25 сен, 21
The code below show [ td ], can I got the tagName like td?
table
trtd1/td/tr
/table
console.log($('table:first tr').find(':first-child'));
fantastic
On 9月25日, 下午9時22分, Karl Swedberg k...@englishrules.com 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
If I want to preload the image, I can use $('img').attr('src',
'xxx.jpg'), how to proload cur file?
On 9月25日, 下午9時22分, Karl Swedberg k...@englishrules.com wrote:
Hi David,
You can combine events with a space in the first argument
of .bind(): .bind('type1 type2 type3', function(event
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;, $.toJSON
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 rama.vadaka...@gmail.com:
you can't run CKFinder without a backend server.
http://ckfinder.com/download
Where do
Yup, it will be correct, so weird, why does Google's character wrong.
On 9月18日, 下午7時44分, lanxiazhi lanxia...@gmail.com wrote:
you may request the a.php directly in the browser ,and see if the charactors
display correctly.
2009/9/18 David .Wu chan1...@gmail.com
it's not work actually
terrific!!! thanks a lot
On 9月17日, 下午5時57分, lanxiazhi lanxia...@gmail.com wrote:
specify content type to xml:
header(Content-type: text/xml);
if ($_GET['weather']) {
...
But I got one more question
http://www.google.com/ig/api?hl=zh-twweather=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 chan1...@gmail.com wrote:
terrific!!! thanks a lot
I am using utf-8 too.
On 9月18日, 下午2時27分, Steven Yang kenshin...@gmail.com 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 chan1...@gmail.com wrote
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 chan1...@gmail.com wrote:
I am using utf-8 too.
On 9月18日, 下午2時27分, Steven Yang kenshin...@gmail.com wrote:
I
it's not work actually.
On 9月18日, 下午6時19分, lanxiazhi lanxia...@gmail.com wrote:
Now you will need to change the header:
header('Content-Type: text/xml; charset=UTF-8');
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}, '',
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
Left this out accidentally:
I have this on the modal box page being called:
script type=text/javascript
!--
#slider({ value: 60 }); // this value is brought in from the
database, but you get the idea
// --
/script
But this does not change the
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) {
Worked perfectly! Thanks Eric!
On Sep 9, 2:28 pm, Eric Martin emarti...@gmail.com 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(function
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 chan1...@gmail.com 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 example
div id
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
div id=res1div id=res22/div/div
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?
?php
if
Is there any plugin can let me save the part of pag as pdf?
Thank you very much.
On Aug 25, 8:59 am, Raju raju3...@gmail.com wrote:
try this ,
input id=firstname name=firstname
minlength=2 /
Warm Regards,
Mari Raj K,
Bangalore
+91 9740765135
On Tue, Aug 25, 2009 at 11:26 AM, david michaelg...@gmail.com wrote:
i played with the example.html
=a /
Thanks in advance,
David
Here is the whole code
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
html xmlns=http://www.w3.org/1999/xhtml;
head
meta http-equiv=Content-Type content=text/html;
charset=ISO-8859-1 /
titlejQuery
How to declare other thing?
On 8月13日, 下午7時28分, Jon Banner banali...@googlemail.com wrote:
$('#show').click(function(){
$('#popup').fadeIn(slow, function(){
$(other things).click(function(){
$('#popup, #show').hide();
});
});
});
2009/8/13 David .Wu chan1
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]
html
.
input type=button id=show value=show
div id=popup style=display: none;
..
/div
/html
a.php
iframe src=b.php/iframe
..
script
var a = 123;
/script
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 garcia.narb...@gmail.com 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 callback function, set
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
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 elu...@yahoo.com wrote:
Don't do it in ajax. setup the link as a regular a tag, and
got it, I need to define it again after I use ajax, it will be more
safe.
On 7月31日, 下午3時25分, rupak mandal rupakn...@gmail.com wrote:
hi David, you have to bind jump in load callback function.
$(function() {
$.ajaxSetup({
cache: false
});
$('#btn
if I have 3 div, how to filter the div without class abc?
div/div
div class=abc/div
div/div
or not,
and whether one believes in rebirth or not,
there isn't anyone who doesn't appreciate kindness and compassion..'
Inactive hide details for David .Wu ---08/03/2009 09:37:41 AM---if I
have 3 div, how to filter the div without class abc?David .Wu
---08/03/2009 09:37:41 AM---if I have 3 div
or not,
and whether one believes in rebirth or not,
there isn't anyone who doesn't appreciate kindness and compassion..'
Inactive hide details for David .Wu ---08/03/2009 09:37:41 AM---if I
have 3 div, how to filter the div without class abc?David .Wu
---08/03/2009 09:37:41 AM---if I have 3 div
If I load b.html in firefox, alert(1) will work, but ont work in IE.
page a.html
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
html xmlns=http://www.w3.org/1999/xhtml;
head
meta http-equiv=Content-Type content=text/html;
for your 1st case but works for the 2nd one.
On Jul 30, 3:14 pm, David .Wu chan1...@gmail.com wrote:
I found these both work, so what is return for?
script
$.fn.btnClick = function() {
this.click(function() {
alert('test');
});
}
$('input#btn
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
I found these both work, so what is return for?
script
$.fn.btnClick = function() {
this.click(function() {
alert('test');
});
}
$('input#btn').btnClick();
/script
script
$.fn.btnClick = function() {
return this.click(function() {
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 nightfox...@gmail.com wrote:
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 is
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 input name=a value=david
On Jul 14, 3:05 am, Charlie charlie...@gmail.com wrote:
still not sure if this is 2 tables and exactly what you are trying to do
Dear Charlie,
I mean if i have a table
table
tr
td
input type=text value= name=a'
/td
tdinput type=text value= name=b
/td
/tr
/table
and then i enter in a david and b michael
i want at the end
table
tr
td
input type=text value=david name=a'
/td
tdinput type=text value=michael name=b
/td
/tr
, but 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 style=filter:progid:DXImageTransform.Microsoft.AlphaImageLoader
(src='aa.png') ...
$('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
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
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.com
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
or would like to contribute please don't hesitate
to contact us.
Thanks,
David Nolen (Lead ShiftSpace Developer)
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
test post
in advance,
David
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
.
But if i return a string, isn't it evaluated as true ?
Thanks in advance,
David
read.
What do you suggest ?
Thanks,
David
On Jun 15, 12:07 pm, Richard D. Worth rdwo...@gmail.com wrote:
See
http://docs.jquery.com/Discussion#Contacting_a_Mailing_List
Please note that this list is moderated (due to spam). Your first messages
may take a few hours to get through, but future
it with 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=gstq=[validate]+2+fields#622654c57434966a
But how do i combine it with the ajax calls?
Thanks,
David
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 bharanikumariyer...@gmail.com
wrote:
Hi all ,
Am little bit confusion in radio selection ,
My doubt is very simple ,
Having two
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 michaelg...@gmail.com wrote:
You mean the value of the radio button.
please take a look
athttp://snipplr.com/view/3372/radio-button-values-using
...[validate]+2+fields#622654c57434966a
But how do i combine it with the ajax calls?
Thanks,
David
Nice trick.
On 6月13日, 上午9時36分, brian bally.z...@gmail.com wrote:
On Fri, Jun 12, 2009 at 2:37 PM, amuhlouamysch...@gmail.com wrote:
putting it all together, you'd get something like:
$('#div1').replaceWith($('#div2')).remove();
first you find div1, then replace it with div2, then
1 - 100 of 570 matches
Mail list logo