[jQuery] Regular Expressions

2006-12-28 Thread himynameiznate

This may have been answered somewhere, but alas, I cannot find it.
I would like to use a regular expression to filter through certain dom
elements, but Im not sure if jQuery takes regex.
Also, it might be possible with attribute selectors, but Im not sure how.

I want to grab all divs with an ID that starts with col_ (easy enough with
$('[EMAIL PROTECTED]')), but also ends with a number.
The regex would look something like this:
/^col_[0-9]/

Any ideas?
Thanks in advance, 
Nate
-- 
View this message in context: 
http://www.nabble.com/Regular-Expressions-tf2890072.html#a8073967
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] AJAX problems - ajaxSubmit Form-PlugIn

2006-12-28 Thread Olaf Bosch
Mike Alsup schrieb:
 1. the script duplicates the formsheet of Eintragen when you open and
 close it again and again..
 
 Olaf,
 
 It looks like you're returning the entire HTML document in both the
 IFrame and the return from the form submit?  For the form submit
 (save.php) try returning only the document fragment that needs to be
 inserted into the existing document.

Thank you Mike for the support on PM. I follow you do the right direction.

If still somebody liked to look:
http://olaf-bosch.de/power4/news.php

Thank you, i learning further JQuery

Excuse for the late answer, and bad in English anyhow ;)

-- 
Viele Grüße, Olaf

---
[EMAIL PROTECTED]
http://olaf-bosch.de
www.akitafreund.de
---

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] dynamic plugin loading

2006-12-28 Thread Jip

Hello all, this is my first posting, although I've been watching you for some
time :)

I'm trying to develope a small piece for dynamic loading in jquery, wich
loads the .js and .css source files on the fly without any special markup in
the html page. Probably you've seen this before (dojo.require and siimilar)
The problem is that it seems that the browser doesn't wait until the script
(the plugin) is finished loading, and give errors when I try to use it.
For example, in $(document).ready( ...
  jQuery.require('jquery.accordion');
  $('#myaccordion').Accordion();

gives an error, but later, if I try the 2nd line in firebug, the plugin
works as expected. I've tried in Firefox 2 and IE7 with same results. I know
that is a problem with the synchronism, but I don't know how to resolve it.

here is the code:

(function(jq){

jq.extend({
require: function(plugin, o){
o = jq.extend({
css: false,
jsbase: '',
cssbase: '',
wait: true  
}, o || {});

var src = o.jsbase + '/' + plugin + '.js';
jq.getScript(src);  
   // here it should wait, but how?

if(o.css){
var c = document.createElement('link'); 
c.type = 'text/css';
c.rel = 'stylesheet';
c.href = o.cssbase + '/' + plugin + '.css';
jq('head')[0].appendChild(c);
}   
}
}); 

})(jQuery);

Any ideas?
Thanks in advance.

Jip
-- 
View this message in context: 
http://www.nabble.com/dynamic-plugin-loading-tf2889880.html#a8073485
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Auto scrolling the page to a specific point - like anchor links with animation

2006-12-28 Thread Andy Matthews
I've seen some sites (not sure if they're jQuery powered or not) that have a
page scroll triggered where the window auto-scrolls down to a certain point
on the page. Sort of link using an anchor link, but you can actually see the
page moving.

I'm wanting to do that as part of a form I'm working on, but I can't find
anything like that in the API or in the plugins page. I might be searching
for the wrong term, but is jQuery able to do this, and if so, what code
snippet/plugin should I be looking at?

!//--
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Clearing all form field values

2006-12-28 Thread Andy Matthews
I'm going to be submitting a form via AJAX and I'd like to be able to clear
all of the fields afterwards. I could obviously do it by referencing each
field manually, but I'm wondering if it's possible to do something like
this:
$('#myForm').clearFields();

or something to that effect. I just want to reset all fields to their
original values. Is this possible using jQuery, without having to do each
field individually?

!//--
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Auto scrolling the page to a specific point - like anchor links with animation

2006-12-28 Thread David Duymelinck
Andy Matthews schreef:
 I've seen some sites (not sure if they're jQuery powered or not) that have a
 page scroll triggered where the window auto-scrolls down to a certain point
 on the page. Sort of link using an anchor link, but you can actually see the
 page moving.
   
it's a part of the interface plugin. scrollto it the name of the function

-- 
David Duymelinck

[EMAIL PROTECTED]


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Clearing all form field values

2006-12-28 Thread Kelvin Luck
Does this work (presuming the form has an id of myForm)?

$('#myForm')[0].reset();


Andy Matthews wrote:
 I'm going to be submitting a form via AJAX and I'd like to be able to clear
 all of the fields afterwards. I could obviously do it by referencing each
 field manually, but I'm wondering if it's possible to do something like
 this:
 $('#myForm').clearFields();
 
 or something to that effect. I just want to reset all fields to their
 original values. Is this possible using jQuery, without having to do each
 field individually?

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Clearing all form field values

2006-12-28 Thread Guntur N. Sarwohadi

from what i know, the closest is using the 'each' method.. like:

$(form)
.children()
.each(function() {
$(this).val();
});

or something close to that. hope that helps

[g]

On 12/28/06, Andy Matthews [EMAIL PROTECTED] wrote:


I'm going to be submitting a form via AJAX and I'd like to be able to
clear
all of the fields afterwards. I could obviously do it by referencing each
field manually, but I'm wondering if it's possible to do something like
this:
$('#myForm').clearFields();

or something to that effect. I just want to reset all fields to their
original values. Is this possible using jQuery, without having to do each
field individually?

!//--
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Clearing all form field values

2006-12-28 Thread Dave Methvin
 I just want to reset all fields to their original values. 

Does the standard form.reset method do what you want?

 $('#myForm')[0].reset();


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Auto scrolling the page to a specific point - like anchor links with animation

2006-12-28 Thread Andy Matthews
Excellent! Thank you David!

!//--
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of David Duymelinck
Sent: Thursday, December 28, 2006 8:05 AM
To: jQuery Discussion.
Subject: Re: [jQuery] Auto scrolling the page to a specific point - like
anchor links with animation


Andy Matthews schreef:
 I've seen some sites (not sure if they're jQuery powered or not) that have
a
 page scroll triggered where the window auto-scrolls down to a certain
point
 on the page. Sort of link using an anchor link, but you can actually see
the
 page moving.

it's a part of the interface plugin. scrollto it the name of the function

--
David Duymelinck

[EMAIL PROTECTED]


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Clearing all form field values

2006-12-28 Thread Andy Matthews
Haven't tried it. I didn't know it was there. Thanks guys!

!//--
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Dave Methvin
Sent: Thursday, December 28, 2006 8:07 AM
To: 'jQuery Discussion.'
Subject: Re: [jQuery] Clearing all form field values


 I just want to reset all fields to their original values. 

Does the standard form.reset method do what you want?

 $('#myForm')[0].reset();


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] dynamic plugin loading

2006-12-28 Thread Mike Alsup
 For example, in $(document).ready( ...
   jQuery.require('jquery.accordion');
   $('#myaccordion').Accordion();

  jq.getScript(src);
  // here it should wait, but how?

That won't wait, obviously, because it's an async call.  You either
need to use synchrnous ajax (like dojo) or use callbacks.

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] googlemaps plugin

2006-12-28 Thread Vincent Majer
Hi,

I'm working on the plugin for jquery :
http://olbertz.de/jquery/googlemap.html

it's really great with firefox.. but it doesn't work in IE...

I've made some tests and it seems that the problem comes from this 
foreach  :

 locations.forEach(function(element, index, array) {
 var marker = new GMarker(new GLatLng(element.latitude, 
element.longitude), {title: element.name});
 map.addOverlay(marker);
 GEvent.addListener(marker, 'click', function() {
 marker.openInfoWindowHtml('Name: b'+element.name+'/bbr 
/Latitude: b'+element.latitude+'/bbr /Longitude: 
b'+element.longitude+'/b');
 });
 link = 'a href=# 
onclick=moveMapTo('+index+')'+element.name+'/abr /';
 $('p#location_list').append(link); 
 });


locations.forEach seems to cause problems with IE...
Is there a workaround ?

thanks in advance




___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Auto scrolling the page to a specific point - like anchor links with animation

2006-12-28 Thread Andy Matthews
Okay...

I've downloaded the ifxscroll.js file and I've set it up after the call to
jQuery.js in my code. I've got this line:

$('#ST').ScrollTo(800);

And it's giving me this error:

jQuery.iUtil is null or not an object.

I'm not using Prototype so I haven't reassigned the $ call. Any ideas
anyone? This is mostly fluff, but I'd like to get it working if possible.

!//--
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of David Duymelinck
Sent: Thursday, December 28, 2006 8:05 AM
To: jQuery Discussion.
Subject: Re: [jQuery] Auto scrolling the page to a specific point - like
anchor links with animation


Andy Matthews schreef:
 I've seen some sites (not sure if they're jQuery powered or not) that have
a
 page scroll triggered where the window auto-scrolls down to a certain
point
 on the page. Sort of link using an anchor link, but you can actually see
the
 page moving.

it's a part of the interface plugin. scrollto it the name of the function

--
David Duymelinck

[EMAIL PROTECTED]


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Auto scrolling the page to a specific point - like anchor links with animation

2006-12-28 Thread David Duymelinck
Andy Matthews schreef:
 Okay...

 I've downloaded the ifxscroll.js file and I've set it up after the call to
 jQuery.js in my code. I've got this line:

 $('#ST').ScrollTo(800);

 And it's giving me this error:

 jQuery.iUtil is null or not an object.

   
iutil is a different js file. most of the functions of interface rely on 
it to get things like height, width, ...

-- 
David Duymelinck

[EMAIL PROTECTED]


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Auto scrolling the page to a specific point - like anchor links with animation

2006-12-28 Thread Andy Matthews
Ah...so I need to have that one in addition to the scroll plugin?

!//--
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of David Duymelinck
Sent: Thursday, December 28, 2006 8:46 AM
To: jQuery Discussion.
Subject: Re: [jQuery] Auto scrolling the page to a specific point - like
anchor links with animation


Andy Matthews schreef:
 Okay...

 I've downloaded the ifxscroll.js file and I've set it up after the call to
 jQuery.js in my code. I've got this line:

 $('#ST').ScrollTo(800);

 And it's giving me this error:

 jQuery.iUtil is null or not an object.


