i need help, i'm programing some kind of catalogue and i have a page where clients can upload their logo or images. every page i make is included in index.php and my url looks like something like this www.url.com/index.php?s=upload where "upload" is name of upload.php file.
when i create form on that upload.php file and submit it, $_FIL...
Hi guys, I have an ajax view where I want to set a session variable like such:
def upload(request, *args, **kwargs):
request.session['test'] = 'test'
request.session.modified = True
print request.session.items()
I have another normal view something like this:
def advertise(request):
print request.session.ite...
Maybe I'm asking a stupid question, but I can't understand this behavior:
<?php
$this->meeting->google_id = 'test';
$test = $this->meeting->google_id;
var_dump(empty($test));
var_dump(empty($this->meeting));
var_dump(empty($this->meeting->google_id));
?>
gives output:
bool(false) bool(false) bool(true)
Why the ...
This should hopefully be a simple configuration problem.
When my application targets .Net 3.5
This code
<%= Html.ActionLink("Forgot your password?","ForgotPassword") %>
renders this:
<a href="/Account/ForgotPassword">Forgot your password?</a>
When my application targets .Net 4.0
The same code renders:
<a href="">Forgot your ...
We're using a ListView with a GroupTemplate to create a three-column navigation menu with six items in each column, filling in two non-data-bound rows in the last column with an EmptyItemTemplate that contains an empty HTML list item. That part works fine, but I also need to programmatically add a CSS class to the sixth (last) item in ea...
i need to find empty directories for given list of directories
some directories have directories inside it
if inside directories also empty
i can say main directory is empty otherwise it's not empty
how can i test this
for example
A>A1(file1),A2 this is not empty beacuse of file1
B>B1(no file) this is empty
C>C1,C2 this is empty
...
I've got a form with two fields, firstname and lastname. The user does not have to fill in the fields. When the user clicks the submit button, a jquery dialog displays with the data the user entered in the form. I only want to show the data for the fields that were entered. I'm trying to do an if statement and use the length() functio...
Hi all, (probably it's a stupid thing but) I have a problem with a stack implementation in C language, when I try to empty it,
the function to empty the stack does an infinite loop.. the top of the stack is never null.
where I commit an error? thanks bye!
#include <stdio.h>
#include <stdlib.h>
typedef struct stack{
size_t a;
struct...
Hi I try to run a java server on Jetty which should respond to an ajax call. Unfortunately the response seems to be empty when I call it with ajax. When I call http://localhost:8081/?id=something I get an answer.
The Java Server:
public class Answer extends AbstractHandler
{
public void handle(String target,
...
Using Collections class we can make any collection synchronized,immutable or empty
what are there respective uses, when we need to implement these type of collections
...
Hi there,
I want to create a XML of my DataSet using the .writeXml-function.
If an entry in my DataSet was null, i would like to have an empty tag instead of a missing tag:
example how it should look like if John had no age:
<MyDataSet>
<ID>8613458</ID>
<AW_ID>37534778</AW_ID>
<NAME>Peter</NAME>
<AGE>22</AGE>
</MyD...
Hello,
my application (ASP.NET MVC) shows a page which loads data constantly, at certain intervals.
The jQuery script calls a controller and this one renders a different partial view, based on certain conditions.
This partial view is the appended to the DOM with jQuery; previous elements are removed with the empty() method.
$(...
Class.forName("org.sqlite.JDBC");
Connection conn =
DriverManager.getConnection("jdbc:sqlite:userdata.db");
Statement stat = conn.createStatement();
ResultSet rs = stat.executeQuery("SELECT * from table WHERE is_query_processed = 0;");
int rowcount = rs.getRow();
System.out.println("Row count = "+rowcount); // output 1
rs.first()...
Hello guys
I am trying to remove the elements and contents
before a link inside a div when a user clicks a button.
What is the best way to do it??
<div id="dialog" class="window">
//will be inserted a <select> element and few text here
//but I want to clear them after the user click a button
<a href="#" ...
I am beginning to think I am doing something wrong. I mean they did place System.String.IsNullOrWhitespace finally but no ArgumentEmptyException class.
public FilterItem(string name, IEnumerable<string> extensions)
{
if (string.IsNullOrWhiteSpace(name))
{
throw new ArgumentNullExce...
HI volks,
I try to set some hidden form field values with an onclick event.
Ok, after I did something like this:
document.getElementById('hidden_field').value = 123;
I can output the value with the firebug console by entering this:
alert(document.getElementById('hidden_field').value);
So the values are definitely set. But now when...
I need to display price of item for every date in the month.
The chart can be Bar chart or plot chart.
Question:
Suppose there is no data available for 01/15/2010 then,
Is there a way to display (01/15/2010) on x axis but no (bar or plot point) corresponding y axis point ?
i.e. there will be a empty space between 2 bars or plot points...
Hey guys,
I declared a NSMutableArray in the header-file with:
NSMutableArray *myMuArr;
and
@property (nonatomic, retain) NSMutableArray *myMuArr;
In the .m file I've got a delegate from an other class:
-(void)didGrabData:(NSArray*)theArray {
self.myMuArr = [[[NSMutableArray alloc] initWithArray:myMuArr]retain];
}
If I want to...
How can one test to see that a directory is empty in ant?
...
How to check if certain row in textarea is empty with javascript?
<script type="text/javascript" src="../../../js/jquery-1.3.2.min.js"></script>
<script>
$(document).bind('keydown',function (e) {
if(e.which==13) {
function isRowEmpty( idOfTextArea , row ){
return $("#" + idOfTextArea )[0].value.split("\n")[row-1] == "";
}
alert(isR...