[jQuery] Re: Click Links in the Nnavigation Bar

2009-01-30 Thread Pedram
Dear Karl , I know You are Expert in these Issues do you have any idea for me Thanks On Jan 29, 5:44 pm, Pedram pedram...@gmail.com wrote: Hi Folks ,   I have some links in my Navigation bar such as below , I Used FIND in my code , does anyone has any better solution for me ,   I also used

[jQuery] Re: Using $_POST to transmit large key/pair

2009-01-30 Thread Beres Botond
You want to use POST, but you are sending your data as GET (without url encoding). So I'm pretty sure it cuts before #, because # is a non-alphanumeric character and you haven't urlencoded your data. Data in URL = GET, not POST, even if you are using $.post . http://docs.jquery.com/Post So

[jQuery] Re: cancel jQuery binded event handlers

2009-01-30 Thread 1nd1go
Having both inline and bound event handlers will always cause confusion. true, but onclick inline handler is appended by a4j framework, which I can't influence :( The only thing I can do is to append guard to that handler, like in the first example. You could use

[jQuery] Re: Long Image Scroller (jCarousel)

2009-01-30 Thread Sbudah
I declare you a God. It works although I still need to change it from being a background image to a div that changes position but this has helped me and has most definitely given me ideas. You may see it in action at http://www.myfuche.com/ Thanks Liam. On Jan 29, 11:41 pm, Liam Byrne

[jQuery] Re: Calendar with jQuery or pure JavaScript??

2009-01-30 Thread James Hughes
I guess if you are competent in both it's doesn't really matter though I'd think jQuery would be better as you'd have less cross browser incompatabilites to deal with etc. Also I'd look at the Date Picker in jQuery UI (http://jqueryui.com/demos/datepicker/inline.html). I have played/hacked

[jQuery] jquery validate rules using css for dynamic controls

2009-01-30 Thread Bhavin
Hi, In my application, controls are generated dynamically. I want to know if I can configure rules by giving CSS classes and NOT by specifiying element name while validating the fields. I tried following code and works in some scenarios: var isValid = $(#questionAnswerForm).validate({

[jQuery] Re: $.ajax bug ?!? Maybe i've not understand somethings ....

2009-01-30 Thread Stefano Corallo
On 28 Gen, 17:03, Ricardo Tomasi ricardob...@gmail.com wrote: It isn't possible to have error/success callbacks for JSONP. You can't cancel the request either. Once you add a script tag to the head, the browser fires a GET request and it can't be interrupted - even if you remove the script

[jQuery] Re: issue with ajax function

2009-01-30 Thread Beres Botond
A parameter has to be key=value, in some form, otherwise how is it identified? contentType: application/json; charset=utf-8, This should only be set if your webservice expects the input parameter in JSON format as well, and not only the response is JSON. Is this the case? How does the code of

[jQuery] Re: issue with ajax function

2009-01-30 Thread graphicsxp
This should only be set if your webservice expects the input parameter in JSON format as well, and not only the response is JSON. Is this the case? Yes, I thought that too. I've removed the contentType parameter. In this case the webservice is reached. But when the AJAX call returns I get the

[jQuery] Re: Calendar with jQuery or pure JavaScript??

2009-01-30 Thread AndreMiranda
Hi James!! I already use DatePicker in my project and it will be associated with my Schedule. I will have to make a daily schedule, for example, with hour starting at 00:00h and ending at 23:00h and associate events with it, like lunch with Paulo at 14:30h and so on... It will be a hge

[jQuery] forms :: fire javascript on enter (without reloading the whole page)

2009-01-30 Thread dirk w
hello, i've a text inpput field and a button. if you click on the button a java script gets called (and all works fine) but if you type some text and push the enter button than the whole page gets reloaded on the form submit. i know how to prevent the browser to reload the whole page (by catching

[jQuery] jQuery Fill (use notemplate)

2009-01-30 Thread a.karimzadeh
When you want to fill a part of your html with specific data once and show it. You can use $(selector).bind(data,{fill:true}); which require jBind plugin. jBind will bind will first find the html content of matched selector and fill it's content with assigned data. You can find out more by

[jQuery] Re: forms :: fire javascript on enter (without reloading the whole page)

2009-01-30 Thread Bohdan Ganicky
Hi, just stick with the submit event. It's fired either when user presses Enter or clicks the submit button: $(#searchForm).submit(function() { var url = 'http://gdata.youtube.com/feeds/api/videos?q=' + $ ('#searchText').val() + 'alt=json-in-scriptcallback=showMyVideosmax-

[jQuery] Re: Problem with superfish example

2009-01-30 Thread Joel Birch
Hi Kieren, Note that if you browse to the example.html online, what you are seeing in the browsers that the menu does appear to work in is a CSS- only menu, as the paths to the JS files are set to be correct only when example.html is viewed from within the zip file's main folder. What you are

[jQuery] cycle plugin

2009-01-30 Thread Molly
I am a newbie using the cycle plug-in to (manually) scroll through images. I want to prevent going from the last image forward to the first (or first back to last) and disable the controls that do this. I presume I need to use autostop and/or autostopCount but can't figure out how. Any help

[jQuery] Re: [validate] dynamic message

2009-01-30 Thread thomas
Jörn, many thanks - this has worked wonderfully! The only remaining question I have is as follows: messages generated by specified validation methods clear automatically after the form field gets updated: so in the chain of required,digits,minlength,maxlength each message comes and goes as

[jQuery] Re: issue with ajax function

2009-01-30 Thread Beres Botond
So the AJAX call actually returns some result now? If you alert() the result, before trying to do anything with it, what do you get? On Jan 30, 11:35 am, graphicsxp graphic...@googlemail.com wrote: This should only be set if your webservice expects the input parameter in JSON format as well,

[jQuery] Re: [validate] dynamic message

2009-01-30 Thread Jörn Zaefferer
Ah, good question. Try this: $.validator.addMethod(dynamic_check, function(value, element, param) { if(incorrect(value, param)){ this.settings.messages[element.name].dynamic_check = some dynamic message + dynamicValue; return false; } }, whatever)); That sets the new

