you might be better off using the JSON
> specific ajax methods.
>
> If you're new to JQ and JS, do you use Firebug in Firefox? With that
> tool, you can more easily check what's being returned from your ajax
> call etc.
>
> On May 4, 9:18 pm, dineshv <[EMAIL PROTECT
First, I'm very new to JS/JQ. I've got a simple HTML list of items
that I want updated from the server whenever the user requests it (by
hitting a submit button). The results from the (Python/webpy) server
are held in a list result[]. Here is the html:
"$result[0]"
"$result[1]"
"$
My autocomplete is getting data from a server (using a localhost).
I've checked and the data is getting to the browser. But, the items
do not display and I'm continually getting the following set of
errors:
localhost - - [30/Apr/2008 19:29:04] "GET / HTTP/1.1" 200 -
localhost - - [30/Apr/2008 19
Re:posted with autocomplete in subject line:
The autocomplete plugin comes with two css files - main.css and
jquery.autocomplete.css. I'm guessing that the main.css is for the
demo script only - is that right? What is the jquery.autocomplete.css
used for and is it necessary? The reason for aski
The autocomplete plugin comes with two css files - main.css and
jquery.autocomplete.css. I'm guessing that the main.css is for the
demo script only - is that right? What is the jquery.autocomplete.css
used for and is it necessary? The reason for asking is that I'm
getting a conflict between my
I know this is a simple question but ... In the Autocomplete multiple
cities example (http://dev.jquery.com/view/trunk/plugins/
autocomplete/) how do you send the final set of chosen entries to the
server ie. all the values in the input box when "Get Value" is
clicked?
Here is the code from the e
quot; and the number of entries is > MAX, how can this be done?
Dinesh
On Apr 9, 11:20 pm, dineshv <[EMAIL PROTECTED]> wrote:
> Actually, you don't need the simplejson at the server. This works:
>
> def GET(self):
> result = ""
> for ite
I want to send a 400KB text file to the browser each time a user comes
to the site. The file will be sent once only during a user session.
Are there any mechanisms in JS/JQuery to reduce the size of the file
eg. send as a binary and de-binarize at the browser?
Dinesh
Actually, you don't need the simplejson at the server. This works:
def GET(self):
result = ""
for item in data:
print item
On Apr 9, 1:36 pm, dineshv <[EMAIL PROTECTED]> wrote:
> Hi Ashley
>
> I'll work through your code
lt
Dinesh
On Apr 8, 10:58 am, Ashley Pond V <[EMAIL PROTECTED]> wrote:
> On Apr 8, 2008, at 10:53 AM, dineshv wrote:
>
> > Okay, I sorted out the previous problem and can get data from the
> > Python backend to the browser via the Autocomplete plugin. But, the
> > t
No match!" : "Selected: " +
formatted).appendTo("#results");
}
function formatItem(row) {
return row[0] + " (id: " + row[1] + ")";
}
function formatResult(row) {
return row[0].replace(/(<.+?>)/gi, '');
owing error appears:
> http://127.0.0.1:8080/act?q=a&limit=150
and
> line 2723 in http://127.0.0.1:8080/static/js/jquery-autocomplete/lib/jquery.js
Any idea what's going on?
Dinesh
On Apr 7, 12:27 pm, dineshv <[EMAIL PROTECTED]> wrote:
> Jorn / Shawn
>
> In my act.
Jorn / Shawn
In my act.js, I have:
> $("#suggest").autocomplete("/act");
The act.html file displays with the input box. When I enter, for
example 'a', the following error appears:
> http://127.0.0.1:8080/act?q=a&limit=150
and
> line 2723 in http://127.0.0.1:8080/static/js/jquery-autocomplet
NOT
> restrict the number of output rows...).
>
> Not sure if it helps, but I blogged about the autocomplete plugin back
> in December: http://grover.open2space.com/node/190 More to do with
> making use of database IDs with the results though. Maybe this is a
> little advanced
cript. So if you are
> simply getting too much data back, the ideal solution is to change the
> server side code to something more suitable.
>
> Hopefully I have properly understood what you were asking for, and that
> this helps you out. G'Luck.
>
> Shawn
>
> dineshv
Thanks Hamish but as far as I can tell this is a known problem ie.
retrieving remote JSON-format data using the autocomplete plugin.
Be great to hear from folks who know if this has been fixed in the
latest autocomplete plugin code and if example code exists to show how
it is done. Cheers!
Dines
So many thanks Jason and what a co-incidence. I looked at the devblog
post and the demo and it is just what I'm looking for. I'll work
through it and let you know how I get along. Again, many thanks.
Dinesh
On Mar 8, 7:35 am, Jason Huck <[EMAIL PROTECTED]> wrote:
> Funny you should ask. I ha
17 matches
Mail list logo