 |
|
 |
Apologies for the shouting but this is important.
When answering a question please:
- Read the question carefully
- Understand that English isn't everyone's first language so be lenient of bad spelling and grammar
- If a question is poorly phrased then either ask for clarification, ignore it, or mark it down. Insults are not welcome
- If the question is inappropriate then click the 'vote to remove message' button
Insults, slap-downs and sarcasm aren't welcome. Let's work to help developers, not make them feel stupid.
cheers, Chris Maunder
The Code Project Co-founder Microsoft C++ MVP
|
| Sign In·View Thread·PermaLink | 4.14/5 (6 votes) |
|
|
|
 |
|
 |
Hi, ive got a image which I want to use sort of like a window in windows or linux(where theres borders around the sides with a title bar at the top and they all stretch around acording to the size of the content in the middle. Heres an example of the box with borders so you can see what I mean. The big middle one is where the content should go. But what would the correct HTML and CSS for it to all stretch right? Please take a look at the image and at my current code below: <a href="http://img269.imagevenue.com/img.php?image=15336_examplebox_122_143lo.jpg">http://img269.imagevenue.com/img.php?image=15336_examplebox_122_143lo.jpg</a>[<a href="http://img269.imagevenue.com/img.php?image=15336_examplebox_122_143lo.jpg" target="_blank" title="New Window">^</a>]
<code><div id="test" style="width:300px; height:400px; position:absolute; background-color:Red; top:100px; left:100px;"> <table style="width:100%; height:100%;" cellpadding="0" cellspacing="0"> <tr> <td style="width:31px; height:29px;"> <img src="themes/topleft.png" alt="" /> </td> <td> <img style="width:100%; height:29px;" src="themes/topmiddle.jpg" alt="" /> </td> <td style="width:31px; height:29px;"> <img src="themes/topright.png" alt="" /> </td> </tr> <tr> <td style="width:31px; height:100%;"> <img style="width:31px; height:100%;" src="themes/middleleft.jpg" alt="" /> </td> <td style="width:100%; height:100%;"> XXXXXXX <img width="100%" height="100%" src="themes/middlemiddle.jpg" alt="" /> </td> <td style="width:31px; height:100%;"> <img style="width:31px; height:100%;" src="themes/middleright.jpg" alt="" /> </td> </tr> <tr> <td style="width:31px; height:29px;"> <img src="themes/bottomleft.png" alt="" /> </td> <td> <img style="width:100%; height:29px;" src="themes/bottommiddle.jpg" alt="" /> </td> <td onmousedown="startResize('test5');" onmouseup="stopResize();" style=" background-image: url(themes/bottomright.png); cursor:se-resize;width:31px; height:29px;"> </td> </tr> </table><br /> </div></code>
It seems to work ok without the central image. But not with it. Also in IE the left and right sides dont size properly unless the CSS in the XXXXXX line is included.
Please help Thank you!
p.s. Ive tried a bunch of things which will explain any random code
Strive to be humble enough to take advice, and confident enough to do something about it.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
roguemat wrote: It seems to work ok without the central image. But not with it.
I think the central image is taking a lots of spaces. Why dont you put it in fixed width and height so that you can change it whenever you are changing the width of td.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
Then let me know what exactly the problem is. If you use Tables, it tends to increase the percentage size of a cell if the content exceeds the limit, if not defined with Fixed width and height.
So if the layout is not exactly what you want, you might use Divs to create the same layout with appropriate css.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
i have a local application which i would like to be notified whenever a certain (local)web method is called by another (remote) webservice. what's the best way to do this?
i know that i can subscribe to the [webmethod]Completed event but this only works when my local application is the one to call the web method asynchronously. also, i've tried doing this in combination with a flag in the webservice that is set whenever the webmethod is called but this requires a loop within the webmethod called asynchronously, which is thus an ugly solution.
what is the equivalent of a event in webservice?
thanks!
---------------------------------------------------------- Lorem ipsum dolor sit amet.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Have you thought about using MSMQ? Whenever your web method say MethodA() is called by any client, the first thing that MethodA() will do is push a message into a message queue. Your local app say AppA will keep polling (or subscribe to the message queue) and will be notified whenever a message arrives in the queue, this letting you know that MethodA() has been invoked.
SG Aham Brahmasmi!
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Sounds like what you want is a publish-subscribe web service pattern: the publisher would notify all subscribing clients whenever any client executed your method. Keep in mind that this is a stateful pattern in both directions and may require a session. It also requires a keep-alive mechanism to keep the subscription callback connections alive.This article may be heplfull.[^]
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Well i need a COMPOSE Message page which looks like WORD in this link at end there is compose section... http://www.trap17.com/index.php/Winrar-Winzip_t28088.html[^]
and i saved that page on my desktop and edited it to the extent i know and got whole working COMPOSE section Like this...
this image is what i edited [^]
But there is a problem which i cannot understand..when i click on button A which is Font Color a small new window is opened in actual site but not in my file which is saved at my desktop... please help me in making those buttons like:Fontcolor, Simileys to work for me please..
please if possible give me a edited code.....
please reply please help..... :~
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Use any Html Editor. You might use Yahoo editors... But the best one is FCK editor I guess.
Try google on FCK editor and find it out.
|
| Sign In·View Thread·PermaLink | 5.00/5 (1 vote) |
|
|
|
 |
|
 |
Could you please tell me.. i have downloaded FCK editor and now what to do.. i am clicking on the webpages..but they are not displaying a compete editor..not a working one.... please tell me what needed to be done How could i place that editor at small portion of my website compose message webpage...
please help.... please help....
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
Hi, its very simple:
<table style="min-width:1180px"...>
works on Firefox and IE8, but not on IE7
What can I do to make it work on Ie7?
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
What is use if min-Width ? You can directly fix the width of table.
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
 |
For IE7 / IE6 you need to use css expression()....
But mind that even a mouse move will evaluate the expression. Let see how I am doing this : Place this as css
.t-min-wid { width: expression((document.body.clientWidth < 1180)? "1180px" : "auto"); min-width: 1180px; }
Now apply
<table class="t-min-wid">
Your min width will be set for all browsers.
|
| Sign In·View Thread·PermaLink | 5.00/5 (1 vote) |
|
|
|
 |
|
 |
Hello i have a web service that works fine until the page does call back then then it stops functioning could you please tell me why??
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
|
 |
|
 |
Thanks. How would my code be wrong since it is retrieving correct data as i require. But once i call back it stops working.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
If it doesn't work then it must be wrong. Code either worksd or it doesn't. If it doesn't, then it must be wrong.
Howevere, since you don't supply any more detail than 'it stops working' how can anybody help you. Does it error? Do you trap any errors? Have you tried debugging or tracing?
You need to help us to help you, we are not psychic
Bob Ashfield Consultants Ltd Proud to be a 2009 Code Project MVP
|
| Sign In·View Thread·PermaLink | 5.00/5 (1 vote) |
|
|
|
 |
|
 |
yes i tried, but when it suddenly stops it stops the code is no more executed by server and no javascript errors it looks like you draged drop a a text box and started typing in it nothing happens
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
 |
Expain your problem CLEARLY. Nobody can help you if you really don't give us enough information about your problem.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
You can use Random Number. or GUID for that. You can also search google a while, you will get many solution.
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Use GUID or your database's unique column value (such as an IDENTITY column in SQL Server or a Sequence in Oracle)
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |