[jQuery] $ajax does not send all data

2009-05-10 Thread Tim Johnson
The following function is used as the onsubmit handler for a form: // --- function checkCPForm1(theform) { if(ValidateCPForm(theform)){ var data = $(theform).serialize(); alert("data: " + dat

[jQuery] Re: image for public usage

2009-05-04 Thread Tim Johnson
On Monday 04 May 2009, Sam Sherlock wrote: > http://docs.jquery.com/Design_and_Identity Thanks a lot! Does the trick.. tj

[jQuery] image for public usage

2009-05-04 Thread Tim Johnson
Since jQuery is one of my "tools" - I'd like an appropriately "public" image to use on my website. Are any available? thanks tim

[jQuery] Re: Recommend tree widget toolkit

2009-03-12 Thread Tim Johnson
On Wednesday 11 March 2009, jQuery Lover wrote: > I have not tested nor worked with lots of tree widgets, but treeView > is a lightweight and robust plugin... > > http://be.twixt.us/jquery/treeView.php > thanks, I will check that out. BTW: dojo did come thru with the addition code needed, but wha

[jQuery] Recommend tree widget toolkit

2009-03-11 Thread Tim Johnson
Hello: If jquery itself does not support a tree widget toolkit, can anyone recommend one, I've tried dojo but two problems: 1)doesn't work - even verbatim example 2)No support 3)Very big system Any comments or recommendation welcome. thanks tim

[jQuery] Re: serializing data from a jquery-rendered form

2009-02-18 Thread Tim Johnson
On Wednesday 18 February 2009, Tim Johnson wrote: > The goal is a multi-stage process schema where a form is rendered > by a cgi script and inserted into a static web page via this method: <> > The second stage is to validate the input form that is rendered by the > meth

[jQuery] Re: Javascript Generated by $()load does not render

2009-02-18 Thread Tim Johnson
On Wednesday 18 February 2009, Alexandre Plennevaux wrote: > see if this resolves your issue: Hi Alexandre: Thanks very much for your help on this issue, but it still does not work. However, I already have a workaround to enable functionality - and in the future - a different approach coul

[jQuery] serializing data from a jquery-rendered form

