Re: [jQuery] [ ajax jQuery]

2009-11-04 Thread Lord Gustavo Miguel Angel
if i change "ejemplo.html" for "example.php" error. if i change for this: $(document).ready(function(){ $.ajax({ type: "POST", url: "uno.php", data: "nombre=juan&apellido=luna", success: function(datos){

Re: [jQuery] [ ajax jQuery]

2009-11-04 Thread brian
Normally, one would direct an AJAX request to some server-side script (eg. PHP, Python, Perl, etc.) not a plain HTML page. On Wed, Nov 4, 2009 at 8:55 PM, Lord Gustavo Miguel Angel wrote: > Hi, > Why this code not is ok? > > -8<--- > $(document).ready(function(){ > $(".but

[jQuery] [ ajax jQuery]

2009-11-04 Thread Lord Gustavo Miguel Angel
Hi, Why this code not is ok? -8<--- $(document).ready(function(){ $(".button").click(function(){ $.ajax({ url: "ejemplo.html", success: function(datos){ alert(datos); }

[jQuery] Re: cannot insert html into DIV

2009-11-04 Thread shaf
Thanks that worked. Ok, I am now trying to add several google maps using the same method to no avail. Code below: $(document).ready(function(){ /*Create Map/Address/.map_canvas class Arrays*/ var map = new Array(); var mapCanvasClasses = new Array(); /*Load Defaul

Re: [jQuery] Why this code don't work

2009-11-04 Thread Dhruva Sagar
Well I would suggest that you keep adding the generated id's of the inputs & hidden inputs in an array. Write a reset function which then loops through the array and selects them using $() and call remove() for them to remove them from the DOM. Other than that I don't think there is any way specif

Re: [jQuery] Why this code don't work

2009-11-04 Thread ReynierPM
Dhruva Sagar wrote: Great :) Hi again Dhruva: I have one more question regarding this topic. How I can delete all the newest elements created using the previous jQuery functions? Exists one method for all or I need to build a custom function and clic as many times as new elements I added?

[jQuery] Re: cannot insert html into DIV

2009-11-04 Thread mkmanning
If you used Andrew's example, then you added a jQuery object to the canvasClasses array. Calling innerHTML on a jQuery object won't work. Try canvasClasses[0].html('htmlhere') On Nov 4, 3:35 pm, shaf wrote: > That doesnt work either. > > On Nov 4, 11:28 pm, Andrew Tan wrote: > > > > > You have t

[jQuery] Removed iframe still loads

2009-11-04 Thread Subtle
When trying to remove an iframe from the dom (i.e. $('iframe').remove ()) while the iframe is still loading, the iframe is removed, however the main browsers progress bar indicates that the iframe is still loading. Is there a way to stop it from loading and remove it? Thanks.

[jQuery] Re: cannot insert html into DIV

2009-11-04 Thread shaf
That doesnt work either. On Nov 4, 11:28 pm, Andrew Tan wrote: > You have to supply the canvas object as a parameter to the push function to > add it to the array. > > canvasClasses.push($(this)); > > On Thu, Nov 5, 2009 at 10:16 AM, shaf wrote: > > Hi Guys, > > > I have several .class DIVs I wa

[jQuery] Show/Open jqGrid with hiddengrid: true on a click event

2009-11-04 Thread Massimiliano Marini
Hi all, I'm using jqgrid with: hiddengrid: true, when the page is loaded the grid is collapsed. I ask if there's a way to open/show the grid when I made a click event on a link. In example: $("a.show-grid").click(function(e){ //code to open/show the grid which is now collpased. e.preventDefau

[jQuery] Re: cannot insert html into DIV

2009-11-04 Thread Andrew Tan
You have to supply the canvas object as a parameter to the push function to add it to the array. canvasClasses.push($(this));

Re: [jQuery] cannot insert html into DIV

2009-11-04 Thread Andrew Tan
You have to supply the canvas object as a parameter to the push function to add it to the array. canvasClasses.push($(this)); On Thu, Nov 5, 2009 at 10:16 AM, shaf wrote: > Hi Guys, > > I have several .class DIVs I want to manipulate. I have retrieved them > using the following code: > >

[jQuery] jQueryExchange

2009-11-04 Thread pupunzi
http://old.nabble.com/file/p26206565/theme.logo Going around the web looking for well structured jQuery community discussion points, I realized that there are several places where to find answers or suggestions but there isn’t a core space dedicated to Q&A, made exception to jQuery site that any

[jQuery] cannot insert html into DIV

2009-11-04 Thread shaf
Hi Guys, I have several .class DIVs I want to manipulate. I have retrieved them using the following code: var canvasClasses = new Array(); $(".canvas").each(function() { canvasClasses.push() }); I am now trying to insert some HTML into the DIVs but its not

[jQuery] Re: Submitting after Validation

2009-11-04 Thread Jules
Hi Stephen, Try using input type="button" instead of "submit" as per my example below. Excuse the aspx :). register.aspx code. string usrName = Request["userName"]; Response.Clear(); Response.Write("Hello " + usrName); Response.End(); -- client side code and htm

[jQuery] Re: class toggle navigation

2009-11-04 Thread Bernard Elsmere
Thanks for the reply - I put the .active styling on the individual pages to make it clearer.. Sorry if this was confusing - the first link you referred to: Design Objects Isn't what I was trying to switch the class of - that's just the category menu and I know that once the browser has moved on, t

[jQuery] Re: Submitting after Validation

2009-11-04 Thread StephenJacob
Just to clarify, the $.post function works perfectly and returns my json results. Due to the limitations of the validation system i was using (no remote options) i had to begin using the standard jquery .validate library. Please help me understand how to implement the .Validate w/ my HTML form. A

[jQuery] Re: Submitting after Validation

2009-11-04 Thread StephenJacob
@Leonard, unfortunately it's not due to the function argument. @Dylan, I've looked at this tutorial a few times. It's not using the official Jquery Validate system and hasn't been able to help me fill in any gaps in my learning curve... It seems that every tutorial has their own convoluted system

Re: [jQuery] Block UI question

2009-11-04 Thread sunnytanya
With Rich's help...I have the following files. But nothing seems to be working. Please advise if I'm missing anything. 1. test.jsp 2. calculate.jsp - dummy jsp 3. review.jsp - dummy jsp 4. jquery-1.3.2.js 5. jquery.blockUI.js 6. And two graphics. When I run the test.jsp page http://localhost/t

[jQuery] (treeview) Collapsable hitarea

2009-11-04 Thread Ryan
I have a treeview in my application and all works pretty well with it. I want the toggle +/- button to work as it does by default, but want the rest of the node to not trigger the collapse/expand event. How would one go about preventing this behavior? I've checked the other threads that are similar

[jQuery] Re: Block UI question

2009-11-04 Thread MorningZ
Has nothing to do with using the full or minified version

Re: Re: [jQuery] Block UI question

2009-11-04 Thread sunnytanya
If you have seen my previous reply - "am I missing anything here?" Is is because I downloaded jquery-1.3.2.js instead of jquery-1.3.2.min.js ? If that is the case, from where can I download the right js file? Thanks Again -- View this message in context: http://old.nabble.com/Block-UI-question-

[jQuery] Re: Superfish plugin: some limitations that could be addressed

2009-11-04 Thread Florent V.
We're going in circles here. > showed you an example of a multi column div in a sub, > had tags, image, and assorted other markup > did you even look at it? > Plugin code was untouched, any adjustemnts were done with css Yes i did look at that example, and analyzed the HTML code for it. Yes

[jQuery] load() and utf-8 encoding, nothing seems to work...

2009-11-04 Thread ximo wallas
I've been googling around but found no answer that works for me. I'm loading some content from a PHP script using the load() function inside an html document that already has the utf-8 encoding meta tag. I suposed that the rule at the head of the container document will affect all loaded contents

RE: [jQuery] Append Help Issue

2009-11-04 Thread Dave Maharaj :: WidePixels.com
I went with $(response).fadeIn('slow').prependTo('#sortable'); It works as I need it but not sure if that coded right. So the response fades in slow and inserted into the top of the sortable list Dave _ From: Charlie Griefer [mailto:charlie.grie...@gmail.com] Sent: November-04-09

Re: [jQuery] Attempting to "hide" a div using jquery but div displays for a split second and then disappears

2009-11-04 Thread Michel Belleville
Good trick, will reuse, thanks ^^ Michel Belleville 2009/11/4 Richard D. Worth > See > > > http://www.learningjquery.com/2008/10/1-way-to-avoid-the-flash-of-unstyled-content > > - > Richard > > > On Wed, Nov 4,

Re: [jQuery] Append Help Issue

2009-11-04 Thread Charlie Griefer
Try prepend() instead of prependTo()? http://docs.jquery.com/Manipulation/prepend On Wed, Nov 4, 2009 at 9:40 AM, Dave Maharaj :: WidePixels.com < d...@widepixels.com> wrote: > Ok i changed the code to: > > $('').prependTo('#sortable').fadeIn('slow').html(response); > > My response is already i

RE: [jQuery] Append Help Issue

2009-11-04 Thread Dave Maharaj :: WidePixels.com
Ok i changed the code to: $('').prependTo('#sortable').fadeIn('slow').html(response); My response is already in a which has variables from the php script so I need it returned in the response. So I end up with being added to the sortable list (extra li set i dont need) code.

Re: [jQuery] Attempting to "hide" a div using jquery but div displays for a split second and then disappears

2009-11-04 Thread Richard D. Worth
See http://www.learningjquery.com/2008/10/1-way-to-avoid-the-flash-of-unstyled-content - Richard On Wed, Nov 4, 2009 at 10:21 AM, Newbie wrote: > I am working on an accordian side navigation jquery piece and I

Re: [jQuery] taconite strange problem

2009-11-04 Thread Gerrit Kuilder
A Small update if I write the response to a file I get no difference in files between a failing and a working response. most of the data I see in firebug is exactly the same. only taconite fails to see the xml document root. Regards, gerkuil wrote: HI All, I am using the taconite plugin

RE: [jQuery] Append Help

2009-11-04 Thread Dave Maharaj :: WidePixels.com
That certainly was fast. Thanks, just what i needed. Dave _ From: Charlie Griefer [mailto:charlie.grie...@gmail.com] Sent: November-04-09 1:35 PM To: jquery-en@googlegroups.com Subject: Re: [jQuery] Append Help shot in the dark here... but prependTo()? On Wed, Nov 4, 2009 at 9:01

Re: [jQuery] Append Help

2009-11-04 Thread Charlie Griefer
shot in the dark here... but prependTo()? On Wed, Nov 4, 2009 at 9:01 AM, Dave Maharaj :: WidePixels.com < d...@widepixels.com> wrote: > I am uploading images and once uploaded they appear in my sortable list. > > I have > success response: > > $('').appendTo('#sortable').fadeIn('slow').html(res

[jQuery] Append Help

2009-11-04 Thread Dave Maharaj :: WidePixels.com
I am uploading images and once uploaded they appear in my sortable list. I have success response: $('').appendTo('#sortable').fadeIn('slow').html(response); page code: image1 -> are there when the page loads image2 -> are there when the page loads image3 -> are there when the page loads i

Re: [jQuery] Attempting to "hide" a div using jquery but div displays for a split second and then disappears

2009-11-04 Thread Michel Belleville
The only way I see to do so and degrade well would be to delegate hiding the hidden elements when your JavaScript loads, though before the load event is triggered all the content will show. Michel Belleville 2009/11/4 Newbie > I am working on an accordian side navigation jquery piece and I am

Re: [jQuery] Re: Binding Google Maps V3 InfoWindow links

2009-11-04 Thread Michel Belleville
I fail to see where you encounter a problem. I'd use $('#any_other_container a.whatever_link').live('click', function() { // here be your code }); Thanks for the bottle but I don't drink much (and I don't think it helps a lot while coding anyway). Michel Belleville 2009/11/4 benji > Hi, no re

[jQuery] Re: Binding Google Maps V3 InfoWindow links

2009-11-04 Thread benji
Hi, no response yet! please can someone try to help me out on this. have spent a week trying to get it working - cheers would the offer of a nice bottle of wiskey help :-) cheers B On 1 Nov, 17:39, benji wrote: > Hi - > > Hope someone can help me out. Have spent days now trying to get this > r

[jQuery] Attempting to "hide" a div using jquery but div displays for a split second and then disappears

2009-11-04 Thread Newbie
I am working on an accordian side navigation jquery piece and I am unable to get it to operate exactly how I want. The menu was originally designed by Roshan Bhattarai and can be viewed at http://roshanbh.com.np/2008/06/accordion-menu-using-jquery.html The original design does not degrade well si

[jQuery] Re: Jquery Form Plugin not sending name of button in Safari

2009-11-04 Thread petersendidit
Here is a patched version of the ajaxForm function that fixes the problem. $.fn.ajaxForm = function(options) { return this.ajaxFormUnbind().bind('submit.form-plugin', function() { $(this).ajaxSubmit(options); return false; }).bind('click.form-plugin',

[jQuery] Re: (validate) validation (plugin) remote message option problem.

2009-11-04 Thread Nemezya
Hi, I don't know if it can help but i had a quite similar problem. The function associated to my remote test was triggered whatever the server response because of a bad json encoding for the true/false response. I used json_encode() and it works now.

[jQuery] Demo Error for Accordion

2009-11-04 Thread BloggingEmergency
There is a bug in the demo/docs here: http://docs.jquery.com/UI/Accordion In this block, the H3's don't properly close tags. Causes issues with IE, and might reduce some of the noise on the lists from bogus problems. First header First content Second header Second content Mat

Re: Re: [jQuery] Block UI question

2009-11-04 Thread sunnytanya
I am also trying to achieve the same thing. Since you got it to work, can you please post a step-by-step process of how to get this workingwill be even helpful if you can post the code with some comments too. Thanks in Advance. -- View this message in context: http://old.nabble.com/Block-U

[jQuery] Re: Fill key va value from response of Json { "1": "Quan 1", "2": "Quan 2", "3": "Quan 3", "4": "Quan 4" } in listbox.

2009-11-04 Thread MorningZ
var drp = document.getElementById("edit-field-city-value"); drp.options.length == 1; // Clear all existing values except first $.each(AjaxData, function(v, k) { drp.options[drp.options.length] = new Option(k, v); });

[jQuery] Using stop() Outside Of Animation

2009-11-04 Thread Eclectic Mix
I know that stop() works well when using animation, such as when one passes their mouse over a series of animations to prevent the animation from continuing. However, I in my code I am using hide() and fadeIn() to do the work: $('li').hover( function() { $(this).find('div.Sectio

[jQuery] Jquery Accordion and History

2009-11-04 Thread mehstg1319
Hey Trying to implement JQuery on a website I am working on, basically, the whole front page is one big accordion and clicking on the various bars opens and closes the sections. Like this example. This all works perfectly, but like all javascript, if the user clicks the back button, it does not k

[jQuery] Re: setTimeout with variables (in a jQuery statement)

2009-11-04 Thread north
Thanks a lot for you answer, Michel. I have already switched to using a function within setTimeout, but I found my problem lies elsewhere. I might open a new thread with a better fitting title for this. On 4 Nov., 14:06, Michel Belleville wrote: > I'd use an anonymous function and pass it to set

[jQuery] Jquery Form Plugin not sending name of button in Safari

2009-11-04 Thread petersendidit
I have a form with 2 button elements in it. Button elements are used because they are much easier to style as needed. Save Save As Copy I am using the jquery form plugin (http://jquery.malsup.com/form/) to submit the form by ajax. Everything works great in all browser

Re: [jQuery] jQuery Validation request

2009-11-04 Thread Karl Swedberg
The following instructions are paraphrased from: http://groups.google.com/support/bin/answer.py?hl=en&answer=46608 You can unsubscribe from a group through the web interface or via email. To unsubscribe through the web interface, just click the "Edit my membership" link on the right-hand sid

[jQuery] jquery validation is broken that was working before

2009-11-04 Thread taza
Hi, I have used jquery.validation before without any issues. I have included the jquery validation javascript in the header and this test link does not work for some reason - http://dev.ntroduction.com/?page=step3 The validation code is called before the form as I have done else where. But this p

Re: [jQuery] setTimeout with variables (in a jQuery statement)

2009-11-04 Thread Michel Belleville
I'd use an anonymous function and pass it to setTimeout like this : var selector = '#whatever .selector'; var savVal = 'whatever value'; setTimeout(function() { $(selector).val(savVal); }, 1000); Notes for the careful reader : - There no "this" in the anonymous function, why is that ? -

Re: [jQuery] Fill key va value from response of Json { "1": "Quan 1", "2": "Quan 2", "3": "Quan 3", "4": "Quan 4" } in listbox.

2009-11-04 Thread Thai Dang Vu
Can you try this (never try it by myself) $('#edit-field-city-value > option:not(first-child)').remove(); for (var key in your_json_object) { $('#edit-field-city-value').append('' + your_json_object[key] + ''); } On Wed, Nov 4, 2009 at 4:06 AM, Tan wrote: > Hi, all. > I have two listbox: >

[jQuery] Re: jquery superfish performance question

2009-11-04 Thread grabnerandi
I did some further performance testing on the menus - will soon blog about it on http://blog.dynatrace.com I ran tests with 50, 100 and 500 menu items. It seems like 50 elements take roughly 300ms to process. Performance in that case scales up linear meaning that 100 take 600ms and 500 take 3s. the

[jQuery] setTimeout with variables (in a jQuery statement)

2009-11-04 Thread north
Hi, I'm trying to use a jQuery statement inside a setTimeout function, but I don't get it to work. I tried a lot of variants, like this one (I'm using 'this' because the setTimeout is inside an each function, and the selector is cached/stored in an object, thus the $selector): setTimeout("" + thi

Re: [jQuery] Re: Slider

2009-11-04 Thread Richard D. Worth
On Tue, Nov 3, 2009 at 12:50 PM, Luh Hooo Zer wrote: > Well i guess the word value was not the right word. > > i have a graphic under the slider1 slider2 and slider3 that says: > Low-Medium-High > > with 30 steps in the slider. > > if a visitor drags slider1 handle to Medium, and slider2 h

[jQuery] taconite strange problem

2009-11-04 Thread gerkuil
HI All, I am using the taconite plugin and am running into a strange issue. I use taconite to call several processes after each other (php) and update messages in the page, as such it is running fine. I have one big issue, if I open one database table too many in one of the calls, taconite receiv

[jQuery] Fill key va value from response of Json { "1": "Quan 1", "2": "Quan 2", "3": "Quan 3", "4": "Quan 4" } in listbox.

2009-11-04 Thread Tan
Hi, all. I have two listbox: a listbox country - None - Malaysia Thailan a listbox city - None - When i select country then i use ajax response data { "1": "Quan 1", "2": "Quan 2", "3": "Quan 3", "4": "Quan 4" } 1, 2, 3,4 is key of array I want when select country then add key and values

Re: [jQuery] Calling an iframe's javascript function

2009-11-04 Thread Michel Belleville
Well first you can find elements using their id : $('#frameid') Then access the content of an iframe : $('#frameid').contents() Then maybe access functions they own : $('#frameid').contents().myFunc(); Though I don't know much about your "myFunc()" and how you attached it to the iframe, this sho

Re: [jQuery] .png transparency in IE 6 and jQuery

2009-11-04 Thread Jonathan Vanherpe (T & T NV)
FranktheTank wrote: I have been able to successfully apply transparency fixes to transparent .png images using some jQuery plugins (as well as other methods). However, I have a problem in that my design requires that I have rollover images on those .png files. The problem is that every method t