I have a django blog project and a chat in PHP.
I need to share the id of the user logged in django ( request.user.id ) with the chat in PHP.
Is this possible ?
Hi ,
could you please tell me that if i want to remove the meeting from caledar by sending the mail how can i do it. i am sending the meetig request to outlook through the c# its working fine but i want the cacncellatiion also.
is it possible ?
waiting for your reply please help me out !!
Thanks
yogi !!
Edit :
I've got an aspx file (default.aspx) that loads a flash file (index.swf), but this swf needs a xml file (foo.xml) to load correctly. However, I would like to block any request aiming directly at the xml file.
Is it possible, using a rewritting engine (isapi_rewrite for example) to detect if the xml file is being 'hotlinked' or being loaded by the 'index.swf'(inside default.aspx)?
Any ideas?
Thank you.
Hello
I'm trying to do a request that looks like this
SELECT field1, field2, field3 = CASE
WHEN field2 = 'something' THEN 'something'
WHEN field1 IS NOT NULL and field2 IS NULL THEN 'somethingElse'
ELSE NULL
END
FROM SomeTable
WHERE field3 IS NOT NULL
This results in a syntax error. I have to rewrite the CASE in the WHERE instead of just refering to it. Is there a better way to achieve this ?
And out of curiosity, why is "WHERE field3 IS NOT NULL" refused while for example "ORDER BY field3" would pass ?
Hi ,
I want to display a dynamic error message ,i am having the code as
ActionMessages errors = new ActionMessages();
errors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("error.plan.foundForUser"));
saveErrors(request, errors);
error.plan.foundForUser={1} Not Found
I want to replace 1 with a dynamic value,how to do so ?
I am interested to see what people are storing in my session and cookies when I visit websites. Is there any way to see what's in there between request and when I'm on pages in Safari, Chrome, or Firefox?
I have a cookie that is formatted like partA:partB. The colon is not escaped in any fashion. I need to read this cookie in a JSP script, and request.getCookies() is only returning partA. I can't change the cookie because it is used in multiple applications, and fixing the cookie would break production code. Any ideas how I can read the full value of this cookie?
What is the best way to have every request be sent to a single ViewResolver - specifically in this case a JsonView?
Was thinking this:
<bean id="viewResolver" class="org.springframework.web.servlet.view.UrlBasedViewResolver">
<property name="viewClass" value="org.springframework.web.servlet.view.json.MappingJacksonJsonView" />
<property name="prefix" value="*" />
</bean>
but, is there something better/easier?
Is it possible to get the source of the current HTML document, exactly as it was loaded, in text form? (i.e. not the "Generated source" after parsing and DOM manipulation.)
Note: Issuing an extra AJAX request to retrieve the HTML page again is not an option in this case: The document could have changed.
I'm sending an ajax request that will either give me an error or a userID
<?xml version="1.0" encoding="UTF-8"?>
<error>1000</error>
<?xml version="1.0" encoding="UTF-8"?>
<userID>8</userID>
how can I find out if the root element is error or userID using jquery or just javascript in general. Using the find method doesn't appear to work if what you're trying to access is the root element
i have seen this in php (symfony):
public function executeShow(sfWebRequest $request)
{
// logic
}
i didnt know that you could declare a datatype in php?
have i missed something?
could someone explain this.
thanks
After performing an ajax request if the input in the form was wrong I am trying to get this validatationTextBox to be focussed on and display an indicator message showing the problem.
The code is:
dijit.byId("passwordField").focusNode.focus()
The form element is as mentioned a validationTextBox.
The matter that is confusing me even further is that before in dojo 1.5, this piece of code was simply dijit.byId("passwordField").focus() and this worked fine. How can I fix this?
Hi,
In ASP.NET if I declare a variable (or object) static (or if I make a singleton) I can have it persist across multiple sessions of multiple users (it it registered in a server scope) so that I don't have to initialize it at every request.
Is there such a feature in PHP? Thanks
I am using AIR to build an application that will search and show the thumbnails from deviantART the request URL for getting resuts in form of RSS feed i get the following
for simplicity i am showing the only code in which i have my question
we can use this for tag
trace(myxml.channel.item[0].title);
but what to do for tags like media:content
trace(myxml.channel.item[0].media:content);
but it does not work
The colons are confusing me
Hi,
I'm using Visual Studio Team System 2008 to run Load Tests.
I have a test that executes a web service request and I would like to know how much
time was spent in each layer of my application e.g.
Time spent in IIS,
Time spent in my Server application
Time spent in SQL Server
Can I get this sort of information by setting the performance counters in
my load test properly?
Thanks
I've got a view like the following:
from django.views.decorators.http import condition
def stream():
for i in range(0, 40):
yield " " * 1024
yield "%d" % i
time.sleep(1)
@condition(etag_func=None):
def view(request):
return HttpResponse(stream(), mimetype='text/html')
However, it definitely doesn't seem to be streaming at all. All the data is dumped at once, at the end, after about 40 seconds. How can I get it to flush correctly?
My Zend application is going to get an command line php script that should email reports. There generation depends on Zend_View, Zend_Layout and is currently already working fine in the web interface.
How can I reuse this whole MVC functionality in the command line?
Should I add a new controller CommandLineController and call this somehow from the commandline?
How can I kick of such a Controller manually, without having a HTTP request?
I need a way to request any site using Ajax. I mean ANY site, I don't want to have to use the workarounds that firefox offers that only apply to someone who's making page requests from the same domain. Is there ANY way to let this happen? I want this to occur as a local file.
Hi, i have two site that are app1 and app2. if user request a resource in app2, in order to authenticate, i like to redirect login page which is in app1. once authenticated over there, return back to app2.
can you please tell what are necessary steps
I want to count how many times i built on VS.NET .
I have a plan. If i run svn commit when i build to project, i would have build count on revision number :)
I didn't write any macro which can execute a command. And i don't know visual studio is allowing to prebuild event for this kind of request.
First of all I am using ASP.NET with C# for Facebook
Application Developement
My Qestion is :::
How to use Notification.SendRequest.. or
i want to send Request that is A gift from my application to friend then what is the process..
and how to do it.
This is code:
http://www.dpaste.de/Ij0S/
1,if there is a erorr (networking erorr,or Unhandled error in Deferred), the code stop.
I need this code running until all urls finish request. (May be the parallel function not work? )
2,when I write image to local filesystem, if meet erorr, there images may not complete.
Thanks!
I have created a html page in php and upon submission i validates that page using PHP. After validating i want to show an alert msg to show its status like showing any greeting or request for re-enter.
I have dont validation. Now i m using
header( 'Location: http://localhost/assignment/WebForm.htm' ) ;
to redirect user to same page but with a alert msg at page load or something like that. What I need to do ?
I'm looking for something like the individual parts of the date picker dialog. A view that allows you to input integers (and only integers) that you can limit (between 1 and 10 for example), where you can use the keyboard or the arrows in the view itself. Does it exists?
It is for a dialog. A ready-made dialog to request an integer would also help.