|
have two div ,one is big another is small.small on the big!
the small div is under the big div when click the big div.
please help me to take small div on top for ever!
thank you !!!!!
|
|
|
|
|
you may increase z-index of smaller div, with e.g style="z-index:5000" . Bt I don't understand how you change anything with click on div... There must be something more you keep for yourself If trick with z-index doesn't help, show us some markup
regards,
David 'DNH' Nohejl
Never forget: "Stay kul and happy" (I.A.)
|
|
|
|
|
What is the difference between the two?
I know they produce the same result but why different way of doing the things and whch one is better.
<a href="#" onclick="window.open('test.html',,'width=100,height=100,scrollbars=No')">Test</a>
<a href="javascript : void(0)" onclick="window.open('test.html',,'width=100,height=100,scrollbars=No')">Test</a>
Ranjan Goyal
|
|
|
|
|
There is actually a slight difference, it just isn't that apparent. If you link to #, the page will refresh as the new window opens. Depending on the browser, the parent page may scroll back up to the top as well. If you link directly to the javascript command, the parent window is "untouched".
-
Rock on!
|
|
|
|
|
|
I have a couple of submit buttons for email and displaying and updating data in a database. Anytime I post back to the same page, a new view is created and I would have to click on the back button to go back to the previous page (which is essentially the same). Is there any way to disable this so that all postbacks to the same page just refresh the page? Thanks.
"For that one fraction of a second, you were open to options you would never have considered. That is the exploration that awaits you. Not mapping stars and studying nebula, but charting the unknown possibilities of existence." - Q (Star Trek: The Next Generation) ^ Blog
|
|
|
|
|
As far as I know, you can't do this. You have to write the code yourself, so the inputboxes are filled in again with your submitted data. You could check if the request.form("yourinput") is empty or not. If not, then fill in the value property.
Hope this helps you out.
|
|
|
|
|
What if I don't care about the data being filled? All I want is for the page to stay where it is and not create a new view. I know I can call the History.Back() command when it posts, but I'm told there is a more efficient way of doing this.
"For that one fraction of a second, you were open to options you would never have considered. That is the exploration that awaits you. Not mapping stars and studying nebula, but charting the unknown possibilities of existence." - Q (Star Trek: The Next Generation) ^ Blog
|
|
|
|
|
Hi Friends,
I am developing a web site
In one web page there are 2 dropdownlist
and containg save data
for example
select1
1)abc
2)xyz
3)pqr
and for Select2
1)abc
2)xyz
3)pqr
If user select abc in select1
and then he select same abc in select2
a error messege through to user that You choose Abc in select1 so please select diffrent item
no this time i can give index no to select2 but
i want the last value of select2
suppose selet2 has pqr selected
and then he try to select abc
then after error he atomatacally select the last value
i.e. pqr
In short Undo in javascript for dropdownlist
Thank You In Advance
|
|
|
|
|
I'm trying to wire up support for both Enter and Return keys on Macs to postback an ASP.NET form when they keys are pressed within a text box.
At the moment, this is done through simulating a click on an ASP.NET button server control. This JavaScript function is called during the text box's onKeyPress event and looks as follows (with e being the event passed in):
function checkEnter(e, buttonId)
{
var characterCode;
if(e && e.which) {
characterCode = e.which;
} else {
characterCode = e.keyCode;
}
if(characterCode == 13 || characterCode == 3) {
return clickButton(e, buttonId);
} else {
return true;
}
}
The weird thing is, this works fine on PC keyboards (where it seems both the enter and return keys use the same key code), but on Macs only pressing return causes the form data to be posted back, pressing enter just causes the page to postback but without any data. Thinking about it, is this actually a limitation of the Mac itself, is this kind of behaviour normal?
Thanks as always,
--
Paul
"Put the key of despair into the lock of apathy. Turn the knob of mediocrity slowly and open the gates of despondency - welcome to a day in the average office."
- David Brent, from "The Office"
MS Messenger: paul@oobaloo.co.uk
Download my PGP public key
|
|
|
|
|
Ok, turns out that this error is caused by an IE bug when a form contains a single text box.
It can be solved in JavaScript, but an easier workaround is to place an additional text box on the form that is not visible.
--
Paul
"Put the key of despair into the lock of apathy. Turn the knob of mediocrity slowly and open the gates of despondency - welcome to a day in the average office."
- David Brent, from "The Office"
MS Messenger: paul@oobaloo.co.uk
Download my PGP public key
|
|
|
|
|
HI
I just downloaded the VB.Net power tools and succesfully added the dll to a C# windows application - worked well - very impressed!
I then added it to a web application i am working on and added to system.windows.forms reference. Everything comiled and seemed to work. when i tried invoking the .notify() method nothing was displayed, just the usual page re-load!
Is there anything else i have to do or any underlying reason why this will not work within a web application
Thanks a lot
Colin
|
|
|
|
|
The following code is supposed to submit the form to the process page. It works fine in IE, but not in Netvigator. When I hit the Submit, it just returns to the top and won't go.
What should I add to make it work in Netvigator?
function chkform()
{
var message = "";
/*if there is error in the form, append error string to the message*/
if(message.length > 0)
{
alert(message);
return false;
}
else return true;
}
...
...
...
...
Submit
|
|
|
|
|
The following code is supposed to submit the form to the process page. It works fine in IE, but not in Netvigator. When I hit the Submit, it just returns to the top and won't go.
What should I add to make it work in Netvigator?
<script language="javascript">
function chkform()
{
var message = "";
/*if there is error in the form, append error string to the message*/
if(message.length > 0)
{
alert(message);
return false;
}
else return true;
}
</script>
...
...
...
<form name="form" method="POST" action="process.jsp">
...
<a href="#" onclick="if(chkform()) submit();">Submit</a></form>
|
|
|
|
|
Greetings,
I was wondering how to add a line break <BR> after a table using DHTML.
I am creating this html table dynamically using DHTML from javascript, and adding it to the document, but
I am not sure how I can add a line break after it?
Example:
var mybody=destinationWindow.document.getElementsByTagName("body").item(0); // Get the doc body.
...
...
// Create the table, and modify the table.
mytable = destinationWindow.document.createElement("TABLE");
...
...
// Add the table to the body
mybody.appendChild(mytable);
// Add a line break, before I create another table?
<BR></BR>
// Create next table.
...
...
Thanks in advance for any suggestions!
|
|
|
|
|
I found a way to do this by just adding the line break element to the doc right after my table has been added.
(ie
lineBreak = destinationWindow.document.createElement("BR");
mybody.appendChild(lineBreak);
|
|
|
|
|
Dear all,
I have to make a search page using ASP but I have only to display only 5 results in one page and there will be a "next" button to display the other 5 results and so on
could any one help me on how to do that???
|
|
|
|
|
you must use of this method "PageSize" To show
your Records From DataBase !
you know "Pagesize" is a methot of Recordset (ADO Technique)
|
|
|
|
|
How i can handle request from client and repond to client in Microsoft IIS 5.0 or more? What do i need? Or some information? Thanks
Nothing
|
|
|
|
|
|
The link Gerald provides above is an excellent gateway to a vast amount of information on developing web applications hosted on IIS 5.0. I've dabbled with a few and find that, by far, classic ASP is the simplest to understand and implement. ASP.Net has far greater functionality - and I'm learning it - but you can accomplish a lot with the original without the complexity of ASP.Net. Check out www.w3schools.com[^] for some excellent tutorials.
"If it's Snowbird season, why can't we shoot them?" - Overheard in a bar in Bullhead City
|
|
|
|
|
Hi All,
I am in the process of developing a web tool in ASP that will be used to update static content on a web page. Is there any sample code/already built web tool that you know of where I can get some design and coding ideas from. Doesnt really look that hard but would prefer to see something that is actually working first. The idea i had was to probably populate the static content from the staging server onto the webtool and then update it before sending it back to the staging server. Thoughts?
|
|
|
|
|
I'm not sure what you mean by this.
You wrote:
The idea i had was to probably populate the static content from the staging server onto the webtool and then update it before sending it back to the staging server.
Typically, most companies would use something like FrontPage to update static content to a production server. At the very least copy/paste documents would suffice for small businesses to move HTML documents from staging to a production server.
If the users must be able to update static content on the production server (like documentation) then perhaps perhaps Wiki technology would work for you. OpenWiki (www.openwiki.com) is an ASP based wiki that you could review and borrow technology ideas from or implement entirely. There are many other Wiki sites just search Google.
Good luck on your project.
-John
|
|
|
|
|
What is the maximum size of database that mysql can permit?
Ranjan Goyal
|
|
|
|
|
With the MyISAM table type in MySQL Version 3.23, the maximum table size was increased to 8 million terabytes. The maximum effective table size for MySQL databases now normally is determined by operating system constraints on file sizes, not by MySQL internal limits.
-John
|
|
|
|