We are using a FormAssembly page to collect feedback - it's hosted within an IFrame on the side of our site's master page.
The thing is, that some parts of our site are HTTPS - viewing and posting the form is ok in HTTPS, but the problem comes with the "thank you" page - we are using the configurable custom thank you page (configured wi...
Hi all,
I'm having an issue.
I've implemented a PhaseListener, which is meant to add a style class to any UIInput components in the tree that have messages attached to them, and removes the style class if it doesn't have any messages attached to them.
The PhaseListener runs in the RENDER_RESPONSE phase, and does it's work in both the...
I'm sending a ACK response back to a SOAP request (via Salesforce) and I would like to capture what I'm sending back to SF. Now I seen some stuff online that uses ob_start (or one of the ob_ functions) to record the response but I've never used ob_ before and after Googling for a while didn't find anything I could use/follow.
The Proble...
Hello, I have been thinking about a neat way of load balancing and one thing that would be required is to be capable of loading an image on an HTML page from multiple locations without rewriting the URL(on each load)
So what I need to be able to do is have one URL which is the "static" URL. Such as http://example.com/myimage.png The i...
I was looking at the response headers for my GMail account and noticed that the date Fri, 01 Jan 1990 00:00:00 GMT shows up as the value for "Expires" over and over again. I suppose this is just an easy constant to make sure the browser understands this is past its freshness date. But is there any significance to that particular date? On...
Hi,
I have a loosely coupled web app (one part uses PHP, the other uses WGSI). The WSGI/python framework shares the authentication with the PHP app, meaning that generally, the user should
Log in via the PHP interface
Now the user can access any of the WSGI pages [this part works if the user has logged in]
What I want to do though, ...
I am trying to set a session cookie from server side :
import javax.ws.rs.core.NewCookie;
import javax.ws.rs.core.Response;
public class Login {
@POST
@Produces("application/json")
@Consumes("application/json")
public Response login (String RequestPacket){
NewCookie cookie=null;
CacheControl cc=new CacheControl();
cookie = Lo...
Hi. I have a "news" page that belongs to a company. All news have a header, detail and html page and they come from database. So i have to print those html pages in a repeater on my "news.aspx". But i couldnt write dynamically. How can i do it or is there anyway else?
<asp:Repeater ID="news" runat="server" OnItemDataBound="news_OnItemDa...
i have a menu, it contains multiple items, each menu item will retrieve data from the database.
i want to do it without the page refresh, i want like an area that will change when the user clicks on the menu link.
How should i send data to the php script and how should i get it from there and preview it on the page.
if you can send me an...
Hi all,
I have a problem with a jQuery ajax call.
I need to wait for the call to be finished in order to return a value.
However, the script seems to jump ahead and not wait for the call to be over.
my function then returns "undefined".
I have tried to use the .ajax() method and set the value of async to false, but this would not work ...
Hi,
I have .net webservice methods login and summary. After getting the result from login, I need to show second view and need to call summary method.
I am following this tutorial.
http://icodeblog.com/2008/11/03/iphone-programming-tutorial-intro-to-soap-web-services/
I created two new classes loginaccess.h and loginaccess.m.
@impl...
I'm using jQuery's getJSONP and I want to log the duration of the call and the size of the response to be able to have some statistics about the usage of my application.
This is a cross domain ajax call, so I need to use JSONP, but as the JSONP call is not done with an XMLHttpRequest object, the complete callback from jquery's ajax does...
in my php I evaluate the the filesize
if (($width !=1600) || ($height
!=1100)) {
echo "wrongsize"; }
else { echo "justright"; }
in my file i try and evaluate the the response to update the html
'onComplete' :function(event, queueID, fileObj, response, data)
{
if(response == "wrongsize") {
$('div#uploadError').ht...
I have a filter which processes generated HTML and rewrites certain elements. For example, it adds class attributes to some anchors. Finally, it writes the processed HTML to the response (a subclass of HttpServletResponseWrapper). Naturally, this means that the processed HTML is a different length after it has passed through the filter.
...
I'm sending files in action helper for downloads (in parts if needed) like this:
...
$response->sendHeaders();
$chunksize = 1 * (1024 * 1024);
$bytesSent = 0;
if ($httpRange) {
fseek($file, $range);
}
while(!feof($file) &&
(!connection_aborted() &&
($bytesSent < $newLength))
) {
$buffer = fread($file, $chunksize);
// ...
It's a bit complicated this one... Lets say I have a listing of PDF files displayed in the user's browser. Each filename is a link pointing not to the file, but to an ASP page, say
<--a href="viewfile.asp?file=somefile.pdf">somefile.pdf</a>
I want viewfile.asp to fetch the file (I've done that bit OK) but I then want the file to ...
Hi,
I'm wondering if anyone's got any good advice/experience regarding setting dynamic meta titles in Symfony?
Currently, the solution I'm aware of would be to use the following code to set a title individidually in each action:
$this->getResponse()->setTitle('This is a title');
Because I also need translated titles, I could call th...
Hey,
I want to create a dialog using Glade 3 (or gtk and Python). In Glade 2 if you wanted to create a dialog box there was an option to set a "standard button layout" which would automatically create an Ok button and a Cancel button which return either gtk.RESPONSE_OK or gtk.REPONSE_CANCEL. This feature has not been reimplmented in Gla...
Hi everyone,I'm programming an application who must send coordinate and request to a WebServices this is my code:
private String SOAP_ACTION = "getAllPositions";
private String METHOD_NAME = "getAllPositions";
private String NAMESPACE = "http://session/";
private static final String URL ="http://192.41.218.56:808...
Ok big problem as this is affecting two projects on our new server. We have a file that is downloaded by users, the files are downloaded using a HTTPHandler. Since moving the site to the server and setting SSL the downloads have stopped working and we get an error message "Unable to download DownloadDocument.ashx" from site". DownloadDoc...