|
But, i have to hide that textbox initially.when i select an item in the dropdown box a textbox will become visible and will be filled with data from the database depending on the item selected in the dropdown box.to retain a java variable value to be used in the query which is in vbscrip i used request.form() and posted the asp page back to the same page.Every thing is fine but, once the data is populated in the textbox immediately the page is posting back and all of them...textbox and dropdown box are all again disappeared after the page is loaded.....please tell me how to retain them even after the page is loaded......
|
|
|
|
|
You still obviusly don't know what happens when the page is reloaded.
The page is not posting back after the textbox is populated, but before.
---
b { font-weight: normal; }
|
|
|
|
|
ok...but before the textbox is populated i didn't c any loading of th page...but as soon as the textbox is populated....the page is automatically refreshed and all those controls on the page which i made visble depending on the items selected in the text box were all disappeared and the initial page is displayed.....i just want to have those controls on the page as they were even after the textbox is populated...please let me know what i am supposd t do for this.......
Thanks a lot for yuor help,
Bhavani.
|
|
|
|
|
No, the textbox is not populated when you think it is. It's just displayed with the previous value. Then the page reloads, and the textbox is populated, but as you hide the textbox, you won't see that.
What you need to do is:
:: Don't show the textbox before reloading the page. It's no use, as it doesn't contain the correct data.
:: When the textbox has been populated, make sure that it's not hidden when the page loads again. Just remove the property that hides it.
---
b { font-weight: normal; }
|
|
|
|
|
In a web page design ...
I am using iframes to show web pages from another website under Mozilla 1.6 webbrowser (Mozilla/5.0). But of three iframes, 1 is showing mostly question marks instead of the html content.
It doesn't matter if this main web page is stored in ascii or unicode. And the content loaded, via a script, into the iframes are in ascii (and delivered via the personal web server on win2000).
The problem kinda seems to be related to treating ascii as unicode, or vice versa.
Any ideas how to fix this problem? (note: no problem occurs on IE6 )
Thanks
|
|
|
|
|
Hi,
I need to implement some function like, when the database is updated through one page, the other page, which is listing all the records, should be refreshed automatically and display newly updated recordset.
I was thinking using trigger. But it seems that it only can update tables within the database itself.
How to trigger the browser to reload and keep the data on the page updated?
Can anyone give some ideas?
Thanks in advance!
|
|
|
|
|
Hi there,
For this, IMO, you might set the client browser will refresh itseft after an interval time , and also should have a look at AJAX technology about how to refresh a part of webpage to increase performance.
<< >>
|
|
|
|
|
Hi, Thank you for information. It definitely give me some clues. I will look into it...
|
|
|
|
|
You can use this to refresh your web page
N.Rajakumar B.E.,
Application Developer,
|
|
|
|
|
>Having some trouble with this. I'm not the sharpets knife in the drawer when it comes to html. I've googled and apparently the "GET" or "POST" don't work on static html. What gets me is that I'm using this in other pages on the same server but in other domains and it's working fine. Any suggestions?
This below is the problem and the error is under it:
<FORM ACTION="sourcecode/fullinterest.php" METHOD="GET">
Is causing this:
Method Not Allowed
The HTTP verb used to access this page is not allowed.
--------------------------------------------------------------------------------
Web Server at blah-blah-blah.com
Some assembly required.
Code-frog System Architects, Inc.
|
|
|
|
|
"GET" ought to work just fine. I don't have a good answer, but you might want to check for restrictions on the server itself (.htaccess settings, etc.).
BTW: Googling the error you recieved turns up a lot of stuff about misconfigured IIS... so perhaps it boils down to IIS not recognizing .php files as dynamic.
|
|
|
|
|
What would the below code load?
<%@ Language=VBScript %>
<%If false Then%>
<%Else%>
<%End If%>
The Result of Above Code is FunctionTwo.inc
I want to know why it load the secound file ?
and what based the condition is executing?
Please any one help me..
N.Rajakumar B.E.,
Application Developer,
|
|
|
|
|
What happens is this:
:: The files FunctionOne.inc and FunctionTwo.inc are loaded and merged into the code to form the complete source.
:: The complete source is compiled.
:: The code is executed.
As the condititon in the If statement is False, the code between Else and End If is run.
---
b { font-weight: normal; }
|
|
|
|
|
Hi..I'm currently learning a new language of C# web application which requires me to design a web page just like the link below:
(www.nyp.edu.sg)
.But my problem is that if i wants to design a menu page just like which i have a navigator bar on top/side, when i on the menu page i can select/click on the navigator bar and goes straight to the adduser page. I'm currently using C# web application program to do. So now i not too sure how the menu page can be done. But i try using .ascx to design my menu page but its not workable.. Is there any simple way which i can design just user menu page (on the navigator bar i have adduser, deleteuser & etc..) Anyone who has done it before mind sharing with me as i'm using C# to design my website.. Thanks for your help...
Cheers!
|
|
|
|
|
|
hi dotnethead, thanks for your reply. But currently i'm only allow to use Mircosoft Visual Studio .NET 2003 to do my web page. Is there any way that i can do it using 2003 program.. Or other methods which i can easily create a navigation bar? Thanks!!
Cheers!
|
|
|
|
|
I've done a site wide navigation control before using a User Control. A User Control is just like any other control on your page (ei, button, textbox, checkbox, etc.) but it is one that you write yourself. Once it is written you can include it in any page on your site. Cehck out this page for a simple User Control tutorial:
http://www.asp101.com/lessons/usercontrols.asp[^]
"Half this game is ninety percent mental."
- Yogi Berra
|
|
|
|
|
So I have a div on my page
now How can I put two more divs inside "containter" side by side, giving me a 2 column page? What is the best method (i.e. css) to do this with divs and so it shows up (semi) the same in ie and firefox?
I try this...
<%@ Page language="c#" Codebehind="test.aspx.cs" AutoEventWireup="false" Inherits="wpmc2006.org.test" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>test</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<style> div { border-right: black 1px solid; border-top: black 1px solid; border-left: black 1px solid; border-bottom: black 1px solid; }
div.right { float:right; width:50%;}
div.left { float:left; width:50%}
</style>
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<div>
<div class="left">left</div>
<div class="right">right</div>
</div>
</form>
</body>
</HTML>
IE displays it just how I want but firefox always ruins it. How do i do 2 parallel columns in firefox?
/\ |_ E X E GG
-- modified at 18:53 Wednesday 7th December, 2005
|
|
|
|
|
Use 2 spans instead?
daniero
|
|
|
|
|
well if I use spans, i eventually want to use divs inside them and you cant use divs inside of spans..
/\ |_ E X E GG
|
|
|
|
|
Take a look at Little Boxes[^]. I think that will help you.
Wout Louwers
|
|
|
|
|
If IE and Fx displays the page differently, it's almost always Fx that displays it correctly.
Use a more recent doctype. Just version 4.01 should make a noticable improvement.
W3C: Recommended DTDs[^]
---
b { font-weight: normal; }
|
|
|
|
|
I have text in my webpage and I want to make a simple Buton that on click : selects, copy all the text on clipboard, and finally deselects all
or at least just selects all
I think it´s very simple using JavaScript but I cant get it
any comments ?
THANX ¡¡¡
Armando
Monterrey, Mexico
|
|
|
|
|
Hi there,
IMO, just simple getting the selected text from the textbox control and do paste the selected text into clipboard by using this statement
window.clipboardData.setData("Text",selectedText);
<< >>
|
|
|
|
|
I tried by using this " onClick="javascript:select();" " but it only selects the text that is into the button not the text on the webpage
And I didnt get the idea you gave me so could you give another one using my example?
|
|
|
|