[jQuery] Re: what's the best way to catch malformed xml in an ajax call?

2007-04-22 Thread Klaus Hartl
Ⓙⓐⓚⓔ schrieb: I use the error callback, but it doesn't get called back when the xml is malformed. Do I need to use the complete callback?? Yes, I think so. Or the success callback. The reason is, that the response has been successfully delivered, just with ill-formed XML. You may need a t

[jQuery] Re: Autocomplete plugin

2007-04-22 Thread James Trix
Well I ported the search code to asp as the server is windows based and also now also use SQL to hold the data as per the ideas from last week but I have a problem. I can run search.asp?q=ABC or search.php?q=ABC and both will output what appears to be the same even down to the byte count. but whe

[jQuery] what's the best way to catch malformed xml in an ajax call?

2007-04-22 Thread Ⓙⓐⓚⓔ
I use the error callback, but it doesn't get called back when the xml is malformed. Do I need to use the complete callback?? -- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ

[jQuery] Re: DOM manupulation problem

2007-04-22 Thread Ⓙⓐⓚⓔ
It's a little part of a current project. lots of xml & ajax! I needed html out of xml too! so I threw it together... It hasn't been optimized but it works for me. If you make it better, re-post it! I assumed that few people would need it, glad it's found another use. On 4/22/07, dropx <[EMAIL

[jQuery] Re: DOM manupulation problem

2007-04-22 Thread dropx
Thanks Man! This is exactly why I want. I wonder why they do not manipulate this function to the JQuery's .html() function for xml documents ? anyway thanks alot for this sweet script :) On Apr 23, 7:21 am, "Ⓙⓐⓚⓔ" <[EMAIL PROTECTED]> wrote: > I've been using some code I threw together, does it wor

[jQuery] Re: DOM manupulation problem

2007-04-22 Thread Ⓙⓐⓚⓔ
I've been using some code I threw together, does it work for you? $.fn.xml = function () {return $.xml(this[0])} $.xml = function(xml) { // dump the xml back to html text if (!xml) return "" var res = "" var tag = xml.nodeName var showTheTag = tag.charAt(0) != "#" if (showTheTag) r

[jQuery] Re: block style on Sortable

2007-04-22 Thread John C. Bland II
I'll try in onStart and see how that works. Right now it isn't the final result. It is the dragging that looks crappy. The onStop might help the forcing to vertical. I'll see. Thanks. On 4/22/07, Dan G. Switzer, II <[EMAIL PROTECTED]> wrote: John, > I've been trying to figure out why

[jQuery] Re: Sortable reverting to original state

2007-04-22 Thread John C. Bland II
I wish I could show the page but I can't (it is a cms that is protected). Here is the code: This one reverts. // drag and drop content items in content_right $("#contentSortContainerLeft").Sortable({ accept: 'entry-block', activeclass: 'sortableactive', hoverclass: 'sortablehover', helperc

[jQuery] DOM manupulation problem

2007-04-22 Thread dropx
Hi guys, i have a problem about DOM i hope some one can help me. problem; I get a xml file and manipulate it with javascript. As below I want to get the html text in the tag as html. however, with i javascipt i can only read child by child but this is a problem because when the html text is too

[jQuery] Recommended way to overload jquery method?

2007-04-22 Thread howard chen
I want to overload some core jQuery method, e.g. trim() method any codes sample or recommendation to do this? thanks.

[jQuery] Re: Specifying user agent with ajax

2007-04-22 Thread Ⓙⓐⓚⓔ
try this! $.ajaxSetup({beforeSend:function(req){req.setRequestHeader ("User-Agent","pokemon")}}) On 4/22/07, Yansky <[EMAIL PROTECTED]> wrote: Hmm, I thought I responded earlier but it seems google groups didn't get my message. Apologies if I'm double posting. On Apr 23, 12:48 am, "Dan G. S

[jQuery] Re: Specifying user agent with ajax

