Well I ported the search code to asp as the server is windows based and also
now also use SQL to hold the data as per the ideas from last week but I have
a problem.
I can run search.asp?q=ABC or search.php?q=ABC and both will output what
appears to be the same even down to the byte count. but
Ⓙⓐⓚⓔ schrieb:
I use the error callback, but it doesn't get called back when the xml is
malformed.
Do I need to use the complete callback??
Yes, I think so. Or the success callback. The reason is, that the
response has been successfully delivered, just with ill-formed XML.
You may need a
Hello everybody!
Please, help.
I have a this kind of jsp pages with its content
**!--index.jsp--**
%@ page language=java contentType=text/html; charset=UTF-8
pageEncoding=UTF-8%
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
Aways the simple things changed
Response.Write trim(objRS.Fields (LOC)) chr(13)
to
Response.Write objRS.Fields(LOC) vbcrlf
And it worked fine :-)
On 4/23/07, James Trix [EMAIL PROTECTED] wrote:
Well I ported the search code to asp as the server is windows based and
also now also use SQL
Hi all,
Here's a video preview of the new version of Cyberscore which I'm hoping
to launch in the summer:
http://www.cyberscore.net/cs4/cs4.wmv
It's a 21mb WMV file about 12 minutes in length with professional (arf!)
narration by yours truly. jQuery is going to be used quite heavily
I've been doing more diagnosis...
It seems to be just the .load() that is broken - I briefly tested it
with .get(), shifting the content loaded into the correct place with a
callback function. That worked, but the scripts I have in the file I'm
loading don't get executed, so my nice
And now for the fun part - I've figured it out.
Did anyone realise that you can't use TABLEs as targets for $.load, at
least in IE? That was what I was trying to do - changing it to a DIV,
with the table in question within that, fixed the issue...
On Apr 23, 10:08 am, MrTufty [EMAIL PROTECTED]
I would like to add a new param in preactio
function preSubmit(formData, jqForm, options)
{
ADD PARAM - METHOD= update
return true;
}
How ever i don't know the best way to do it. Any recomendation?
Try this:
formData.push({ name: METHOD, value: update });
I would like to add a new param in preactio
function preSubmit(formData, jqForm, options)
{
ADD PARAM - METHOD= update
return true;
}
Here's my crop plugin if you wantt o have a crack at adopting it:
http://remysharp.com/2007/03/19/a-few-more-jquery-plugins-crop-labelover-and-pluck/#crop
I also wrote a zoom/resize plugin - which you may be able to add to
the mix:
http://remysharp.com/wp-content/uploads/2007/04/zoom.js
Hope
Example of (how I would) overload a function:
jQuery.extend({
_trim: jQuery.trim,
trim: function(s) {
// do something to s first, then you might want to call original
function
this._trim.call(this, s);
}
});
Though if you're thinking of overloading functions like trim, wouldn't
it
Thanks!
On 23 abr, 12:06, Mike Alsup [EMAIL PROTECTED] wrote:
Try this:
formData.push({ name: METHOD, value: update });
I would like to add a new param in preactio
function preSubmit(formData, jqForm, options)
{
ADD PARAM - METHOD= update
return true;
}- Ocultar
Hi Kevin,
Assuming your transition is the $('div.box').hide() - then:
$('a').click(function() {
var url = this.href;
$('div.box').hide('slow', function() {
// called once transition is complete
setTimeout(function() { window.location = url; }, 2000); //
redirect 2 seconds after the
Hi Michiel,
It sounds like you're able to access the attribute using something
like:
var myVal = document.getElementById('#inputBox').defaultValue; //
similar to the w3cschools example
This is a DOM attribute rather than an XHTML attribute - which is why
the attr method won't return the value.
James,
Aways the simple things changed
Response.Write trim(objRS.Fields (LOC)) chr(13)
to
Response.Write objRS.Fields(LOC) vbcrlf
And it worked fine :-)
I was just getting ready to respond. The Autocomplete code is searching for
\n (chr(13) chr(10)) as the row delimiter--which is why
Sapphire,
script type=text/javascript
jQuery.noConflict();
jQuery(document).ready(function($j) {
$j(#box).corner(round 20px);
$j(#banner).corner(bottom 20px).corner(top bevel);
...
});
/script
Try:
jQuery(document).ready(
function (){
jQuery(#box).corner(round 20px);
Michael,
Hi all,
Here's a video preview of the new version of Cyberscore which I'm hoping
to launch in the summer:
http://www.cyberscore.net/cs4/cs4.wmv
Looks like you've put a lot of time and hard work into the project! Here's
to a little premature congratulations!
-Dan
Hi all,
If anybody can suggest a way of working around this bug, or fixing it,
I would be hugely grateful!
I've not had any response to my bug report and this bug is now the
only thing preventing me from finishing a project.
Any help would be very much appreciated!
Thanks
Simon
On Apr 13,
Dan G. Switzer, II wrote:
Here's a video preview of the new version of Cyberscore which I'm hoping
to launch in the summer:
http://www.cyberscore.net/cs4/cs4.wmv
Looks like you've put a lot of time and hard work into the project! Here's
to a little premature congratulations!
Thanks :)
I
The ready function gets a copy of the elements specified in the
selector--not a reference to the jQuery object.
That's not true. The ready fn is passed a jQuery object so that you
can alias it as needed. A common usage pattern is:
jQuery.noConflict();
jQuery(document).ready(function($) {
Yeah, that's just the shortcut for passing the user fn. You need to
look at the ready impl:
That was the problem--I didn't look at the actual event.js file to see what
ready() does. :) That'll teach me never to be lazy when looking up answers.
;)
-Dan
Pardon me for replying to my own thread but I can't seem figure out why it's
not getting accepted to the mailing list. I'm subscribed but I keep getting
email saying that it's still pending. I posted it 3 days ago so I'm thinking
that's not normal. By the way, if this gets on the mailing list, I
Hi!
I'm using Interface and Thickbox plugin for clientside image resizing
and when trying to resize image i'm getting an error:
*Error: jQuery.iUtil has no properties*
Script was already working and suddenly stoped. I got back to the last
working version and the error didn't disappeared!
Well it looks like jQuery and prototype will never play on the same page
That's not true either. jQuery and [insert library name here] *do*
work together. If you're still having a problem it is likely due to
the order in which you are including the libraries on your page.
If your code
Stuart,
Can you post a sample page?
Mike
Hi,
I have probleme binding generated content with the events I binded on
load:
my dom il like that
li id=nod12img id=imgnod12 src=imgplus.png /lablemy
nodeName/label
/li
In my app, a html / js tree, I can create node adding in the existing
li node:
ul subnod=12li id=nod41labelma new node
Mike, I don't immediately see any way to post a sample page since the
application is a intranet java webapp running on Tomcat using MyFaces. I
could possibly post the compiled output from the .jsp but I fear that may
mask the original problem. I could probably work around the odd modal
alignment
I just did an experiment where I added an explicit call to submit
after the block and it works in IE. I just added $
(#myForm).submit(); after the call to block. It still takes about 6
seconds for the modal to appear but this does show that the submit
event is getting clobbered somehow.
Stuart,
Is the form submitted via normal browser invocation or via ajax?
Also, it would be immensely helpful if you could put together a simple
html page (ignore the server component) that demonstrates the problem.
Mike
On 4/23/07, Stuart Batty [EMAIL PROTECTED] wrote:
Mike, I don't
I'm missing the blatantly obvious...
jQuery can .addClass(), .removeClass(), and .toggleClass().
How does one tell if an element has a class, or alternatively, get a
list of classes?
-wls
On Apr 23, 4:51 pm, wls [EMAIL PROTECTED] wrote:
I'm missing the blatantly obvious...
jQuery can .addClass(), .removeClass(), and .toggleClass().
How does one tell if an element has a class, or alternatively, get a
list of classes?
-wls
You can do:
if( $(#mydiv).is(.myclass) ) alert(has
I'm missing the blatantly obvious...
jQuery can .addClass(), .removeClass(), and .toggleClass().
The following code would alert true if the #myElement had the class of
myClass.
alert(
$(#myElement).is(.myClass)
);
-Dan
On 4/23/07, wls [EMAIL PROTECTED] wrote:
How does one tell if an element has a class
if( $(#myElement).is(.myClass) ) {
// do super cool stuff...
}
or alternatively, get a list of classes?
Try this:
var classes = $(#myElement).attr(class).split( );
--
Aaron Heimlich
Web Developer
The form is not submitted by ajax. It is a http post. I'll simplify the form
down to something manageable and post.
malsup wrote:
Stuart,
Is the form submitted via normal browser invocation or via ajax?
Also, it would be immensely helpful if you could put together a simple
html page
Hello Simon,
Yes, your onResize function can change the values of maxWidth. Here is
an example:
$('#resizeMe').Resizable(
{
minWidth: 50,
minHeight: 50,
maxWidth: 400,
maxHeight: 400,
// etc. etc.
Javascript has a built in scrollTo(x,y) function. One would only need
to get the .offsetTop of the element and viola. Ok well perhaps that
was over simplified, but at least there's some stuff to point you in
the right direction.
~Sean
If you can get by without the ability to click on the slider to get the
handle to move, you might try a real ugly hack.
You can put two handles on the slider, and then hide the first handle. Only
the first handle is affected by clicking on the slider.
It is ugly, but might solve your problem.
Kim, I think you are right.
$(this).parents(div.foo) should work.
The following might also work:
$(../div.foo,this)
But I haven't had time to punch that in myself yet.
~Sean
You could always use the excellent metaData plugin to extract
information about each test div via the 'class' or 'data' attribute...
things like the group it belongs to and what kind of control to
display...
Having said that, I agree about the more explicit and meaningful
labels and I think
Hi Sean,
Thanks for that... I'd tried that and it didn't work... however i
worked it backwards and found a handy little function that outputs the
content of an object and found what I was looking for... I actually
had to refer to them via:
this.resizeOptions.maxHeight
So I guess I'll have
Source HTML file:
---
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.1//EN http://www.w3.org/
TR/xhtml11/DTD/xhtml11.dtd
html xmlns=http://www.w3.org/1999/xhtml;
head
titleShow/Hide Test/title
script type=text/javascript src=js/jquery.js/script
script
I have two separate sortable divs on one page. Each sortable can not
interact with the other and can't seem to get this working properly.
IE the first sortable works fine, but the second doesn't.
FF Niether sortable works properly.
Should I have 2 separate sortable functions with different
Brian Cherne wrote:
jVariations is a developer tool that generates a control panel (with
checkboxes and radio buttons) to show and hide variations (aka corner
cases) in a single HTML template.
This is a very nice little tool!
One thing that would make it more useful for me would be to hide
Hi!
I'm using Interface and Thickbox plugin for clientside image resizing
and when trying to resize image i'm getting an error:
*Error: jQuery.iUtil has no properties*
Script was already working and suddenly stopped. I got back to the last
working version and the error didn't disappear!
Thanks for the suggestion!
On first try I've got some strange stuff happening if i click and
inadvertently drag a little. The hidden slider appears while being
dragged and then disappears again when let go... but maybe some
tweaking can solve that...
Maybe we could override the click event
howard chen schrieb:
I want to overload some core jQuery method, e.g. trim() method
any codes sample or recommendation to do this?
Save a reference to the original method in a closure and call that when
appropiate. An example for this can be found here:
I ran you code in FireFox and in IE6 and recieved no such error.
~Sean
I'd like to piggyback on this thread if I could. I'm writing for an
environment that may or may not have other libraries included in the
page. It's not something I can know beforehand. I also won't know in
what order libraries (if any) are loaded. What is the best, most
defensive approach to take
No, the elements don't exist at the same time.
On 4/23/07, Dan G. Switzer, II [EMAIL PROTECTED] wrote:
John,
No, I went straight to the container vs walking it with #left
div.sortables.
My question was does the selector #left div.sortables also retrieve
the
specific ID? I'm wonder if
On Apr 23, 4:36 am, Remy Sharp [EMAIL PROTECTED] wrote:
Though if you're thinking of overloading functions like trim, wouldn't
it be better to extend the String object?
Why doesn't jQuery extend existing objects (other than Object, of
course) and then reference those methods instead of
Yeah, I see the hidden slider too when clicking and dragging.
Looking at firebug, it looks like a copy of the handle is made while
sliding, and that is what is showing up.
Maybe there is a solution with unbind? May not even need to have the hidden
handle if we could just unbind the action from
Matt,
Is there any reason why it's not done this way? Perhaps there are
things I'm not thinking of :)
You can access the functions using $.trim(), etc. While I had no part in
planning, I suspect the decision to place all this code w/in the jQuery
object was to avoid having the jQuery code
Kelly,
I assume that your code is jQuery based. The easiest approach is to
simply scope your code like this:
(function($) {
// your code here
})(jQuery);
This lets you write in typical jQuery style (using the $ symbol)
without worrying about collisions with other libraries. Most jQuery
I tried to used your plugin 'jqModal' and run 'Example 3a'.
http://dev.iceburg.net/jquery/jqModal/
How to 'trigger' the function without 'click' it on view(link) ??
for example, i have condition(php) that have to call/trigger the function
like :
?
if ($i==1)
{
. a href=#
Lately I have been crazy about jquery.
Maybe I abused a little but, I made an experience wich consisted in
replacing all my css rules(well, some basic css understandable for
ie6 ) for more intelligent 'styling rules' expressed with jquery.
Wow, I had a PORTABLE intelligent style engine.
But
.jqmShow(); will execute the show.
$().ready(function() {
$('#ex3a').jqm({
trigger: '#ex3aTrigger',
overlay: 30, /* 0-100 (int) : 0 is off/transparent, 100 is opaque */
overlayClass: 'whiteOverlay'}).jqmShow();
});
--
Benjamin Sterling
http://www.KenzoMedia.com
lacroix1547 wrote:
[ ... ]
I tried to made a trivial ( or gory I am not sure anymore ) dom query
system with such dom static analysis to be used allong jquery. Nothing
very serious but results were there. Everything looked instantaneous.
This is very interesting. Is it something you can
On Apr 23, 2007, at 2:43 PM, Mike Alsup wrote:
However, as I
pointed our earlier, some older plugins still assume that $ == jQuery.
Thickbox is an older plugin that is known to rely on $ but Klaus
Hartl is currently rewritting it and a new and improved version will
be available soon(ish).
The
hi,
i've been playing with the effects built in jquery and had a lot of fun playing
with such flexibility. However, i could not achieve what i wanted: having an
element blink twice when its html content get loaded via ajax. The problem is
the blinking of course, jquery has mad ajax so easy.
i
Hi Benjamin,
How could i execute that 'javascript function'(without click) from my php ?
for example:
?php
// if condition is true then run 'Example 3a /plugin 'jqModal'
if ($i==1)
{
'execute- $('#ex3a').jqm . '
}
?
thanks for help,
Rudy
bmsterling wrote:
Think perhaps that jQuery rounded corners in one of those that needs to
be re-done, 'cos
no matter what order I call the libraries, whether I use
jQuery.noConflict() or not, it just
will not round the box corners.
The sole reason of trying to use prototype is cos of PeriodicalUpdater
which
How about callback = function() {
$(#mydiv).hide().show().hide().show()
}
-- Josh
- Original Message -
From: Alexandre Plennevaux
To: jquery-en@googlegroups.com
Sent: Monday, April 23, 2007 1:27 PM
Subject: [jQuery] Blink effect
hi,
i've been playing with the effects
For the record, recent version of the jQuery corner plugin do not have
a problem with $ usage.
http://dev.jquery.com/browser/trunk/plugins/corner/jquery.corner.js?format=txt
Mike
Think perhaps that jQuery rounded corners in one of those that needs to
be re-done, 'cos
no matter what order I
this is assuming that your php is wrapped in the javascript tag
?php
if($i == 1){
echo '$(#ex3a).jqm().jqmShow();';
}
?
of course this is not tested, but I am assuming you want this to show when
your page loads, so you would also put that code in the
$(document).ready(function(){}); statement.
no it does not work: it seems show() / hide() works on the width, height, or
opacity. but then i guess i could try to build this effect by using a timeout
and display:none / auto or something like that
_
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh
OK, after lunch I knocked together a quick and very dirty php page
that contains a form that submits back to itself. In my testing, this
form displays the much of the same behavior that I described
originally. Works fine in FF. Form doesn't submit in IE 6 or 7. This
example, however, does not
Hi,
I have a page with about 12000 links in it. A few of these links point
to anchors on the same page. A function should be called when those
intra page links are clicked.
$([EMAIL PROTECTED]).click(...) seems to be too slow for some browsers on
some machines if 12000 links need to be
In FireFox 2.0.0.3 and in IE7 after show and hide with speed parameter
opacity of element not restored to 1.
Before execute script:
pTest text/p
After execute script:
p style=display: block; opacity: 0.;Test text/p
See it in FireBug or in IE DOM explorer: element P is now with minimal
Hi,
I have this code
// loads modules for the selected tab.
function loadAllModules() {
$.get('draw_modules.php',
{},
function(data){
$(#container).empty().append(data);
Hi all,
I'm just getting started working with jQuery but have been impressed
thus far by its capabilities. Here is my problem:
I'm developing a Java application utilizing Struts and tiles which has
a main layout page that includes separate .jsp files for sub-pages.
I've been able to create a
You can just use the fadeOut and fadeIn methods to animate just the opacity:
$('#mydiv').fadeOut().fadeIn().fadeOut().fadeIn();
You could loop a set number of times with something like this:
var blinkCount = 2*2;// two blinks, 4*2 for four blinks
do {
The opacity is set to 0. to avoid a Firefox flicker back in 1.0.
It is no longer in the latest SVN and soon to be 1.3.
--
Brandon Aaron
On 4/23/07, d3 [EMAIL PROTECTED] wrote:
In FireFox 2.0.0.3 and in IE7 after show and hide with speed parameter
opacity of element not restored to 1.
PeriodicalUpdater is actually pretty easy to extract from Prototype, or to
simply rewrite yourself. It's just a wrapper around the
window.setInterval method, combined with the equivalent of $.load().
In fact, I think there's a plugin that does just that, called jHeartbeat.
Check the plugins
But in IE opacity draw with DirectX and not support smoothing. This
text when is not smoothed.
On 24 апр, 00:21, Brandon Aaron [EMAIL PROTECTED] wrote:
The opacity is set to 0. to avoid a Firefox flicker back in 1.0.
It is no longer in the latest SVN and soon to be 1.3.
--
Brandon Aaron
Alessandro,
I have a page with about 12000 links in it. A few of these links point
to anchors on the same page. A function should be called when those
intra page links are clicked.
The bottom line is anything you do to parse 12,000 DOM objects on the same
page is going to be slow--even more so
Explicitly set a background color on the text to try and prevent the
text smoothing issue. Otherwise you can checkout interface plugin as I
believe it has some color animating options which might suit your
needs better.
http://interface.eyecon.ro/
--
Brandon Aaron
On 4/23/07, d3 [EMAIL
OK, after lunch I knocked together a quick and very dirty php page
that contains a form that submits back to itself. In my testing, this
form displays the much of the same behavior that I described
originally. Works fine in FF. Form doesn't submit in IE 6 or 7. This
example, however, does not
i just found out the interface plugin has the pulsate effect :)
grreat!
_
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh
Nathanson
Sent: lundi 23 avril 2007 20:42
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Blink effect
How about
Eli,
I'm trying to use extjs to replace all the popup windows in my system
(currently using thickbox) to change pref, add members etc'.
You might find quicker help over at the Ext JS forums:
http://extjs.com/forum/
There's a lot of expertise over there and it's all specific to Ext JS. I
Hi,
thanks for the suggestions.
While not unobtrusive, you'd be better off generated that content w/embedded
onclick events.
This seriously goes against the jQuery philosophy, but DOM parsing is just
sluggish when you have thousands of elements.
I could live with not being 100% philosophy
I am experiencing spacing issues with my divs that is apparently fixed
when I delete white space between DIV's using firebug.
I am having trouble with jEditable/textarea that seems to be related to your
issue. When I do a POST, and the textarea kicks back to the div, a space
and two
figured it out: I had 'nbsp;' between empty div's that get filled after the
page loads and those were the culprits.
I don't remember why I put those there, but I thought it was because the
browsers don't like empty div's. Anyone know anything about this?
- Original Message
From:
I decided to make this a more polished plugin. You can find the new
version here:
http://malsup.com/jquery/gfeed/
Mike
Excellent Mike. I've started using it in my application as a feed
reader, was very easy to implement with a backend for defining feeds,
I just loop them out and include
I know this is for Dev, but I have not been approved for that list yet...
parent() - returns one level up
parents() - returns multiple levels up
children() - returns one level down
? - returns multiple levels down
Q: is this a missing feature or is there a reason to not have a function in
There's not explicit function for that but you could just us '*'. For example:
var something = $('#something');
var children = something.children();
var childrenAndGrandchildren = something.find('*');
I'd hazard a guess that the reason there is no
childrenAndGrandchildren() function
Have you thought of starting with a blank page and filling it with ajax,
then only showing the items based on the #name??? then you would only have
to bind 1/26 of them at a time.
On 4/23/07, Alessandro Portale [EMAIL PROTECTED] wrote:
Hi,
thanks for the suggestions.
While not unobtrusive,
now I have this for the browsers I use, I wonder what IE would whine about!
var surveyComplete = function(xrh, status){
var xml = xrh.responseXML
if (status!=success)
form.html(h1 + status.toUpperCase() + requesting:a
href=' + url + ' + url +/a/h1)
Very cool, Mike! Excellent job.
I started playing around with the Google Feed API this weekend. Lots
of fun.
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Apr 23, 2007, at 9:02 PM, Mike Alsup wrote:
I decided to make this a more polished plugin.
Hi,
For some reason, my call to getScript isn't working. I'm calling
$.getScript(draw_modules_script.php, function(){
alert(Script loaded and executed.);
});
The alert statement is never called. I have verified the file name is
correct
Hi Guys,
i have following problem: i have a div (#lineups) that is updated but
fails for an second update, fired by the same event.
jQuery('div.playerContainer').Droppable({
accept: 'player',
tolerance: 'intersect',
onDrop: function(drag){
jQuery.ajax({
type: 'POST',
90 matches
Mail list logo