iutil is a different js file. most of the functions of interface rely on
it to get things like height, width, ...

--
David Duymelinck

[EMAIL PROTECTED]


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Auto scrolling the page to a specific point - like anchor links with animation

2006-12-28 Thread Andy Matthews
Hmmm...

I'm no longer getting an error, but it still doesn't appear to be working.

I copied all of the files from the demo of the scroll plugin and placed them
in my code, in the same order.

!//--
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of David Duymelinck
Sent: Thursday, December 28, 2006 8:46 AM
To: jQuery Discussion.
Subject: Re: [jQuery] Auto scrolling the page to a specific point - like
anchor links with animation


Andy Matthews schreef:
 Okay...

 I've downloaded the ifxscroll.js file and I've set it up after the call to
 jQuery.js in my code. I've got this line:

 $('#ST').ScrollTo(800);

 And it's giving me this error:

 jQuery.iUtil is null or not an object.


iutil is a different js file. most of the functions of interface rely on
it to get things like height, width, ...

--
David Duymelinck

[EMAIL PROTECTED]


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Transmit form contents, receive response...best method?

2006-12-28 Thread Mike Alsup
 I feel that it's easier to simply return the HTML string for the element
 that will get appended. Your example seems to return JSON (a javascript
 object right?). What are your thoughts on that?

It all depends on what you need to do with the returned data.  If HTML
makes things easier for you then using HTML makes great sense.  If
some sort of data manipulation needs to happen on the client then json
can be useful.

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Auto scrolling the page to a specific point - likeanchor links with animation

2006-12-28 Thread Andy Matthews
Karl...

When I try to use the interactive builder, I select the FX - Scroll plugin,
click the save your selection link, then save the file. But when I open
it, the file is blank except for the information at the top.

!//--
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-

  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Karl Swedberg
  Sent: Thursday, December 28, 2006 9:01 AM
  To: jQuery Discussion.
  Subject: Re: [jQuery] Auto scrolling the page to a specific point -
likeanchor links with animation


  Hi Andy,


  I think the ifxscroll.js is dependent on another component of the
Interface plugin, so grabbing that single .js file won't work. Instead, go
to http://interface.eyecon.ro/download and use the interactive download
builder. When you go to save it, the file name should default to
interface.js, which of course you can change once it's saved on your
machine.


  If you still have problems, let me know and I'll send a copy of it
off-list.





  --Karl
  _
  Karl Swedberg
  www.englishrules.com
  www.learningjquery.com






  On Dec 28, 2006, at 9:38 AM, Andy Matthews wrote:


Okay...


I've downloaded the ifxscroll.js file and I've set it up after the call
to
jQuery.js in my code. I've got this line:


$('#ST').ScrollTo(800);


And it's giving me this error:


jQuery.iUtil is null or not an object.


I'm not using Prototype so I haven't reassigned the $ call. Any ideas
anyone? This is mostly fluff, but I'd like to get it working if
possible.


!//--
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of David Duymelinck
Sent: Thursday, December 28, 2006 8:05 AM
To: jQuery Discussion.
Subject: Re: [jQuery] Auto scrolling the page to a specific point - like
anchor links with animation




Andy Matthews schreef:
  I've seen some sites (not sure if they're jQuery powered or not) that
have
a
  page scroll triggered where the window auto-scrolls down to a certain
point
  on the page. Sort of link using an anchor link, but you can actually
see
the
  page moving.


it's a part of the interface plugin. scrollto it the name of the
function


--
David Duymelinck

[EMAIL PROTECTED]




___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/




___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Transmit form contents, receive response...best method?

2006-12-28 Thread Andy Matthews
Ah...I see...

That makes perfect sense.

!//--
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Mike Alsup
Sent: Thursday, December 28, 2006 9:08 AM
To: jQuery Discussion.
Subject: Re: [jQuery] Transmit form contents, receive response...best
method?


 I feel that it's easier to simply return the HTML string for the element
 that will get appended. Your example seems to return JSON (a javascript
 object right?). What are your thoughts on that?

It all depends on what you need to do with the returned data.  If HTML
makes things easier for you then using HTML makes great sense.  If
some sort of data manipulation needs to happen on the client then json
can be useful.

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] googlemaps plugin with IE ?

2006-12-28 Thread David Duymelinck
vince schreef:

 locations.forEach seems to cause problems with IE...
 Is there a workaround ?

 thanks in advance
   
maybe this can help 
http://www.ejball.com/EdAtWork/CommentView,guid,c2d0f53f-afc7-4831-b60e-f4354ae3f7fa.aspx

mozilla is a few versions of javascript ahead of IE, it works in 
javascript 1.6. so you can pray IE will adopt it soon :)

-- 
David Duymelinck

[EMAIL PROTECTED]


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] dynamic plugin loading

2006-12-28 Thread París Prieto , José Ignacio
 But if you only need to include/require other JS files once at the beginning 
 and not in the callback functions for inclusions, then you should be able to 
 use my method.

That's the case, the callback should be enough for me. I'll try this and keep 
you informed. 

Many thanks
Jip







___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] googlemaps plugin with IE ?

2006-12-28 Thread vince

thanks for the link ...
But i wonder how i can rewrite the code with this ForEach function.. it's
not the same syntax ? sorry but i'm not very good with javascript.

here is the code :

locations.forEach(function(element, index, array) {
var marker = new GMarker(new GLatLng(element.latitude,
element.longitude), {title: element.name});
map.addOverlay(marker);
GEvent.addListener(marker, 'click', function() {
marker.openInfoWindowHtml('Name: '+element.name+'br /Latitude:
'+element.latitude+'br /Longitude: '+element.longitude+'');   
});
link = ' # '+element.name+' br /';
$('p#location_list').append(link);  
});

how can i rewrite this to use the ForEach function u've suggested ?

-- 
View this message in context: 
http://www.nabble.com/googlemaps-plugin-with-IE---tf2890722.html#a8076079
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] dynamic plugin loading

2006-12-28 Thread Christof Donat
Hi,

 I'm trying to develope a small piece for dynamic loading in jquery, wich
 loads the .js and .css source files on the fly without any special markup
 in the html page.

For .js files you can use jspax (www.jspax.org). I use it to load jQuery and 
plugins on demand (actually I made it for that purpouse at the beginning). 
For .css I just had that question from a friend of mine and made a small set 
of jsPax-packages for him:

---cssloader.js
$using('xBrowser.simulateXMLHttpRequest',function() {
$package('cssloader', {
base: '/',
load: function(css) {
      var x = new XMLHttpRequest();
      x.open('GET',cssloader.base+css+'.css');
      
  x.onload = function() {
var e = document.createElement(style);
e.type=text/css;
e.appendChild(document.createTextNode(x.responseText));
document.getElementsByTagName(head)
[0].appendChild(e);
  };
  x.send('');
}
});
});
---

---xBrowser/simulateXMLHttpRequest.js
var impl = 'native';
if( !window.XMLHttpRequest ) impl = (window.ActiveX)?'activex':'iframe';
$using('xBrowser.simulateXMLHttpRequest.'+impl,function() {});
---

---xBrowser/simulateXMLHttpRequest/native.js:
$package('xBrowser.simulateXMLHttpRequest.native',{});
---

---xBrowser/simulateXMLHttpRequest/activex.js:
var lib = /MSIE 5/.test(navigator.userAgent) ? Microsoft : Msxml2;
window.XMLHttpRequest = function() {
  var rval = new ActiveXObject(lib + .XMLHTTP);
  rval.onreadystatechange = function() {
    if(x.readystate == 4) rval.onload();
  };
  return rval;
};
$package('xBrowser.simulateXMLHttpRequest.activex',{});
---

use them like this:

$using('cssloader', function(){
cssloader.base='https://www.example.com/styles/';
cssloader.load('mywonderfull');
...
});

I have not tested the code, but he did not complain up to now ;-)

 The problem is that it seems that the browser doesn't wait until 
 the script (the plugin) is finished loading

Yes, you are using assynchronous XMLHttpRequests. JsPax does that as well, but 
it can cope with that by usein callback functions. JSAN does use synchronous 
XMLHttpRequests to circumvent that problem.

Christof

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Getting the val() or html() of an FCKEditor field using jQuery

2006-12-28 Thread Andy Matthews
I thought this would be fairly straightforward but it appears to be causing
me some distress. I need to get the value of an FCKEditor field for
transmission using AJAX. However, when I reference the fields ID and call
the val() method, I get a blank result when there is definitely content in
it. Can someone shed some light on this for me? Below is the HTML that is
generated when I instantiate the FCKEditor. Here's the link of jQ that I'm
using...uber-basic:

var content = $('#art_article').val();

I've even tried getting the value of a field with a name attribute of
art_article like so:

var content = $('input[name=art_article]').val();

div
input type=hidden id=art_article name=art_article value=
style=display:none /
input type=hidden id=art_article___Config value= style=display:none
/
iframe id=art_article___Frame
src=/admin/includes/fckeditor/editor/fckeditor.html?InstanceName=art_articl
eamp;Toolbar=SmallSet width=100% height=250 frameborder=no
scrolling=no/iframe
/div

Any ideas?

!//--
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] googlemaps plugin with IE ?

2006-12-28 Thread David Duymelinck
vince schreef:
 thanks for the link ...
 But i wonder how i can rewrite the code with this ForEach function.. it's
 not the same syntax ? sorry but i'm not very good with javascript.

 here is the code :

 
 link = ' # '+element.name+' br /';
 $('p#location_list').append(link);
 });

   
if think if you use

function ForEach(array, fn)
{
  for (var n = 0; n  array.length; n++)
fn(array[n]);
}

you have to rewrite it like this