2007-04-22 Thread Yansky
Hmm, I thought I responded earlier but it seems google groups didn't get my message. Apologies if I'm double posting. On Apr 23, 12:48 am, "Dan G. Switzer, II" <[EMAIL PROTECTED]> wrote: > What are you trying to do exactly? The user agent is passed in during a XHR > request--just like a normal H

[jQuery] Re: BlockUI stops anchors from appearing in the url

2007-04-22 Thread Mike Alsup
Kush, I really don't know what you're asking here. What exactly are you trying to do? Mike On 4/22/07, Kush Murod <[EMAIL PROTECTED]> wrote: Hi, I wanted to pass anchors to url so they would be bookmarkable just like tabs plugin. For some reason bookmark never gets passed to url. Then aft

[jQuery] Re: Forms and Multiple File Uploads

2007-04-22 Thread Mike Alsup
Hi Cheese, Do you have a sample page for this problem? Mik On 4/21/07, Cheesegrits <[EMAIL PROTECTED]> wrote: Has anyone gotten the Multiple File Uploads plugin to work with the Forms plugin? I can happily upload multiple files via Ajax with the Forms plugin, but I really want to add the Mu

[jQuery] ajax and links

2007-04-22 Thread Tom Shafer
is it possible to have the url and the data come from the link href using the ajax funtions in jquery?

[jQuery] automatic scroll like google calendar

2007-04-22 Thread onlyafriend
Hi when you open the google calendar, the table scroll automatic and show since 8.00 hours forward, i've used scrollabletable.js to do my grid with days and hours scrollabe , but i don't find something in jquery to do scroll the tbody in the table. thanks

[jQuery] OT: How to request something from the google groups folks?

