[jQuery] Re: Ajax using JSON, parse return string before success

2009-05-08 Thread Giovanni Battista Lenoci
Eli Perelman ha scritto: Here is an example response: /// { "detail" : [{"id" : "1","useraccount" : "Alisa","datestamp" : "2008-11-28 00:00:00","companyname" : "Allianz Life Insurance Company","officephone" : "8779744653","officephoneext" :

[jQuery] json syntax question (ticket vs unticked names)

2009-05-08 Thread aldana
i often see two different json styles to have names: { key : "value" } vs { "key" :"value" } looking at official sites only option 2 is correct syntax, never the less most of the tools do also handle option 1 and don't moan about the syntax. what you say, does it in practice not matter whic

[jQuery] Re: json syntax question (ticket vs unticked names)

2009-05-08 Thread Shawn
This all depends on where you are generating and using the json string. Doing { key : "value" } and then using that code immediately on the same page, typically works fine. However, if you ever need to pass your json string to/from a server, you'll find that this "shortcut" fails quite ofte

[jQuery] Two ajax call on the same page - problem with response

2009-05-08 Thread alex.zeta
Hi, before posting my code, I'll try to explain the problem: i have two ajax calls on a single form, and have problems with responses from server. This is the situation: ajax1 = calls the php script that sends the email - and the script returns "OK" in case of success; ajax2 = binded to a link (

[jQuery] Two ajax call on the same page - problem with response

2009-05-08 Thread alex.zeta
Hi, before posting my code, I'll try to explain the problem: i have two ajax calls on a single form, and have problems with responses from server. This is the situation: ajax1 = calls the php script that sends the email - and the script returns "OK" in case of success; ajax2 = binded to a link (

[jQuery] Re: json syntax question (ticket vs unticked names)

2009-05-08 Thread Steven Yang
seriously i am not sure but sometimes i just hate to see something like var data = {.something}; var config = { data : data }; so when this happens I do var config = { 'data' : data }; just to be clear

[jQuery] Re: IE8 & BlockUI incompatible

2009-05-08 Thread Ronen42
Hi Anand, the thing is, I have to block the screen while loading the page to prevent any user interaction untill the page ist completely loaded. This is working in all browsers but not in IE8. My solution right now is to set IE8 to IE7 render mode with the meta tag: Greets, Bart

[jQuery] Re: json syntax question (ticket vs unticked names)

2009-05-08 Thread aldana
OK, to be standard I will go for the ticked way. Never the less I think it is unfortunate that JSON forces the name to be ticked. The JSON document gets less readable and more annoying to write. Shawn Grover wrote: > > > This all depends on where you are generating and using the json string

[jQuery] Re: json syntax question (ticket vs unticked names)

2009-05-08 Thread unwiredbrain
Actually, quoting is optional *EXCEPT* if member name contains spaces or is a language-specific reserved word. Try to jslint this fragment: var JSONTest = { "jack johnson": "john jackson", "alice": "bob", "var": "error" }; Unquoting alice makes no difference; doing the same for jack

[jQuery] Re: json syntax question (ticket vs unticked names)

2009-05-08 Thread Shawn
This isn't the same thing. Consider the following code: var json1 = { jack: "jack jackson" }; var json2 = '{ sara: "sara jones" }'; In this case, json1 becomes a javascript object in memory. json2 is a string that just so happens to look like a javascript object. In the first case, this is

[jQuery] site hit count jquery / javascript code

2009-05-08 Thread bharani kumar
hi al Can u please tell me the site counter hit jquery code , Am not sure there is a code in jquery , But i know the php code for site counter hit , but looking in javascript / jquery /ajax , thanks -- உங்கள் நண்பன் பரணி குமார் Regards B.S.Bharanikumar POST YOUR OPINION http://bharanikuma

[jQuery] Re: site hit count jquery / javascript code

2009-05-08 Thread ryan.j
i'm not sure i follow, the site counter would just increment a counter in a backend database, then retrieve that value for display. jquery can POST and GET stuff to/from the backend and that's about it as far as displaying a hit counter goes. On May 8, 11:33 am, bharani kumar wrote: > hi al > >

[jQuery] Re: IE8 & BlockUI incompatible