2009-02-18 Thread Tim Johnson
The goal is a multi-stage process schema where a form is rendered by a cgi script and inserted into a static web page via this method: [code] $(document).ready(function(){ var myscript; if(document.domain == 'bart.johnson.com') // local myscript = "http://bar

[jQuery] Re: Javascript Generated by $()load does not render

2009-02-18 Thread Tim Johnson
On Wednesday 18 February 2009, Alexandre Plennevaux wrote: > you can use load, you just have to setup the ajaxSetup controlling > your ajax main parameters so you set it to your liking, then you call > the load(). It is built on top of the ajax method to ease its use. > See: http://docs.jquery.com

[jQuery] Re: Javascript Generated by $()load does not render

2009-02-18 Thread Tim Johnson
On Tuesday 17 February 2009, Alexandre Plennevaux wrote: > i suppose that you change try specifying the dataType as "script" that > your ajax calls expect: > > Taken from: http://docs.jquery.com/Ajax/jQuery.ajax > > dataType > > The type of data that you're expecting back from the server. If none

[jQuery] Javascript Generated by $()load does not render

2009-02-17 Thread Tim Johnson
I have a script that generates javascript validation code when called in the following code: $(document).ready(function(){ $("#dynamic_content").load(myscript,"task=entry", function(resp,stat,xhr){ //alert(resp); // leave for testing

[jQuery] Re: jQuery Plugin "Hello World"

2009-02-16 Thread Tim Johnson
On Sunday 15 February 2009, mtsmit2 wrote: > The following is a pretty good starting point. > > http://docs.jquery.com/Plugins/Authoring What is was looking for you. thank you tim

[jQuery] jQuery Plugin "Hello World"

2009-02-15 Thread Tim Johnson
Google gives me lots of hits on "jQuery Plugin" However, I have yet to find a _very_ simple example. One that would demonstrate the simplest syntax and also demonstrate where to install the file with the plugin.. Links are welcome. I'll take it from there. thanks Tim

[jQuery] Re: Generate Session ID

2009-02-14 Thread Tim Johnson
On Saturday 14 February 2009, C.Everson wrote: > On Sat, 14 Feb 2009 10:41:05 -0900, Tim Johnson wrote: > > Using Ajax with jQuery - would it be practical and safe for the > > document to generate a Session ID in the onload or document.ready > > phase and pass it to t

[jQuery] Generate Session ID

2009-02-14 Thread Tim Johnson
I'm transitioning from "old-style" CGI programming to using jQuery to access the server via Ajax. It is customary for me to have the CGI script generate a random string to use as a session ID. Using Ajax with jQuery - would it be practical and safe for the document to generate a Session ID in th

[jQuery] Re: Status Codes => docs

2009-02-12 Thread Tim Johnson
On Thursday 12 February 2009, Mike Alsup wrote: > > Textual status is fine. > > Where is documentation on status strings? > > Thanks > > Tim > > When the 'success' handler is invoked the textual status is always > "success" (unless you're using the ifModified option). > > When the 'error' handler

[jQuery] Re: Status Codes => docs

2009-02-12 Thread Tim Johnson
On Thursday 12 February 2009, Mike Alsup wrote: > >  Sorry. > >  To clarify, I wanted ed to know if numerical statuses via the w3 > > protocol or text strings were being returned. I just did my first > > successful ajax call using jquery and the status returned in the callback > > was "success", n

[jQuery] Re: Status Codes => docs

2009-02-12 Thread Tim Johnson
On Wednesday 11 February 2009, Nic Luciano wrote: > http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html > > Something like this? > > I might be misunderstanding your question, but I don't think statuses and > datatypes are related if that's what you mean. Status codes (linked) are > the status

[jQuery] Status Codes => docs

2009-02-11 Thread Tim Johnson
I would be grateful if someone could point me to documentation on status codes. Example: $post() expects a callback function whose second argument would be status. What statuses should I expect and what datatype for statuses should I expect. Links to docs would be more than adequate. _Thanks In

[jQuery] Re: $.post NOT_ENOUGH_ARGS

2009-02-11 Thread Tim Johnson
Thank you very much James. this is great! cheers tim On Wednesday 11 February 2009, James wrote: > You can use a generic classname on all your forms. > > > ... > > > > ... > > > $(function() { > $(".myForm").submit(function(){ > $.post($(this).attr("action"), >$

[jQuery] Re: $.post NOT_ENOUGH_ARGS

2009-02-11 Thread Tim Johnson
On Tuesday 10 February 2009, mkmanning wrote: > For the second argument use $(form).serialize() > > You should also use onsubmit="return CheckForm0(this);" > although the best practice would be to remove the inline script and > bind > the submit event like this: > $('form').submit(function(){ >

[jQuery] Re: $.post NOT_ENOUGH_ARGS

2009-02-10 Thread Tim Johnson
On Tuesday 10 February 2009, James wrote: > The second parameter (where you have 'form') is suppose to be a JS > object like: > {name:form.myName, email:form.email, phone:form.phone} Potentially, 'form' could have hundreds of elements and in reality, does. So how to convert the 'form' object int

[jQuery] $.post NOT_ENOUGH_ARGS

2009-02-10 Thread Tim Johnson
My source is "jQuery in Action" (Bibeault/Katz) - page 249, the $.post function. According to the documentation post() takes three arguments: URL, parameters, callback where callback is a function with 2 arguments, response and status. I've tried the following - which is called from the form as on

[jQuery] Re: Convert from AjaxRequest to jQuery/ajax

2009-02-08 Thread Tim Johnson
On Sunday 08 February 2009, pedalpete wrote: > Sorry Tim, I didn't understand it that way. :-) > You should still be able to do this fairly simply. Looks like I will also have to use a wrapper to get the form using the 'this' keyword, since I work with multiple forms. I think I can get what I

[jQuery] Re: Convert from AjaxRequest to jQuery/ajax

2009-02-08 Thread Tim Johnson
le that I submitted, the form is passed as the 'this' keyword, allowing this function to have more than one caller. Thanks again, more examples are welcome, but perhaps I would have to dig deep and learn to write a wrapper. cheers tim > }); > [/code] > > On Feb 8, 4:23 pm, T

[jQuery] Convert from AjaxRequest to jQuery/ajax

2009-02-08 Thread Tim Johnson
For some time I've been using a little ajax library called AjaxRequest. Because I'm working with code generation tools, I'd like to make a first - step switch to jQuery as simple as possible. A sample AjaxRequest function follows: function CheckForm0(theform) { AjaxRequest.submit(

[jQuery] Re: Writing Ajax to table cells.

2009-02-05 Thread Tim Johnson
On Thursday 05 February 2009, David Meiser wrote: > I'm not 100% sure what you're trying to accomplish, but you can output > anywhere on the page using a distinct element name. > > I have code in which I attach tables generated in jquery to DIVs, for > example. And I'm certain you could go the op

[jQuery] Writing Ajax to table cells.

2009-02-05 Thread Tim Johnson
FYI: I am an experienced web programmer (server-side mostly) with some exposure to javascript and have used ajax calls and dhtml methods a little. Furthermore - I do not _yet_ use jquery. This question is to - some extent - being asked of behalf of a web designer who himself is not on this ML. T