|
Hi, The best way I can explain this is to just show you.
If you go to this site, http://www.extjs.com/examples/explorer.html#messagebox , (I know its an Ajax framework) and click on any of the buttons (Confirm, Prompt).
When you click the button, a dialog box pops up, But the rest of the page fades out and cant be interacted with. This is to bring the users focus onto the dialog box.
Now, I know to get the fade effect I have to:
1) add a div to the body tag
2) set its background to black
3) set its opacity to 0.1
4) set its z-index to something like 1000
What I dont understand is how to make it so that the user cannot interact with the other controls on the page.
As long as the dialog is showing, the user cannot interact with the rest of the page hidden behind it.
But if I add this to my own HTML page. Just a div with width/height 100% and background/opacity black/0.1.. The user can still click buttons or edit textboxes on the page?
Does anyone know how is this achieved?
Thanks,
Andyyy
|
|
|
|
|
A couple of things that come to mind.
Are you declaring the div tag at the start of the page html? (i.e before the content it has to obscure)
Are you remembering to make the div's position absolute, and it's z-index a higher number than the content to be obscured?
Here's my css and body
#overlay
{
background: #000;
opacity: 0.5;
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
z-index: 100;
cursor: pointer;
cursor: hand;
display: none;
}
#box
{
background: yellow;
position: absolute;
width: 33%;
height: 33%;
left: 1px;
top: 1px;
z-index: 101;
cursor: crosshair;
display: none;
}
<body>
<div id="overlay">Overlay</div>
<div id="box" onclick="onBoxClick();" onmouseover="styleElem(this, 'red');" onmouseout="styleElem(this, 'yellow');">Box</div>
<div>
<h1>This is some content</h1><br>
<input type=button id="myBtn" onclick="onBtnClick();" value="Show"/>
</div>
</body>
If this doesn't help, I can post the full source (~300 lines)
|
|
|
|
|
Ah perfect! Thank you so much. This works perfectly
Thank you!
|
|
|
|
|
I set up a demo with a similar effect. You can use copy the code and use it...
http://plecco.net/labs/modal/
modified on Wednesday, January 27, 2010 9:52 AM
|
|
|
|
|
Hi all,
I need to insert the values from one server to anther server automatically
using web services C#.NET.
For Example,
Two servers : Server 1 , Server 2. Both the servers are located in different places. Once the values are inserted in Server 1 Database,it should be automatically inserted in Server 2 Database using Web services(online).
Can anyone pls help me... Thanks in advance...
|
|
|
|
|
I have come across slower ways to process data, but most of those involve pencils.
I recommend you take a look at SQL Replication, which can replicate over VPN or directly over the web.
MSDN: Replication[^]
|
|
|
|
|
You can create an web service type application that accepts a command to execute on a database. This application can then contact the two databases and perform the insertion on both databases.
modified on Wednesday, January 27, 2010 9:58 AM
|
|
|
|
|
I got the code of virutal keyboard, can anyone code it in JSP. I'm doing user authentication by providing virtual keyboard as password input field. And using XML files to retrieve data from database.
|
|
|
|
|
I'm sure there are many people who can code it in JSP. How much are you paying? You may get more offers on www.rentacoder.com[^].
Of course if you have had a stab at it yourself and have some code you need advice/help with then this is the place to ask. What have you tried so far.
|
|
|
|
|
Try Bidding for at least $10 an hour.... then see it where it fits....
|
|
|
|
|
|
The web service is returning an error response. The fact that it has saved the data doesn't change that fact: something is going wrong at the web service end. You need to find out why the web service is returning this error and the only person who can tell you that is someone who understands what the web service is doing and how it works.
|
|
|
|
|
May be I need to be direct. I wrote the web service and I understand perfectly well what it does. During the debugging of this, I stepped through the web service and there are no errors being returned by the web service. The javascript error happens even before the first line in the web service is reached but the web service still executes with no errors. This is the problem. If you don't have a solution or don't even know what I am talking about, please don't respond. People like you are the reason that I hate message boards and usually don't use them.
|
|
|
|
|
Well thank you, kind sir.
Always nice to meet a fellow professional.
|
|
|
|
|
emurf wrote: If you don't have a solution or don't even know what I am talking about, please don't respond.
Well, based on your original post, I would say that the reply was perfectly valid.
emurf wrote: there are no errors being returned by the web service
Maybe not returned, but thrown?
emurf wrote: People like you are the reason that I hate message boards and usually don't use them
Well don't bother then. People try to help based on the information you give, and if you don't like it then you know what to do.
At the end of the day, something is throwing an error and it is either your code or the web service, but it seems you are the one person in the world whose code can never, ever, under any circumstances, throw an unexpected error.
How likely is that?
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
I came to get help but instead I get a guy who offers no help and just says that I don't know what I am doing. If you believe that I didn't provide enough information, state it. Don't just pompously state that I need to find someone who knows how web services work. Believe me, I now wish that I hadn't bothered.
|
|
|
|
|
emurf wrote: Don't just pompously state that I need to find someone who knows how web services work
What he actually said was "how THE web service works" - a reasonable statement as often the web service is out of the developers control, maybe even supplied by a 3rd party.
emurf wrote: I get a guy who offers no help
He did try to help, and what he told you is a reasonable suggestion. What would you expect, given the information supplied? A fully coded solution?
Basically you are rude and arrogant. People here are not paid to help, they do it for free, and if you don't like their advice then don't ask for it.
And I still say the bug is in your code somewhere.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
Rant, complain and rant.
This is all very well, but it just makes everybody wish you hadn't bothered either.
And now, I see the original post has been deleted. By you? Now we will never know what the problem was, and definately won't be able to give any assistance.
|
|
|
|
|
The Man from U.N.C.L.E. wrote: see the original post has been deleted. By you? Now we will never know what the problem was, and definately won't be able to give any assistance.
I second that. I saw the first post he replied to the first response, and without seeing the initial post, I'm lost as to what his problem was. Oh well, guess he didn't really need the help.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
emurf wrote: People like you are the reason that I hate message boards and usually don't use them.
Then don't bother asking for help when people here help for free on their own time. You seem to come off as very rude, and I won't help (because you are being rude to others) and can't help (since you deleted your post). Advice....keep your post up and if someone offers any kind of help, take it with gratitude even if it is not the exact answer you are looking for.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Hi! I created a page that has a "Back Button", it opens up as a pop up window. The Back Button doesn't work IE but id does in FireFox Mozilla.
I have tried with window.history.go and window.history.back but non of them is working. Any Suggestion please ?
|
|
|
|
|
This question has been posted also in the ASP.NET and Java forums. Please stick to the guidelines and post in one forum only.
|
|
|
|
|
Hi Richard MacCutchan ! i do agree with you but dont take it as offence this time i'm looking for solution provider not a guidelines teller.
|
|
|
|
|
My comment still stands, do not post in multiple forums. And read the guidelines - that's why they exist.
|
|
|
|
|
In the past I've used MS VB and also Oracle Developer, if that matters.
I'm a student using MS Visual Web Developer 2008 Express Edition for the first time.
I'm having a problem positioning labels and controls in the Design view.
If I drag a label or control out of the ToolBox and drop it in the Design view (I'm using Split view) how can I position this label precisely where I want it? I tried editing the HTML, but that didn't satisfy me.
Is there another way to do this in the Design view?
|
|
|
|