2009-05-08 Thread Anand Kulkarni
Hi Bart, Try the following. In your page just have an empty body tag and a script tag in the head. In the script tag, invoke blockUI and then use ajax to load the entire content into the body (or any container of your choice, really). See the following example: index.html (simplified) ==

[jQuery] [tooltip] - plugin - Some tooltips are not showing

2009-05-08 Thread euang
Hi, I have the tooltips showing on some links but on others they don't. For example I can't get them to work on tab links I have on my page. Any ideas? Cheers Euan

[jQuery] Problem with jQuery in Firefox

2009-05-08 Thread MC Lueppers
Hi, I'm in a development phase of a file sharing portal and I have a problem with jQuery on the following page: http://share.home.hive-net.net/pricing. In Firefox I get an error "too many recursion" when changing the plans. Can you please help me get rid of it? Thanks in advance, Martin

[jQuery] Re: Duplicate error msgs (and no re-validation) in FF/Opera. Works in IE6/7

2009-05-08 Thread Parro
I can't see your code, pastebin said is expired, but I have a similar problem. I resolved correcting the html structure. I had this code bla bla (forgive me, I was refactoring a 6 years old page ;-)) when I put the form outside the table, it starts to work perfectly. I think that the dele

[jQuery] IE7 renders twice: before and after ready() process

2009-05-08 Thread Henrik Bechmann
I have this problem: I hook a javascript function to 'ready' using javascript. This function creates and inserts a lot of html code. The trouble is that in IE7 the page renders twice: once before the inserted html is rendered, and once after it is rendered. Thus the page appears to 'jump' on ins

[jQuery] Re: json syntax question (ticket vs unticked names)

2009-05-08 Thread Mihailo Vasiljevic
aldana wrote: > i often see two different json styles to have names: > > { key : "value" } > > vs > > { "key" :"value" } > > > looking at official sites only option 2 is correct syntax, never the less > most of the tools do also handle option 1 and don't moan about the syntax. > > what you say, do

[jQuery] BlockUI Plugin Question

2009-05-08 Thread jsuggs
Is there a way to make the area that isn't being blocked greyed out? Ideally, it would just be opaque, so that it is obvious that the only area that can have interaction is the element being blocked. Kinda like how FancyBox or ThickBox does it http://fancy.klade.lv/example http://jquery.com/demo/

[jQuery] Re: Tablesorter with pager extension check boxes not present on form submit