[jQuery] plugins.jquery.com does not have 1.3.x

2009-01-30 Thread Mika Tuupola
When submitting a new plugin or plugin release there is no 1.3.x option in the plugins.jquery.com pulldown. Can someone add it? -- Mika Tuupola http://www.appelsiini.net/

[jQuery] next() working in ff but not in iex

2009-01-30 Thread elduderino
Hi, I'm having a problem wit using next(). I have this code which i've built in to a simple test page which you could run to see my problem (obviously you need jquery included in the same directory). IN firefox next finds the div and I get the alert back...as expected. the div is a sibling of

[jQuery] Re: eval(JSON_DATA) how safe is it?

2009-01-30 Thread Trend-King
Thank you for that really great oppinion. my code is ready for use ;-) On 29 Jan., 23:11, Eric Garside gars...@gmail.com wrote: If that's the case, then you're certainly not exposing any important information, but it's still not as efficient. With Javascript and JSON alike, the longer the

[jQuery] Re: Calendar with jQuery or pure JavaScript??

2009-01-30 Thread James Hughes
From what I understand this sort of functionality is somewhere on the TODO list of the jqueryui date picker. The Development wiki suggests an agenda calendar that holds sub elements (events etc) though I doubt there has been much work on it. There are some non jquery examples knocking around

[jQuery] Re: forms :: fire javascript on enter (without reloading the whole page)

2009-01-30 Thread dirk w
hey bohdan, thanks, works fine! dirk On 30 Jan., 11:51, Bohdan Ganicky bohdan.gani...@gmail.com wrote: Hi, just stick with the submit event. It's fired either when user presses Enter or clicks the submit button: $(#searchForm).submit(function() {         var url =

[jQuery] Re: issue with ajax function

2009-01-30 Thread graphicsxp
Well the reponseText property of the XHR object contains : ?xml version=1.0 encoding=utf-8? string xmlns=http://tempuri.org/;{results: [ { id: 4, value: guardian.co.uk } ]}/string that's what the webservice returns. Since dataType

[jQuery] validate the field, but not required

2009-01-30 Thread scvinodkumar
hi there, i found jquery is very useful to validate to html page. Thanks for all your effort. Now i want to validate the form but they are not required. only if the text box or other field needs to validate onblur or onclick. For example, if there is first name field, then it should contain

[jQuery] [treeview]

