|
I'm not angry. Angry would have involved oratorical violence. I told you: everything you need to know is in the thread: I have no intention of doing your work for you.
|
|
|
|
|
Assuming you are not using ASP.net then use this HTML/JS:
<input type="button" value="Print" onclick="window.print();" />
Brad
Australian
The PHP MVP
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
Hey all,
What do you find is the best way to implement a database driven menu?
On my first db driven one, It was just a loop in ASP getting ingo from the database and writing links - plain (yes i did use styles to make it look a bit better) but works.
On my second one, it used a bit of javascript to style the menu and make dropdowns - has issues but looked decent.
Now I am working on my third site that uses a db driven menu, and am not sure which way i should go for (a)least issues, (b)looks and (c) user friendliness (and yes I am aware it is just a menu, but the menu is the highway through your site... without it, its kinda hard to get around)
"There are three sides to every story. Yours, mine and the truth" ~ unknown
"All things good to know are difficult to learn" ~ Greek Proverb
"The only place success comes before work is in the dictionary" ~ Vidal Sassoon
|
|
|
|
|
Do you mean drop-down menus? This guy[^] has examples for just about any sort of menu imaginable, all styled via CSS. I would definitely start there.
As for how best to generate them from a DB, that's gonna depend on your DB, schema, language, platform...
Citizen 20.1.01 'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
|
|
|
|
|
Thanks... that site helped
"There are three sides to every story. Yours, mine and the truth" ~ unknown
"All things good to know are difficult to learn" ~ Greek Proverb
"The only place success comes before work is in the dictionary" ~ Vidal Sassoon
|
|
|
|
|
Hi ,
I just want to know that I want to change the default drop down image(arrow) by my own custom image. Please help me coz i want to use a single color effect to whole website and dnt want to use default image.
|
|
|
|
|
What are you talking about? There seems to be a huge part of your message missing, the bit in which you explain where you obtained your menu control and why you aren't going back there for help customizing it!
Citizen 20.1.01 'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
|
|
|
|
|
I am talking about DropDown List control in asp.net. It contains an blue image on the right hand side(downside arrow) and i want override this image with my own custom image. I know how to develop custom checkboxes but dnt know how to do this. If u help me then it will be great for me....
|
|
|
|
|
Member 4084031 wrote: I am talking about DropDown List control in asp.net.
Ah. You should try the ASP.NET forum then.
Citizen 20.1.01 'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
|
|
|
|
|
If I want to do a web application, visual web developer is sufficient or visual studio is more recommended? Why I am asking is if I install Visual studio, is there any additional things available that can improve the functionality of my web application
|
|
|
|
|
You need to provide more details about your "web application". Different tools for different tasks.
Brad
Australian
The PHP MVP
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
Not a simple question. It depends on what exactly you need to create and whether Visual Web Developer has enough power to let you do that. It also depends on what you want to spend, your familiarity with each product, Visual Basic and/or C#, AJAX, etc. Finally, it depends on the time you want to spend learning/building/testing. I've worked a bit with VS2005/2008, and while it is pretty cool, it is NOT easy, for the faint of heart or someone who needs to bang something out without time learning and testing.
Good luck!!
_________________________________________________
Have a great day!!!
-- L.J.
|
|
|
|
|
Iam using Ajax is there any diff. approach to finish it using Javascript
aspx page
<asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional"><br />
<ContentTemplate><br />
<!-- <asp:Panel ID="Panel2" runat="server"> --><br />
<table id="Table2" cellspacing="0" cellpadding="0" runat="server" class="Table2Style"<br />
><br />
<tr id="rowDD" runat="server"><br />
<td width="115px"><br />
<asp:Label ID="DDLabel" runat="server" CssClass="LabelText"<br />
></asp:Label><br />
</td><br />
<td id="colDDImage" width="17px" background="Images/DDImage.bmp" runat="server"><br />
</td><br />
</tr><br />
</table><br />
<!-- <tr> --><br />
<!-- <td colspan="2"> --><br />
<div id="Div1" runat="server"><br />
<!-- <asp:Panel ID="Panel1" runat="server" > --><br />
<table id="Table1" cellspacing="0" cellpadding="0" runat="server" class="Table1Style"><br />
<tr runat="server" id="rowChk"><br />
<td width="132px"><br />
<asp:CheckBoxList ID="Chk_countries" runat="server" CssClass="CheckBoxList"<br />
AutoPostBack="True" OnSelectedIndexChanged="Chk_countries_SelectedIndexChanged"><br />
</asp:CheckBoxList><br />
</td><br />
</tr><br />
</table><br />
<!-- </asp:Panel> --><br />
</div><br />
<!-- </td> --><br />
<!-- </tr> --><br />
<!-- </table> --><br />
<!-- </asp:Panel> --><br />
</ContentTemplate><br />
<Triggers><br />
<asp:AsyncPostBackTrigger ControlID="Chk_countries" /><br />
</Triggers><br />
</asp:UpdatePanel>
aspx.cs page
protected void Chk_countries_SelectedIndexChanged(object sender, EventArgs e)<br />
{<br />
string str_CheckedValue = "";<br />
for (int i = 0; i < Chk_countries.Items.Count; i++)<br />
{<br />
if (Chk_countries.Items[i].Selected == true)<br />
{<br />
str_CheckedValue = str_CheckedValue + Chk_countries.Items[i].Value + ",";<br />
<br />
}<br />
}<br />
if (str_CheckedValue.Length > 0)<br />
{<br />
str_CheckedValue = str_CheckedValue.Substring(0, str_CheckedValue.Length - 1);<br />
DDLabel.Text = str_CheckedValue;<br />
}<br />
else<br />
{<br />
DDLabel.Text = SelectDefaultText;<br />
DDLabel.ToolTip = SelectDefaultText;<br />
}<br />
<br />
<br />
}
|
|
|
|
|
AJAX is a technique of coding. It stands for Asynchronous Javascript And Xml. It is using the Javascript language. In short I have two answers;
1. You're question is incorrect (which is a skill mind you).
2. You might be better off asking this in the ASP.net forum.
Brad
Australian
The PHP MVP
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
Bradml wrote: 1. You're question is incorrect (which is a skill mind you).
"There are three sides to every story. Yours, mine and the truth" ~ unknown
"All things good to know are difficult to learn" ~ Greek Proverb
"The only place success comes before work is in the dictionary" ~ Vidal Sassoon
|
|
|
|
|
Hi,
I'm working on a security solution that display an image uploaded by the user (if the user has uploaded an image, of course). I recognize the user through a cookie. In order to display the image I use a php script launched as a javascript script because I need to get a javascript variable:
<script type="text/javascript" src="cookie.php?login=document.f_bad.login.value"></script>
Then, in the php script, I retrieve this variable 'login' and use it to get the cookie:
<?php <br mode="hold" /?> Header("content-type: application/x-javascript");
$cook_name = $_GET['login'];
if (isset ($_COOKIE[$cook_name])) {
$file_name = $_COOKIE[$cook_name] ;
echo "document.write(\"<img src="/upload/$file_name" alt="Personal picture" title="Personal picture" name="persPict" border="0" width="100">\");";
echo "document.write('</img>')";
}
else {
echo "document.write(\"<img src="/img/securite.jpg" alt="Personal picture" title="Personal picture" name="persPict" border="0" width="100">\");";
echo "document.write('</img>')";
}
?>
The problem is that I retrieve the right value in 'login' (I tested it with an echo) and I know I can access the cookie (I tried by putting directly $_COOKIE['value'] ) but it does not work with $_COOKIE[$cook_name] .
I really don't understand why. If someone has an idea I would be very grateful.
Thanks
|
|
|
|
|
wheel27 wrote:
Aside from the potential security risk of allowing the user to determine which cookie is used, the login variable is set to 'document.f_bad.login.value', not to 'value'.
|
|
|
|
|
'document.f_bad.login.value' is the variable I need to use. When I used 'value' it was only as an example. It would be the login of the user
|
|
|
|
|
Do not EVER use this code... EVER. There are more security holes in this then there are in a blind security guard with no limbs.
Brad
Australian
The PHP MVP
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
Hi i have created a div element & attach a onkepress event on it as
<b><div onkeydown="alert('Hi');" width="125px">uyiyuihgfhgfhgyu </div></b>
onkeydown event fires on IE & opera but not on mozilla. can any one help me in this regards?
|
|
|
|
|
The element will need to have focus before it'll catch key events. If you want clicking it to give it focus, just set the tabIndex attribute.
Citizen 20.1.01 'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
|
|
|
|
|
|
Huh?
The tabIndex attribute is spelled t-a-b-i-n-d-e-x. You put it on elements you want to gain focus, and give it a numeric value signifying where that element should appear in the tab order for the document. End of story.
Citizen 20.1.01 'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
|
|
|
|
|
i need to show a message to the user by using modalpopup extender, when user click on a button. but the problem is when i apply modelpopup extender to the button, button's click event does not work, can you please tell me the solution for that?
thank you,
Chatura Dilan
|
|
|
|
|
We have an ASP.NET forum, it's more heavily used, and this belongs there.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|