[jQuery] ajaxifying the whole site

2008-12-23 Thread mark
hi a lot of sites are ajaxifying the complete site for example facebook.com, orkut.com with their url structure being #new_request.php?... can i use jquery to do something like this?

[jQuery] Re: clearcase error when trying to add jquery-1.2.6.min.js to source control

2008-12-02 Thread Mark Jones
Hi ksun, I seem to recall reading somewhere that you need to set the file type for jquery as compressed in clearcase (this gets around the long line issue). Hope that helps... Mark On Dec 2, 6:45 am, ksun [EMAIL PROTECTED] wrote: Today  I tried adding jquery-1.2.6.min.js to source

[jQuery] jQuery plug-in to preload javascript?

2008-12-01 Thread Mark Livingstone
Hi. There are numerous plug-ins to preload images, but is there a way to preload javascript? My application uses around 12 plug-ins and they take about 20 seconds or so to load before the page shows... so, is there a way I can display a loading message while I somehow preload the scripts?

[jQuery] how can i find() including self?

2008-11-28 Thread Mark Gibson
this.find(selector); } }; I'm puzzled as to how to combine the owned elements and the descendants of the context elements, and find the using the requested selector. Any ideas? Cheers -Mark

[jQuery] Re: tabindex for beginners

2008-11-26 Thread Mark Gibson
, is to exclude any inputs that already have a tabindex attr: $(':input:not([tabindex])').attr('tabindex', -1); Hope this helps - Mark On Nov 25, 1:04 pm, gil_yoktan [EMAIL PROTECTED] wrote: Hello I finally managed to make jquery work for me. I want to set all input tabindex to -1 (not selectable

[jQuery] Re: Anyone know how to find the topmost elements of a specific type?

2008-11-26 Thread Mark Gibson
more ul's which in turn need processing. Also the exact structure is not known, so I can't rely on child '' ops. I think it could be done by stopping find() from going any deeper once it finds match, but from looking at the jQuery src, find() is a little baffling. Thanks for help so far - Mark

[jQuery] Re: Load JQuery only once

2008-11-20 Thread Mark Jones
Raphael, I often use something like this to test and then dynamically load the jquery library: try { //simple statement to see if jquery has already been loaded jQuery('body').addClass('jqueryPage'); } catch(err) { var scriptObj = document.createElement(script);

[jQuery] Re: Form with two buttons determining which was clicked

2008-11-19 Thread Mark Steudel
18, 2008 at 1:05 PM, Mark Steudel [EMAIL PROTECTED] wrote: Hey hector, first off thanks for all your help. So I have the following: $(#form).submit( function(event) {                var element = event.target;                alert(  $(element).attr(id) );                return

[jQuery] Form with two buttons determining which was clicked

2008-11-18 Thread Mark Steudel
Hi I have a form that has two submit buttons I am utilizing the following ajaxSubmit code: $(#form).submit( function() { $(this).ajaxSubmit({ target: '#response' }); return false; } ); Inside the submit function is

[jQuery] droppable getting position of dropped element relative to the dropped div

2008-11-18 Thread mark
hi on the call back of drop function i get the ui element with which i can get the following position.. # ui.position - current position of the draggable helper the above is relative to the div from which it was dragged # ui.absolutePosition - current absolute position of the draggable helper

[jQuery] Re: Form with two buttons determining which was clicked

2008-11-18 Thread Mark Steudel
://docs.jquery.com/Events_(Guide) -Hector On Tue, Nov 18, 2008 at 10:47 AM, Mark Steudel [EMAIL PROTECTED] wrote: Hi I have a form that has two submit buttons I am utilizing the following ajaxSubmit code: $(#form).submit( function() {                $(this).ajaxSubmit

[jQuery] Re: Form with two buttons determining which was clicked

2008-11-18 Thread Mark Steudel
('id'); // returns the id of the element element.getAttribute('id'); // also returns the id in native javascript, but does not work in IE (of course...) I hope this helps! :) -Hector On Tue, Nov 18, 2008 at 11:51 AM, Mark Steudel [EMAIL PROTECTED] wrote: Thanks that worked great. I don't

[jQuery] Re: Form with two buttons determining which was clicked

2008-11-18 Thread Mark Steudel
of the element element.getAttribute('id'); // also returns the id in native javascript, but does not work in IE (of course...) I hope this helps! :) -Hector On Tue, Nov 18, 2008 at 11:51 AM, Mark Steudel [EMAIL PROTECTED] wrote: Thanks that worked great. I don't have much experience working

[jQuery] Re: Anyone know how to find the topmost elements of a specific type?

2008-11-17 Thread Mark Gibson
[EMAIL PROTECTED] wrote: $('#container ul:first') should give you the first UL in the container -Hector On Mon, Nov 10, 2008 at 4:50 PM, Mark Gibson [EMAIL PROTECTED] wrote: Anyone know how I can find the topmost elements of a certain type, eg. Say I have several ul lists on a page

[jQuery] Anyone know how to find the topmost elements of a specific type?

2008-11-10 Thread Mark Gibson
selectors, have i overlooked something? Ideally I'd like to do: $('ul:topmost') or: $('#container ul:topmost') Cheers - Mark

[jQuery] Re: [Superfish] pure CSS hover problem

2008-11-04 Thread Mark Spurlock
why dont you put a container element of equal width around each set of submenus so that it will take up the entire space regardless of number of items?

[jQuery] Help with syntax

2008-10-28 Thread Mark Mulder
Hi everyone, I've been playing with jQuery a lot lately but my skills could use a lot of work. I recently made this small snippet of script to show and hide tablerows from a link that looks like this: a href=1 class=ahref1/a this will show: tr class=box1 box tdetc/td /tr Javascript:

[jQuery] Re: Help with syntax

2008-10-28 Thread Mark Mulder
You can also get rid of the :not selection (which may be what's slowing things down) by first hiding *all* .box rows then just showing the one you want, rather than hiding after the fact: Thanks a lot for your input! The boxes don't the classes except box, so thanks I'll make id's out of

[jQuery] AJAX post, dynamic data field names

2008-10-27 Thread Mark Steudel
Let's say we have the following piece of code: $.post(/scripts/admin.course.php, { elemname: value1, elemname2: value2 } , function(data){} ); Is there a way to dynamically set the field name? e.g. var elemname = 'newname'; $.post(/scripts/admin.course.php, { elemname: value1, elemname2:

[jQuery] drag drop, and store dropped location

2008-10-25 Thread mark
hi all i want to be able to drag elements and drop it, and then store the location where it was dropped, so that i can make the drag drop persistent. i saw the jquery ui draggable library, but how do i get the dropped location? thanks!

[jQuery] Re: jquery autocomplete local data

2008-09-29 Thread Mark Szu
On Sep 11, 1:09 pm, Julian [EMAIL PROTECTED] wrote: anyone? The way around it is to save the input widget names into the array and initialize it again after flush. ___Mark Szu

[jQuery] Re: $.getScript in Firefox 3

2008-09-16 Thread Mark T
execute fine. Why is it that local files are not loaded using the src attribute of the script tag too? Mark. On Sep 16, 11:57 am, robert_shipley [EMAIL PROTECTED] wrote: Posted by Rob on Behalf of Mark... I've been doing a little investigation into this (I'm a colleague of Rob's) and we are still

[jQuery] Re: $.getScript in Firefox 3

2008-09-16 Thread Mark T
whether the URL is remote. This will force all scripts to use the script src=??? and onreadystatechange / onload events whether they are remote or local. I'd be interested in hearing why using the alternative way for local scripts is better. Cheers, Mark. On Sep 16, 11:57 am, robert_shipley [EMAIL

[jQuery] Re: $.getScript in Firefox 3

2008-09-16 Thread Mark T
Hmm, actually I think I'm still getting the problem, it's just being quiet about it now :( On Sep 16, 3:00 pm, Mark T [EMAIL PROTECTED] wrote: Ok, my temporary fix has been to alter the following block of code from line 2656 in jquery 1.2.6:                 // If we're requesting a remote

[jQuery] Re: $.getScript in Firefox 3

2008-09-16 Thread Mark T
Actually, scratch that - it seems to be working now. I'd still appreciate a comment from a jQuery guru on the original problem I've worked around here! Mark.

[jQuery] Redirect interupts ajax call

2008-09-08 Thread Mark Steudel
I have the below code, and it works, until I put the js redirect in. Why is this happening? I thought the, function gets called after a succesful ajax call ... anyway a bit of help would be greatly appreciated. $(document).ready(function(){ var url = '/scripts/orders.php'; var

[jQuery] Re: Redirect interupts ajax call

2008-09-08 Thread Mark Steudel
Oh .effect is part of the Jquery ui library. I wanted a field to briefly flash letting the user know something has changed, but then the client wanted the page to redirect, so I can probably take out the effect. On Sep 8, 5:52 pm, MorningZ [EMAIL PROTECTED] wrote: Building on what Dave posts:

[jQuery] Re: Redirect interupts ajax call

2008-09-08 Thread Mark Steudel
Thanks again, tried this out and everything worked great. Amazing what happens when you do things the right way. :) On Sep 8, 5:52 pm, MorningZ [EMAIL PROTECTED] wrote: Building on what Dave posts: $(document).ready(function(){         var url = '/scripts/orders.php';         var returnUrl

[jQuery] Re: Redirect interupts ajax call

2008-09-08 Thread Mark Steudel
Thanks guys I'll try that out. Appreciate the help! Mark On Sep 8, 5:52 pm, MorningZ [EMAIL PROTECTED] wrote: Building on what Dave posts: $(document).ready(function(){         var url = '/scripts/orders.php';         var returnUrl = '/admin/dashboard';          function finish( message

[jQuery] BlockUI Plugin Doesn't Unblock in IE 6/7

2008-07-21 Thread Mark
Hi, I'm not the first person to post this problem: http://groups.google.com/group/jquery-en/browse_thread/thread/4c60ce58e256afb5/1538fee2d0db4d21?show_docid=1538fee2d0db4d21 http://www.nabble.com/Problem-with-blockUI-plugin-td17185345s27240.html and not sure whether this is the best forum in

[jQuery] Re: BlockUI Plugin Doesn't Unblock in IE 6/7

2008-07-20 Thread Mark
Dear Syam, That solved it! Thank you for catching that. On Jul 20, 3:16 pm, Syam [EMAIL PROTECTED] wrote: Please check your HTML. It's missing a closing div (put a /div just before /form) Hope that helps! -Syam On Jul 20, 1:17 am, Mark [EMAIL PROTECTED] wrote: Hi, I'm

[jQuery] Internet Explorer 6 Not Running Code

2008-07-13 Thread Mark
Hi, I'm not sure whether this is where to post this, but I have some jquery code that runs in FF but is not executing in IE6. function LoadFields() { if(this.id) { //some code } else // first load { // build the HTML

[jQuery] Editable SELECT element plug-in?

2008-07-11 Thread Mark Livingstone
Would anyone happen to know of some in-place editable plug-in for SELECT elements similar to http://code.google.com/p/jquery-jec/ ? Jquery-jec doesn't only allows me to add a new item into the select box, but not to edit fixed options. Thanks.

[jQuery] clueTip request: content option

2008-06-21 Thread Mark
').cluetip({content: 'This is a tooltip'}); that would show a simple tooltip with the text: 'This is a tooltip' This would really solve all my tooltip problems and is probably suitable for a lot of other people as well. Thanx, Mark

[jQuery] Re: Why do i keep getting: test is not defined!

2008-06-20 Thread Mark
will take a look at that unobtrusive javascript but any suggestions for good docs about that? -- Josh - Original Message - From: Mark [EMAIL PROTECTED] To: jquery-en@googlegroups.com Sent: Thursday, June 19, 2008 4:13 PM Subject: [jQuery] Re: Why do i keep getting: test is not defined

[jQuery] Re: Why do i keep getting: test is not defined!

2008-06-20 Thread Mark
just want it to work with href as well! On Fri, Jun 20, 2008 at 12:44 PM, Liam Byrne [EMAIL PROTECTED] wrote: How are you calling removeItem ? It needs two parameters - the name and the object reference. Liam Mark wrote: hey, function removeItem(name, obj) { var answer = confirm

[jQuery] Re: How do i display a tooltip from a hidden div?

2008-06-20 Thread Mark
please... On Thu, Jun 19, 2008 at 10:42 PM, Mark [EMAIL PROTECTED] wrote: Hey, I've spend the last few hours very trying to find a tooltip plugin that can just show a hidden div when i move my mouse over a link. I've looked at clueTip and that has nearly what i need. The clueTip sticky

[jQuery] How do i display a tooltip from a hidden div?

2008-06-19 Thread Mark
real thing i can find all the time is loading it in from ajax or using the title attribute.. both won't work for me. Any help would be nice. Thanx, Mark

[jQuery] Why do i keep getting: test is not defined!

2008-06-19 Thread Mark
hey, function removeItem(name, obj) { var answer = confirm(Are you sure you want to delete: + name + ?) var test = obj; if (answer) { $(test.parentNode.parentNode).fadeOut(slow); } } the code is simple and still not working.. the issue is that i try to call a

[jQuery] Re: Why do i keep getting: test is not defined!

2008-06-19 Thread Mark
removeItem('myitem', myobject); // obj is defined -- Josh - Original Message - From: Mark [EMAIL PROTECTED] To: jquery-en@googlegroups.com Sent: Thursday, June 19, 2008 4:02 PM Subject: [jQuery] Why do i keep getting: test is not defined! hey, function removeItem(name, obj

[jQuery] Re: datepicker setDate

2008-06-11 Thread mark
On Mon, Jun 9, 2008 at 4:20 AM, andrea varnier [EMAIL PROTECTED] wrote: On 8 Giu, 05:36, mark [EMAIL PROTECTED] wrote: but if i do this $('#date').datepicker(setDate, new Date ( January 6, 1972 )); try adding curly braces, to define an object, like this: $('#date').datepicker

[jQuery] load pre-rendered html

2008-06-11 Thread mark
hi i want to have a set of pre-rendered html loaded into a div dynamically.. the .load() function gets it from a remote url. is it possible to load from a javascript variable/ that is pre-rendered in to the current html somehow? thanks

[jQuery] Re: validate works in firefox 3, but not in IE 7

2008-06-11 Thread mark
OK, thanks.. that fixed the problem!!! On Mon, Jun 9, 2008 at 2:40 PM, Jörn Zaefferer [EMAIL PROTECTED] wrote: You've got a trailing comma error, see eg. http://www.pluralsight.com/blogs/fritz/archive/2007/06/19/47771.aspx Jörn On Sun, Jun 8, 2008 at 1:57 AM, mark [EMAIL PROTECTED] wrote

[jQuery] Re: Ugly fade in IE?

2008-06-10 Thread Mark
the blockUI plugin, which doesn't have this problem? On Jun 9, 7:44 am, Mark [EMAIL PROTECTED] wrote: Hi guys, I'm trying to make a log in form fade in using jQuery.  It looks great in Firefox, but produces weird results in IE.  You can view it live athttp://city-demos.com/ Here's

[jQuery] Ugly fade in IE?

2008-06-09 Thread Mark
, the escape key words in Firefox but not in IE... IE doesn't seem to be getting the keydown event at allcan I fix this? Thanks! Mark

[jQuery] [validation] $ vs. jQuery problem

2008-06-09 Thread mark m
went away. Is this the correct way to handle this issue? And if so, how do we get it changes in the source? Thanks, Mark

[jQuery] hiding a div on document ready?

2008-06-07 Thread mark
hi, am just beginning with jquery, and i want to hide a div to begin. i tried this and it doesnt work and it is not hidden. do you know what is wrong? i also tried, $(durl).css(display,none); is this wrong? thanks html head script type=text/javascript

[jQuery] validate works in firefox 3, but not in IE 7

2008-06-07 Thread mark
hi, i have a simple form with validation that works really well in firefox3 / 2 but not in IE7. this is the html, how to debug or find what is wrong?? thanks !doctype html public -//W3C//DTD HTML 4.01//EN http://www.w3.org/TR/html4/strict.dtd; html head title title /title script

[jQuery] Re: validate works in firefox 3, but not in IE 7

2008-06-07 Thread mark
i meant validation does not work. form gets submitted even if the input fields are not valid and empty in IE7, but it works in firefox 3 and 2... On Sat, Jun 7, 2008 at 4:54 PM, mark [EMAIL PROTECTED] wrote: hi, i have a simple form with validation that works really well in firefox3 / 2

[jQuery] datepicker setDate

2008-06-07 Thread mark
hi, how do i correctly choose a default date using the datepicker. i am using v3.4.3. datepicker/ i can get the date picker working with the default date of today like this $('#date').datepicker(); where date is an input text field with id date. but if i do this

[jQuery] jQuery allow encoding into json?

2008-06-05 Thread Mark
could not find a function for it. Will be creating a complicated js object on client side. Want to encode that object into json, and stuff the value into a hidden form field for POST. anybody help a nubie?

[jQuery] Re: Why is this simple thing not working..??

2008-06-01 Thread Mark
2008/6/1 Peter [EMAIL PROTECTED]: Hi Mark, You don't need to wrap the hover function in an object. Instead you can use the hover function itself to store the static variable. In that case you don't need to set timeoutRunning before the first call as it is == undefined then. I did

[jQuery] Why is this simple thing not working..??

2008-05-31 Thread Mark
push in the right direction :) Thanx, Mark

[jQuery] Re: Why is this simple thing not working..??

2008-05-31 Thread Mark
Got it working with this: function Hovertest() { this.timeoutRunning = false; this.hover = function() { if (!this.timeoutRunning) { this.timeoutRunning = true; alert('true...'); } else { alert('JEAAA FALSE');

[jQuery] Re: Javascript of jQuery?

2008-05-19 Thread Mark
Thanks for all the advice guys. I think I'll get 'Simply Javascript' from sitepoint - or something similar - and start from there. I've got loads of programming experience so I spose I 've got a head start on a total noob! Cheers Mark. On May 19, 12:32 am, Josh Nathanson [EMAIL PROTECTED

[jQuery] Re: Javascript of jQuery?

2008-05-19 Thread Mark
Hey Karl, Thanks for posting ... I've taken your advice and order the Jeremy Kieth book ... Yours is next on the list! Cheers, Mark. On May 19, 1:04 pm, Karl Swedberg [EMAIL PROTECTED] wrote: Another great one for people just starting out with JavaScript is Jeremy Keith's DOM Scripting

[jQuery] Javascript of jQuery?

2008-05-18 Thread Mark
Hi, first post here ... I have searched and cant find an answer to this but I'm sure it's been asked before ...anyway, here goes: I have only a rudimentary grasp of javascript but I'm very interested in jQuery - so, is it better for me to learn Javascipt first and then jQuery Or is it

[jQuery] Re: Dynamically Filter List

2008-05-09 Thread Mark
Ahh.. this is a much better implementation! Thank you so much! Mark On May 5, 2:22 am, Wizzud [EMAIL PROTECTED] wrote: Depends what you want the list to finally contain (as opposed to being visible, that is). Here's an alternative... $(document).ready(function() { var arr = ['C+ +','D

[jQuery] Dynamically Filter List

2008-05-03 Thread Mark
Hi... so I'm new to jQuery. I'm using it to dynamically filter a list... I'm wondering if this is the best/most efficient method to go about doing it: html head titlejquery test/title script type=text/javascript src=js/jquery-1.2.3.min.js/ script script

[jQuery] Re: Required field via selection box

2008-04-29 Thread Mark Clemons
code. Any ideas? On Mon, Apr 28, 2008 at 10:44 PM, Wil Everts [EMAIL PROTECTED] wrote: Mark, Here's some general sketching to help you along. There are likely other/better ways to go about this, but this should work out for you. Where selectVar is the id of the select box: $j(#selectVar

[jQuery] Tablesorter question

2008-04-17 Thread Mark Quezada
First of all, this is a great plugin, many thanks! I have a bit of a specific implementation that I can't figure out. I have a table working and sorting correctly with the plugin, but because of a design decision, I have to allow the table body to scroll while the table headers remain fixed...

[jQuery] Tablesorter plugin question

2008-04-17 Thread Mark Quezada
First of all, this is a great plugin, many thanks! I have a bit of a specific implementation that I can't figure out. I have a table working and sorting correctly with the plugin, but because of a design decision, I have to allow the table body to scroll while the table headers remain

[jQuery] Tablesorter plugin question

2008-04-17 Thread Mark Quezada
First of all, this is a great plugin, many thanks! I have a bit of a specific implementation that I can't figure out. I have a table working and sorting correctly with the plugin, but because of a design decision, I have to allow the table body to scroll while the table headers remain fixed...

[jQuery] Re: Tool tip advice

2008-02-22 Thread Mark
plugin (http://plugins.jquery.com/project/tooltip) detects the browser border and avoids it. On Feb 21, 3:08 pm, Mark [EMAIL PROTECTED] wrote: Hey all, the design team here has a grid/table layout, with each image in a cell causing a tooltip style popup. Ok so, no worried so far

[jQuery] Tool tip advice

2008-02-21 Thread Mark
Hey all, the design team here has a grid/table layout, with each image in a cell causing a tooltip style popup. Ok so, no worried so far, BUT, for the last column, the tool tip flips it's orientation so it doesn't display over the page border. So image a 2x4 table, which images in each cell.

[jQuery] Re: onClick prepend

2008-02-02 Thread Mark
Anyone have any ideas at all on this problem? Our deadline is approaching fast! I think that the click() function attached to the DOM element must be the DOM level 2 stuff. Any ideas? Maybe there is a different approach I can try? Man, I wish IE wasn't such a pain! On Feb 1, 8:08 am, Mark

[jQuery] Re: onClick prepend

2008-02-01 Thread Mark
prototype object nsresult: 0x8057000c (NS_ERROR_XPC_BAD_OP_ON_WN_PROTO) location: JS frame :: http://localhost/tests/onclickPrepend.html :: anonymous :: line 20 data: no] http://localhost/tests/onclickPrepend.html Line 20 What is that? Mark On Jan 31, 12:02 pm, Mark [EMAIL PROTECTED] wrote: Ok

[jQuery] Re: onClick prepend

2008-01-31 Thread Mark
) ? global.eval(onClickAttr) : eval(onClickAttr); } } }); }); /script input type=button id=clickTester onclick=alert('Original Action Performed.'); value=Do It! On Jan 30, 3:11 pm, Mark T [EMAIL PROTECTED] wrote: I am trying to make the on-click event of any

[jQuery] onClick prepend

2008-01-30 Thread Mark T
I am trying to make the on-click event of any element optional depending on what the user decides. The only functions I see out there append a function to the on-click event. I have played with the browser bubbling / catching stuff too. That worked in Firefox but not in IE 7. It seems I can't

[jQuery] Call php from a jsp page between 2 servers ajax way

2008-01-23 Thread Mark Thien
Hi guys, I need to know if it's possible to call a php page, which is in Apache HTTP Server, using jquery ajax from a jsp page, which is in a tomcat server, and return an array of data. Appreciate if you can give me some advice. Thanks Regards, Mark

[jQuery] Re: How to have Autocomplete dropdown act like select box and trigger onchange event for input

2008-01-22 Thread Mark Thompson
please advise? On Jan 17, 1:36 pm, Mark Thompson [EMAIL PROTECTED] wrote: Any Ideas? MarkThompson On Jan 15, 2:38 pm,MarkThompson[EMAIL PROTECTED] wrote: I am trying to replace a previous bit of html that managed input by both an input and a select box. I now want to work with a single

[jQuery] Re: Autocomplete does not trigger onchange javascript code in input element.

2008-01-22 Thread Mark Thompson
please advise? On Jan 17, 1:35 pm, Mark Thompson [EMAIL PROTECTED] wrote: Anybody have a simpler or more detailed bit of help for the onchange problem I have? On Jan 14, 4:33 pm,MarkThompson[EMAIL PROTECTED] wrote: Thanks, but that is completely over my head at this point. I am not even

[jQuery] Re: Autocomplete does not trigger onchange javascript code in input element.

2008-01-17 Thread Mark Thompson
Anybody have a simpler or more detailed bit of help for the onchange problem I have? On Jan 14, 4:33 pm, Mark Thompson [EMAIL PROTECTED] wrote: Thanks, but that is completely over my head at this point. I am not even perfectly clear on what X = $(this) means or why var x = this is needed here

[jQuery] Re: How to have Autocomplete dropdown act like select box and trigger onchange event for input

2008-01-17 Thread Mark Thompson
Any Ideas? Mark Thompson On Jan 15, 2:38 pm, Mark Thompson [EMAIL PROTECTED] wrote: I am trying to replace a previous bit of html that managed input by both an input and a select box. I now want to work with a single input field using jquery.autocomplete.js, but I have not been able

[jQuery] Re: Trying to set the id of a 2nd level div and failing

2008-01-16 Thread Mark Lacas
immediate children which won't get you your second level divs in a single call from the #obj level, no matter what selector you use. eg... var obj = $(#obj); obj.find(.obj_level1.obj_level2).attr( id, Bob ); On Jan 15, 6:03 am, Mark Lacas [EMAIL PROTECTED] wrote: I'm trying to set the id

[jQuery] Trying to set the id of a 2nd level div and failing

2008-01-15 Thread Mark Lacas
I'm trying to set the id of a 2nd level obj selected by class and it doesn't seem to work as I thought it would. Unfortunately all of the level one objects get the id assignment, not the level two object. Here it is before I do the operation: div id=obj div class=obj_level1 div

[jQuery] How to have Autocomplete dropdown act like select box and trigger onchange event for input

2008-01-15 Thread Mark Thompson
]).autocompleteArray( [ %=cityList.toString()% ], { delay:10, autoFill:true, max:10 } ); } }); As I am very much a newbie to JavaScript and its plugins, any simple, or more complex but step-by-step, help would be greatly appreciated. Mark R. Thompson

[jQuery] Re: Autocomplete does not trigger onchange javascript code in input element.

2008-01-14 Thread Mark Thompson
Thanks, but that is completely over my head at this point. I am not even perfectly clear on what X = $(this) means or why var x = this is needed here. Mark Thompson On Jan 14, 1:56 pm, Diego A. [EMAIL PROTECTED] wrote: I work around the same issues with several other plugins as well... I'll

[jQuery] Kwick type horizontal accordion with jquery ?

2007-12-25 Thread Mark
Hey everyone! Happy holidays. Ive been on a 3 day hunt for a horizontal accordion that functions almost identically to the one offered by mootools. An example of this type of accordion can be see on the mootools homepage (http:// www.mootools.net) downloads/docs/blogs/trac. I want to use

[jQuery] replace missing image (onerror)

2007-12-22 Thread mark
I used to add an onerror even handler to img src tags to prevent images which do not show up. Is there a way to do this in Jquery?

[jQuery] Re: trigger all events of a type?

2007-12-20 Thread Mark Hahn
Here's what I was thinking of, untested: $(document).bind(myEvent, subscriber_element, function(event) { alert(I received an event without subscribing!); alert(my node type is +event.data.nodeType); }); $(document).trigger(myEvent); The basic idea is to pass the subscribing

[jQuery] Autocomplete: matching on only part of the displayed text rather than entire row

2007-12-19 Thread Mark
to the bird's name rather than to the entire text string (which also includes the id, or taxonomic name of the bird). For example: Search for cap returns: Blackcap (id: Sylvia atricapilla) Search for syl returns: none Could someone please point out where this logic resides? Thanks, Mark

[jQuery] Re: trigger all events of a type?

2007-12-16 Thread Mark Hahn
If I understand you correctly, you are saying to bind all my events to the single DOM element document, correct? I agree that would be very fast. My goal though is for objects that are attached all over the DOM (expandos) to receive events. If the events went to document, how would I dispatch

[jQuery] Click through on stacked elements

2007-11-30 Thread Mark Lacas
I'm struggling to figure out a way to click through a series of stacked elements until I find one with my custom click handler. Is there an easy way to do this? For example I have a image of a US map and I want to put a clickable image behind it. When I click on the place where the image is

[jQuery] Re: Jquery Ajax dropping special characters

2007-11-27 Thread Mark Lacas
Why not escape the data with javascript's escape function? It fixes all the illegal characters. ml

[jQuery] Re: Bug in jQuery selector or am I just not understanding?

2007-11-26 Thread Mark Lacas
All those divs are necessary for the type of system I'm building. Can't talk about it yet, but when we release I can explain why. Solved the problem by using the in between my selectors. I adore jQuery and love becoming smarter about jQuery every day from this list. Amazing resource. ml

[jQuery] Bug in jQuery selector or am I just not understanding?

2007-11-25 Thread Mark Lacas
Why does the code below show the values for the two alerts to be: bilbo and layout_1 ? I would have expected: bilbo and bilbo. I thought the cascading selectors would have chosen the dp_properties class that is the first child level of the selected div. . .not the dp_properties class buried two

[jQuery] Re: .css() doesn't seem to work when I add the transitional DTD to my index page?

2007-11-22 Thread Mark Lacas
Nevermind, The browser just doesn't let bad syntax work. Note, I left off the px extension on posx and posy and that was what was making it fail. Now back to your regularly scheduled program. ml On Nov 21, 10:14 am, Mark Lacas [EMAIL PROTECTED] wrote: I'm having a weird problem. . . When

[jQuery] .css() doesn't seem to work when I add the transitional DTD to my index page?

2007-11-21 Thread Mark Lacas
I'm having a weird problem. . . When I add: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; to the top of my index page, the css calls from the code snippet below stop working. //

[jQuery] Re: Accordion or jQuery broken if the accordion data is loaded dynamically

2007-11-19 Thread Mark Lacas
Got it! Turns out unaccordion() is your friend when finished with an accordion group. Most pages won't need this because a reload of the page fixes things. Dynamic loading of accordion blocks does need to unaccordion() when finished with the accordioned data. If you don't call

[jQuery] Re: Accordion or jQuery broken if the accordion data is loaded dynamically

2007-11-19 Thread Mark Lacas
Got it! Turns out unaccordion() is your friend when finished with an accordion group. Most pages won't need this because a reload of the page fixes things. Dynamic loading of accordion blocks does need to unaccordion() when finished with the accordioned data. If you don't call

[jQuery] Accordion or jQuery broken if the accordion data is loaded dynamically

2007-11-17 Thread Mark Lacas
Trying this again to see if anyone has any clues. I have been doing some dynamic things with accordion and have found some areas that don't work. After some rather extensive debugging it appears that the problem lies in jQuery. I'm doing some very dynamics things with the content that lives

[jQuery] queue issue

2007-11-13 Thread Mark
searched this list for common issues but was unable to fine any. Thanx, Mark

[jQuery] Re: Nested getJSON

2007-11-12 Thread Mark Lacas
. Can anyone enlighten me on this? On Nov 11, 10:07 am, herbasher [EMAIL PROTECTED] wrote: Pretty, pretty. What's your problem? What are you working on? Herb On Nov 10, 3:45 pm, Mark Lacas [EMAIL PROTECTED] wrote: Here is my code: $.getJSON(/cgi-bin/messages.cgi, { id: last_message

[jQuery] Is getJSON reentrant? Can I nest them?

2007-11-10 Thread Mark Lacas
It appears that I can't nest getJSON calls. When I make the second call, the throbber in Firebug spins forever. I'm getting a list of changes from a database and then trying to get more precise data on each change with a second getJSON call in an anonymous function in the first getJSON call.

[jQuery] Nested getJSON

2007-11-10 Thread Mark Lacas
Here is my code: $.getJSON(/cgi-bin/messages.cgi, { id: last_message }, function( json ) { $.each( json.messages, function( i, item ){ if ( item.command == new ) { $.getJSON(/cgi-bin/get_data.cgi, { id: item.id, fields: all }, function( json ) {

[jQuery] Re: Problems with Accordion seems to be with jQuere itself

2007-11-06 Thread Mark Lacas
It works in FF the first time. Did you close it and try it a second time? That's when it breaks for me. ml On Nov 5, 5:05 am, Dan G. Switzer, II [EMAIL PROTECTED] wrote: Mark, I have been doing some dynamic things with accordion and have found some areas that don't work. After some

[jQuery] Problems with Accordion seems to be with jQuere itself

2007-11-05 Thread Mark Lacas
I have been doing some dynamic things with accordion and have found some areas that don't work. After some rather extensive debugging it appears that the problem lies in jQuery. I'm doing some very dynamics things with the content that lives in the accordion. The problems I've found seem to

[jQuery] Re: problem with jquery

2007-10-25 Thread mark
Thanks Rob. You were correct..its working fine now. On Oct 25, 12:55 am, Rob Desbois [EMAIL PROTECTED] wrote: Mark, I think you are saving the document as rich text format (RTF). Try pasting the code sample into notepad and save it from there. Once that works, make sure

[jQuery] Re: problem with jquery

2007-10-25 Thread mark
thanks Karl On Oct 25, 3:27 am, Karl Swedberg [EMAIL PROTECTED] wrote: Hi Mark, Make sure you return false so that the link doesn't trigger the default behavior (which is to go to the url): $(document).ready(function() { $(a).click(function() { alert(Hello world

<    1   2   3   >