2009-01-30 Thread kryptos
Greets ... when i run the tree~menu locally .it works like a breeze. when i load it up on the webserverit freezes.firebug tells me the error is at line 176 in jquery.treeview.js the code in that line is var stored = $.cookie(settings.cookieId); the error is $.cookie is not a

[jQuery] callback :passing $_POST values after completing form

2009-01-30 Thread dimitri
i'm all new with jquery and i'm using a validator for my form from marzapower. i was lucky enough to make the script detemine whether the form is fulfilled correctly or not whan not it sasy forgotten this or that, when correct it says i made it. but i'm now struggling om how i have to pass the

[jQuery] Re: Click Links in the Nnavigation Bar

2009-01-30 Thread Nic Luciano
What exactly are you trying to do, what is the issue? Maybe just preference here (and I'm also just guessing what you're asking) but I don't see a reason not to put the events on the elements themselves $(ul li a).click(function() {

[jQuery] Delay triggering modal on mouseover

2009-01-30 Thread jdinkelmann
Hi I have been searching for a way to not fire off the displaying of a popup/modal box on mouse over. I have found a couple things that get me halfway, but I am in a jam and need to get this done ASAP. I am hoping someone could help: Basically I have a list of links that are titles of

[jQuery] Re: cycle plugin

2009-01-30 Thread Mike Alsup
I am a newbie using the cycle plug-in to (manually) scroll through images.  I want to prevent going from the last image forward to the first (or first back to last) and disable the controls that do this. I presume I need to use autostop and/or autostopCount but can't figure out how.  Any

[jQuery] Re: issue with ajax function

2009-01-30 Thread Beres Botond
Yes, jquery tries to interpret it as JSON data, but that is XML and not JSON, thus the 'parserror'. XML that contains JSON in its string node. You should set your datatype to xml, but even then I'm not sure if that will work quite well. In best case you can extract the value of xml string node

[jQuery] Re: High Point Village Website

2009-01-30 Thread kim3er
Hi ksun, Thanks for the feedback. There are two intros, one constructed in JS and one for users with flash installed, browsers with JS disabled will not see an intro. I have tested the intros in ie6, ie7, ie8rc1, ff2, ff3, s3, c1 and 09, across XP, Vista, OS X and Ubuntu. Is your experiance

[jQuery] Re: High Point Village Website

2009-01-30 Thread kim3er
Thank you for the feedback, it really is very much appreciated. I'm aware of the considerable amount of requests, especially with respect to the amount of JS files we have referenced. Rich On Jan 29, 8:50 pm, Sam Sherlock sam.sherl...@gmail.com wrote: That is a great piece of work, a huge

[jQuery] Re: Delay triggering modal on mouseover

2009-01-30 Thread Richard D. Worth
hoverIntent is your guy http://plugins.jquery.com/project/hoverIntent - Richard On Thu, Jan 29, 2009 at 11:21 PM, jdinkelmann jdinkelm...@gmail.com wrote: Hi I have been searching for a way to not fire off the displaying of a popup/modal box on mouse over. I have found a couple things that

[jQuery] Re: High Point Village Website

2009-01-30 Thread kim3er
Thanks for the feedback. Things get a bit shaky in FF2 FF3, I understand this is because FF redraws every frame of an animation. The sole occasion I've encountered when ie6 provides a better end result, though I'm sure Mozilla have there reasons. In order to improve things on the home page, a

[jQuery] Re: Long Image Scroller (jCarousel)

2009-01-30 Thread Liam Byrne
Glad to help! Use the background-image approach is only to make calculating the position easier - it allows you to use percentages and avoid messy calculations. But as long as it was some help to you. Liam Sbudah wrote: I declare you a God. It works although I still need to change it

[jQuery] jqUploader using action does not work with HTTP.

2009-01-30 Thread Zerutreck
This form action not working: form enctype=multipart/form-data action=http://localhost/argofile/ index.php/upload/do_upload method=POST class=a_form I'm using code igniter framework, this type of url is the path for the file : http://localhost/argofile/index.php/upload/do_upload When i click

[jQuery] Jquery remove dd problem

2009-01-30 Thread NicholasPufal
Hi, I'm currently using the plugin jQueryForm. With it I want to retrieve some info from the Ajax request. In order to do that, each time the user submit the form, I need to clean the information retrieved previously. In my XHTML code I have some div in charge of those messages, which is