ForEach(locations,function(element, index, array) {
var marker = new GMarker(new GLatLng(element.latitude,
element.longitude), {title: element.name});
map.addOverlay(marker);
GEvent.addListener(marker, 'click', function() {
marker.openInfoWindowHtml('Name: '+element.name+'br /Latitude:
'+element.latitude+'br /Longitude: '+element.longitude+'');   
});



-- 
David Duymelinck

[EMAIL PROTECTED]


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] googlemaps plugin with IE ?

2006-12-28 Thread vince

Thanks very much, it works.. !!


-- 
View this message in context: 
http://www.nabble.com/googlemaps-plugin-with-IE---tf2890722.html#a8076808
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Auto scrolling the page to a specific point - likeanchor links with animation

2006-12-28 Thread Karl Swedberg

You're right. Sorry about that, Andy.

Tried to attach a tested copy of scrollto.js, but the mailserver  
rejected it. So, you can find it here now:

http://www.karlswedberg.com/scripts/scrollto.js

Hope that helps.


--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On Dec 28, 2006, at 10:21 AM, Andy Matthews wrote:


Karl...

When I try to use the interactive builder, I select the FX - Scroll  
plugin, click the save your selection link, then save the file.  
But when I open it, the file is blank except for the information at  
the top.


!//--
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
On Behalf Of Karl Swedberg

Sent: Thursday, December 28, 2006 9:01 AM
To: jQuery Discussion.
Subject: Re: [jQuery] Auto scrolling the page to a specific point -  
likeanchor links with animation


Hi Andy,

I think the ifxscroll.js is dependent on another component of the  
Interface plugin, so grabbing that single .js file won't work.  
Instead, go to http://interface.eyecon.ro/download and use the  
interactive download builder. When you go to save it, the file name  
should default to interface.js, which of course you can change once  
it's saved on your machine.


If you still have problems, let me know and I'll send a copy of it  
off-list.



--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On Dec 28, 2006, at 9:38 AM, Andy Matthews wrote:


Okay...

I've downloaded the ifxscroll.js file and I've set it up after the  
call to

jQuery.js in my code. I've got this line:

$('#ST').ScrollTo(800);

And it's giving me this error:

jQuery.iUtil is null or not an object.

I'm not using Prototype so I haven't reassigned the $ call. Any ideas
anyone? This is mostly fluff, but I'd like to get it working if  
possible.


!//--
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-

-Original Message-
From: [EMAIL PROTECTED] [mailto:discuss- 
[EMAIL PROTECTED]

Behalf Of David Duymelinck
Sent: Thursday, December 28, 2006 8:05 AM
To: jQuery Discussion.
Subject: Re: [jQuery] Auto scrolling the page to a specific point  
- like

anchor links with animation


Andy Matthews schreef:
I've seen some sites (not sure if they're jQuery powered or not)  
that have

a
page scroll triggered where the window auto-scrolls down to a  
certain

point
on the page. Sort of link using an anchor link, but you can  
actually see

the

page moving.

it's a part of the interface plugin. scrollto it the name of the  
function


--
David Duymelinck

[EMAIL PROTECTED]


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] .load() not executing javascript code in IE

2006-12-28 Thread Surge Mitchell

Thanks a lot. You code fixed it in IE but broke firefox, but it using your
code I made it so that I could determine if the php script generating the
code should add script tags on it when it does its request and had it do a
.load function instead.

script language=JavaScript type=text/JavaScript
  
function MyReload()
{
//$(div#myMenuID).hide(fast);

//$(div#filetreescript).load(/client/secure/filetree.php);
if (window.execScript)
$.get ( '/client/secure/filetree.php',
function( rtnTxt){
installScript(rtnTxt);
}
);   
else

$(div#filetreescript).load(/client/secure/filetree.php?code=ff);
//$(div#myMenuID).show(slow);   

};


function installScript( script )
{
if (!script)
return;
//  Internet Explorer has a funky execScript method that 
makes this
easy
window.execScript( script );
} 
/script



Kevin Pirkl wrote:
 
 Internet Explorer wont execute dynamic code in that manner.  You have two
 options...  (I like the second one better.)  I tested through the second
 solution and it appears to work fine...
 
 1 Dynamic script head tag creation 
 
 // Thanks to
 http://www.bluishcoder.co.nz/2006/12/cross-domain-json-with-fjsc.html for
 the code
 $(head/script#jsonrequest*).remove(); 
 var request = testxml.htm;
 var script = document.createElement(script); 
 script.setAttribute(type, text/javascript);
 script.setAttribute(src, request + '?noCacheIE=' + (new
 Date()).getTime());
 script.setAttribute(charset, UTF-8); 
 script.setAttribute(id, jsonrequest + scriptCounter);
 $(head).append(script);
 scriptCounter++;
 
 
 2 Or the followng installScript method
 (http://nerd.newburyportion.com/2006/07/going-global)
 // Take out your script tag wrapper, then detect browser via jQuery
 browser object for IE then call installScript()
 
 // I like .get over .load 
 $.get ( '/client/secure/filetree.php'+ '?noCacheIE=' + (new
 Date()).getTime(),
 function( rtnTxt){
   installScript(rtnTxt);
 }
 );  
 
 function installScript( script )
 {
 if (!script)
 return;
 //  Internet Explorer has a funky execScript method that makes this
 easy
 if (window.execScript)
 window.execScript( script );
 else
 window.setTimeout( script, 0 );
 }
 
 Hope it helps
 
 Kevin Pirkl (ZombieBob at Intel)
 
 

-- 
View this message in context: 
http://www.nabble.com/.load%28%29-not-executing-javascript-code-in-IE-tf2883329.html#a8077014
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] .load() not executing javascript code in IE

2006-12-28 Thread Surge Mitchell

It should, but it isn't.


malsup wrote:
 
 Internet Explorer wont execute dynamic code in that manner.
 
 Sure it will, with the help of jQuery.  $().load has logic to find and
 eval script in the returned text.
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 
 

-- 
View this message in context: 
http://www.nabble.com/.load%28%29-not-executing-javascript-code-in-IE-tf2883329.html#a8077020
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] dynamic plugin loading

2006-12-28 Thread Michael Geary
If you're just trying to load a stylesheet dynamically, all you need to do
is this:

function addSheet( url, doc ) {
doc = doc || document;
var link = doc.createElement( 'link' );
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = url;
doc.getElementsByTagName('head')[0].appendChild(  link );
}

Similarly, you can load a script with:

function addScript( url, doc ) {
doc = doc || document;
var script = doc.createElement( 'script' );
script.type = 'text/javascript';
script.charset = 'utf-8';
script.src = url;
doc.getElementsByTagName('head')[0].appendChild( script );
}

-Mike

  I'm trying to develope a small piece for dynamic loading in jquery, 
  wich loads the .js and .css source files on the fly without any 
  special markup in the html page.
 
 For .js files you can use jspax (www.jspax.org). I use it to 
 load jQuery and plugins on demand (actually I made it for 
 that purpouse at the beginning). 
 For .css I just had that question from a friend of mine and 
 made a small set of jsPax-packages for him:
 
 ---cssloader.js
 $using('xBrowser.simulateXMLHttpRequest',function() {
 $package('cssloader', {
 base: '/',
 load: function(css) {
       var x = new XMLHttpRequest();
       x.open('GET',cssloader.base+css+'.css');
       
   x.onload = function() {
 var e = document.createElement(style);
 e.type=text/css;
 
 e.appendChild(document.createTextNode(x.responseText));
 document.getElementsByTagName(head)
 [0].appendChild(e);
   };
   x.send('');
 }
 });
 });
 ---
 
 ---xBrowser/simulateXMLHttpRequest.js
 var impl = 'native';
 if( !window.XMLHttpRequest ) impl = 
 (window.ActiveX)?'activex':'iframe';
 $using('xBrowser.simulateXMLHttpRequest.'+impl,function() {});
 ---
 
 ---xBrowser/simulateXMLHttpRequest/native.js:
 $package('xBrowser.simulateXMLHttpRequest.native',{});
 ---
 
 ---xBrowser/simulateXMLHttpRequest/activex.js:
 var lib = /MSIE 5/.test(navigator.userAgent) ? Microsoft : 
 Msxml2; window.XMLHttpRequest = function() {
   var rval = new ActiveXObject(lib + .XMLHTTP);
   rval.onreadystatechange = function() {
     if(x.readystate == 4) rval.onload();
   };
   return rval;
 };
 $package('xBrowser.simulateXMLHttpRequest.activex',{});
 ---
 
 use them like this:
 
 $using('cssloader', function(){
 cssloader.base='https://www.example.com/styles/';
 cssloader.load('mywonderfull');
 ...
 });
 
 I have not tested the code, but he did not complain up to now ;-)
 
  The problem is that it seems that the browser doesn't wait 
 until the 
  script (the plugin) is finished loading
 
 Yes, you are using assynchronous XMLHttpRequests. JsPax does 
 that as well, but it can cope with that by usein callback 
 functions. JSAN does use synchronous XMLHttpRequests to 
 circumvent that problem.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Matching a link's href value to another link on the page

2006-12-28 Thread Chaim
Hi Everyone,
Here's what I'd like to able to do (simplified), although I can't seem 
to figure out how to do it.

If the link in matchThis has the same href as the link in 
navigation, how can I select the link with the matching href in 
navigation? 

for the code:
div id=navigation
a href=about.htmlI want this link, because the href matches/a
a href=bla.htmlI don't want this Link/a
a href=gla.htmlI don't want this Link/a
a href=zla.htmlI don't want this Link/a
/div
div id=matchThisa href=about.htmlLink to match to/a/div


Thanks,
Chaim

-- 


Always Thinking.

The Berndt Group
www.berndtgroup.net

3618 Falls Road, Suite 300
Baltimore, Maryland. 21211

email: [EMAIL PROTECTED]
phone: 410-889-5854 ex. 23
fax: 410-889-5904



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Auto scrolling the page to a specific point -likeanchor links with animation

2006-12-28 Thread Andy Matthews
Thank you Karl...is this the only thing I need to include (other than
jQuery)?
!//--
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-

  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Karl Swedberg
  Sent: Thursday, December 28, 2006 10:52 AM
  To: jQuery Discussion.
  Subject: Re: [jQuery] Auto scrolling the page to a specific
point -likeanchor links with animation


  You're right. Sorry about that, Andy.


  Tried to attach a tested copy of scrollto.js, but the mailserver rejected
it. So, you can find it here now:
  http://www.karlswedberg.com/scripts/scrollto.js


  Hope that helps.





  --Karl
  _
  Karl Swedberg
  www.englishrules.com
  www.learningjquery.com






  On Dec 28, 2006, at 10:21 AM, Andy Matthews wrote:


Karl...
When I try to use the interactive builder, I select the FX - Scroll
plugin, click the save your selection link, then save the file. But when I
open it, the file is blank except for the information at the top.
!//--
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-

  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Karl Swedberg
  Sent: Thursday, December 28, 2006 9:01 AM
  To: jQuery Discussion.
  Subject: Re: [jQuery] Auto scrolling the page to a specific point -
likeanchor links with animation


  Hi Andy,


  I think the ifxscroll.js is dependent on another component of the
Interface plugin, so grabbing that single .js file won't work. Instead, go
to http://interface.eyecon.ro/download and use the interactive download
builder. When you go to save it, the file name should default to
interface.js, which of course you can change once it's saved on your
machine.


  If you still have problems, let me know and I'll send a copy of it
off-list.





  --Karl
  _
  Karl Swedberg
  www.englishrules.com
  www.learningjquery.com






  On Dec 28, 2006, at 9:38 AM, Andy Matthews wrote:


Okay...


I've downloaded the ifxscroll.js file and I've set it up after the
call to
jQuery.js in my code. I've got this line:


$('#ST').ScrollTo(800);


And it's giving me this error:


jQuery.iUtil is null or not an object.


I'm not using Prototype so I haven't reassigned the $ call. Any
ideas
anyone? This is mostly fluff, but I'd like to get it working if
possible.


!//--
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Behalf Of David Duymelinck
Sent: Thursday, December 28, 2006 8:05 AM
To: jQuery Discussion.
Subject: Re: [jQuery] Auto scrolling the page to a specific point -
like
anchor links with animation




Andy Matthews schreef:
  I've seen some sites (not sure if they're jQuery powered or not)
