|
Hello...
Forgive if this has been asked before... what tools or techniques do any of you recommend to "protect" the content of web page from a malicous user (hidden textboxes, links, etc)?
Thank you for your time.
Nathan
'Never argue with an idiot; they'll drag you down to their level and beat you with experience.' ~ anonymous
'Life's real failure is when you do not realize how close you were to success when you gave up.' ~ anonymous
|
|
|
|
|
Of course Code injection should be protected first. Javascript/SQL injection are the primary concern as Data is the most essential part of any application.
Other than that use solid security software for your server.
|
|
|
|
|
How to communicate the javaServlet to .net webserver. How to implement the Webserver in my project ? Ple anybody help me.
|
|
|
|
|
you can use screen scraping or SOAP protocol
=============
NITIN SAWANT
=============
|
|
|
|
|
|
I have no idea.. Tell me which one is best
|
|
|
|
|
i believe SOAP is best if u want to communicate between java and .net websites
=============
NITIN SAWANT
=============
|
|
|
|
|
SOAP(Simple Object Access Protocol) means Web service that communicates using XML soap request and response objects.
|
|
|
|
|
boopathiduraisamy wrote: Tell me which one is best
Hiring someone who knows what they are doing is probably best.
|
|
|
|
|
Hello,
I want to know whether API functions can be used in JavaScript.If possible then say any example.In JavaScript what is window.scheduler?.
Thank you
Sanuji
|
|
|
|
|
What do you mean by API functions ? If you mean the functions that, for example, C# or VB.NET would do in ASP.NET then the answer is definitely not ( and further, that if you did not know this, you should buy a basic book on your chosen platform and read it ).
You can use AJAX to make server calls with javascript.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Thanks for your information.
|
|
|
|
|
I would not say "definitely not".
Its possible to develop an activex control that calls the API functions for you (on client side).
But I agree with you, that this possibilty should not be used on normal websites (user has to install that control, security issues,...).
In a "kiosk"-like webpage (running on a terminal) there I use this possiblity to
establish a phone connection with this javascript/activex combo.
Greetings
Covean
|
|
|
|
|
Check this out. I find it to be extremely peculiar and very frustrating. I've downloaded a few scripts to check all of the checkboxes in a form. All of them have had the same issue. When I have one value for a checkbox, the function to check all no longer works. When I have more than one value for the checkbox, it works. Take the code below as an example. If you click the "Check All" button, it's not working. Yet, take the line of HTML that has the checkbox, copy it to the line after, reload and click the button again. It will work! What kind of crazy voodoo is this? One checkbox value isn't valid or something?
<HTML>
<head>
<SCRIPT LANGUAGE="JavaScript">
<!--
<!-- Begin
function checkAll(field)
{
for (i = 0; i < field.length; i++)
field[i].checked = true ;
}
function uncheckAll(field)
{
for (i = 0; i < field.length; i++)
field[i].checked = false ;
}
</script>
</head>
<body>
Here is the HTML:
<form name="myform" action="checkboxes.asp" method="post">
<b>Your Favorite Scripts & Languages</b><br>
<input type="checkbox" name="list" value="1">Java<br>
<input type="button" name="CheckAll" value="Check All" onClick="checkAll(document.myform.list)">
<input type="button" name="UnCheckAll" value="Uncheck All" onClick="uncheckAll(document.myform.list)">
<br>
</form>
</body>
</html>
|
|
|
|
|
Hehe hehe.
Cool. Didn't know that before - that's a neat thing you've just taught me.
When there is only one check-box, "document.myform.list" points to a checkbox item. When there's more than one, it points to an _array of_ checkbox items. Since ".length" is for use on arrays, it fails and returns "undefined" when called on an any var that's not an array.
Simply put, all you have to do is check the return value of "field.length". If it doesn't have one, then you're dealing with a single item. Otherwise, you're dealing with an array of items.
Here, try this on for size:
function checkAll(field)
{
if (!field.length)
field.checked = true;
else
for (i = 0; i < field.length; i++)
field[i].checked = true ;
}
function uncheckAll(field)
{
if (!field.length)
field.checked = false;
else
for (i = 0; i < field.length; i++)
field[i].checked = false;
}
|
|
|
|
|
You just blew my mind. Thanks for that!
|
|
|
|
|
A true pleasure - one good turn deserves another...
I'd been meaning to get around to investigating how to check all the check-boxes on a page.
If you haven't got them already, you should consider getting the firebug plugin (and its 'friends') for firefox.
|
|
|
|
|
You check only one check box then dont use for loop. Use for particular Id to check the value. More then one check box then to use your code.Because of only one check box then return the value is undefined only.
modified on Friday, October 30, 2009 9:00 AM
|
|
|
|
|
Thanks for your thoughts. Just a quick question:
Which would you rather do?
a) Write 1 piece of JavaScript and include it in server generated html
b) Keep track of the number of check boxes generated on the server before emitting the appropriate piece of JavaScript?
Never mind what happens when you throw ajax into the equation, and the user may alter the number of check-boxes after the page has been served.... 
|
|
|
|
|
Hi,
We have a website hosted on godaddy. They have provided us the control panel login. Our project has a home page called "Home.aspx". By default , when the website opens up, it looks for a default.aspx page. So we wrote a simple javascript to transfer the page to home.aspx from a default.aspx page.
Unfortunately, since this is a product based website, google refused to index the website because it "doesn`t like redirects". So the only option left is we change the home.aspx to default.aspx, but it would call for a huge change in the already built up project.
The other option, we thought, would be asking godaddy to change the default document in their IIS. We called in the support, but "Its not possible" is the only answer we received.
If anyone here uses godaddy, where do we find the option for changing the default document in the control panel????
Any other solution is welcomed.
When you fail to plan, you are planning to fail.
|
|
|
|
|
That really is pants. GoDaddy should be able to change that in seconds. Guess it leaves you with 3 options:
1) rename the Home.aspx to default and fix all links.
2) Just duplicate the home page and rename it to "default" (have two home pages)
3) Switch web host
|
|
|
|
|
hi
iam using CR to export reports to PDF in a web application, everything in the local computer is fine
but when i deployed the project ... when i click the print button on the
report and after clicking the OK button in the Print Options, a white screen appear
and nothing is happening
any suggestions ??
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
Is Crystal Reports installed on the webserver?
|
|
|
|
|
i installed only the runtime for CR, i can see the report and i can export it
to MSword, but the problem with the exporting to pdf.
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
Sound like one of the numerous bugs features of CR. Have you installed all applicable servicepacks and updates?
|
|
|
|