|
Please share your code. we will try.
|
|
|
|
|
Please share your code. we will try.
|
|
|
|
|
for jquery transfer effect we always mention from element and to element but if i need to show a div just center in page with transfer effect what i need to do. is there any good jquery plug in by which i can position html object like div, span,button etc anywhere in the page with transfer effect and also where i don't have to mention "to element like transfer effect" with minimum coding. please guide me.
thanks
tbhattacharjee
|
|
|
|
|
|
Hi
I have an application that uses html select tag.
My application provides different font sizes. When I am selecting font size which is more than current value.
My HTML Select tag is enlarging accordingly but when I am reducing font size , my select tag is not reducing accordingly.
I am still seeing large dropdown image. Can you please suggest how can i reduce drop down size.
Please find below example.
<html>
<script language="javascript">
function ok_clicked()
{
document.getElementById('sel1').style.fontSize = 17;
}
function ok2_clicked()
{
document.getElementById('sel1').style.fontSize = 9;
}
</script>
<body>
<select id="sel1" style="font-size: 13px;">
<option>Volvo</option>
<option>Saab</option>
<option>Mercedes</option>
<option>Audi</option>
</select>
<input type="button" name="Go2224" value="OK" onClick="ok_clicked();">
<input type="button" name="Go2222" value="Decrease font" onClick="ok2_clicked();">
</body>
</html>
|
|
|
|
|
Works in Chrome. So maybe it is the browser fault?
Wout Louwers
|
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<script type="text/javascript">
function ok_clicked(){
document.getElementById('sel1').style.fontSize = '17px';
}
function ok2_clicked(){
document.getElementById('sel1').style.fontSize = '9px';
}
</script>
<body>
<select id="sel1" style="font-size: 13px;">
<option>Volvo</option>
<option>Saab</option>
<option>Mercedes</option>
<option>Audi</option>
</select>
<input type="button" name="Go2224" value="OK" onclick="ok_clicked();">
<input type="button" name="Go2222" value="Decrease font" onclick="ok2_clicked();">
</body>
</html>
modified on Tuesday, November 30, 2010 8:40 AM
|
|
|
|
|
salmonraju wrote: document.getElementById('sel1').style.fontSize = 17;
Write
document.getElementById("sel1").setAttribute("style", "font-size: 13px");
Instead, It may work.
Regards,
Hiren.
"The more we give of anything, the more we shall get back." - Grace Speare
(you can consider this quote while giving vote also)
Microsoft Dynamics CRM
|
|
|
|
|
document.write('<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><a href=\"found.htm\"+ i +"\" rel=\"iframe title=\"Hidden Gift! :: :: width: 800; height: 520"+ i +"\" class=\"lightview\"><img src='"+snowsrc+"' border=\"0\"><\/a><\/div>')
Ok... I cant even post the code... will some one knowledgeable email me>
|
|
|
|
|
You are new here, so first, welcome.
Now, some tips.
1) Start by reading this, How to get an answer to your question[^].
2) Provide a clear description of what are trying to accomplish and what problems you are encountering. Don't expect that everyone knows what you are doing, what tools you are using or what, if anything, you have tried to solve the issue.
3) Don't ask for anyone to email the answer. This is a public site and you have asked the question publically. It would be rude to hide the answer from anyone else that may be having the same issue.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
You have the single and double quotes round the wrong way.
|
|
|
|
|
1. Your first set of single quotes and double quotes are the wrong way around
2. You are trying to use escape character for double quotes in a single quote string
3. You are not closing you IMG tag
4. You are using unneeded escape characters to close you A and DIV tags (assuming you have actually opened these tags somewhere)
try...
document.write('<img src="' + snowscr + '" border="0"/></a></div>');
tip...
use formatting options to insert < and >
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
Hy,
I have two ASP.net applications which are running simultaneously (p1,p2). If i am working on application p1, i have to restart the clock of application p2 also.For this i have written a java script code which works perfectly on my machine but gives error in server.
Here is my code
string strOut = @"
<SCRIPT language='JavaScript'>
var tparent;
alert('In PC.SearchResult.ascx Script');
debugger;
try{
if(parent.EnableClock == null)
{
alert(' In PC.SearchResult.ascx Script:parent.enableclock=null');
alert(parent.parent.EnableClock);
if(parent.parent.EnableClock == null)
{
alert('In PC.SearchResult.ascx Script: parent.parent.enableclock=null');
tparent = parent.parent.parent;
}
else
{
alert('In PC.SearchResult.ascx Script: parent.parent.enableclock!=null');
tparent = parent.parent;
}
}
else
{
alert('In PC.SearchResult.ascx Script: parent.enableclock!=null');
tparent = parent;
}
alert('The value of tparent is');
alert(tparent.value);
tparent.resetClock();
tparent.EnableClock = true;
alert(" + Session.Timeout.ToString() + ");" +
"tparent.startClock(" + Session.Timeout.ToString() + " );} catch (err){alert(err.message)}</SCRIPT>";
// string strOut = @"<SCRIPT language='JavaScript'>try{var tparent;if(parent.EnableClock == null){if(parent.parent.EnableClock == null){tparent = parent.parent.parent;}else{tparent = parent.parent;}}else{tparent = parent;} tparent.resetClock();tparent.EnableClock = true;tparent.startClock(" + Session.Timeout.ToString() + ");}catch(err){alert(err.message);}</SCRIPT>";
Response.Write(strOut);
The error that i get is when the debugger goes on "parent.parent",it says "ACCESS IS DENIED"
Please help
|
|
|
|
|
I am guessing that when you develop both sites are on localhost or something similar and when they are deployed they are on different domains. You are trying to do Cross Site Scripting, which is considered a big security problem.
|
|
|
|
|
I'm developing HTML application which reads some encrypted data from server, then decrypts it by password provided by user. How can I force browser to save the password in javascript? The password must never be sent to the server, so I cannot use cookies. I know there is some local storage in HTML5, but I'm afraid it is not widely supported. Any ideas?
Thank you.
|
|
|
|
|
The browser market is heavily adopting HTML5, so i wouldn't worry about it.
Go ahead and use LocalStorage (and SessionStorage if needed)..........i would.
|
|
|
|
|
It wouldn't do any good to store the password in JavaScript anyway. Assuming you have a login page to authenticate the user, this information would be sent to the server for validation, then sent back to the client for storage, a large security hole. Then once another page is requested the JavaScript is lost, in which case you would need to resend the password to the client for storage once again exposing it.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Server is just storage for client's encrypted data, server must not know the password. I don't worry about secrity of client's password in his browser, it is his problem to secure his computer (actually it is designed primarily for smartphones).
|
|
|
|
|
rrrado wrote: server must not know the password
Then how do you indend to authenticate the users?
rrrado wrote: I don't worry about secrity of client's password in his browser
You are a complete FOOL!
rrrado wrote: it is his problem to secure his computer
Wrong answer. You are writing the application, it is up to you to provide the appropriate level of security for your application.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Mark Nischalke wrote: Then how do you indend to authenticate the users?
It is not important in my question, it can be done by classic login form (with another pass) + cookies, or HTTP auth, or none. Let's say I've already received encrypted data from server.
Mark Nischalke wrote: You are a complete FOOL!
Thank you, but I really think it is not possible to save password "safely" in javascript when USER decides to save it. Only to save it encrypted with some master password which would user need to type each time which does not give sense to save the first password in this case.
|
|
|
|
|
rrrado wrote: I really think it is not possible to save password "safely" in javascript
EXACTLY!!! It doesn't matter if you use a master password of some sort, it still must be transmitted to the client and decrypted in JavaScript! The only thing you accomplish with transmitting the master password is to give someone access to ALL instances of your application, not just one. At that point you might as well not even use authentication because you have no security.
Please stop posting until you learn more about what you are doing.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
I'm afraid you don't understand what I need to do. I'll try explain in other words. I'm not solving the problem with authentication. User creates some data at his computer. Then encrypts them LOCALLY with some password and upload to server. Server does not know the password, server is not able to decrypt the data! (When somebody hacks the server, he can get the data but has no password). Then user goes to some URL with web application, downloads the data from server (don't think about authentication it is not important now). It will provide pass to JS which decrypts the data. I need to offer storing the password somewhere so he don't need to type the pass each time he opens the application in browser. If he is paranoid then he won't save the password.
I was hoping somebody will know whether it is possible to force browser (from JS) to save the password into it's auto-form-filler store which fills the forms.
|
|
|
|
|
I'm afraid you have not been listening. So you have a password on the client machine, yes, auto-complete forms do this all the time. Now you are transmitting the encrypted data to the client for decryption by a JavaScript function. Where does the JavaScript come from? It has to be downloaded to the client which leaves it vulnerable to interception. Now your encryption algorithm is exposed along with the data. How long will it take for some script kiddie to hack in with this info? I doubt you are even using a secure protocol or know what it is or how to use it.
Your ignorance is putting the client's data at risk unnecessarily and they should terminate the engagement with you.
Now, once again, stop posting until you learn what you are doing.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
I know what am I doing. I've asked some question. If you don't know the answer, ok. If you have some ideas in area I haven't asked about, I can discuss about it, maybe we both will learn something. But why are you so offensive and writing me to stop posting? You don't know all the details about used algorithm (because it is not important to get answer to my question) but you know I'm complete fool If you are concerned about details I haven't wrote, just ask. FYI data is transmitted over HTTPS. The AES is used to encrypt the data. I don't know script kiddies which can crack HTTPS, then AES. Whole point is to make server unable to decrypt the data. Yes server could modify the JS to send the password back, but JS is easy to read and paranoid user can see what is it doing, or can save the HTML+JS locally and use always trusted copy. If you can see some way how can script kid steal other user's data, let me know.
|
|
|
|
|
You are missing the fundamental point... The Data WILL ALWAYS come from the server.. It's useless to wrap a completely insecure process with some faux authentication that in reality does nothing.
I wasn't, now I am, then I won't be anymore.
|
|
|
|