that have
a
  page scroll triggered where the window auto-scrolls down to a
certain
point
  on the page. Sort of link using an anchor link, but you can
actually see
the
  page moving.


it's a part of the interface plugin. scrollto it the name of the
function


--
David Duymelinck

[EMAIL PROTECTED]




___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/




___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Matching a link's href value to another link on the page

2006-12-28 Thread Marc Jansen
Hi Chaim,

Chaim schrieb:
 If the link in matchThis has the same href as the link in 
 navigation, how can I select the link with the matching href in 
 navigation? 

 for the code:
 div id=navigation
 a href=about.htmlI want this link, because the href matches/a
 a href=bla.htmlI don't want this Link/a
 a href=gla.htmlI don't want this Link/a
 a href=zla.htmlI don't want this Link/a
 /div
 div id=matchThisa href=about.htmlLink to match to/a/div

   
Try this (untested):

var HREF_to_match = $('#matchThis').find('a').eq(0).attr('href');
var $matched_links = $('#navigation').find('a[href=' + HREF_to_match + ']');
alert('I was found in ID navigation, this is my href-attribute: '  + 
$matched_links[0].href + '. This href should be the same as the 
following: ' + HREF_to_match);

Good luck,

-- Marc

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Matching a link's href value to another link on the page

2006-12-28 Thread Yehuda Katz

Try $(#navigation [EMAIL PROTECTED] + $(#matchThis).attr(href) + ])

On 12/28/06, Chaim [EMAIL PROTECTED] wrote:


Hi Everyone,
Here's what I'd like to able to do (simplified), although I can't seem
to figure out how to do it.

If the link in matchThis has the same href as the link in
navigation, how can I select the link with the matching href in
navigation? 

for the code:
div id=navigation
a href=about.htmlI want this link, because the href matches/a
a href=bla.htmlI don't want this Link/a
a href=gla.htmlI don't want this Link/a
a href=zla.htmlI don't want this Link/a
/div
div id=matchThisa href=about.htmlLink to match to/a/div


Thanks,
Chaim

--


Always Thinking.

The Berndt Group
www.berndtgroup.net

3618 Falls Road, Suite 300
Baltimore, Maryland. 21211

email: [EMAIL PROTECTED]
phone: 410-889-5854 ex. 23
fax: 410-889-5904



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/





--
Yehuda Katz
Web Developer | Wycats Designs
(ph)  718.877.1325
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Clearing all form field values

2006-12-28 Thread Yehuda Katz

$(form :input:not([EMAIL PROTECTED]):not(button)).val()

I personally prefer reset() because there's rarely a case where you're
setting default values that you don't intend to be the default value ;)

-- Yehuda

On 12/28/06, Mike Alsup [EMAIL PROTECTED] wrote:


 That could also be written as: $(form :input).val();

I wouldn't recommend that because :input will grab all inputs
*including* type==submit and type==button.  Clearing those is probably
not what you'd want to do.

I think maybe the form plugin needs to provide clearForm and resetForm
methods and perhaps options to perform these functions automatically
upon successful submit.

Mike

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/





--
Yehuda Katz
Web Developer | Wycats Designs
(ph)  718.877.1325
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Getting the val() or html() of an FCKEditor field using jQuery

2006-12-28 Thread Andy Matthews
Don't think this came through the first time
--

I thought this would be fairly straightforward but it appears to be causing
me some distress. I need to get the value of an FCKEditor field for
transmission using AJAX. However, when I reference the fields ID and call
the val() method, I get a blank result when there is definitely content in
it. Can someone shed some light on this for me? Below is the HTML that is
generated when I instantiate the FCKEditor. Here's the link of jQ that I'm
using...uber-basic:

var content = $('#art_article').val();

I've even tried getting the value of a field with a name attribute of
art_article like so:

var content = $('input[name=art_article]').val();

div
input type=hidden id=art_article name=art_article value=
style=display:none /
input type=hidden id=art_article___Config value= style=display:none
/
iframe id=art_article___Frame
src=/admin/includes/fckeditor/editor/fckeditor.html?InstanceName=art_articl
eamp;Toolbar=SmallSet width=100% height=250 frameborder=no
scrolling=no/iframe
/div

Any ideas?

!//--
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Clearing all form field values

2006-12-28 Thread Mike Alsup
 I personally prefer reset() because there's rarely a case where you're
 setting default values that you don't intend to be the default value ;)

I definitely agree with that.

 $(form :input:not([EMAIL PROTECTED]):not(button)).val()

But not that!  That will ignore type=text inputs.

I'm going to make the changes to the form plugin that I mentioned
earlier in this thread.  This is a question that comes up over and
over.

Mike

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Clearing all form field values

2006-12-28 Thread Dave Methvin
 $(form :input:not([EMAIL PROTECTED]):not(button)).val()
 
That will clobber the values on radio buttons and checkboxes. Here's another
vote for form.reset().
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] dynamic plugin loading

2006-12-28 Thread Michael Geary
 From: Michael Geary
 
 If you're just trying to load a stylesheet dynamically, all 
 you need to do is this...

Just to be clear, I wasn't disparaging jsPax!

It just depends on whether you need a full-featured package system or a
simple loading function.

-Mike


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Clearing all form field values

2006-12-28 Thread Andy Matthews
The problem for me (in this case) is that the few fields that need to be
transmitted via AJAX (and then reset) are part of a larger form that I do
NOT want to get reset.

I might just have to do each field manually.
!//--
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-

  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Dave Methvin
  Sent: Thursday, December 28, 2006 11:56 AM
  To: 'jQuery Discussion.'
  Subject: Re: [jQuery] Clearing all form field values


   $(form :input:not([EMAIL PROTECTED]):not(button)).val()

  That will clobber the values on radio buttons and checkboxes. Here's
another vote for form.reset().
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Splitter

2006-12-28 Thread Dave Methvin
There was some discussion a month or two ago about splitter widgets. Did
anyone build one?


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Clearing all form field values

2006-12-28 Thread Yehuda Katz

You could try putting a form within a form. I'm not sure how valid it is,
but it definitely solves certain problems.

-- Yehuda

On 12/28/06, Andy Matthews [EMAIL PROTECTED] wrote:


 The problem for me (in this case) is that the few fields that need to be
transmitted via AJAX (and then reset) are part of a larger form that I do
NOT want to get reset.

I might just have to do each field manually.

!//--
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-

-Original Message-
*From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of *Dave Methvin
*Sent:* Thursday, December 28, 2006 11:56 AM
*To:* 'jQuery Discussion.'
*Subject:* Re: [jQuery] Clearing all form field values

 $(form :input:not([EMAIL PROTECTED]):not(button)).val()

That will clobber the values on radio buttons and checkboxes. Here's
another vote for form.reset().


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/






--
Yehuda Katz
Web Developer | Wycats Designs
(ph)  718.877.1325
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Clearing all form field values

2006-12-28 Thread Andy Matthews
This is for a CMS so I'm not really that concerned with it validating (as
long as it works).
!//--
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-

  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Yehuda Katz
  Sent: Thursday, December 28, 2006 1:02 PM
  To: jQuery Discussion.
  Subject: Re: [jQuery] Clearing all form field values


  You could try putting a form within a form. I'm not sure how valid it is,
but it definitely solves certain problems.

  -- Yehuda


  On 12/28/06, Andy Matthews [EMAIL PROTECTED] wrote:
The problem for me (in this case) is that the few fields that need to be
transmitted via AJAX (and then reset) are part of a larger form that I do
NOT want to get reset.

I might just have to do each field manually.
!//--
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-

  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Dave Methvin
  Sent: Thursday, December 28, 2006 11:56 AM
  To: 'jQuery Discussion.'
  Subject: Re: [jQuery] Clearing all form field values


   $(form :input:not([EMAIL PROTECTED]):not(button)).val()

  That will clobber the values on radio buttons and checkboxes. Here's
another vote for form.reset().

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/






  --
  Yehuda Katz
  Web Developer | Wycats Designs
  (ph)  718.877.1325
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Clearing all form field values

2006-12-28 Thread Mike Alsup
 This is for a CMS so I'm not really that concerned with it validating (as
 long as it works).

Nested forms are not valid markup.  I think it makes more sense to
handle these special fields manually.  Do they simply need to be
cleared?  If so, you'll be able to use the new clearForm method of the
form plugin without affecting the rest of the form (as long as there
is a containing element around these special fields.)  For example:

form
   input ...
   input ...
   div id=container
  input ...
  input ...
   /div
/form