[jQuery] Re: [treeview]

2009-01-30 Thread Jörn Zaefferer
See http://www.trinityindia.org/jquery.cookie.js Jörn On Fri, Jan 30, 2009 at 11:05 AM, kryptos himanshu1kha...@gmail.com wrote: Greets ... when i run the tree~menu locally .it works like a breeze. when i load it up on the webserverit freezes.firebug tells me the error is

[jQuery] Re: validate the field, but not required

2009-01-30 Thread Jörn Zaefferer
Using the validation plugin (http://bassistance.de/jquery-plugins/jquery-plugin-validation/), just specify rules for fields, but leave out required: jQuery.validator.addMethod(lettersonly, function(value, element) { return this.optional(element) || /^[a-z]+$/i.test(value); }, Letters

[jQuery] Re: Using $_POST to transmit large key/pair

2009-01-30 Thread Mark Livingstone
Thanks, Beres. I am reading this order_message from a DIV. How do I 'POST' it? By using form? Also, to url encode... do I use escape()? On Jan 30, 3:08 am, Beres Botond boton...@gmail.com wrote: You want to use POST, but you are sending your data as GET (without url encoding). So I'm

[jQuery] Re: Problem with superfish example

2009-01-30 Thread Kieren
Cheers I think my IE6 problem was due to not having the right path to jquery specified in the link tag too. So using IE7 fixed that as a side- effect. I might have a Z index problem to ask shortly, but I'll save that for a time other than 1am :) On Jan 30, 9:58 pm, Joel Birch

[jQuery] Re: High Point Village Website

2009-01-30 Thread mcologne
nice work, i like it! without going into details of programming, the site differs from that classic style often seen nowadays on many websites... you know what i mean... buttons, tabs... i like the big graphics in the backgrounds... best regards m cologne On Jan 30, 2:38 pm, kim3er

[jQuery] Re: High Point Village Website

2009-01-30 Thread kim3er
Thanks for your feedback. With this project we wanted to create something that was interesting to but still functional without reliance on either JS or Flash. The end result, I hope, is a website that is functional and fully styled without JS turned on. With JS turned on, the site becomes more

[jQuery] Re: High Point Village Website

2009-01-30 Thread kim3er
Thanks mcologne, appreciated. On Jan 30, 2:09 pm, mcologne blueameri...@web.de wrote: nice work, i like it! without going into details of programming, the site differs from that classic style often seen nowadays on many websites... you know what i mean... buttons, tabs... i like the big

[jQuery] Editable new feature $(selector).editable('disable')

2009-01-30 Thread a.karimzadeh
This new version of editable supports $(selector).editable(options) $(selector).editable('disable') $(selector).editable('enable') $(selector).editable('destroy') for more information check: http://arashkarimzadeh.com/index.php/jquery/7-editable-jquery-plugin.html or read how to extend for

[jQuery] Re: [treeview]

2009-01-30 Thread himanshu khatri
jorn didnt quiet get what you meant... the only hint i have found is http://drupal.org/node/271463 i hope this helps others aswell who have this error $.cookie is not a function On Fri, Jan 30, 2009 at 7:30 PM, Jörn Zaefferer joern.zaeffe...@googlemail.com wrote: See

[jQuery] Re: Jquery remove dd problem

2009-01-30 Thread amuhlou
It looks like $(#list_sucesso dt dd).remove(); is the problem. The way you've written the selector, it would look inside the dt for the dd to remove. $(#list_successo dl dd).remove(); should get the one you're after.

[jQuery] Initial Event Registration

2009-01-30 Thread James Hughes
Hi, Is there a plugin kicking around anywhere that would let me declare events on object in a more declarative manner eg instead of $('#button1').click(function(){..}).blur(function(){...}) $('#button2').click(function(){..}) etc etc $('#button3').click(function(){..}) Doing it this way

[jQuery] Having a problem with checkboxes

2009-01-30 Thread heohni
Hi, I am using this: input type=checkbox name=paradigm value={$value.ver_id} / $(document).ready(function(){ $(#paradigm_all).click(function(){ var checked_status=this.checked;$(inp...@name=paradigm]).each (function(){

[jQuery] Re: [treeview]

2009-01-30 Thread Jörn Zaefferer
The jquery.cookie.js file is missing. You didn't upload it, or it links to the wrong location. Jörn On Fri, Jan 30, 2009 at 3:48 PM, himanshu khatri himanshu1kha...@gmail.com wrote: jorn didnt quiet get what you meant... the only hint i have found is http://drupal.org/node/271463

[jQuery] Re: changing value of hidden input

2009-01-30 Thread Michael
Anyone? I've been playing around with it, and the following will work if I want to set the hidden value to test... $(#account).result(function(event, data, formatted) { $(#account_value).val(test); }); ...but I'm still not sure how to get the value from the id key value of the selected

[jQuery] Re: Having a problem with checkboxes

2009-01-30 Thread heohni
Does it work, to write all checked id's into a hidden field? Which then gets submitted? On 30 Jan., 16:27, heohni heidi.anselstet...@consultingteam.de wrote: Hi, I am using this: input type=checkbox name=paradigm value={$value.ver_id} / $(document).ready(function(){        

[jQuery] Re: All is well except in IE - links initially not clickable

2009-01-30 Thread precar
Hi, Yes, I'm using the bind() method with 'click'. Is that the correct approach? Precar. On Jan 28, 9:47 am, amuhlou amysch...@gmail.com wrote: It looks like it's not appending the selected class to the li onClick in IE7.  Are you using the bind() method to apply the click functionality?

[jQuery] Re: Jquery remove dd problem

2009-01-30 Thread NicholasPufal
Yes. That was the problem. After I did post it here, I did realize the dumb mistake I've done :ninja: Thanks a lot for the reply! amuhlou wrote: It looks like $(#list_sucesso dt dd).remove(); is the problem. The way you've written the selector, it would look inside the dt for the

[jQuery] Re: [jquery.form.js v2.18] file upload field and standard fields

2009-01-30 Thread phicarre
I replace my code by this one: ? echo VAR DUMP:p /; var_dump($_POST); ? and the result is: VAR DUMP:p /array(3) { [nom]= string(0) [prenom]= string(0) [MAX_FILE_SIZE]= string(6) 10 } File: 2.gif (6160 bytes)VAR DUMP:p /array(3) { [nom]= string(0) [prenom]= string(0)

[jQuery] Re: validation plugin: how to add custom messages for groups

2009-01-30 Thread Mihai Danila
I think you can put three validators on the fields, with jQuery.validator.addMethod. I don't know if you can add multiple validators for the same CSS class, so I'm putting extra CSS classes on the inputs: input id=firstName class=first-name-input name-input/ input id=lastName class=last-name

[jQuery] Re: validation plugin: how to add custom messages for groups

2009-01-30 Thread Mihai Danila
There was a small typo in validateLastNameInput. Here's the corrected code. input id=firstName class=first-name-input name-input/ input id=lastName class=last-name input name-input/ jQuery.validator.addMethod('first-name-input', validateFirstNameInput, 'First name is missing.');

[jQuery] Re: [treeview]

2009-01-30 Thread himanshu khatri
exactly the point.. the file is there...its just being blocked or something but the webhost... On Fri, Jan 30, 2009 at 9:11 PM, Jörn Zaefferer joern.zaeffe...@googlemail.com wrote: The jquery.cookie.js file is missing. You didn't upload it, or it links to the wrong location. Jörn On

[jQuery] noob question

2009-01-30 Thread bart
Somehow I don't get the concept of get() right. The following expression gives an error; $('p.fl').get(0).css('background', 'red'); Now what I'm trying to do here is select the first paragraph from all the paragraphs with a class of fl. After that I'm just trying to get a visual id by making it

[jQuery] validation with jquery 1.3

2009-01-30 Thread andré
Hello, Thanks for your fabulous validation form. But I 've a problem.When I use jquery 1.2.6, my form works well on IE, firefox and safari. But When I use jquery 1.3 in IE the error message doesn't work Can you help me ? my script : $().ready(function() { // validate signup form on keyup

[jQuery] Re: jQuery Curvy Corners

2009-01-30 Thread Rusco
Hi, I also tried a lot of rounded corners plug-ins and found out that each one reveals its weakness once you begin nesting html-tags and messing around with css. The only somewhat reliable rounded corners plugin is imho: http://labs.parkerfox.co.uk/cornerz/ Rusco. On 30 jan, 07:57, Nikola

[jQuery] How PHP script can return two variables ?

2009-01-30 Thread FlashWebHost.com
I use jQuery $.ajax to submit user comment to a PHP Script. The PHP script validate the user data, if it is OK, user comment is written to mysql database. If not it will show error message. Now the script print error message and success message same way. I need PHP script pass one more value,

[jQuery] Large images IE ready event

2009-01-30 Thread Alex
In IE 6 through 8, whenever I use $(document).ready(function(){ });, it doesn't get triggered if there are still images trying to load. I use a graphic engine to draw huge graphs and it can take up to 5 seconds parsing the images and the code between the ready event doesnt get triggered until the

[jQuery] [autocomplete] making it work with JSON web service data source

2009-01-30 Thread Nekura Neko
I'm trying to replace a MS AJAX.NET autocomplete control with something a bit lighter and more cache-and-compress friendly and I really love how smoothly the Autocomplete plug-in generally works (http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/). I had to change a couple of

[jQuery] Re: validation plugin: how to add custom messages for groups

2009-01-30 Thread Mihai Danila
Sorry, the third validator must only get activated if both are empty (in other words, it must return true if either is not empty): function validateNameInputs(value, element) { return firstNameInput.value || lastNameInput.value; } On Jan 30, 11:19 am, Mihai Danila virid...@gmail.com wrote:

[jQuery] Re: cancel jQuery binded event handlers

2009-01-30 Thread Dave Methvin
Exactly. Does any body know how can I reach jQuery created event object in first handler. I think this could be a solution... Event delivery order is an implementation detail so you can't be guaranteed which will fire first. However, if the a4j handler is set by the time .ready() fires you

[jQuery] Re: Form Plugin with file upload

2009-01-30 Thread Mike Alsup
No, you are not supposed to do anything at all with the iframe.  The plugin handles all of that for you.  I'll try to take a look at your page tomorrow. Well, I have to admit that I'm not sure why your page isn't working. However, I did create a very simple test case here:

[jQuery] Re: Change URL in beforeSend

2009-01-30 Thread vtjiles
Figured out a way to do this so wanted to update with what I found. This basically cancels the initial request and creates a new one with all the same values except what you override in the extend function. By doing this, any callback functions, etc, are kept. In addition, I put in an 'if'

[jQuery] Attribute selectors different for XML than for HTML?

2009-01-30 Thread GreatBigBore
I ran into a problem today trying to select elements in an XML tree. I finally got it to work, but I had to make my XML handling different from my HTML handling. Can someone help me to understand whether this is a jquery bug or just a gap in my understanding? To select my desired node in my HTML

[jQuery] Re: How PHP script can return two variables ?

2009-01-30 Thread GreatBigBore
Have your PHP script return an XML document: PHP: /* FunctionResult FunctionStatus success=1 message=Request processed / /FunctionResult */ $document = DOMImplementation::createDocument(); $document-formatOutput = true;

[jQuery] Re: noob question

2009-01-30 Thread Bohdan Ganicky
Hi bart, let me cite from the spec: get(): Access all matched DOM elements. This serves as a backwards- compatible way of accessing all matched elements (other than the jQuery object itself, which is, in fact, an array of elements). It is useful if you need to operate on the DOM elements

[jQuery] Re: Form Plugin with file upload

2009-01-30 Thread phicarre
Hi Mike, This thread seems to be similar to my problem submitted by email (subjet: about url) On 30 jan, 18:37, Mike Alsup mal...@gmail.com wrote: No, you are not supposed to do anything at all with the iframe.  The plugin handles all of that for you.  I'll try to take a look at your

[jQuery] trouble with adding functions

2009-01-30 Thread surreal5335
I am having troubles trying to get this function to work. I got the first part to work but trying to get the p take a whole nother action upon hover out. Here is the jquery I am using $(p#makered).hover(function(){ $(this).addClass(red); }, function() {

[jQuery] Re: next() working in ff but not in iex

2009-01-30 Thread Ricardo Tomasi
That's invalid mark-up, you can only have LIs as child elements of a list. The browser is creating a LI and putting those DIVs inside, that's why you're not finding them. Your code should be like this: ul li spanAnalysis/span div class=accordionContent pLorem Ipsum/p /div /li

[jQuery] Re: How PHP script can return two variables ?

2009-01-30 Thread Nguyễn Quốc Vinh
Very simple! Please use JSON to return JSON string! With JSON, we can return value easier than XML! With XML, you must echo correct tag=)) 2009/1/31 GreatBigBore robfbis...@mac.com: Have your PHP script return an XML document: PHP: /* FunctionResult

[jQuery] Re: Condense this function

2009-01-30 Thread Ricardo Tomasi
Well, it's simply a matter of choice. Using setTimeout is shorter, simpler, more readable and offers the same performance. I consider these advantages. Maybe in some other context setInterval would be a better fit, but in this case I'd go for simplicity. cheers, - ricardo On Jan 30, 3:56 am,

[jQuery] Damn ie7!

2009-01-30 Thread david.0pl...@gmail.com
Hi to everybody, it's my first post here so it's nice to introduce myself: my name is David, i currently live in Italy, nice to meet you all and many thank for this wonderful jquery!. I'm starting to get a grasp of jquery (i used prototype before and i find jquery a lot more easy to work with)

[jQuery] Re: How PHP script can return two variables ?

2009-01-30 Thread GreatBigBore
Have your PHP script return an XML document, and then parse that XML with JQuery: PHP: /* FunctionResult FunctionStatus success=1 message=Request processed / /FunctionResult */ $document = DOMImplementation::createDocument();

[jQuery] Unload issue with Firefox

2009-01-30 Thread dberthia
I've got a jQuery 1.2.6 script that attaches a click handler to every hyperlink on a page. We have a small number of pages where the number of link are massive (5000+, and yes I know this is ridiculous). On these pages, when I try to navigate AWAY from them, Firefox will be unresponsive for a

[jQuery] Re: trouble with adding functions

2009-01-30 Thread surreal5335
Ok, well I was able to get to work, but I cant figure out now how to reduce the hover area. For some reason hovering on any part of the screen that is horizontal with the text will cause the hover event to trigger. How can I stop this? This the current jquery haddling the event

[jQuery] Re: validation with jquery 1.3

2009-01-30 Thread Jörn Zaefferer
Have you updated to 1.5.1? http://bassistance.de/2009/01/14/releases-jquery-13-and-validation-plugin-151/ Jörn On Fri, Jan 30, 2009 at 5:17 PM, andré l...@chrom.fr wrote: Hello, Thanks for your fabulous validation form. But I 've a problem.When I use jquery 1.2.6, my form works well on IE,

[jQuery] Re: $.ajax bug ?!? Maybe i've not understand somethings ....

2009-01-30 Thread Ricardo Tomasi
We can't access the success function of the $.ajax call without messing with jQuery source code, because the vars that name it are inside the jQuery function scope. In JSONP, the JSON object is passed as an argument to the callback function. In the example I posted: jsonFlickrFeed =

[jQuery] Re: Unload issue with Firefox

2009-01-30 Thread Ricardo Tomasi
jQuery will remove all event handlers on unload to avoid memory leaks. You should consider event delegation, see the docs for live(): http://docs.jquery.com/Events/live It will speed up your loading/unloading times considerably. cheers, - ricardo On Jan 30, 2:58 pm, dberthia

[jQuery] Re: $.ajax bug ?!? Maybe i've not understand somethings ....

2009-01-30 Thread Stefano Corallo
On 30 Gen, 19:25, Ricardo Tomasi ricardob...@gmail.com wrote: We can't access the success function of the $.ajax call without messing with jQuery source code, because the vars that name it are inside the jQuery function scope. ok In JSONP, the JSON object is passed as an argument to the

[jQuery] Re: Damn ie7!

2009-01-30 Thread GreatBigBore
I have found that IE7 is very uncooperative about option nodes. I recommend that you remove onClick, and attach the click handler inside $(document).ready(). Good luck.

[jQuery] Re: Damn ie7!

2009-01-30 Thread GreatBigBore
If adding a click handler in $(document).ready() doesn't work, you could always add a change handler to the select and just check the value. I did this in a recent project and it works fine.

[jQuery] Re: Unload issue with Firefox

2009-01-30 Thread dberthia
Thanks, Ricardo. I'll give that a look. On Jan 30, 12:31 pm, Ricardo Tomasi ricardob...@gmail.com wrote: jQuery will remove all event handlers on unload to avoid memory leaks. You should consider event delegation, see the docs for live():http://docs.jquery.com/Events/live It will speed up

[jQuery] Getting the height of a hidden div in Firefox

2009-01-30 Thread rob303
Hi, I've been working on this for days. The chaps on IRC couldn't find an answer so I thought I'd post it here just in case anyone knows what's going on. I have a basic accordion type feature. The designer wants to be able to open more than one of hidden the sections at once ... So, here is

[jQuery] Re: Can JQuery solve the iframe height=100% problem?

2009-01-30 Thread jquertil
I think you're going down the wrong path - you shouldnt need to script anything to get a CSS attribute to work. usually when I run into this problem it is because somewhere in my document tree there is a parent lement that has no height attribute set. So if you have html someDiv anotherDiv

[jQuery] Re: what would be the opposite of top.frames as a jquery selector context?

2009-01-30 Thread jquertil
it ended up being quite easy actually: $('#'+self.name, top.document).hide(); usually whenever I try to so something and it requires more than 1 line of code it's my fault, not jquery's...

[jQuery] Re: Using $_POST to transmit large key/pair

2009-01-30 Thread Beres Botond
As shown in the docs (link I gave you), it should work $.post(order_send_email.php, {order_message : order_message}, // {key : variable} function(data) { alert(data); // do something }); On Jan 30, 4:03 pm, Mark Livingstone

[jQuery] Re: Damn ie7!

2009-01-30 Thread MorningZ
So what he talks about function showHide() { if ($(this).val() == 1) { $('#datasingola').hide('slow'); } } and then select name=gruppi onchange=showHide()option id=nascondidata value=0Nessuno../ optionoption value='1'Ciao/option.../select takes the option out of the equation, which as you

[jQuery] Re: Getting the height of a hidden div in Firefox

2009-01-30 Thread Eric Garside
Different box models. I'd read up more on the difference between the IE/FF box models to point you in the right direction. I'd give you a quick tutorial, but I get out at 3 on Fridays! :D On Jan 30, 1:52 pm, rob303 rob.cub...@googlemail.com wrote: Hi, I've been working on this for days.  The

[jQuery] Re: jquery slider- make handle clickable

2009-01-30 Thread m...@fonolo.com
Ah- nice- that makes sense- changing it to values worked- Now, is there a way to actually get the index of the handle that was clicked on? short of just figuring it out based on the start value? Thanks for all your help Richard, Mike On Jan 29, 8:22 pm, Richard D. Worth rdwo...@gmail.com

[jQuery] Re: Getting the height of a hidden div in Firefox

2009-01-30 Thread rob303
Thanks for the reply Eric. But what have different box models got to do with it? I'm not setting any border or padding properties on my hidden div that would effect the height. And the difference between the two browsers is huge. IE says 240px and FF says 160px. I certainly don't have 80px

[jQuery] Re: Getting the height of a hidden div in Firefox

2009-01-30 Thread rob303
Oh, one other thing. If I call .css('display', 'block') on the element before using height() FF gives me the correct value of 240px. Obviously, that breaks the accordion because I want the element hidden! /me scratches head ... Rob. On Jan 30, 7:57 pm, rob303 rob.cub...@googlemail.com wrote:

[jQuery] Re: How PHP script can return two variables ?

2009-01-30 Thread Eric Garside
That XML is a lot of unnecessary work. If you're running with PHP5, simply print on success: echo json_encode(array('success' = true, message = '')); or on failure: echo json_encode(array('success' = false, message = '')); And for the jQuery bit: $.post('somurl.php', function (data){ if

[jQuery] jQuery + Cycle Plugin (Duplicating Problem with Pager Anchors in IE)

2009-01-30 Thread Matt M.
I'm having an issue where the pager is building twice as many anchors as there are pics. I only have this issue in IE. The script is working great in FF/Safari. You can see the difference on the page below. Any help is appreciated. Thanks! http://70.32.114.139/bases/naval-base-kitsap-bangor

[jQuery] jQuery + Cycle Pager Nav Issue in IE

2009-01-30 Thread Matt M.
I'm having a weird problem where IE is adding twice as many nav pager elements. As you can see, the script works nicely in FF/Safari, but when viewed in IE, the nav gets wonky. I'm having trouble figuring it out, so any help is appreciated. Thanks!

  1   2   >