|
Hi all,
I am writing a web chat application. I am reading the new messages from database in the code behind page, and updating the text of the textbox.
But I need to refresh the textbox without refreshing the whole page, in roder to see the new messages.
How can I do this?
Thanks in advance.
|
|
|
|
|
Use AJAX to refresh your textbox
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
alternatively you can put the textbox in an iframe - and use a meta refresh tag to refresh the textbox page every 5 seconds or something.
|
|
|
|
|
Thanks, but I'm not familiar with Javascript and AJAX. Can you please provide me with an example?
|
|
|
|
|
Thank you.
I have figured it out.
|
|
|
|
|
hi,
Use AJAX for partial page rendering and to avoid full postback. To know more about AJAX, visit ajax.asp.net.
Either you love IT or leave IT...
|
|
|
|
|
Hi,
Would appreciate is someone can help me out in this....Really bugged by this!!
am using a div which appears with an "Please Wait..." image on a button click, now when that div appears i want to make the background opaque/non clickable as it contains menu items,...which i do not want the user to click while i do a processing logic. am using VS2008 & want to do it with javascript...
a small code snippet that i use for testing... -
<pre><tr>
<td>
<div id="divMain" runat="server" class="content">
<asp:UpdateProgress AssociatedUpdatePanelID="updpnlTest" ID="updateProgress" runat="server">
<ProgressTemplate>
<div id="divProgressBackgroundFilter" runat="server">
</div>
<div id="divProcessMessage" runat="server">
Processing your request...Please wait.....<br />
<br />
<img alt="Loading..." height="40px" width="40px" src="loading.gif" />
</div>
</ProgressTemplate>
</asp:UpdateProgress>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
</div>
</td>
</tr><pre></pre>
<tr>
<td align="center">
<asp:UpdatePanel ID="updpnlTest" runat="server">
<ContentTemplate>
<asp:Button ID="btnDisableBackground" runat="server" Text="DisableBackground"
onclick="btnDisableBackground_Click" />
</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr></pre>
Thx in advance...
Regards,
Yogesh
|
|
|
|
|
Since you are using AjaxControlToolkit, why don't you use Modal Popup[^]
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
hi yusuf,
Thx for the reply but my requirement is using a div & not a modal popup...Also i forgot to mention i'm using IE6.0 & want to do it with javascript only...
Regards,
Yogesh
|
|
|
|
|
yogesh_jam wrote: but my requirement is using a div & not a modal popup
modal popup gets rendered as div. If you need to go hard core then here[^]
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Hi Yusuf,
u r post was of good help...
referring to this code on url - http://www.stephendaly.org/blog/post/2008/03/Creating-a-popup-div-that-disables-the-background-of-the-screen.aspx
Here Stephen has mentioned about args in function getPosition(args), but this value is never passed in the code block??
Can u plz tell me what this arg means?? becoz it gives an undefined in the alert & the code block does not work becoz of this.
Regards,
Yogesh
|
|
|
|
|
Hi,
i have a timer image that makes background opaque/ non clikable.
Now i have a close image in a div that has z index higher than the background page to stop the processing. My problem is that even the image is disabled & the click event is not fired... how can i achieve the same??
Code block:-
<div id="updateProgressDiv" class="updateProgress" style="display:none">
<div align="center" style="position:relative">
<img alt="Processing...." src="loading.gif" style="position:relative;width:40;height:40;margin-top:53px;z-index:10001"/>
<span class="updateProgressMessage">Processing your request...<br />Please wait.....</span><br />
<div id="div2" align="right" style="position:relative;z-index:10001">
<asp:Image ID="img2" runat="server" ImageUrl="~/close.gif"/>
</div>
</div>
</div>
Appreciate help in this regard ...
Thx in advance..
Regards,
Yogesh
|
|
|
|
|
hello,
i embedded inside my c# code the ability to visit home page etc. by clicking a button.
now , i have no idea what browser my customers have so what i do is write in the command line only the file hoping that it will be automatically linked with the right program.
well , it works BUT..
i cant open it in a new browser window. it keeps using the allready opened window.
i tried the switching option but it doesnt work
any suggestions ?
here's the command i use :
System.Diagnostics.Process.Start("http://www.website.com/","-new");
the -new should do the work but it doesnt.
tnx,
avi
|
|
|
|
|
i don't really know c# - but it their an option to add "_blank" as a 'target' argument?
|
|
|
|
|
alternatively - a simpler solution (addmittedly not as seamless) would be to add a page on your website that directs the to a new window using a hyperlink with
target="_blank"
or using javascript to dynamically pop an new window??
|
|
|
|
|
I have been trying to react a horizontal dropdown menu using nothing but CSS. I have checked CSSPlay - and have one working - sort-of. I can't seem to get it to work exactly like I want. Any suggestions as to where to go for help?
Thanks!
Coleen
"Even the smallest foot leaves an impression"
|
|
|
|
|
w3schools have good css tutorials.
Google for specific questions. There are millions of sites on css.
If you are using javascript and haven't thought of it already, bear in mind that some users have javascript switched off and you can make dropdown menus using pure css & html.
|
|
|
|
|
Thanks - I HAVE Googled CSS - I am looking at creating CSS menus without Javascript -so in answer to your reference about some users have javascript turned off - I am aware of that and THAT is why I am looking for GOOD tutorials about complete CSS menus! Thanks for the referral to w3schools - I've been there. The problem I am having is that there aren't any tutorials that go into the horizontal menu with a dropdown, that I can find that are easily customizable.
I can find a TON of stuff on a single layer horizontal menu, and have found plenty of stuff (mostly from Stu Nichols sites, thank you!) on creating the dropdowns - the problem I am having is in customizing the menus. Every time I try to customize the CSS to meet my needs - it screws up the menu format. So I need to learn HOW to do the customization. If you have any recommendations for tutorials that show how to do a completely CSS horizontal menu with dropdowns, I would certainly appreciate it! Thank you.
Coleen
"Even the smallest foot leaves an impression"
|
|
|
|
|
the adobe spry framework has a good javascript based menubar which I use regularly. Highly customisableusing css. js is harder to edit. Otherwise, I suggest you look up jQuery. Or plug away at a pure css version.
|
|
|
|
|
"Or plug away at a pure css version"
That's the idea, and why I was asking if anyone had a reference for a good site for PURE CSS menu tutorials...
Coleen
"Even the smallest foot leaves an impression"
|
|
|
|
|
Good People,
What is the best strategy to enable a software user authentication? Essentially, I have an app (desktop) that I have developed that will be sold. However, I need to ensure that the user has purchased a legal copy.
Are there some good third party products that do this? What is the best strategy to prevent the user from just giving their authentication code to another user?
Finally, for a desktop application, what's the best way to facilitate password help if the user looses their password?
Thanks for any help you can provide.
Blitz
|
|
|
|
|
This problem can be as big or ass little as you want it to be - but the simple fact is someone probably find a way to crack your software. However, there a several things you can do to minimise the impact of this. You will need to look into ways of encrypting the data in your application and webpage. Particularly encrypting data on one and decrypting on the other.
1. Subscriptions.
Your program generates a code, users type it into a web page and are given an automatically generated code that they enter back into their desktop software - thus unlocking it. Make sure they have to do this every year. When a code expires the software should become locked(reduced/no usability).
2. Microsoft style Serial #
Give them a serial with the product that can only be used say 25 times. Users are much less likely to give out the software and serial code.
3. Provide the body of the software for free / low price and charge for the rest of the software as add-ons. This process has to be simple for the user. See eclipse's update process in it's help menu for a good example.
4. Release demo versions as torrents.
Stop pirated copies being downloaded by putting demo versions up instead.
5. Phone activation only - require a name address and serial - this will allow you to check software legality. Users should be aware that you may ask them questions regarding the last place it was installed. For example, if they tried to unlock the software twice in one day - you could ask them how many times the software has been unlocked - or the ip address of the network it was last unlocked on or something.
6. Free software
Give the software away for free - charge for support
7. Prevent software being unlocked more than twice in a week.
Make sure if there are any restrictions, you tell the users and you also have the ability to unlock the software remotely if needs be.
------
FORGOTTEN PASSWORDS:
Your web app should keep their email on file and when they forget their password they should be able to request it to be sent to this email address. They should also be able to change their email address of they call.
Never try to manage forgotten passwords manually. It's a bad idea.
|
|
|
|
|
I've spent two days trying to get my web page to communicate with my garmin, per there examples.
Hello world ought to be real simple but there's obviously something I'm missing
They say this should work;
<script type="text/javascript">
function load() {
var display = new Garmin.DeviceDisplay("garminDisplay", {
pathKeyPairsArray: ["http://www.JaxCoder.com","3a2cf9e7b7e3b5aceab0963b14c10079"],
showReadDataElement: true,
showReadGoogleMap: true,
showProgressBar: true,
showReadTracksSelect: true,
showReadWaypointsSelect: true,
showFindDevicesElement: true,
autoFindDevices: true
});
}
</script>
<body onload="load()">
<h2>
Read Tracks/Waypoints with Google Map</h2>
<div id="garminDisplay" style="height: 400px" />
I browsed there stuff and added;
<script type="text/javascript" src="Scripts/prototype.js"> </script>
<script type="text/javascript" src="Scripts/GarminDeviceDisplay.js"> </script>
but I'll be danged if I can't figure out what the heck is going on!
Any help appreciated,
Mike
"It doesn't matter how big a ranch ya' own, or how many cows ya' brand, the size of your funeral is still gonna depend on the weather." -Harry Truman.
Semper Fi
http://www.hq4thmarinescomm.com[ ^]
My Site
|
|
|
|
|
you best bet is to try their forums[^], if any
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
2/3 of the links are broken and 2/3 of the questions unanswered. Sorry is not quite the word I'm looking for maybe useless?
There examples work but when I plug them into my stuff they don't.
I guess y main question is if anyone knows if this will run on an asp page? Or any things that need to be done initially to get it up and going.
CodeProject was mu last resort just thought maybe someone had worked with this and would provide a little insite.
Thanks,
Mike
"It doesn't matter how big a ranch ya' own, or how many cows ya' brand, the size of your funeral is still gonna depend on the weather." -Harry Truman.
Semper Fi
http://www.hq4thmarinescomm.com[ ^]
My Site
|
|
|
|