|
Ryan, try using AJAX/XMLHttpRequest.
AJAX uses javascript which allows you to send data back to the web server and receive resulting data (all as text) without postback of the page.
Obviously you need to have the user authenticated/logged on the website, therefore you can have the web page itself handle all the database connection required without you needing to send username and password or connecting to a database from the client side.
There are several javascript libraries such as Sarissa[^] which will make your life easier working with AJAX.
I do not know of any ASP-specific AJAX library, but there are plenty .Net AJAX libraries out there.
If you need examples or more information, check the AJAX[^] section of CodeProject.
Hope that helps, good luck
Edbert
Sydney, Australia
"A day without sunshine is like, you know, night."
-- modified at 18:51 Tuesday 7th February, 2006
|
|
|
|
|
If it's not much data you need, you can just put all the data you need in an array in javascript, and populate the drop down box from the array.
---
b { font-weight: normal; }
|
|
|
|
|
How can I get my form buttons to be a certain minimum width, and grow wider if necessary?
In IE this is easy, apply the style width: 70px; . IE handles this incorrectly and will automatically grow the button as needed.
In FF this doesn't work, because it correctly truncates the button text.
In FF I believe the correct style to use would be min-width : 70px; , but this causes my button label to be left aligned, and applying text-align : center; has no effect.
Any ideas?
"Time sneaks up on you like a windshield on a bug." - John Lithgow
|
|
|
|
|
In case anyone was wondering, this min-width issue appears to be a bug[^] in Gecko.
"Time sneaks up on you like a windshield on a bug." - John Lithgow
-- modified at 13:02 Wednesday 8th February, 2006
|
|
|
|
|
Are there any (ideally free) tools around that can generate image maps from images? E.g., something that will generate the coords attribute for the area tags from clicking on the relevant points of a shape(s). My shapes would be regions of a City.
Kevin
|
|
|
|
|
i am not understanding ur problem fully. i am suggesting that this link will be helpful for u http://answers.google.com/answers/threadview?id=595699
VMSSanthosh
|
|
|
|
|
Hi all,
I have 2 java Web services and i make reference to those WS from .Net client.
The 2 web services shares common data object (for example object called UIObject)
From .net environment it refer to UIObject as 2 diffrent objects. one belongs to the first WS and the other to the second one and he doesn't recognize it as the same object.
does anyone know how can i solve it?
Thanks,
Liran
|
|
|
|
|
Hi!
How do you specify a connectionstring in the "ButtonClick" event?
Illegal Operation
Making Computer Software Talk
|
|
|
|
|
How do you open a soup can in a red house?
The connectionstring has nothing with the ButtonClick event to do, so you have to explain what you mean by the question.
---
b { font-weight: normal; }
|
|
|
|
|
Good Day All,
i want to get the name of my system using client side scripting such as javascript. e.g if the name of my machine is mysystem then the same name would be obtained using javascripting on my browser.
Best regards
Bilal
|
|
|
|
|
i'm very new to java scripts and this one is giving me a hard time. i simply want to add an integer to this variable to use it afterward but it seems whatever i do, the addition isnt done and the variable stays unchanged... here's part of the code :
xs = oPart.selectSingleNode("X").text;
x = (xs + 100)
there i put 100, but i've tried with integer variables too without success. it seems that x will always equal xs no matter what i do! i've tried to put "parseint" and it gives me a "Expected object" error. there must be some kind of synthax problem or something, but i've already spent hours on this tiny newbie problem, trying everything i could imagine. that's why i ask for some help here.
any hint would be very appreciated! thanks
|
|
|
|
|
Javascript is case sensitive.
x = parseInt(xs) + 100;
---
b { font-weight: normal; }
|
|
|
|
|
i want to get a value from a JScript variable:
in JS
function GetID()
{
var Valu = "123";
return (Valu);
}
<font color="blue">in the HTML</font>
<form action="somepage" method="post" name="xForm">
<input type="hidden" <font color="RED">value="GetID();"</font> name="ID">
<font color="blue">the problem in the red text, the GetID function doesn't return a value, the only value return to the <font color="RED">value</font> is the name of the function...so is there some mistake in my code????? </font>
</strong>
Militiaware
Faris Madi
|
|
|
|
|
Yes, there is a mistake. You can only use javascript in event properties in html, like onclick, onmouseover, et.c.
---
b { font-weight: normal; }
|
|
|
|
|
Guffa is right i think. Maybe you can do something like this:
<form action="somepage" method="post" name="xForm">
<script language="JavaScript" type="text/javascript">
document.write("<input type=\"hidden\" value=\"" + GetID() + "\" name=\"ID\">");
</script>
"..Commit yourself to quality from day one..it's better to do nothing at all than to do something badly.."
-- Mark McCormick || Fold With Us! || Pensieve || VG.Net ||
|
|
|
|
|
okay:
my question is how to get a value from a textbox and send it with the post.
in this case:
i have two forms
form one contains the textbox
form two contains the submit
when i click on the submit i want to send with the post of the form two the values in form one? how?
Militiaware
Faris Madi
|
|
|
|
|
Why do you write your post in bold? Bold text is used to emphasize words in a text, if you emphasize the entire text, it's just annoying. Almost like SCREAMING.
Why do you have two forms in the first place?
Put hidden fields in the second form, and copy the values from the first form into the hidden fields.
---
b { font-weight: normal; }
|
|
|
|
|
i've 2 day in programming web application.....
how can i copy the values from the form1 to the form2
<form1><input type=hidden name=H1 value=111 ...etc <---------
<form2><imput type=hidden name=H1 ...etc <---------
in other words the value if H1 = 111???
Militiaware
Faris Madi
-- modified at 5:57 Tuesday 7th February, 2006
|
|
|
|
|
Why do you have two forms in the first place?
To copy the values you use javascript code like this:
document.form2.H1.value = document.form1.H1.value;
---
b { font-weight: normal; }
|
|
|
|
|
What "REFRESH" do to the web page. Does "REFRESH" download the page again? by call it again or there's another story behind it?
Militiaware
Faris Madi
|
|
|
|
|
Please remove the marquee effect if you want to be taken seriously!
ColinMackay.net
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
|
|
|
|
|
The refresh button in most browsers will load the page from the cache if appropriate (hasn't expired, no query string, etc.), but there is usually a means of forcing everything (page, images, etc.) to be downloaded again (Ctrl+F5 in IE and FF). window.location.reload(true); will also accomplish this sort of cache flushing.
|
|
|
|
|
I read so many....... articles about ajax. It looks that the writers know what they are talking about.
BUT what is the simple way to update db with some data I got from my form.
And please don't refer me to an article where someone created a monstrous library that can sumbit a rocket to the moon...
|
|
|
|
|
Ajax or not Ajax, updating the database is still the same.
The only difference is using Ajax you can send data back to the server without posting the form.
There are plenty of examples in CodeProject itself on Ajax (check your navigation menu on the left for AJAX).
If you're interested, Anthem.Net is a very good .Net AJAX library you can use right away without needing to understand all the complexity*.
*Disclaimer: Brain required
Edbert
Sydney, Australia
"A day without sunshine is like, you know, night."
|
|
|
|
|
Dear All,
I have saved my username and password using PHP in Mysql Server. I have used PASSWORD('password').But for user verification how I will check user password from Mysql server using PHP.Because PASSWORD() one way process.
What things I have to do?
Pl anybody in help ? Any hints.
rpkumar
|
|
|
|