2007-04-22 Thread Chris Jordan
Does anyone know if you can request a feature for GoogleGroups? Just in case someone from Google is monitoring (... they *do* do that don't they?) here's my request: I've got a request for the web based interface. I'd like to see a method of adding code windows. Not unlike those in BlogCFC or ove

[jQuery] CFJS now at version 1.0.5

2007-04-22 Thread Chris Jordan
Hi folks, Just a quick note that I've made some significant improvements to the CFJS for jQuery plug-in. Most noticeably is the inclusion of all but one of the ColdFusion List functions. I've left out ListQualify() because in the context of JavaScript it didn't seem particularly useful to me. If

[jQuery] Re: question about DOM manipulation

2007-04-22 Thread Diego A.
I don't know of one but I'm sure you'll find something: http://www.google.co.uk/search?sourceid=navclient-ff&ie=UTF-8&rls=GGGL,GGGL:2006-14,GGGL:en&q=jquery+ticker http://jquery.com/plugins/ On Apr 22, 9:02 pm, joomlafreak <[EMAIL PROTECTED]> wrote: > Thank you very much for your reply. > > I wil

[jQuery] Re: Dean Edwards Packer & Interface accordion.js...

2007-04-22 Thread Dan G. Switzer, II
Jake, >Would you guys share the way you combine the different libs, and any other >wisdom you can shed. > >My first try failed, with an error message that jquery wasn't defined. Do I >have to cat all my srcs along with jquery.js to do a packer?? It can be a lot of trial and error at times. Howev

[jQuery] Re: block style on Sortable

2007-04-22 Thread Dan G. Switzer, II
John, > I've been trying to figure out why interface is jacking up my layouts >every time I do a sort by tweaking my code, css, etc. After wasting a ton >of time I saw the link for the source code in interface and looked through >isortable.js. > > Lo and behold: shs.display = 'block';

[jQuery] Re: Sortable reverting to original state

2007-04-22 Thread Dan G. Switzer, II
John, >Hello? Anyone? Your description w/out code to reference is pretty vague. I would guess you'd get more help if you provide a link to the page that's causing the problem--or an example of the problem. -Dan >On 4/21/07, John C. Bland II <[EMAIL PROTECTED]> wrote: > > Ok...this one is

[jQuery] Postpone Link action

2007-04-22 Thread Kevin
Hi all, Quick question.regarding jquery. I want to create a transition out, whenever anyone clicks on a link on a page, so ned to capture the href, show the transition then go to that page. I've seen some methods of delaying using fake transitions and also setTimeout, but despite searching quite

[jQuery] Re: Sortable reverting to original state

2007-04-22 Thread John C. Bland II
Hello? Anyone? On 4/21/07, John C. Bland II <[EMAIL PROTECTED]> wrote: Ok...this one is dumb but it is happening and I can't see where/why. Same exact code is copied/pasted then tweaked slightly. The tweak is merely a change of which container ID to target and the css classes for respective el

[jQuery] Re: block style on Sortable

2007-04-22 Thread John C. Bland II
DING DONG. Anyone know what's up here? On 4/21/07, John C. Bland II <[EMAIL PROTECTED]> wrote: {urgent} I've been trying to figure out why interface is jacking up my layouts every time I do a sort by tweaking my code, css, etc. After wasting a ton of time I saw the link for the source code i

[jQuery] Re: Dean Edwards Packer & Interface accordion.js...

2007-04-22 Thread Ⓙⓐⓚⓔ
Would you guys share the way you combine the different libs, and any other wisdom you can shed. My first try failed, with an error message that jquery wasn't defined. Do I have to cat all my srcs along with jquery.js to do a packer?? On 4/22/07, Diego A. <[EMAIL PROTECTED]> wrote: I don't us

[jQuery] Re: List of all images showing

2007-04-22 Thread cheesegrits
I am SUCH a dumb*ss! For the sake of anyone else googling around for this problem ... you probably changed your UL id from 'carousel' to 'something_else', but spaced on this section at the head of the CSS: /** * Since the content is loaded via javascript, we set * display:none to hide the car

[jQuery] Re: List of all images showing

2007-04-22 Thread cheesegrits
I am SUCH a dumb*ss! For the sake of anyone else googling around for this problem ... you probably changed your UL id from 'carousel' to 'something_else', but spaced on this section at the head of the CSS: /** * Since the content is loaded via javascript, we set * display:none to hide the car

[jQuery] Re: List of all images showing

2007-04-22 Thread Dan G. Switzer, II
Hugh, >I'm using the simple static method to display a carousel. My page is >generated from PHP (as a "widget" for vBulletin). > >Everything works fine, except that during page loading, the original >vanilla >UL (with all the thumbnails) appears on the page until all thumbs have been >loaded, be

[jQuery] Re: Why this code is so slow?

2007-04-22 Thread Klaus Hartl
Christof Donat schrieb: Hi, How can I change this to my code runs faster? I don't think, that you should change jQuery here. As much as I understand it, that function is called whenever you use a more complex expression than just an ID, a tag name or a classname. 1. Try to give your inp

[jQuery] List of all images showing

2007-04-22 Thread cheesegrits
I'm using the simple static method to display a carousel. My page is generated from PHP (as a "widget" for vBulletin). Everything works fine, except that during page loading, the original vanilla UL (with all the thumbnails) appears on the page until all thumbs have been loaded, before transmog

[jQuery] Re: Why this code is so slow?

2007-04-22 Thread Klaus Hartl
Web Specialist schrieb: Thanks Christof and Klaus. After change my code(using your suggestions) I have improvements: isXMLDoc 14285 16.33% 765.625ms 765.625ms 0.054ms 0ms 15.625ms jquery.js (line 298) merge 529 15% 703.125ms 765.625ms 1.447ms 0ms 46.875msjque

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-22 Thread Klaus Hartl
Andy Matthews schrieb: Simple way to do it might be to use javascript itself to do a forward or something like that. I've seen people set up a meta refresh of 5 seconds in the header, then use javascript to do a location.href as soon as the page loads. If they have js, they get redirected immedi

[jQuery] Re: question about DOM manipulation

2007-04-22 Thread joomlafreak
Thank you very much for your reply. I will contact the author. BTW, as you said, which other plugin can let me do the same thing. I searched and found this one but I don't remember if there is some other that would let me do the same thing. Thanks again On Apr 22, 3:59 pm, "Diego A." <[EMAIL PR

[jQuery] Re: question about DOM manipulation

2007-04-22 Thread Diego A.
Now I see it... Damn! That's not nice! lol >From what I can see after inspecting your code, this is a problem with the innerFade plugin. I think you should contact the author... // Autor: Torsten Baldes // Mail: [EMAIL PROTECTED] ...and ask him to have a look. Meanwhile, you could try a differen

[jQuery] Re: Showing a bind(click...) as clickable

2007-04-22 Thread wyo
On 17 Apr., 00:06, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: > wyo schrieb:> On 15 Apr., 18:27, "Brian Cherne" <[EMAIL PROTECTED]> wrote: > > > ".hover" is this a jQuery function? Where is it described? > > http://jquery.bassistance.de/api-browser/#hoverFunctionFunctionhttp://docs.jquery.com/Event

[jQuery] Re: jVariations = new plug-in/tool

2007-04-22 Thread Diego A.
Rather then manually starting up the control panel by defining each individual item... $.jVariation({...}); it would be nicer to simple say... $('#tests').jVariation({ /* settings here */}); ...where jVariation would automatically take (say), every div within #tests and create the controls for it

[jQuery] Re: question about DOM manipulation

2007-04-22 Thread joomlafreak
Hi the tabs numbered as tab1,tab2 have numbers at the bottom like 1,2,3,4 . If you click on these numbers it loads the content by different parameters being passed on the same function. it takes a few seconds (settimeout) to show the mess. Would you please care to look at the link again. htt

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-22 Thread Klaus Hartl
Klaus Hartl schrieb: Dan G. Switzer, II schrieb: self.location = "page.htm?js=true"; In this example if JS is enabled, the JS code would be executed redirecting the user to page w/a URL parameter indicating that JS was enabled. If the JS code doesn't execute, then the meta refresh woul

[jQuery] Re: Why this code is so slow?

2007-04-22 Thread Web Specialist
Thanks Christof and Klaus. After change my code(using your suggestions) I have improvements: isXMLDoc1428516.33%765.625ms765.625ms0.054ms0ms15.625msjquery.js (line 298) merge52915%703.125ms765.625ms1.447ms0ms46.875msjquery.js (line 596)each1364 14.33%671.875ms3031.25ms2.222ms0ms406.25msjquery.js (

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-22 Thread Klaus Hartl
Dan G. Switzer, II schrieb: self.location = "page.htm?js=true"; In this example if JS is enabled, the JS code would be executed redirecting the user to page w/a URL parameter indicating that JS was enabled. If the JS code doesn't execute, then the meta refresh would take over. However, I c

[jQuery] Re: question about DOM manipulation

2007-04-22 Thread Diego A.
I know what you're trying to say but I can't re-created it on the URL you provided. I don't know where I should be clicking. The animations I tried seemed fine... On Apr 22, 8:14 pm, joomlafreak <[EMAIL PROTECTED]> wrote: > I have a problem or say a question that often bother me. > Say I use a fu

[jQuery] Re: ajax call to load iframe

2007-04-22 Thread Daemach2
I made a mistake in the first function (extra bracket after the options...). Sorry about that - I was running out the door when I posted it. It should read: $(document).ready(function(){ // Bind a function to the button in the document that contains the iframe $('#mybutton').cl

[jQuery] Re: No action on change

2007-04-22 Thread Diego A.
It's never a good idea to mess around with the plugin source because it makes it difficult to upgrade when new versions come out. For that reason I do not recommend you modify the datePicker source. On way to achieve what you want without modifying datePicker is to attach an event to the cells of

[jQuery] Re: Dean Edwards Packer & Interface accordion.js...

2007-04-22 Thread Diego A.
I don't use the according plugin but I do put all my jQuery and jQuery plugins in one file and repack them. So thanks for the info... On Apr 22, 5:53 pm, "Dan G. Switzer, II" <[EMAIL PROTECTED]> wrote: > I had to do some customizing of the Interface code and in the process of > re-packing the sou

[jQuery] question about DOM manipulation

2007-04-22 Thread joomlafreak
I have a problem or say a question that often bother me. Say I use a function to animate certain elements with default parameters. At some point I inject some parameter values other than default. Now what happens is that the animations gets added to the one started before on the same elements by p

[jQuery] Re: No action on change

2007-04-22 Thread Dan G. Switzer, II
>Hi Dan, and how can I do this? You'll need to look in to the code for your pop-up date picker. Hopefully they provide some event you can use to do this, otherwise you'll need to modify the source. -Dan

[jQuery] Re: No action on change

2007-04-22 Thread Creazion
Hi Dan, and how can I do this? On 22 Apr., 18:33, "Dan G. Switzer, II" <[EMAIL PROTECTED]> wrote: > >Hi, I've an input field (calendar date) that perform actions > >(validation) after an input. It works if the user enters the date > >directly but the use of the calendar popup (by js) doesn't prov

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-22 Thread Dan G. Switzer, II
Josh, >I am thinking of forking my application in one area where I want to handle >things very differently depending on if someone has javascript enabled, and >this is the method I think would work best. > >The only possible downside would be if someone disables javascript in the >middle of their

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-22 Thread Josh Nathanson
Basically, you fire off a message to the server saying that yes JS is enabled. Update the session, and use that from then on in your code. I am thinking of forking my application in one area where I want to handle things very differently depending on if someone has javascript enabled, and th

[jQuery] Dean Edwards Packer & Interface accordion.js...

2007-04-22 Thread Dan G. Switzer, II
I had to do some customizing of the Interface code and in the process of re-packing the source code with Dean Edwards latest Packer code, I came across a problem in the accordion.js code. When packing the code the el.accordionCfg.currentPanel is undefined when first initialized. The problem appea

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-22 Thread Rick Faircloth
Thanks for the tip, Ariel.. I'll give that try! Rick -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ariel Jakobovits Sent: Sunday, April 22, 2007 8:18 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Best way to determine if a user has

[jQuery] Re: ajax call to load iframe

2007-04-22 Thread Dan G. Switzer, II
>If you're just trying to load a full HTML page into the frame, use >top.framename.location.href = "the url to your file". Using ajax doesn't >make much sense in that application. I couldn't agree more. I think sometimes people get so caught up in the phrase "AJAX" that they forget about exist

[jQuery] Re: Specifying user agent with ajax

2007-04-22 Thread Ⓙⓐⓚⓔ
beforeSend:function(req){req.setRequestHeader ("User-Agent","pokemon")}, inside a $.ajax call sets my user-agent to pokemon. (tested in firefox2) On 4/22/07, Yansky <[EMAIL PROTECTED]> wrote: Hi, how do I go about specifying the user agent when I'm using ajax in jQuery? I've tried

[jQuery] No action on change

2007-04-22 Thread Creazion
Hi, I've an input field (calendar date) that perform actions (validation) after an input. It works if the user enters the date directly but the use of the calendar popup (by js) doesn't provoke an action. Why? Thanks for your help.

[jQuery] Re: Specifying user agent with ajax

2007-04-22 Thread Dan G. Switzer, II
Yansky, >Hi, how do I go about specifying the user agent when I'm using ajax in >jQuery? What are you trying to do exactly? The user agent is passed in during a XHR request--just like a normal HTTP call. Also, the navigator.userAgent is available to the core template (and wouldn't change via an

[jQuery] Re: Problem with interface Droppables

2007-04-22 Thread Dan G. Switzer, II
Oops! I found there's a problem in IE7 using this code. > x += document.body.scrollLeft; > y += document.body.scrollTop; Change these instances to: x += document.documentElement.scrollLeft; y += document

[jQuery] Re: No action on change

2007-04-22 Thread Dan G. Switzer, II
>Hi, I've an input field (calendar date) that perform actions >(validation) after an input. It works if the user enters the date >directly but the use of the calendar popup (by js) doesn't provoke an >action. You'll need to invoke that validation programmatically when the pop-up updates the input

[jQuery] Re: ajax call to load iframe

2007-04-22 Thread Daemach2
If you're just trying to load a full HTML page into the frame, use top.framename.location.href = "the url to your file". Using ajax doesn't make much sense in that application. If you want to load content into a div in the iframe, however, you can use frameReady to do that. If the iframe is

[jQuery] Re: Problem with interface Droppables

2007-04-22 Thread dswitzer
I ran into this issue as well today. The version 1.2 of Interface now uses the getPosition() instead of the getPositionLite() for calculating the position. The following code changes to the iutils.js fixes issues if you're dragging from an element with a position of "fixed". Thanks to bander for

[jQuery] Re: Memory problem

2007-04-22 Thread Michael Schwarz
Thanks for creating the ticket... Michael On 4/20/07, Brandon Aaron <[EMAIL PROTECTED]> wrote: Michael, I went ahead and created a ticket for this so that it doesn't get lost in the archives. http://dev.jquery.com/ticket/1136 -- Brandon Aaron On 4/20/07, Michael Schwarz <[EMAIL PROTECTED

[jQuery] Re: Why this code is so slow?

2007-04-22 Thread Web Specialist
Thanks Chirstof and Klaus. Great suggestions! ;-) I'll try right now. Thanks again. 2007/4/22, Klaus Hartl <[EMAIL PROTECTED]>: Christof Donat schrieb: > > $('#dadosAuxiliares').tabs( {fxShow: {height: 'show', opacity: 'show'}, tabStruct:'.fragment'}); > $('#dadosAuxiliares').triggerT

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-22 Thread Ariel Jakobovits
how about this: WHEN THE USER FIRST LOGS IN: // assume false for now JAVASCRIPT ON PAGE: --- var myUrl = 'http://myhost.com/someCFMfile.cfm'; // some URL pointing to the page as defined below var ajaxSettings = { t

[jQuery] BlockUI stops anchors from appearing in the url

2007-04-22 Thread Kush Murod
Hi, I wanted to pass anchors to url so they would be bookmarkable just like tabs plugin. For some reason bookmark never gets passed to url. Then after some time I've uncommented ajaxStart and ajaxStop like so $().ajaxStart($.blockUI).ajaxStop($.unblockUI); Only after this my bookmark values

[jQuery] Specifying user agent with ajax

2007-04-22 Thread Yansky
Hi, how do I go about specifying the user agent when I'm using ajax in jQuery? I've tried $.get("test.html", { data: 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv: 1.8.1.3) Gecko/20070309 Firefox/2.0.0.3' }, function(data){ $('#testDiv').append(data); } ); and $.get("tes

[jQuery] Re: ajax call to load iframe

2007-04-22 Thread oscar esp
I was trying to understant how can use it for my porpupose but I didn't get any "solution" My problem is : - I have a main page which contains a iframe - That main page contain some buttons. Each button should load a html page into the iframe. In order to load the html page i would like to u

[jQuery] Re: Ajax problem with mac osX

2007-04-22 Thread junior2000
Hi, thanks for your help. The radio buttons code is ok (I've used form plugin). I've found the problem. It was in the php page called by the ajax script. I've searched the problem in the wrong place! sorry :-) Thanks On Apr 22, 12:27 am, "Ⓙⓐⓚⓔ" <[EMAIL PROTECTED]> wrote: > Let's take the code ap

[jQuery] Re: Why this code is so slow?

2007-04-22 Thread Klaus Hartl
Christof Donat schrieb: $('#dadosAuxiliares').tabs( {fxShow: {height: 'show', opacity: 'show'}, tabStruct:'.fragment'}); $('#dadosAuxiliares').triggerTab(0); can be $('#dadosAuxiliares').tabs( { fxShow: {height: 'show', opacity: 'show'}, tabStruct:'.fragment'} ).triggerTab