2009-05-08 Thread Brian Holt
On Apr 25, 1:25 am, Jack Killpatrick wrote: > Checkbox names are only posted if they're checked. You'll need to check > for the presence of the name on the server side and if it's not there, > then none were checked. That's not a tablesorter issue (doesn't sound > like it). Jack, I think it is

[jQuery] Special Entities returned in json via plugin Ajax upload ??

2009-05-08 Thread sinkingfish
Hi I'm using the ajax upload plugin (http://valums.com/ajax-upload/) to upload images to the server. I'm then storing the images in an image cache and returning to the client 2 pieces of info in a json object, 1 the imageId & the url to display the image. The problem I'm having is that the plug

[jQuery] Re: val ( ) prefers labels over values?

2009-05-08 Thread Ricardo
On May 8, 3:30 am, Klaus Hartl wrote: > w3schools is irrelevant to me. Despite the name it has nothing to do > with the W3C and more often than not I found incorrect/incomplete > information there. > > --Klaus In the given page there is a button labeled 'Try it yourself', where you can empirical

[jQuery] append() and the browser back button

2009-05-08 Thread Dragon-Fly999
Hi, I use append() to add html fragments to a page dynamically. This works fine until the user navigates to another page and then clicks on the browser back button. The dynamically added html fragments are no longer visible. I read somewhere that dynamically added elements are not remembered b

[jQuery] Re: IE7 renders twice: before and after ready() process

2009-05-08 Thread infoaddicted
Post your code On May 7, 8:58 pm, Henrik Bechmann wrote: > I have this problem: > > I hook a javascript function to 'ready' using javascript. This > function creates and inserts a lot of html code. > > The trouble is that in IE7 the page renders twice: once before the > inserted html is rendered

[jQuery] Re: NEW jQuery Cheat Sheet for 1.3.2

2009-05-08 Thread Rogue Lord
Looks good mate! On May 7, 10:01 am, Matt Kruse wrote: > I've updated my previous cheat sheet to be in line with jQuery 1.3.2. > I think it's more useful than other cheat sheets that simply dump > method names, but hey, that's personal preference ;) > > http://www.javascripttoolbox.com/jquery/ch

[jQuery] Re: NEW jQuery Cheat Sheet for 1.3.2

2009-05-08 Thread MorningZ
Nice work Matt! I always like when there's a quick 1 page lookup like this available On May 8, 10:24 am, Rogue Lord wrote: > Looks good mate! > > On May 7, 10:01 am, Matt Kruse wrote: > > > I've updated my previous cheat sheet to be in line with jQuery 1.3.2. > > I think it's more useful th

[jQuery] Re: json syntax question (ticket vs unticked names)

2009-05-08 Thread Thomas Matthijs
Both are valid javascript, but only one is valid json. However many json parsers are leaniant in what they accept. var moo = { foo: "bar" } // this is javascript, not json. JSON.stringify(moo) should give '{ "foo": "bar" }' // this is json. So if you are passing json to something, it needs to be

[jQuery] jQuery cluetip plugin

2009-05-08 Thread Bharat
In my Rails 2.3.2 application, the plugin is working for me, but I am unable to customize anything. Here is my setup: 1. In my application.html.erb file, I have the following: <%= javascript_include_tag "jquery.js", "jquery-ui.js", "jquery.hoverIntent.js", "jquery.cluetip.js", "jrails.js"

[jQuery] jQuery append returning document or head is null error

2009-05-08 Thread nandu
Dear Folks, I am getting a "document or head is null" error. I have explained the context below. It is a long email; please bear with me. I am uploading a file using an iframe as follows: some stuff... document.getElementById('file_upload_form').target = "upload_target"; uplo

[jQuery] jQuery - UI - Dialog (embedding a web page)

2009-05-08 Thread DualFlex
Hi all, Just starting with jQuery... Q1) What is the most elegant way to embed another web page into a dialog? Use an IFrame? Q2) Can't get a width of 600px ... Q3) With Ie 6.x, my embedded web page appears first on the top-left and then fades out into the UI-dialog breaking it !?! Q4) No mod

[jQuery] Re: extract base url

2009-05-08 Thread Danilinho
you can try this: window.location.href = 'http://www.google.co.za?key=' + val1; after: you can try this: window.location.href = 'http://www.google.co.za?key=' + val2;

[jQuery] Re: AJAX Problem

2009-05-08 Thread Arak Tai'Roth
Awesome, Mauricio had the right solution. I had figured that e was working on the link, but now that I think about it, that makes no sense. So that works, now I have to figure out how to inject the incoming html, because apparently that's not working, just not sure yet if it's my javascript or my

[jQuery] Format of the image

2009-05-08 Thread Pedro Vidal
Hello dear friends, this is the first time I write to group, so here we go... I'm having a doubt about how to do a photo gallery. My client wants a gallery where the photos SHALL have this format: http://farm4.static.flickr.com/3357/3512424193_b9f5159e69.jpg?v=0 I thought about the use of "image

[jQuery] Re: AJAX Problem

2009-05-08 Thread Mauricio (Maujor) Samy Silva
Awesome, Mauricio had the right solution. I had figured that e was working on the link, but now that I think about it, that makes no sense. So that works, now I have to figure out how to inject the incoming html, because apparently that's not working, just not sure yet if it's my javascript or

[jQuery] Re: BlockUI Plugin Question

2009-05-08 Thread Jonathon Suggs
I'm going to go back and confirm this, but it was not showing that effect on FF3.0.1 on Linux, but it is working on FF3.0.1 on windows and IE8 on windows. Jonathon Suggs jsu...@gmail.com (256) 874-2425 cell (615) 309-5953 ext 104 On Fri, May 8, 2009 at 12:38 AM, jsuggs wrote: > > Is there a wa

[jQuery] Re: jQuery - UI - Dialog (embedding a web page)

