Is there a catchall function somewhere that works well for sanitizing userinput for sql injection and XSS attacks, while still allowing certain types of html tags?
Why does cout has to be flushed before cin starts reading? Aren't they of different buffer? I can have reading of input into a buffer while same time putting it on output buffer (before flushing) .. 2 different buffers. I am confused here.
I have this line on a website
<input type="text" autocomplete="off" value="" maxlength="20" class="shipBox" name="firstName" id="firstName">
and I want my greasemonkey to automatically fill this...
I'm trying this but had no success
document.getElementById("firstName").setAttribute("autocomplete", "on");
document.getElementById("firstName").value = "Bruno"
I have database acces(.mdb) for my application desktop(c#) like billing application, i want that database shared to open database by multiple user. Realy now i'm use that database in computer one that fine connection succesfully but when i'm try to open database in computer two i have error message like "database has open exclusive by other user or you not have permision" what i'm to do... Please anyone help me.. tanks.
Regards,
Yusan Susandi
I have a very simple page that's usings jquery's datepicker. I have:
<input id=datepicker type=image src='cal.png'>
When I click on the image in FF/IE, it works as expected, but does not work in Chrome (ver. 4.1.249.1064). However if I simply change to "type=text", it works within Chrome.
So my question is this: am I allowed to use Datepicker with "type=image"?
Problem with jQuery:
After changing the border and background color of some input fields in a form that fail the validation i don't know how to get the previous, original colors back as i don't pre-style the inputs but use the browser settings instead. how to handle this?
thanks in advance,
clubnite
I have a WPF webbrowser control which navigates the user to a registration site. After the user registers, a collection of headers are sent back alongwith the "finished registration" page.
I have tried the Navigated event, and tried accessing WebResponse property in the event arguments but it's always null.
Is there any other way to access the headers sent?
Is there a way to authenticate a user to LDAP with email (mail) and not cn or DN? We are using ruby ldap, and possibly active-ldap (we have been having problem with it, though). All we need to do is authenticate a user and then create a membership in our system based on the authentication success.
I am opening links on a page into an IFrame. But if the user right clicks and selects open in new window that will ruin the look I want since it will not have the parent page holding it. So is there a way to open the page as i have it working now when the user clicks on the link but if they choose to open in new tab to have it load the current page all over again in the new window with the link they selected loaded into the IFrame.
Thankyou
I have a text input inside a <td> that has a padding of 5px; When setting its width to 100% it comes out of the boundaries of the <td> for 10px. Is there a way to make it fill the entire <td> (i.e. in practice its width should become 100% - 10px) without using JavaScript?
Thanks in advance
Some websites have forms with input type="text". And inside these textboxes there is a blurred text, which says for example: "Enter your name here".
And then onClick or OnFocus or whatever, the text dissappears and you can type into the textbox.
Like the title of posting a question here at stackoverflow, same thing.
How is this done easiest way? Would prefer if there was not too much js involved.
Thanks
How do I change who is logged in (allow for another user to login) to an application that is using Windows Authentication without having the PC user log off?
I must have skipped a page or two by accident during my PDF Tutorials on Python commands and arguments, because I somehow cannot find a way to take userinput and shove it into a file. Don't tell me to try and find solutions online, because I did. None made sense to me.
i am using this ternary operator for the display the value but it always says that Input string is not in correct format .
<asp:TextBox ID="txtPerOfBase" runat="server" Style="text-align: right;" Text='<%# decimal.Parse(Eval("CommissionableAmountBase").ToString()) == 0 ? Eval("CommissionablePercentBase","{0:N2}"): Eval("CommissionableAmountBase","{0:N2)")%>'
Width="80px"></asp:TextBox>
I have an input field that is extending well beyond the rest of the page, but as the question alludes to, it appears fine in iOS.
I am wondering if anyone has run into this issue. My search button, which in iOS is on the right of the search textbox, actually wraps to the next "line" on the other two platforms.
I am not using a table, just inside a div, and the CSS isn't doing anything fancy.
Any ideas?
I'm creating a Windows Phone 7 app and learning Silverlight in the process. I have a youtube video url and I'd like the user to be able to click a video thumbnail in my list and go to a youtube app to view the video (similar to iPhone). Is this possible? If so, can you share some code to send the user to the video? I already have a MouseLeftButtonUp event handler.
Write an assembly program to input keystrokes from the PC’s keyboard and display the characters on the system monitor. Pressing any of the function keys F1-F10 should cause the program to end.
I have no idea how to write this code, and need some help por favor.
Maybe not literally but the query below gets an error near user. If i change it to userZ it works. WHY can i not use that name? Is there a way to specific its a field instead of a keyword? (or whatever it is)
create table Post2 (
id INTEGER PRIMARY KEY NOT NULL,
title nvarchar(max)
NOT NULL,
body nvarchar(max)
NOT NULL,
user integer REFERENCES Post1(id));
$ time foo
real 0m0.003s
user 0m0.000s
sys 0m0.004s
$
What do 'real', 'user' and 'sys' mean in the output of time?
Which one is meaningful when benchmarking my app?
I have some details of user in database but i want to display details for particular user.i want to know which controller is better for that can u give me some advice.Thanks in advance.
Hi,
In default acegi setting, person and authority have many to many relations. Thus, in addtion to people and authorities, there is a table authotiries-people.
To delete a person (a user) I have to delete the related record in authotiries-people first....then come back to delete the record...
the problem is: other people are still using this authority (ROLE)
could some one enlighten me how to delete the user without deleting the authority?
thanks.
I have a user control with a form, and I am trying to embed it in sharepoint 2007... I am getting an error about having two server-side forms on one page. This is crazy! Surely I can write a user control with a form and embed it in sharepoint??
Thanks.
I'd like to be able to create a special user account that would exist on an android device. Since it is based on the Linux kernel, I was hoping there was a way to create a group account and then create a user account. Is it possible ?
Hi,
I have a problem I have no idea how to solve. I have a user control wrapped inside update panel which works fine, but when I set userControl.Visible = false AJAX response containts which generates empty lines in IE 7 and 6. As you can imagine this accupy a lot of space when I have 30 hidden user controls. What should I do to prevent to be sent with response?