$(#container).clearForm();

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Auto scrolling the page to a specific point -likeanchor links with animation

2006-12-28 Thread Karl Swedberg
yep. include it after the jquery.js and it should do the trick. It's  
the only thing I needed (on a different site).



--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On Dec 28, 2006, at 12:11 PM, Andy Matthews wrote:

Thank you Karl...is this the only thing I need to include (other  
than jQuery)?

!//--
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
On Behalf Of Karl Swedberg

Sent: Thursday, December 28, 2006 10:52 AM
To: jQuery Discussion.
Subject: Re: [jQuery] Auto scrolling the page to a specific point - 
likeanchor links with animation


You're right. Sorry about that, Andy.

Tried to attach a tested copy of scrollto.js, but the mailserver  
rejected it. So, you can find it here now:

http://www.karlswedberg.com/scripts/scrollto.js

Hope that helps.


--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On Dec 28, 2006, at 10:21 AM, Andy Matthews wrote:


Karl...
When I try to use the interactive builder, I select the FX -  
Scroll plugin, click the save your selection link, then save the  
file. But when I open it, the file is blank except for the  
information at the top.

!//--
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-

-Original Message-
From: [EMAIL PROTECTED] [mailto:discuss- 
[EMAIL PROTECTED] Behalf Of Karl Swedberg

Sent: Thursday, December 28, 2006 9:01 AM
To: jQuery Discussion.
Subject: Re: [jQuery] Auto scrolling the page to a specific point  
- likeanchor links with animation


Hi Andy,

I think the ifxscroll.js is dependent on another component of the  
Interface plugin, so grabbing that single .js file won't work.  
Instead, go to http://interface.eyecon.ro/download and use the  
interactive download builder. When you go to save it, the file  
name should default to interface.js, which of course you can  
change once it's saved on your machine.


If you still have problems, let me know and I'll send a copy of it  
off-list.



--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On Dec 28, 2006, at 9:38 AM, Andy Matthews wrote:


Okay...

I've downloaded the ifxscroll.js file and I've set it up after  
the call to

jQuery.js in my code. I've got this line:

$('#ST').ScrollTo(800);

And it's giving me this error:

jQuery.iUtil is null or not an object.

I'm not using Prototype so I haven't reassigned the $ call. Any  
ideas
anyone? This is mostly fluff, but I'd like to get it working if  
possible.


!//--
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-

-Original Message-
From: [EMAIL PROTECTED] [mailto:discuss- 
[EMAIL PROTECTED]

Behalf Of David Duymelinck
Sent: Thursday, December 28, 2006 8:05 AM
To: jQuery Discussion.
Subject: Re: [jQuery] Auto scrolling the page to a specific point  
- like

anchor links with animation


Andy Matthews schreef:
I've seen some sites (not sure if they're jQuery powered or not)  
that have

a
page scroll triggered where the window auto-scrolls down to a  
certain

point
on the page. Sort of link using an anchor link, but you can  
actually see

the

page moving.

it's a part of the interface plugin. scrollto it the name of the  
function


--
David Duymelinck

[EMAIL PROTECTED]


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery Roadmap

2006-12-28 Thread Aaron Heimlich

http://jquery.com/blog/2006/12/27/the-path-to-11/ is the best thing I could
find. There's also http://jquery.com/dev/upcoming/

On 12/29/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


 Hi everyone,

With Yehuda mentioning the changes to Visual jQuery and the 1.1 release, I
wondered if there was a documented roadmap anywhere for future releases?

Gerry

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/






--
Aaron Heimlich
Web Developer
[EMAIL PROTECTED]
http://aheimlich.freepgs.com
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] jQuery Roadmap

2006-12-28 Thread gerrytucker
Hi everyone,

With Yehuda mentioning the changes to Visual jQuery and the 1.1 release, I 
wondered if there was a documented roadmap anywhere for future releases?

Gerry___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery Roadmap

2006-12-28 Thread Christopher Jordan

Roads? Where we're going... we don't need roads!

Sorry, I couldn't resist! :oP

Cheers,
Chris

[EMAIL PROTECTED] wrote:

Hi everyone,
 
With Yehuda mentioning the changes to Visual jQuery and the 1.1 
release, I wondered if there was a documented roadmap anywhere for 
future releases?
 
Gerry



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
  


--
http://www.cjordan.info

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] msie closures syntax

2006-12-28 Thread Jonathan Sharp

On 12/27/06, moe [EMAIL PROTECTED] wrote:


yep, it's for use with multiple elements,
so that global attr()-stuff doesn't cut it.

but fear not, Choan's helper function did it for me:

$(this)[0].ontimer = setTimeoutH( function( mysrc, body, x, y ) { on(
mysrc, body, x, y ) },



I think you can turn the line above into the line below since all of the
arguments are the same:
$(this)[0].ontimer = setTimeoutH(on,

-js
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] jQuery Roadmap

2006-12-28 Thread gerrytucker
Jeez Aaron that was quick!!!  

Thanks a lot for that, I guess I should have realised there would be something 
on the blog, I just hadn't looked.

Looks as though I've got a few changes to make to my code, but not too many.

Gerry

Emoticon3.gif
Description: GIF image
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] jQuery Roadmap

2006-12-28 Thread gerrytucker
Should there be a sat-nav version then?___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery Roadmap

2006-12-28 Thread Aaron Heimlich

On 12/29/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


 Jeez Aaron that was quick!!!  [image: Winking smile emoticon]



I was actually just about to read that blog entry when your message came
(and yes, Yehuda's post prompted me to look for info on this too).

Happy I could help.

--Aaron

--
Aaron Heimlich
Web Developer
[EMAIL PROTECTED]
http://aheimlich.freepgs.com

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Clearing all form field values

2006-12-28 Thread Mike Alsup
 I think maybe the form plugin needs to provide clearForm and resetForm
 methods and perhaps options to perform these functions automatically
 upon successful submit.

These change are now in.

http://jquery.com/dev/svn/trunk/plugins/form/form.js?format=txt

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Help With Sortables

2006-12-28 Thread blemming

A little help please I have a sortable in and I want to be able to
replace the content and then reload the sortable.  It works fine using
FireFox but IE allows for the item to be dragged but the sorting doesn't
work.  

An example is here:  http://brilliantretail.com/cases/sorttest/ Sort Test 

It works fine on the initial load, but after reloading it is brokoen in
Internet Explorer.  Thank you for your input!

Cheers, David
-- 
View this message in context: 
http://www.nabble.com/Help-With-Sortables-tf2892329.html#a8080589
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] dynamic plugin loading

2006-12-28 Thread Christof Donat
Hi,

 function addScript( url, doc ) {
 doc = doc || document;
 var script = doc.createElement( 'script' );
 script.type = 'text/javascript';
 script.charset = 'utf-8';
 script.src = url;
 doc.getElementsByTagName('head')[0].appendChild( script );
 }

There are Safari Versions that don't execute scripts that you try to load like 
that. I wasn't shure about styles. I did it with a XMLHttpRequest, because I 
didn't have that version at hand.

 Just to be clear, I wasn't disparaging jsPax!

No Problem.

 It just depends on whether you need a full-featured package system or a
 simple loading function.

Well, jsPax is very small - it was designed to be. It might be that you have 
problems getting a cross-browser script-loader that is much smaller.

Christof

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] .load() not executing javascript code in IE

2006-12-28 Thread Kevin Pirkl

After a little debugging I found the correct way to get what you are trying
to do or the jQuery way!!!

Check out $.getScript  (http://jquery.com/api/) as it passes script in the
fourth parameter for AJAX get: and I think it would more than likely work
for you are trying to do and then you wont need the extra div tag.

I took out the script tags from your xml file sample and tried $getScript
and it worked in global scope as well with the only exception that even
though you can call global functions, variables end up scoped local to your
script in Firefox and in IE everything appears to run globally.  What a
pain...

Kevin Pirkl (ZombieBob at Intel)


Surge Mitchell wrote:
 
 Thanks a lot. You code fixed it in IE but broke firefox, but it using your
 code I made it so that I could determine if the php script generating the
 code should add script tags on it when it does its request and had it do a
 .load function instead..
 
 
 Kevin Pirkl wrote:
 
 Internet Explorer wont execute dynamic code in that manner.  You have two
 options...  (I like the second one better.)  I tested through the second
 solution and it appears to work fine...
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/.load%28%29-not-executing-javascript-code-in-IE-tf2883329.html#a8080854
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Should one announce something like that?

2006-12-28 Thread Olaf Bosch
Spam on
http://jquery.com/dev/bugs/bug/417/


-- 
Viele Grüße, Olaf

---
[EMAIL PROTECTED]
http://olaf-bosch.de
www.akitafreund.de
---

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Splitter

2006-12-28 Thread Jörn Zaefferer
Dave Methvin schrieb:
 There was some discussion a month or two ago about splitter widgets. Did
 anyone build one?
   
I think Stefan Petre did something like that.

-- 
Jörn Zaefferer

http://bassistance.de


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Should one announce something like that?

2006-12-28 Thread John Resig
 Spam on
 http://jquery.com/dev/bugs/bug/417/

Yeah, it sucks - we have Spam checks on the bug tracker now, but it's
really really hard to delete spammy comments/bugs. Trac makes it very
difficult to do this, for whatever reason. Now that the Spam checks
are in place, I'll go back through and try to delete all the spam
comments again.

--John

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Thickbox: Smoooooth scrolling with fixed positioning

2006-12-28 Thread Johan Sundström
On 9/13/06, Klaus Hartl [EMAIL PROTECTED] wrote:
 Hi all,

 I worked a bit on the thickbox script to improve it. What bothered me,
 was that when scrolling the window the thickbox window is moved to stay
 in the center, but that happens not smooth at all.

 So I changed it to use fixed positioning.

 1. Changed CSS:

 #TB_window {
  position: fixed;
  top: 50%;
  left: 50%;
 }

 2. Removed the scroll event handler: [... other fixes]

Any chance we'll see these (or similar) fixes to thickbox proper? It
somehow seems all lightbox variants published to date suffer this same
bug. Are people shying away from browser forking to let ie6 run this
variant of the code and less breakage ridden browsers adopt some
position:fixed goodness?

I'd be really glad to see the release version drop the global CSS
pollution *{padding: 0; margin: 0;} too, in favour of #TB_window
*{padding: 0; margin: 0;} which has worked just fine for me. Do I
miss something obvious as to why the former should be necessary?

-- 
 / Johan Sundström, http://ecmanaut.blogspot.com/

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Should one announce something like that?

2006-12-28 Thread Andy Matthews
My guess is that you could do a WHERE comment LIKE '%whore%' and be in
pretty good shape.

;)

!//--
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of John Resig
Sent: Thursday, December 28, 2006 4:33 PM
To: jQuery Discussion.
Subject: Re: [jQuery] Should one announce something like that?


 Spam on
 http://jquery.com/dev/bugs/bug/417/