2009-05-08 Thread Richard D. Worth
On Fri, May 8, 2009 at 10:40 AM, DualFlex wrote: > > Hi all, > > Just starting with jQuery... > > Q1) What is the most elegant way to embed another web page into a > dialog? Use an IFrame? Most elegent would be to call .dialog() on the iframe itself: $("iframe").dialog() or $("#theidoftheifr

[jQuery] Re: jQuery cluetip plugin

2009-05-08 Thread Bharat
I am now able to load images/colors out of the CSS file but cluetip iteself refuses to recognize any options that I set so for example if I say $(".tip").cluetip({arrows: true}); It does not honor the arrows options setting same thing for sticky: true, etc. Any ideas?

[jQuery] Re: AJAX Problem

2009-05-08 Thread Arak Tai'Roth
Yea I changed method to type, but it still isn't working. Here is my code for the controller (if you don't know CakePHP, this likely won't mean anything to you): function view($slug) { if ($this->RequestHandler->isAjax())

[jQuery] Re: jQuery cluetip plugin

2009-05-08 Thread Karl Swedberg
Do you have a page somewhere that I can take a look at? Which version of clueTip are you using? thanks, --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On May 8, 2009, at 12:29 PM, Bharat wrote: I am now able to load images/colors out of the CSS file but c

[jQuery] treeview

2009-05-08 Thread diegoGPC
hi all, I'm a developer...I'm customizing the treeview plugin to use it in a site where i need also a breadcrumb (designer request...) and to highlight the selected node. I am totally new in JQuery affair... I've used it before only in a deaf way, without any kind of customization. I'm used to w

[jQuery] JQModal + Accordion

2009-05-08 Thread developerho...@gmail.com
Hello everyone, Ive been trying to work on jQModal + Accordion combination but so far have no luck at all. JQmodal is fine until i installed the accordion. Have you ever done this? If so, what scripts, version did you use? Thanks :)

[jQuery] [autocomplete]

2009-05-08 Thread Topher
Hello all, I am successfully using the jQuery autocomplete plugin provided by http://docs.jquery.com/Plugins/Autocomplete and it works great. I was just wondering if there was any way to group results when displayed in the dropdown selector. For instance, we have a requisition with many line ite

[jQuery] Re: AJAX Problem

2009-05-08 Thread Arak Tai'Roth
Okay, so correction, I got it, it was a dumb mistake, makes me thing I should go back to high school to learn how to spell. Anyways, while I'm here, is there anyway I can force the callback function beforeSend to run for a certain amount of seconds before to stops running? Essentially what I want

[jQuery] [tooltip] interactive tooltips

2009-05-08 Thread narnarnar
Anybody ever made interactive tooltips based on the tooltip plugin? I mean tooltips with links and other html elements inside. The problem is that the tooltip dissappears after a short time. Is there a setting for this? Otherwise I will code an extension. Thanks, Narnarnar

[jQuery] Re: jQuery - UI - Dialog (embedding a web page)

2009-05-08 Thread DualFlex
Many thanks Richard! It's working! I have a few new twists. Meet you in the other forum! --- Dualflex

[jQuery] Re: Problem with jQuery in Firefox

2009-05-08 Thread Matt Critchlow
obj.find("input[name='plan_price']:radio").click(); //is creating the recursive loop On May 8, 12:59 am, MC Lueppers wrote: > Hi, > > I'm in a development phase of a file sharing portal and I have a > problem with jQuery on the following > page:http://share.home.hive-net.net/pricing. In Firefox

[jQuery] Problem with keyup event from Learning jQuery 1.3

