1
голосов
1ответов
1075 просмотров

jquery: adding value from appended elements to the database

Greetings, I got the following problem: By clicking on the button "Add Flavor" (see full sample code), a dropdown-box, text field and two checkboxes are dynamically generated, - each time the click on the button is performed. Is there a way to add the values from the dynamically generated (act...

0
голосов
4ответов
508 просмотров

Ajax, PHP, Javascript, smart solution

I am currently creating a type of "classifieds" website, and when the user enters the site he/she is able to choose for example "Vehicles" in a dropdown list, and then choose mileage, year, price range etc... Here is my problem, I have managed to make contact with a db using Ajax to call a php s...

3
голосов
4ответов
7380 просмотров

image upload with ajax and php

I want to use ajax to upload image. In this module: On clicking browse and selecting image, it will be uploaded and displayed over file field. After adding title and description, and clicking on the button, that image will be displayed below and upper image field will be blank

0
голосов
1ответов
81 просмотров

2 phase ajax-based authentication

We have an ajax application that requires two steps, first user enters user name and password, then if it's correct, a challange question is presented. what's the best practice to manage the process? I plan to generate a temp session id after the first phase to be used in the second phase. And ...

8
голосов
2ответов
3537 просмотров

How to restrict AJAX API from unwanted use (e.g. someone performing a SELECT *)

I have a restaurant locater web application that mashes up the location of restaurants to a Google Maps. I use JQuery sliders to limit the amount of restaurant to show on the map by having Search filter such as: price, type of food, locale. These JQuery sliders call back via AJAX to an API I cr...

1
голосов
2ответов
1100 просмотров

Use PHP and MySQL DESCRIBE command to build checkbox and radio button menus dynamically

I'm making a data-entry web page in PHP that validates and parses data for entry into a MySQL database. There are more than 30 columns in the database that consist of MySQL SET or ENUM data. If you don't know much SQL, an ENUM datatype column can only hold one value from a collection of ENUM va...

2
голосов
2ответов
2181 просмотров

PIL vs Python-GD for crop and resize

I am creating custom images that I later convert to an image pyramid for Seadragon AJAX. The images and image pyramid are created using PIL. It currently take a few hours to generate the images and image pyramid for approximately 100 pictures that have a combined width and height of about 32,00...

164
голосов
8ответов
325021 просмотров

jQuery and AJAX response header

So I've got this jQuery AJAX call, and the response comes from the server in the form of a 302 redirect. I'd like to take this redirect and load it in an iframe, but when I try to view the header info with a javascript alert, it comes up null, even though firebug sees it correctly. Here's the co...

3
голосов
2ответов
4692 просмотров

ASP.NET MVC + modelstate and partial view

I have a partial view called LogOn where i basically copied the logon inputs into a control. I am using Html.RenderPartial to place the control in my Index.Html inside of an Ajax.BeginForm <div id="login_ajaxtarget"> <% using (Ajax.BeginForm("Logon", "Account", new AjaxOptions { Upda...

0
голосов
1ответов
850 просмотров

getting Kuler themes with AJAX

Is there a way to request Kuler themes using AJAX, and then storing the themes in an array or something? I've got the API key and verified it's working. But I can't seem to get it working with AJAX... :\ $.ajax({ url:"http://kuler-api.adobe.com/rss/search.cfm", data: {"searchQuery":"blue", "...

0
голосов
2ответов
2110 просмотров

show last four digits of SSN

I want to only show the last four digits of a Social security number after they leave the textbox. Does AJax have a tool for this that I am not aware of? How can i do this? I want to replace the digits with '*'. I'm working in .NET. Ajax is also accessible.

0
голосов
1ответов
2793 просмотров

AutoCompleteExtender OnClientItemSelected raised after validation

I have an AutoCompleteExtender which is working, the OnClientItemSelected event is raised. Now, I added a validator that validates my control (the AutoCompleteExtender is a part of that control). My problem is that the validator is called before the OnClientItemSelected event is raised. Therefore...

3
голосов
1ответов
1275 просмотров

Move Browser window down to the position of a div when it is loaded by ajax & Jquery

I have a div into which I am loading data dynamically by ajax, jquery. like $('#wp').load('http://someurl.com/getit',p,function(str){} ); Now because I am having page full of data before that div I need to move the browser window down to that div's location after it is loaded with slow motion ...

0
голосов
2ответов
642 просмотров

Will AJAX methods calls complete when an exception is thrown?

When a menu item is clicked in my menu an ASCX control is loaded via AJAX in my asp panel. To do this I have a method: public void LoadControl(ControlDestination controlDestination, string filename) { try { // Load control from file Control control = LoadControl(filename)...

17
голосов
10ответов
67580 просмотров

How to fix error: The message received from the server could not be parsed

We have a Sharepoint solution that uses AJAX. The button that triggers this is inside an update panel. One of the things that we do is generate a MS Word document, that is then opened on the client so that it can be printed. The code that sends the document to the client looks like this: v...

0
голосов
2ответов
294 просмотров

Google Analyics doesn't track links generated with AJAX

I run a website that has lots of affiliate links. These links are loaded via AJAX. I'd like to be able to track outbound clicks on these links. The standard approach to using Google Analytics to track links is to use the pageTracker._trackPageview() function. I've tried this to no avail. Her...

1
голосов
1ответов
899 просмотров

Faux Timeout Triggers with JavaScript/jQuery & AJAX

Within jQuery.ajax we have the blessing of setting a timeout in milliseconds and an Error callback to process that timeout. However, the some people are simply on slow connection, with small amounts of patience. What I want to do is simply display a message stating "This is taking longer than u...

0
голосов
4ответов
6175 просмотров

Servlet --x--> Ajax: Ajax code not receiving servlet response

I'm unable to figure out what is going on here in this ultra simple example. Problem Summary: I have a simple servlet that appears to run just fine if I drive it manually... by issuing its URL from the browser. By 'just fine' I mean: I can see in the browser HTML page whatever I write in the ser...

1
голосов
4ответов
591 просмотров

Javascript if(function_foo()) doesn't wait for function_foo() to complete

I have an if statement: if(authenticate_session("secret_password12345")){ alert("You are authenticated"); }else{ alert("Intruder alert!"); } and the javascript authenticate function, which makes an jQuery POST AJAX call to the server to do the actual authentication,...

2
голосов
1ответов
957 просмотров

differences iphone safari webkit vs mac safari

i'm trying to create a website for iphones with the apple typical sliding menue effect. on safari and firefox on my mac everything works pretty fine, but checking the page on my iphone safari made me wondering. there's the link to the slider test... IphoneSliderTest it would be nice if you c...

0
голосов
3ответов
759 просмотров

jQuery/Ajax/javascript in FireFox Error when using $.post/$.get

uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE)" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://localhost/scripts/jQuery.js :: anonymous :: line 808" data: no] Line 0 is the error i get when i bring up firebug. This o...

0
голосов
2ответов
137 просмотров

understanding jquery event binding

I have a div on my page where I would like to display comments stored in a database. now what i want to understand is how the jquery live() function works. if I bind a click to an element say the div, then do I have to click? I just want the comments to be drawn and shown when the page loads or r...

0
голосов
3ответов
791 просмотров

Send data to server

I am developing an app for the iphone.The thing is that i want to send the values of longitude and latitude i get from the phone using javascript to a server commanding it to search for something.Do i have to read about cross domain stuff? How could this be done? I know that i can use Ajax but it...

0
голосов
2ответов
521 просмотров

create style class in javascript

i want to crate style class in java script tags and class will be like this #file-ok { background-image: url(+ json.get('filename') +); } actually json.get('filename') will be name of file for background and will return from php file. is this possible...?

3
голосов
5ответов
4887 просмотров

javascript dialog over a flash movie

I have a such system: When the mainsite opens, A flash image gallery appears, when the user clicks on an image, using the Flash's "ExternalInterface.call" function, I call a javascript function that opens a java dialog modal named nyromodal (which fetches raw HTML data via ajax from another page ...

0
голосов
4ответов
481 просмотров

Problem with ajax/jquery and django

I want to send a value to the server.I send it using: $.post("http://127.0.0.1:8000/search/",{'long':"30"}); and my views.py is: def search(request): lon = request.POST.get('long','') place = Places.objects.filter(longtitude__icontains=lon) if place is not None: re...

0
голосов
2ответов
353 просмотров

display image preview in Html

i want to display image after it upload i write following code but it did't work onFileSuccess: function(file, response) { var json = new Hash(JSON.decode(response, true) || {}); if (json.get('status') == '1') { file.element.addClass('file-success'); } els...

4
голосов
9ответов
11570 просмотров

jQuery $.post update not working in IE

I can't get this update script to work in IE. Works fine in every other browser. IE tells me that the update was performed. However, it wasn't. I've no more hair left to pull out..grr. BTW I've tried $.ajax and $.get too..still no luck. I'm thinking it may have something to do with the live c...

2
голосов
2ответов
2059 просмотров

Edit parsed JSON

I have a JSON file contact.txt that has been parsed into an object called JSONObj that is structured like this: [ { "firstName": "John", "lastName": "Smith", "address": { "streetAddress": "21 2nd Street", "city": "New York", "...

0
голосов
4ответов
581 просмотров

IE6 AJAX Response Data Issue

I've been looking all over and i can't find anything to fix this problem. IE6 only is having an issue with the response of an AJAX call and is erroring because of invalid data (alerting the data shows a single beauitful weird square) Locally IE6 works perfectly (same page and same data), i've c...