Yeah, it sucks - we have Spam checks on the bug tracker now, but it's
really really hard to delete spammy comments/bugs. Trac makes it very
difficult to do this, for whatever reason. Now that the Spam checks
are in place, I'll go back through and try to delete all the spam
comments again.

--John

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Splitter

2006-12-28 Thread Dave Methvin
 What do you mean by splitter widgets? Like a split pane view?

Yep, similar to this:
http://www.jackslocum.com/blog/examples/splitter3.htm

I didn't see anything in Stefan's site that would do it.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Help With Sortabe Reload in IE

2006-12-28 Thread blemming

anything... Im really stuck and its messing up my day :( 

-- 
View this message in context: 
http://www.nabble.com/Help-With-Sortabe-Reload-in-IE-tf2892329.html#a8081358
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Splitter

2006-12-28 Thread gerrytucker
Dave,

As a mere mortal I'm just surprised you haven't written one in between 
asking the question??!!  ;-)

BTW you wouldn't be THE Dave Methvin of PC Pitstop fame would you?

Regards,

Gerry



- Original Message -
From: Dave Methvin [EMAIL PROTECTED]
To: 'jQuery Discussion.' discuss@jquery.com
Sent: Thursday, December 28, 2006 10:46 PM
Subject: Re: [jQuery] Splitter

 What do you mean by splitter widgets? Like a split pane view?

 Yep, similar to this:
 http://www.jackslocum.com/blog/examples/splitter3.htm

 I didn't see anything in Stefan's site that would do it.


 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Should one announce something like that?

2006-12-28 Thread Jonathan Sharp

On 12/28/06, Christopher Jordan [EMAIL PROTECTED] wrote:


 Aw... dude! I didn't really understand this post to begin with, but I
didn't originally scroll down to see the comments. Don't people have better
things to do with their lives?

Crudeness like that really gets under my skin. :o(

Well, if anyone thinks of something brilliant to filter it out... I'm sure
we'll post it. :o)



This started partly tongue-n-cheek but what about:

$('div.comment,h3.change').each(function() {
   if ($(this).html().match(/whore|sex|fuck|nude|xxx|urlcutter|pharm/)) {
   $(this).html('*** FILTERED ***');
   }
});

Cleaned my page up right nice!

-js
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Should one announce something like that?

2006-12-28 Thread Jonathan Sharp

Oh, also what is quantserve.com? It's near the bottom by google...

-js


On 12/28/06, Jonathan Sharp [EMAIL PROTECTED] wrote:


On 12/28/06, Christopher Jordan [EMAIL PROTECTED] wrote:

  Aw... dude! I didn't really understand this post to begin with, but I
 didn't originally scroll down to see the comments. Don't people have better
 things to do with their lives?

 Crudeness like that really gets under my skin. :o(

 Well, if anyone thinks of something brilliant to filter it out... I'm
 sure we'll post it. :o)


This started partly tongue-n-cheek but what about:

$('div.comment,h3.change').each(function() {
if ($(this).html().match(/whore|sex|fuck|nude|xxx|urlcutter|pharm/)) {
$(this).html('*** FILTERED ***');
}
});

Cleaned my page up right nice!

-js

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Should one announce something like that?

2006-12-28 Thread Jonathan Sharp

On 12/28/06, Jonathan Sharp [EMAIL PROTECTED] wrote:


Oh, also what is quantserve.com? It's near the bottom by google...

-js



I ment to say, there's a script reference in the source near the bottom
which sets some cookies and junk.

-js
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Should one announce something like that?

2006-12-28 Thread John Resig
That's just a tracking script that I'm testing out, along with Google
Analytics. Don't worry about it.

--John

On 12/28/06, Jonathan Sharp [EMAIL PROTECTED] wrote:
 On 12/28/06, Jonathan Sharp [EMAIL PROTECTED] wrote:
  Oh, also what is quantserve.com? It's near the bottom by google...
 
  -js

 I ment to say, there's a script reference in the source near the bottom
 which sets some cookies and junk.

 -js

 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/




___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Help With Sortabe Reload in IE

2006-12-28 Thread bander

Found the error. It's at line 56 in the uncompressed version of idrop.js.

if (iEL.dropCfg.m == false) {
iEL.dropCfg.p = jQuery.extend(
jQuery.iUtil.getPosition(iEL),
jQuery.iUtil.getSize(iEL)
);//jQuery.iUtil.getPos(iEL);
iEL.dropCfg.m = true;
}

Looks to me like the list of droppables is getting corrupted by dropping
them without $.destroyDroppables.
-- 
View this message in context: 
http://www.nabble.com/Help-With-Sortabe-Reload-in-IE-tf2892329.html#a8081962
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Getting the val() or html() of an FCKEditor field using jQuery

2006-12-28 Thread bander

Seems like more of a FCKEditor question to me. From their documentation (
http://wiki.fckeditor.net/Developer%27s_Guide/Javascript_API ):

From out of an external script:

When placing the editor in the page, you give it an instance name. To
retrieve it, you must simply call the FCKeditorAPI.GetInstance method. For
example:

var oEditor = FCKeditorAPI.GetInstance('InstanceName') ;

. . .

These are the most useful properties and methods of this object:

. . .

Methods:

 * GetXHTML( formatted )


Andy Matthews-2 wrote:
 
 I need to get the value of an FCKEditor field for
 transmission using AJAX. However, when I reference the fields ID and call
 the val() method, I get a blank result when there is definitely content in
 it. Can someone shed some light on this for me? Below is the HTML that is
 generated when I instantiate the FCKEditor.
 

-- 
View this message in context: 
http://www.nabble.com/Getting-the-val%28%29-or-html%28%29-of-an-FCKEditor-field-using-jQuery-tf2890831.html#a8082057
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Should one announce something like that?

2006-12-28 Thread Yehuda Katz

What about:

$('div.comment,h3.change').each(function() {
   if
($(this).html().match(/phenter|whore|sex|fuck|nude|xxx|urlcutter|pharm/)) {
   $(this).remove()
   }
});

Much more fun ;)

-- Yehuda

On 12/28/06, John Resig [EMAIL PROTECTED] wrote:


That's just a tracking script that I'm testing out, along with Google
Analytics. Don't worry about it.

--John

On 12/28/06, Jonathan Sharp [EMAIL PROTECTED] wrote:
 On 12/28/06, Jonathan Sharp [EMAIL PROTECTED] wrote:
  Oh, also what is quantserve.com? It's near the bottom by google...
 
  -js

 I ment to say, there's a script reference in the source near the bottom
 which sets some cookies and junk.

 -js

 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/




___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/





--
Yehuda Katz
Web Developer | Wycats Designs
(ph)  718.877.1325
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Very Cool Window Plugin

2006-12-28 Thread Rey Bango
This plugin is VERY cool:

http://www.consulenza-web.com/jquery-floating-windows-plugin.dc-14.html

The developer is Marco Pegoraro but I haven't seen him on the list. I'd 
like to see if the docs could be translated to English.

Anyone know Marco?

Rey...

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] My First Plugin - Custom Select Box

2006-12-28 Thread blemming

Here is my first attempt at a plug-in.  It is definitely in the early stage
of development, but I thought I'd put it out here for you guys to rip apart
(and hopefully provide a suggestions or two)

Here it is =   http://brilliantretail.com/cases/select/ Custom Select
Plugin 

Let me know what you think.

Thanks, David
-- 
View this message in context: 
http://www.nabble.com/My-First-Plugin---Custom-Select-Box-tf2893253.html#a8083502
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] My First Plugin - Custom Select Box

2006-12-28 Thread bmsterling

Damn David, have you been looking at my computer!!!  I was working on
something like this because I get a lot of designs from my designers with a
fancy select menu and I figured I create something with jquery to do what
you did.  Oh well, your's looks better then what I was doing.

Nice job!
-- 
View this message in context: 
http://www.nabble.com/My-First-Plugin---Custom-Select-Box-tf2893253.html#a8083589
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Duplicating Events in a New Object

2006-12-28 Thread Michael Haggerty
I need to know how to copy all of the events from one object to another.
Really getting stuck on this one.

What I am trying to do is write a script that replaces an A tag with a bunch
of clustered divs, and want to take the events from A tag (an onclick and
some custom ones generated by jquery) and attach them to the new div.

I am finding it's easy to get the names of the events, but I have no clue
how to copy the methods themselves.

Help!

Thank you,
Michael Haggerty
Managing Partner
Trellon, LLC
http://www.trellon.com
(p) 301-577-6162
(c) 240-643-6561
(f) 413-691-9114
(aim) haggerty321 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
 Behalf Of bmsterling
 Sent: Thursday, December 28, 2006 10:44 PM
 To: discuss@jquery.com
 Subject: Re: [jQuery] My First Plugin - Custom Select Box
 
 
 Damn David, have you been looking at my computer!!!  I was working on
 something like this because I get a lot of designs from my designers with
 a
 fancy select menu and I figured I create something with jquery to do what
 you did.  Oh well, your's looks better then what I was doing.
 
 Nice job!
 --
 View this message in context: http://www.nabble.com/My-First-Plugin---
 Custom-Select-Box-tf2893253.html#a8083589
 Sent from the JQuery mailing list archive at Nabble.com.
 
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Splitter

2006-12-28 Thread Dave Methvin
 
 As a mere mortal I'm just surprised you haven't written
 one in between asking the question??!!  ;-)

Well I started on one thinking it would be simple, but ran into some
problems so I figured I'd ask if anyone else had solved them. As Douglas
Crockford says, The good thing about reinventing the wheel is you get to
make a round one.

 BTW you wouldn't be THE Dave Methvin of PC Pitstop
 fame would you?

I'm the one at PC Pitstop. Believe it or not there's another Dave Methvin
who works in the computer industry, but I think he retired.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Duplicating Events in a New Object

2006-12-28 Thread Michael Haggerty
Heh... sorry, just needed the address, hit reply and did not remove the old
message.