2009-05-08 Thread EricC
Hi I am currently learning jQuery from the book Learning jQuery 1.3 and I have run across a block of code that is not working for me in FF or Safari. Here it is copied straight from the book (page 64) $(document).ready(function() { $(document).keyup(function(event) { switch (String.fromCharCode(e

[jQuery] .load(function() not working

2009-05-08 Thread surreal5335
I have a piece of code which has worked great in the past on this very site, but for some reason now, has stopped working. I put in the .ready function to try and fix it bc I understand that is a crucial peice of syntax for jquery. Still the code does not work. Everything in this code is not bein

[jQuery] Re: .load(function() not working

2009-05-08 Thread timbrown
you must have a huge monitorhorizontal scrolling is a big no no. I too have had issues with .load()...it will not run scripts that are dynamically loaded into the DOM...i've seen a few things out there talking about combatting this issue most of which include searching the loaded content for

[jQuery] Re: .load(function() not working

2009-05-08 Thread Ricardo
On May 8, 3:22 pm, timbrown wrote: > you must have a huge monitorhorizontal scrolling is a big no no. > > I too have had issues with .load()...it will not run scripts that are The load() in this case has nothing to do with the ajax method, it's adding an "onload" event listener. > On May 8,

[jQuery] How to destroy a tooltip?

2009-05-08 Thread Mark Lacas
I'm using tooltips on a file list. When I delete a file (and it's DOM structure representation) that has a tooltip I'm getting an error at line 232. "setting(current) is undefined" if (event) { 231 // position the helper 15 pixel to bottom right, starting from mouse position 232 left = event.p

[jQuery] Re: "Please Wait While Processing" help

2009-05-08 Thread Shadraq
In case anyone stumbles onto this discussion looking for specifics, the following is what i ended up doing: *** $('#processing-EventListing') { $().ajaxStart(function() { $.bl

[jQuery] Re: AJAX Problem

2009-05-08 Thread Mauricio (Maujor) Samy Silva
De: "Arak Tai'Roth" Okay, so correction, I got it, it was a dumb mistake, makes me thing I should go back to high school to learn how to spell. Anyways, while I'm here, is there anyway I can force the callback function beforeSend to run for a certain amount of seconds before to stops running? E

[jQuery] Re: .load(function() not working

2009-05-08 Thread surreal5335
Sorry about the awful horizontal scrolling, its not meant to be like that. My belief is that once I am able to get the .load function working again, that problem will also fix itself bc the jcarousellite plugin will opperate properly again. Or atleast it will fix one of the problems toward reslolv

[jQuery] [Validation] Email

2009-05-08 Thread Brett
I noticed that if you do the email: true in the validation and then try and type an email such as: em...@example.com.com it will mark it as valid. Is this intended? Even says its valid on your test page at: http://docs.jquery.com/Plugins/Validation/Methods/email

[jQuery] Cookie 'current' state question for horizontal menu with drop downs

2009-05-08 Thread lorenzo morales
I searched and found this thread... http://groups.google.com/group/jquery-en/browse_thread/thread/f118475a14a5245a/e60e972d364f11d0?lnk=gst which is very helpful for list based menus with a need for a current state. But I have a similar request that I hope to solve with your help. I have a horiz

[jQuery] Problems with JQuery Cycle Plugin and IE6

2009-05-08 Thread Chris
Hi, I am having a problem with IE6 and the cycle plugin. In IE6 it shows a black background over my div background image (I set via css a background image to a master div). cleartype set to false, cleartypeNoBg to true. I am cycling transparent png images. In IE7+ and Firefox everything is ok. A

[jQuery] Re: Is there an easy way to do this?

2009-05-08 Thread Brian Yanosik
Thanks, This works the first time, but when the div refreshes (shows any errors and displays the form again) the page refreshes when you click the submit button again, it does not just refresh the div. any reason why? you can see a working version at http://thefast-track.com/test.php Thanks Bri

[jQuery] jQuery .ready causing page to re-submit

2009-05-08 Thread Kendall
We have code on a site that tries to prevent users from using the back arrow. In the onLoad of the page a function is called that contains window.forward(). In trying to implement jQuery on this site, the function call from the onLoad was moved to the .ready statement for jQuery. The onLoad was w

[jQuery] jQuery.form bug in FF with action='#anchor'

2009-05-08 Thread Cédric
Hi, after upgrading jQuery.form plugin from version 2.12 (06/07/2008) to version 2.25 (08-APR-2009) i encounter failure in Firefox 3.0.10 with ajax forms that had only an anchor in action attribute of form, such as : This was perfectly working with version 2.12 of jQuery.form plugin but does

[jQuery] Some sort of refresh bug with dynamic content and hidden divs.

2009-05-08 Thread Oliver
Hi Folks I've discovered some really strange behavior with hiding/showing a dynamic jcarousel: I have a jcarousel and have it get items dynamically... Works like a charm... Then I place this jcarousel in an accordion menu, so basically just a hidden div. When I show the parent div I get one of

[jQuery] Problem with float:left; on i in multiple sortable lists

2009-05-08 Thread krreks
Hi. I'm working on an article module and have stumbled upon a problem. I'm having several connected lists and need to float the li elements in two of the three connected lists. I'm able to reoder the lists internally, and to move elements from the lists with floated li's to a list where the elem

[jQuery] Re: [autocomplete] Search Page Replacement

2009-05-08 Thread Logan Green
This tab issue is driving me crazy. Has anyone found a hack/fix that will allow the tab to work as expected...where the user hits tab once, and moves to the next field? On Apr 27, 5:49 am, Tom Worster wrote: > On 4/27/09 5:25 AM, "Matthew Vickery" wrote: > > > Thanks for your reply.  I see wha

[jQuery] Re: what happened to galleriffic?

2009-05-08 Thread Rey Bango
Seems like the site is up again Jack. Rey Jack Killpatrick wrote: Hi, Does anyone know if the galleriffic plugic is available somewhere new? I started a project with it last week, pulled from here: http://www.twospy.com/galleriffic/ but when I went there yesterday it wasn't working and i

[jQuery] Re: Problem with keyup event from Learning jQuery 1.3

2009-05-08 Thread Karl Swedberg
Hi Eric, It could be that you haven't included the rest of the code that actually binds the click handlers to those elements. It's probably not entirely clear that the code snippet isn't sufficient by itself to trigger the style switching. It needs the previous code along with it. Sorry a

[jQuery] Re: Scoping issue with load and call back function.

2009-05-08 Thread Stever
Josh and all, I figured out a way around the issue using the ajaxStop function. The ajaxStop event is triggered when all outstanding requests (load in this case) are complete. When this happens all the tables I wish to load are loaded to the document. My original code was trying to grab informat

[jQuery] "Superfish"

2009-05-08 Thread Realty4Real
Hello, I need help with superfish drop down menu on my 1.5.10 Joomla site For about three days I have been trying to install it through my admin section but never got to run. I was able to install suckerfish and I had it running, but with superfish, I have no idea what to do next after I have ins

[jQuery] Superfish - only hide one level - how to?

2009-05-08 Thread webhank
i am looking for a way to have superfish only hide the secondary navigation but not other levels - for example i have a horizontal nav bar with my primary navigation on it - i would like for the secondary AND tertiary navigation to show when i mouseover a main nav element. is there any way to sh

[jQuery] Tablesorter - multiple header cells and row grouping

2009-05-08 Thread williamstam
each "row"has a row beneath it with a "menu" part to edit / view the record etc. using css the menu is set to display:none. when a user clicks the record jquery does a .show() on the menu row is it posible to sort the columns preserving the record row and menu row (maybe grouping them with a class

[jQuery] sorting a table

2009-05-08 Thread williamstam
each "row"has a row beneath it with a "menu" part to edit / view the record etc. using css the menu is set to display:none. when a user clicks the record jquery does a .show() on the menu row is it posible to sort the columns preserving the record row and menu row (maybe grouping them with a clas

[jQuery] Re: jQuery - UI - Dialog (embedding a web page)

2009-05-08 Thread williamstam
well you could use .load() to load a page into a div inside the dialog... then open it. i dont like using iframes *waits for the flameing* On May 8, 7:23 pm, DualFlex wrote: > Many thanks Richard! > > It's working! I have a few new twists. Meet you in the other forum! > --- > Dualflex

[jQuery] Get attribute of the parent element into a variable

2009-05-08 Thread Matt M.
Hi, All. Kind of new to jQuery, but having fun with it. Would like to learn how to do the following... 1) Target the active . 2) Find the parent . 3) Grab the value of the attribute "jcarouselindex" and put it in a variable to be used elsewhere. Sample code below... Tha

[jQuery] Re: animating div when the mouse is over

2009-05-08 Thread Macsig
I still have hard time making it works. ANY IDEAS ARE WELCOME. thanks and have a nice weekend Sig On May 4, 10:39 am, Macsig wrote: > Any ideas? > > Thanks > > On May 4, 12:50 am, Macsig wrote: > > > Hi, I think I have solved it but now an other question for you: > > > can I display by def