I need to make a questionary(test) from users then write their answers in a database, I want to make a test on a web page. Please, if somebody know please help me.
I want to create a proxy server. I googled it and even found some tutorial but those were in PHP.
If somebodyis having tutorial of proxy server creation in java then please post it here Or simply let me know what approach should i follow to create a proxy server. [ i will be using Tomcat { if that matters for your answer } ]
Thanks
Hi All!
I'm using JQuery based Cascade plugin probably it's working, but I found a lot of problems with it
Maybe somebody already faced with this plugin and maybe could help.
So, I using this plugin for location filtration
Here comes my CS code:
public JsonResult getChildren(string val)
{
if (val.IsNotNull())
{
int lId = val.ToInt();
Cookie.Location = val.ToInt();
var forJSON = from h in Location.SubLocationsLoaded(val.ToInt())
select new { When = val, Id = h.Id, Name = h.Name, LocationName = h.LocationType.Name };
return this.Json(forJSON.ToArray());
}
else
return null;
}
Here comes my JS code:
<script type="text/javascript">
function commonMatch(selectedValue) {
$("#selectedLocation").val(selectedValue);
return this.When == selectedValue;
};
function commonTemplate(item) {
return "<option value='" + item.Id + "'>" + item.Name + "</option>";
};
$(document).ready(function() {
$("#chained_child").cascade("#Countries", {
ajax: {
url: '/locations/getChildren'
},
template: commonTemplate,
match: commonMatch
}).bind("loaded.cascade", function(e, target) {
$(this).prepend("<option value='empty' selected='true'>------[%Select] Län------</option>");
$(this).find("option:first")[0].selected = true;
});
$("#chained_sub_child").cascade("#chained_child", {
ajax: {
url: '/locations/getChildren'
},
template: commonTemplate,
match: commonMatch
}).bind("loaded.cascade", function(e, target) {
$(this).prepend("<option value='empty' selected='true'>------[%Select] Kommun------</option>");
$(this).find("option:first")[0].selected = true;
});
$("#chained_sub_sub_child").cascade("#chained_sub_child", {
ajax: {
url: '/locations/getChildren'
},
template: commonTemplate,
match: commonMatch
}).bind("loaded.cascade", function(e, target) {
$(this).prepend("<option value='empty' selected='true'>------[%Select] Stad------</option>");
$(this).find("option:first")[0].selected = true;
});
});
I added one condition to jquery.cascade.ext.js
if (opt.getParentValue(parent) != "empty")
$.ajax(_ajax);
To prevent Ajax request without selected value, but I faced with problem, when I reset selection in first box 3d box and bellow does not refresh:
And second issue:
I would like to know where is best place to inject my own function that will do something, with one requirement - I need to know that all boxes finished work.
If somebody worked within let me know maybe we could together find solution.
Thanks in advice...
In my asp.net web application,I use IFrames to show another page inside one page.But the problem is that the page load event of the embedded page in the IFrame is not firing when the Iframe is shown by clicking on a button in the parent page.I use the IFrame's visibility is true/false to show or hide the Iframe.I am confused what is happening there.Can somebody solve my problem....
I want to create web proxy . I googled it and even found some tutorial but those were in PHP.
If somebodyis having tutorial of web proxy creation in java then please post it here Or simply let me know what approach should i follow to create web proxy. [ i will be using Tomcat { if that matters for your answer } ]
Thanks
Edit
i guess i was not clear in stating what i require. Actually i am trying to develop a site like 'http://proxyug.com/' .
Subj. I need to sign/verify in native C++ (no .NET), using private key for signing, public key for verification.
I saw few examples on MSDN (http://msdn.microsoft.com/en-us/library/ms761363(VS.85).aspx) that demonstrate how to sign the document with CSP (I don't know what this means).
For my case I need to create a "key" from the binary data array... can somebody help me with that?
Thank you in advance.
For some reason this function confused me:
def protocol(port):
return port == "443" and "https://" or "http://"
Can somebody explain the order of what's happening behind the scenes to make this work the way it does.
I understood it as this until I tried it:
Either A)
def protocol(port):
if port == "443":
if bool("https://"):
return True
elif bool("http://"):
return True
return False
Or B)
def protocol(port):
if port == "443":
return True + "https://"
else:
return True + "http://"
Is this some sort of special case in Python, or am I completely misunderstanding how statements work?
Hello guys,
can somebody tell me how to pipe the output of the serial port to a file in Windows?
In Linux the command would be:
cat /dev/ttyS0 > /opt/logs/Serial.log
Thanks in advance
hey in my application i use web browser component on a windows form and display any website that user types in say "google.com"
but that website does not fit in properly with the screen size
how can i do that through code?
i cant find any property of windows mobile...
can somebody help!
Hi,
I'm trying to invoke a built-in activity from my custom CodeActivity for the TFS2010 Build Process.
I've got my own CodeActivity which generates a batch file and I want to invoke the InvokeProcess activity (built-in) to execute that generated file.
Of course I could split it into two activities, but it would be nicer if I could put these actions together. Can somebody push me in the right direction?
Thanks in advance!
Hello,
I'm hoping somebody knows the answer :).
Within wordpress in the users section I would like to add a new row which will data pulled in from the Register Plus plugin.
Where would I need to create a new row?
My Example:
Username Name E-mail Role **Website** Posts
Admin Admin [email protected] Administrator google.com 2
Thanks.
I am looking to create shortcut handler for MS Office. I am creating an addin with VS2010 for Office 2010. The handler needs to listen to all keyboard events when Word/PowerPoint is active.
Although there is a lot of material for creating application level shortcut handlers, I couldn't find one that was specific to Office.
It would be great if somebody could suggest techniques with sample c# code.
Thanks
Hi,
I am trying to format this line of code in my popup window, but i am facing unterminated string literal error.
Can somebody please tell me how best I could format this.
window.setTimeout("winId.document.write('<script src="../js/tiny_mce/tiny_mce.js" type="text/javascript"></script>\n')", 10);
Also point out if this particular line of code would work fine in the popup?
I know that the C++ standard says that return 0 is inserted at the end of main() if no return statement is given; however, I often see recently-written, standard-conforming C++ code that explicitly returns 0 at the end of main(). For what reasons would somebody want to explicitly return 0 if it's automatically done by the compiler?
How can I achieve a result like somebody would expect it according to the following code example:
// assuming: void myFunction( int* arr );
myFunction( [ 123, 456, 789 ] );
// as syntactical sugar for...
int values[] = { 123, 456, 789 };
myFunction( values );
The syntax I thought would work spit out a compile error.
How can I define an argument array directly in the line where the function is called?
I have some code like this
function doSomething(){
Jquery.ajax(type: "POST",
url: "HelloWorld",
success: function (msg) {
if(msg.d =="Hello World")
{
return true;
}else
{
return false;
}
}
);
}
i want to know something based on which the return value of the succes function.
Can somebody help?
Hi All,
I have recently purchased a new computer, and now my e-mails never get sent, and there are NEVER any exceptions thrown or anything.
Can somebody please provide some samples that work using the SmtpClient class? Any help at all will be greatly appreciated.
Thank you
Hi,
I use CreateFileMapping, but this method was not useful,because only static structure can be shared by this method.
for example this method is good for following structure:
struct MySharedData
{
unsigned char Flag;
int Buff[10];
};
but it's not good for :
struct MySharedData
{
unsigned char Flag;
int *Buff;
};
would be thankful if somebody guide me on this,
Thanks in advance!
Am I fundamentally misunderstanding Ruby here? I've been writing Ruby code for about 2 years now and just today stumbled on this...
ruby-1.8.7-p249 > i = true and false
=> false
ruby-1.8.7-p249 > i
=> true
Could somebody explain what's going on here please? I'm sure it's to spec, but it just seems counter intuitive to me...
Hi,
I'm looking for free tools to design the UI for my web app.
I'm pretty new to this field, so please point me to acceptable solutions.
Basically, I need to fill a "screen" with some controls, that's it.
Thanks.
EDIT: Well, as soon as nobody answers, maybe somebody can help me with this problem for some framework other than Cappuccino?
I'm building a program, and I'm quite confident using Objective-C, but I don't know how to programmatically download a file from the web and copy it on the hard drive.
I started with :
NSString url = @"http://spiritofpolo.com/images/logo.png";
NSData* data = [NSData dataWithContentsOfURL:[NSURL URLWithString:url]];
But then I don't know what to do with the data... that sucks, no ;)
Can somebody help?
Is it possible to get Mercurial to show progress of long-running push or pull operation? Google tells me basically "no", but does somebody know better? I was expecting something like "hg pull -v"...
Hi,
We want to use Android mobile for dedicated application. Can somebody suggest how can we make it happen.
Here are the requirement:
The phone when started, should launch our application., so the user cannot launch any other application. The application will be a 1D barcode reader.
The application should be live as long as the phone is up and running, user cannot close the application at all.
Thanks for your help.
Regards,
Manish
I have an eCommerce platform, and i wand to secure it. How can it be possible ?
I don't want to somebody copy my code. Like a license for 1 year with a code for activation. Or somethings like this. Sorry my English, thanks a lot!
Hi,
i am trying to place something(text/image) on another image. how can i do this in Action script ? My pain area is to find out the edges of the base image and bend the placing script or image accordingly.. An example for this can be http://www.zazzle.com/cr/design/pt-mug. somebody please help me.
regards
tismon