M

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
 Behalf Of blemming
 Sent: Thursday, December 28, 2006 11:13 PM
 To: discuss@jquery.com
 Subject: Re: [jQuery] Duplicating Events in a New Object
 
 
 Does this have anything to do with my plugin?
 
 
 Michael Haggerty-4 wrote:
 
  I need to know how to copy all of the events from one object to another.
  Really getting stuck on this one.
 
  What I am trying to do is write a script that replaces an A tag with a
  bunch
  of clustered divs, and want to take the events from A tag (an onclick
 and
  some custom ones generated by jquery) and attach them to the new div.
 
  I am finding it's easy to get the names of the events, but I have no
 clue
  how to copy the methods themselves.
 
  Help!
 
  Thank you,
  Michael Haggerty
  Managing Partner
  Trellon, LLC
  http://www.trellon.com
  (p) 301-577-6162
  (c) 240-643-6561
  (f) 413-691-9114
  (aim) haggerty321
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
  Behalf Of bmsterling
  Sent: Thursday, December 28, 2006 10:44 PM
  To: discuss@jquery.com
  Subject: Re: [jQuery] My First Plugin - Custom Select Box
 
 
  Damn David, have you been looking at my computer!!!  I was working on
  something like this because I get a lot of designs from my designers
 with
  a
  fancy select menu and I figured I create something with jquery to do
 what
  you did.  Oh well, your's looks better then what I was doing.
 
  Nice job!
  --
  View this message in context: http://www.nabble.com/My-First-Plugin---
  Custom-Select-Box-tf2893253.html#a8083589
  Sent from the JQuery mailing list archive at Nabble.com.
 
 
  ___
  jQuery mailing list
  discuss@jquery.com
  http://jquery.com/discuss/
 
 
  ___
  jQuery mailing list
  discuss@jquery.com
  http://jquery.com/discuss/
 
 
 
 --
 View this message in context: http://www.nabble.com/My-First-Plugin---
 Custom-Select-Box-tf2893253.html#a8083726
 Sent from the JQuery mailing list archive at Nabble.com.
 
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Duplicating Events in a New Object

2006-12-28 Thread Yehuda Katz

element.onclick should be a pointer to the click function, if it exists.

Is that what you need?

-- Yehuda

On 12/28/06, Michael Haggerty [EMAIL PROTECTED] wrote:


I need to know how to copy all of the events from one object to another.
Really getting stuck on this one.

What I am trying to do is write a script that replaces an A tag with a
bunch
of clustered divs, and want to take the events from A tag (an onclick and
some custom ones generated by jquery) and attach them to the new div.

I am finding it's easy to get the names of the events, but I have no clue
how to copy the methods themselves.

Help!

Thank you,
Michael Haggerty
Managing Partner
Trellon, LLC
http://www.trellon.com
(p) 301-577-6162
(c) 240-643-6561
(f) 413-691-9114
(aim) haggerty321
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
 Behalf Of bmsterling
 Sent: Thursday, December 28, 2006 10:44 PM
 To: discuss@jquery.com
 Subject: Re: [jQuery] My First Plugin - Custom Select Box


 Damn David, have you been looking at my computer!!!  I was working on
 something like this because I get a lot of designs from my designers
with
 a
 fancy select menu and I figured I create something with jquery to do
what
 you did.  Oh well, your's looks better then what I was doing.

 Nice job!
 --
 View this message in context: http://www.nabble.com/My-First-Plugin---
 Custom-Select-Box-tf2893253.html#a8083589
 Sent from the JQuery mailing list archive at Nabble.com.


 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/





--
Yehuda Katz
Web Developer | Wycats Designs
(ph)  718.877.1325
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] My First Plugin - Custom Select Box

2006-12-28 Thread blemming

well, I guess my plugin must not be that goodmy post got warpped into a
completely different topic :(


blemming wrote:
 
 Here is my first attempt at a plug-in.  It is definitely in the early
 stage of development, but I thought I'd put it out here for you guys to
 rip apart (and hopefully provide a suggestions or two)
 
 Here it is =   http://brilliantretail.com/cases/select/ Custom Select
 Plugin 
 
 Let me know what you think.
 
 Thanks, David
 

-- 
View this message in context: 
http://www.nabble.com/My-First-Plugin---Custom-Select-Box-tf2893253.html#a8083979
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] My First Plugin - Custom Select Box

2006-12-28 Thread Yehuda Katz

My ideal custom select would:
* Be stylable in terms of borders and padding (based on the styles on the
select box itself)
* Delegate events on the custom select to the actual select (to allow for
$(select).click( // ))
* Position as you would expect a normal select box to position (minus weird
off-pixel problems)
* Be able to float

In other words, I would want the existence of the custom select to be
basically invisible from an implementer. How well does your custom select do
this?

-- Yehuda

On 12/28/06, blemming [EMAIL PROTECTED] wrote:



Here is my first attempt at a plug-in.  It is definitely in the early
stage
of development, but I thought I'd put it out here for you guys to rip
apart
(and hopefully provide a suggestions or two)

Here it is =   http://brilliantretail.com/cases/select/ Custom Select
Plugin

Let me know what you think.

Thanks, David
--
View this message in context:
http://www.nabble.com/My-First-Plugin---Custom-Select-Box-tf2893253.html#a8083502
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/





--
Yehuda Katz
Web Developer | Wycats Designs
(ph)  718.877.1325
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] My First Plugin - Custom Select Box

2006-12-28 Thread Yehuda Katz

Nah,

I was asking a question about your plugin ;)

On 12/29/06, blemming [EMAIL PROTECTED] wrote:



well, I guess my plugin must not be that goodmy post got warpped into
a
completely different topic :(


blemming wrote:

 Here is my first attempt at a plug-in.  It is definitely in the early
 stage of development, but I thought I'd put it out here for you guys to
 rip apart (and hopefully provide a suggestions or two)

 Here it is =   http://brilliantretail.com/cases/select/ Custom Select
 Plugin

 Let me know what you think.

 Thanks, David


--
View this message in context:
http://www.nabble.com/My-First-Plugin---Custom-Select-Box-tf2893253.html#a8083979
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/





--
Yehuda Katz
Web Developer | Wycats Designs
(ph)  718.877.1325
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] My First Plugin - Custom Select Box

2006-12-28 Thread blemming

 * Be stylable in terms of borders and padding (based on the styles on the
select box itself)

There is no select box present in my plugin. If you notice it is based on a
grouping of nested divs and the padding and borders can be controled via css

 * Delegate events on the custom select to the actual select (to allow for
$(select).click( // ))

Since there is no select box present I'm not sure how to delegate the events
to $(select) but I would love to know how to do it

 * Position as you would expect a normal select box to position (minus weird
off-pixel problems)

it does

 * Be able to float

Yep, the container div can be styled to float.


wycats wrote:
 
 My ideal custom select would:
  * Be stylable in terms of borders and padding (based on the styles on the
 select box itself)
  * Delegate events on the custom select to the actual select (to allow for
 $(select).click( // ))
  * Position as you would expect a normal select box to position (minus
 weird
 off-pixel problems)
  * Be able to float
 
 In other words, I would want the existence of the custom select to be
 basically invisible from an implementer. How well does your custom select
 do
 this?
 
 -- Yehuda
 
 On 12/28/06, blemming [EMAIL PROTECTED] wrote:


 Here is my first attempt at a plug-in.  It is definitely in the early
 stage
 of development, but I thought I'd put it out here for you guys to rip
 apart
 (and hopefully provide a suggestions or two)

 Here it is =   http://brilliantretail.com/cases/select/ Custom Select
 Plugin

 Let me know what you think.

 Thanks, David
 --
 View this message in context:
 http://www.nabble.com/My-First-Plugin---Custom-Select-Box-tf2893253.html#a8083502
 Sent from the JQuery mailing list archive at Nabble.com.


 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/

 
 
 
 -- 
 Yehuda Katz
 Web Developer | Wycats Designs
 (ph)  718.877.1325
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 
 

-- 
View this message in context: 
http://www.nabble.com/My-First-Plugin---Custom-Select-Box-tf2893253.html#a8084033
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] My First Plugin - Custom Select Box

2006-12-28 Thread Christopher Jordan
Nice work David. It looks really good!

Cheers,
Chris

blemming wrote:
 Here is my first attempt at a plug-in.  It is definitely in the early stage
 of development, but I thought I'd put it out here for you guys to rip apart
 (and hopefully provide a suggestions or two)

 Here it is =   http://brilliantretail.com/cases/select/ Custom Select
 Plugin 

 Let me know what you think.

 Thanks, David
   

-- 
http://cjordan.info


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] My First Plugin - Custom Select Box

2006-12-28 Thread blemming

I was just kidding. Turns out its been a long day and I often think I'm
funnier than I am


wycats wrote:
 
 Nah,
 
 I was asking a question about your plugin ;)
 
 On 12/29/06, blemming [EMAIL PROTECTED] wrote:


 well, I guess my plugin must not be that goodmy post got warpped into
 a
 completely different topic :(


 blemming wrote:
 
  Here is my first attempt at a plug-in.  It is definitely in the early
  stage of development, but I thought I'd put it out here for you guys to
  rip apart (and hopefully provide a suggestions or two)
 
  Here it is =   http://brilliantretail.com/cases/select/ Custom Select
  Plugin
 
  Let me know what you think.
 
  Thanks, David
 

 --
 View this message in context:
 http://www.nabble.com/My-First-Plugin---Custom-Select-Box-tf2893253.html#a8083979
 Sent from the JQuery mailing list archive at Nabble.com.


 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/

 
 
 
 -- 
 Yehuda Katz
 Web Developer | Wycats Designs
 (ph)  718.877.1325
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 
 

-- 
View this message in context: 
http://www.nabble.com/My-First-Plugin---Custom-Select-Box-tf2893253.html#a8084052
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] My First Plugin - Custom Select Box

2006-12-28 Thread blemming

I would love to add keyboard navigation to the dropdown but I don't even know
where to start.. Anybody have any pointers to get me started in the
right direction?


blemming wrote:
 
 I was just kidding. Turns out its been a long day and I often think
 I'm funnier than I am
 
 
 wycats wrote:
 
 Nah,
 
 I was asking a question about your plugin ;)
 
 On 12/29/06, blemming [EMAIL PROTECTED] wrote:


 well, I guess my plugin must not be that goodmy post got warpped
 into
 a
 completely different topic :(


 blemming wrote:
 
  Here is my first attempt at a plug-in.  It is definitely in the early
  stage of development, but I thought I'd put it out here for you guys
 to
  rip apart (and hopefully provide a suggestions or two)
 
  Here it is =   http://brilliantretail.com/cases/select/ Custom Select
  Plugin
 
  Let me know what you think.
 
  Thanks, David
 

 --
 View this message in context:
 http://www.nabble.com/My-First-Plugin---Custom-Select-Box-tf2893253.html#a8083979
 Sent from the JQuery mailing list archive at Nabble.com.


 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/

 
 
 
 -- 
 Yehuda Katz
 Web Developer | Wycats Designs
 (ph)  718.877.1325
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/My-First-Plugin---Custom-Select-Box-tf2893253.html#a8084062
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] My First Plugin - Custom Select Box

