ajax

Spring Security and Multitenancy / REST -> How? Best practice? Reference app?

Hi all I have been looking for a way to secure URLs like @RequestMapping("/owners/{ownerId}/pets/new") on user (not role) level, i.e. only owner with ID {ownerId} has access. Moreover, I want to secure RESTful design incl. async access to JSON services on owner level dynamically. My questions: How is this best done with Spring Se...

Retrieve Data Step by Step after a certain delay using ajax and jquery in php

I am a beginner at Jquery. What i want is to display the data using AJAX in a step by step manner. So let say if in my database there is a table "DATA" with a field name "info" having multiple rows as a data info 1 2 3 4 5 Now i want to display all the five rows but after a certain delay of time let say after a second. So i want to ...

Ajax requests in a loop- refresh div after each request not working in IE8

Hi, I have a loop in which I'm making Ajax xmlhttp requests. This occurs within a function triggered by a window.onload event. The Ajax calls are being made with async=false, because they need to occur in a specific order that relies on each step completing before the next can occur. With each successive request in the loop, I'm updat...

Can submit buttons in Ajax forms have their name attribute set?

i have the following form <form action="ManageLink" method="post"> <input name="artistName" type="text"/> <input name="songName" type="text"/> <input name="url" type="text"/> <input name="action" id="save" type="submit" value="Save"/> <input name="action" id="delete" type="submit" value="Delete"/> </form> with this...

iFrames - how do search engines read them?

Hey, I know that search engines base part of the calculation of rankings on how many other sites point to a specific site, so I was just wondering, given the following situation: http://siteA/page.aspx contains an iFrame. This iFrame points to http://siteB/script.aspx?url=http://siteA/page.aspx. http://siteB/script.aspx generates a li...

Hide/Show <select> depending on the other <select>

I have two <select> elements. The first one contains countries (e.g. USA, Canada, England, Russia, Poland...) and the second one is hidden, containing cities from only USA and Canada (e.g. New York, Los Angeles, Chicago... OR Ottawa, Vancouver, Surrey...) If the user selects Canada or USA from the first <select>, the second should show ...

Ajax "ticker" from plain txt (not XML)

Hi, I am looking for a solution just to show in a html page the name of each song when played from a mp3 player. I just have a .txt file outputted from a software that fetches in real time each song artist and name from the mp3 tag, when a new song is being played, with this format inside (the .txt file is also autoupdated each time, l...

Looking for super simple but effective BUG/Feature list that users can vote.

I am looking for some javascript or php code where it allows anyone to enter something in a list, and allows people to vote (1 vote per IP or cookie) or rate (not important, OK, important). There would be two lists, one for people suggest features and also rate features up and down in the list. The other would be bugs, for people to vot...

Is ASP.NET AJAX's 'One request at a time' limitation limited to the use of UpdatePanels?

We just recently wrote an online job application that is made up of multiple, dynamic modules and each one has individual Create/Edit/Update modes that they invoke asynchronously to avoid full page postbacks. Basically you save the data in the different modules as you fill out the application and then you submit it at the end. Being ne...

PHP AJAX login, is this method secure?

I have just started PHP and MySQL and have created a login form and all works well! Now I am looking to add ajax and the first method I considered is using the jQuery $.post method. I am okay with the code and here is a quick idea of what I will be doing: function login(){ $.post('login.php', { username:form.username.value, ...

Attempting to synchronize AJAX requests

I have been working on a new feature for a facebook game I have written. The game allows a player to travel between cities in Europe and deliver goods for profit. This feature that I'm adding adds pathfinding AI to the game: it allows a player to select a city to travel to, then the game automatically moves the player's train along track...

Ajaxifying flex lists

In html, it's possible to use jquery or javascript to refresh a list of stuff every 10 seconds or so to make it appear like it's live. Is the same thing possible with flex Lists? I heard it's possible to create flex with other programming language. Not sure what the details were, I think they said with javascript too. But I'm working...

Submitting form with Jquery Fancybox and then appending value into parents text field

Hello everyone, I have a jQuery auto-complete field that selects clients email adddress's. Next to that is a button that allows the user to create a new client. To avoid the clients being taken away from their already half filled form I am opening the form within a lightbox. Enter jQuery Fancybox. The new client add form is located wi...

How to show image after html upload through ajax without reloading the page

I have basic form site with swfupload.swf upload component. In this form I only use swfupload single file html basic upload feature - meaning that only one file uploaded at time - this was done in order to make sure it works on all browsers - i had lots of problems with multiple file flash upload. I would like to view the uploaded ima...

speeding up ajax requests - can gzip compression be applied?

Hi guys I want to speed up my ajax requests, I'm returning large amounts of information from the requests and was wondering if any sort of compression could be applied here to speed things up a bit. My ajax requests typically all send in JSON encoded objects such as objects and arrays which contain html elements and other stuff at time...

Custom "Add Data" - how to post data to PHP server?

I have the following PHP script: $OperMode = $_POST['oper']; switch($OperMode) { /* [...] */ case 'ManAdd': // get data $Firma = $_POST['Name']; $Adresse = $_POST['Address']; $PLZ = $_POST['PLZ']; $Ort = $_POST['Ort']; $TelNr = $_POST['TelNr']; /* [...]...

Is there a setting in FireFox to allow the parent document access to the DOM of an IFRAME on another domain?

Notice how Firebug can access the DOM of cross domain iframes and even allow you to modify them? I'm wondering if there is an firefox addon extension or a config setting that will allow a page on our intranet to do this. Longer explanation: I have a two "kiosks" in our reception area that the public can use. As we're running in kiosk m...

How can i access javasript functions from ajax loaded content on the same page?

1) on main page i have javascript function function editSuccess(data) { alert("editSuccess called"); } 2) From main page I load some content into div using ajax then i need call javascript function from loaded content but it's don't see editSuccess function ...

script works, but the clicked radio isn't checked=checked jquery ajax POST

to see the error: http://jsfiddle.net/sEdGz/2/ //the script works, but the clicked radio isn't checked=checked //mysql and php works good $('#form1').live("click change", function() { .... <div class='divtoclick'>neu berechnen</div> <form id="form1" method="post" name="bestellformular"> <input value="101" name="flyer_anzahl" ty...

Wicket AJAX + OnComponentTag

HI guys, I wanted to add an AJAX Event to my Homepage, but it doesn't work! I figured out, that if I delete the onComponentTag function it works well. I have no clue why this happend, maybe you can help me! Thats my Code: final TextField<String> searchInput = new TextField<String>("searchInput", model) { @Override protected v...