2006-12-28 Thread Yehuda Katz

Ah,

My ideal situation would be to have a select box that gets converted via JS
for graceful degradation.

-- Yehuda

On 12/29/06, blemming [EMAIL PROTECTED] wrote:



* Be stylable in terms of borders and padding (based on the styles on the
select box itself)

There is no select box present in my plugin. If you notice it is based on
a
grouping of nested divs and the padding and borders can be controled via
css

* Delegate events on the custom select to the actual select (to allow for
$(select).click( // ))

Since there is no select box present I'm not sure how to delegate the
events
to $(select) but I would love to know how to do it

* Position as you would expect a normal select box to position (minus
weird
off-pixel problems)

it does

* Be able to float

Yep, the container div can be styled to float.


wycats wrote:

 My ideal custom select would:
  * Be stylable in terms of borders and padding (based on the styles on
the
 select box itself)
  * Delegate events on the custom select to the actual select (to allow
for
 $(select).click( // ))
  * Position as you would expect a normal select box to position (minus
 weird
 off-pixel problems)
  * Be able to float

 In other words, I would want the existence of the custom select to be
 basically invisible from an implementer. How well does your custom
select
 do
 this?

 -- Yehuda

 On 12/28/06, blemming [EMAIL PROTECTED] wrote:


 Here is my first attempt at a plug-in.  It is definitely in the early
 stage
 of development, but I thought I'd put it out here for you guys to rip
 apart
 (and hopefully provide a suggestions or two)

 Here it is =   http://brilliantretail.com/cases/select/ Custom Select
 Plugin

 Let me know what you think.

 Thanks, David
 --
 View this message in context:

http://www.nabble.com/My-First-Plugin---Custom-Select-Box-tf2893253.html#a8083502
 Sent from the JQuery mailing list archive at Nabble.com.


 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/




 --
 Yehuda Katz
 Web Developer | Wycats Designs
 (ph)  718.877.1325

 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/



--
View this message in context:
http://www.nabble.com/My-First-Plugin---Custom-Select-Box-tf2893253.html#a8084033
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/





--
Yehuda Katz
Web Developer | Wycats Designs
(ph)  718.877.1325
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Duplicating Events in a New Object

2006-12-28 Thread Aaron Heimlich

On 12/28/06, Yehuda Katz [EMAIL PROTECTED] wrote:


element.onclick should be a pointer to the click function, if it exists.



jQuery also adds an events property to each element that it handles events
for (it contains references to all of the event handlers registered by
jQuery to that element, organized by event type), so you should copy that as
well.

element.onevent type is actually a reference to jQuery.event.handle,
which takes care of calling the appropriate event handlers at the
appropriate times.

--
Aaron Heimlich
Web Developer
[EMAIL PROTECTED]
http://aheimlich.freepgs.com
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] dreamweaver and CodeHints for jquery

2006-12-28 Thread bmsterling

Hey guys and gals,
I know some of us use DW to do their coding for the pretty colors and the
code hints it provides, and since I have been using jquery for, well,
everything I decided to start creating those codehints.  attached is what I
have so far, which is only the $ and A section of the jquery.com/api page
and probably won't put to much effort into it till the next version of
jquery comes out (i read there will be a bunch of deletions from the code).

Here is a quick tutorial to get it going:
1. goto C:\Program Files\Macromedia\Dreamweaver 8\Configuration\CodeHints or
where ever you have your DW install at.
2a. back up your CodeHints.xml file
2b. open CodeHints.xml in notepad ++ or any other editor, NOT DW it is kinda
link operating on your brain while your thinking, can't be good.
3. Go all the way to the bottom of the page just above /menugroup and
paste the content of the attached doc.
4. save the file and open up DW and a new JS file and test it out.

http://www.nabble.com/file/5147/jquerycodehints.xml jquerycodehints.xml 

let me know your thoughts.


--
Benjamin Sterling
kenzomedia.com
kenzohosting.com
-- 
View this message in context: 
http://www.nabble.com/dreamweaver-and-CodeHints-for-jquery-tf2893497.html#a8084177
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] My First Plugin - Custom Select Box

2006-12-28 Thread blemming

I tried to do a version replacing the select tag but I couldn't figure out
how to get the html from within the option tag.  I could only get the text
using html() or text().

Any ideas?


wycats wrote:
 
 Ah,
 
 My ideal situation would be to have a select box that gets converted via
 JS
 for graceful degradation.
 
 -- Yehuda
 
 On 12/29/06, blemming [EMAIL PROTECTED] wrote:


 * Be stylable in terms of borders and padding (based on the styles on the
 select box itself)

 There is no select box present in my plugin. If you notice it is based on
 a
 grouping of nested divs and the padding and borders can be controled via
 css

 * Delegate events on the custom select to the actual select (to allow for
 $(select).click( // ))

 Since there is no select box present I'm not sure how to delegate the
 events
 to $(select) but I would love to know how to do it

 * Position as you would expect a normal select box to position (minus
 weird
 off-pixel problems)

 it does

 * Be able to float

 Yep, the container div can be styled to float.


 wycats wrote:
 
  My ideal custom select would:
   * Be stylable in terms of borders and padding (based on the styles on
 the
  select box itself)
   * Delegate events on the custom select to the actual select (to allow
 for
  $(select).click( // ))
   * Position as you would expect a normal select box to position (minus
  weird
  off-pixel problems)
   * Be able to float
 
  In other words, I would want the existence of the custom select to be
  basically invisible from an implementer. How well does your custom
 select
  do
  this?
 
  -- Yehuda
 
  On 12/28/06, blemming [EMAIL PROTECTED] wrote:
 
 
  Here is my first attempt at a plug-in.  It is definitely in the early
  stage
  of development, but I thought I'd put it out here for you guys to rip
  apart
  (and hopefully provide a suggestions or two)
 
  Here it is =   http://brilliantretail.com/cases/select/ Custom Select
  Plugin
 
  Let me know what you think.
 
  Thanks, David
  --
  View this message in context:
 
 http://www.nabble.com/My-First-Plugin---Custom-Select-Box-tf2893253.html#a8083502
  Sent from the JQuery mailing list archive at Nabble.com.
 
 
  ___
  jQuery mailing list
  discuss@jquery.com
  http://jquery.com/discuss/
 
 
 
 
  --
  Yehuda Katz
  Web Developer | Wycats Designs
  (ph)  718.877.1325
 
  ___
  jQuery mailing list
  discuss@jquery.com
  http://jquery.com/discuss/
 
 

 --
 View this message in context:
 http://www.nabble.com/My-First-Plugin---Custom-Select-Box-tf2893253.html#a8084033
 Sent from the JQuery mailing list archive at Nabble.com.


 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/

 
 
 
 -- 
 Yehuda Katz
 Web Developer | Wycats Designs
 (ph)  718.877.1325
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 
 

-- 
View this message in context: 
http://www.nabble.com/My-First-Plugin---Custom-Select-Box-tf2893253.html#a8084263
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] dreamweaver and CodeHints for jquery

2006-12-28 Thread bmsterling

btw,
If you want to give the functions color in DW, goto C:\Documents and
Settings\[Your Directory]\Application Data\Macromedia\Dreamweaver
8\Configuration\CodeColoring and open CodeColoring.xml (of course you should
make a back up) and at about line 534 or so paste the code below just below
line 534:

keywords name=jQueryObjects Keywords
id=CodeColor_JavascriptjQueryObjects
keyword$/keyword
keyword.ajax/keyword
keyword.ajaxTimeout/keyword
keyword.browser/keyword
keyword.each/keyword
keyword.extend/keyword
/keywords
keywords name=jQuery Keywords 
id=CodeColor_JavascriptjQuery
keyword.add/keyword
keyword.addClass/keyword
keyword.after/keyword
keyword.ajaxComplete/keyword
keyword.ajaxError/keyword
/keywords

Then open dreamweaver and goto Edit -Preferences - Code Coloring -
Document Type [Javascript] - Click Edit Coloring Scheme - click on
Javascript jQuey Keywords  and/or Javascript jQueryObjects Keywords and
change the colors for each.  I chose a dark green for the objects and dark
red and italic for the other keywords.  Keep in mind this is just a partial
list.

--
Benjamin Sterling
kenzomedia.com
kenzohosting.com
-- 
View this message in context: 
http://www.nabble.com/dreamweaver-and-CodeHints-for-jquery-tf2893497.html#a8084386
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] dreamweaver and CodeHints for jquery

2006-12-28 Thread himynameiznate


I love both of these, but any way to get a full list? The partial list is
only of little help :)
Either way, awesome stuff, and thank you,


bmsterling wrote:
 
 btw,
 If you want to give the functions color in DW, goto C:\Documents and
 Settings\[Your Directory]\Application Data\Macromedia\Dreamweaver
 8\Configuration\CodeColoring and open CodeColoring.xml (of course you
 should make a back up) and at about line 534 or so paste the code below
 just below line 534:
 
   keywords name=jQueryObjects Keywords
 id=CodeColor_JavascriptjQueryObjects
   keyword$/keyword
   keyword.ajax/keyword
   keyword.ajaxTimeout/keyword
   keyword.browser/keyword
   keyword.each/keyword
   keyword.extend/keyword
   /keywords
   keywords name=jQuery Keywords 
 id=CodeColor_JavascriptjQuery
   keyword.add/keyword
   keyword.addClass/keyword
   keyword.after/keyword
   keyword.ajaxComplete/keyword
   keyword.ajaxError/keyword
   /keywords
 
 Then open dreamweaver and goto Edit -Preferences - Code Coloring -
 Document Type [Javascript] - Click Edit Coloring Scheme - click on
 Javascript jQuey Keywords  and/or Javascript jQueryObjects Keywords
 and change the colors for each.  I chose a dark green for the objects and
 dark red and italic for the other keywords.  Keep in mind this is just a
 partial list.
 
 --
 Benjamin Sterling
 kenzomedia.com
 kenzohosting.com
 

-- 
View this message in context: 
http://www.nabble.com/dreamweaver-and-CodeHints-for-jquery-tf2893497.html#a8084497
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/